So I have a dictionary in the like of:
{'xxx.name1':'value1', 'xxx.name2':'value2',...}
I want to remove the first 4 characters in the keys (i.e. the characters 'xxx.').
What is the cleanest way to do this?
result = {k.replace("xxx.", ""): v for k, v in source.items()}
1.4m articles
1.4m replys
5 comments
57.0k users