I have a saved JSON file in my disk which is 6.1 GB. My requirement is to keep that dictionary file memory so that I can replace keys with values in another file.
But I ended up getting Memory error each time when I try to do this step. Can anybody help me load dictionary without getting memory error?
Code is as follows:
with open('file_name.json') as f:
dictionary = json.load(f)