Pandas : saving Series of dictionaries to disk
问题 I have a python pandas Series of dictionaries : id dicts 1 {'5': 1, '8': 20, '1800': 2} 2 {'2': 2, '8': 1, '1000': 25, '1651': 1} ... ... ... ... ... ... 20000000 {'2': 1, '10': 20} The (key, value) in the dictionaries represent ('feature', count). About 2000 unique features exist. The Series' memory usage in pandas is about 500MB. What would be the best way to write this object to disk (having ideally low disk space usage, and being fast to write and fast to read back in afterwards) ?