I am getting a "Memory Error" on Python when trying to sort a Pandas dataframe and then save it on disk.
df = pd.read_hdf('big_df_file.h5')
df.sort_values(by='opt',inplace=True,kind='quicksort')
df.to_hdf('sorted.h5')
My computer has 16 Gbs of RAM and the data file is 8 Gb. Shouldn't I be able to do this without getting a "Memory Error" ?
P.S. I am using quicksort because it's the sorting algorithm that allocates less memory.
Versions:
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_GB
pandas: 0.17.1