I am converting a csv
file to feather
type using the code as below,
import pandas as pd
import feather
df = pd.read_csv('myfile.csv')
feather.write_dataframe(df, 'myfile.feather')
myfile.csv
is over 2G
and when I run the code I get the error message as below:
File "table.pxi", line 705, in pyarrow.lib.RecordBatch.from_pandas
File "table.pxi", line 739, in pyarrow.lib.RecordBatch.from_arrays
TypeError: Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array
I've looked at similar questions and have found that feather
started to support large file over 2G recently. But my feather version is 0.4 so I think mine one is already able to support large file. Why do I get this error? Any ideas would be appreciated, thanks.