I am trying to pivot a pandas dataframe (read from csv file. size 16.3 MB)
pd.pivot_table(df, index=['Column1', 'Column2'], columns=['Column3'], values=['value1', 'value2', 'value3'], aggfunc=np.sum)
This is the error that I get -
ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size.
Any suggestion is highly appreciated.