Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pandas.read_feather got an unexpected argument nthreads

I tried saving a dataframe to feather format but while loading back I got the error

os.makedirs('tmp', exist_ok=True)
df_hist.to_feather('tmp/historical-raw')

Here's the loading back into the dataset

df_hist= pd.read_feather('tmp/historical-raw')

which gives the following error

read_feather() got an unexpected keyword argument 'nthreads'

Thanks in advance

like image 790
kramer Avatar asked Jan 01 '19 13:01

kramer


Video Answer


1 Answers

Try replacing below line

df_hist= pd.read_feather('tmp/historical-raw') 

with

import feather
df_hist=feather.read_dataframe('tmp/historical-raw')

above change worked for me

like image 172
Lakshmi Bhavani - Intel Avatar answered Oct 11 '22 08:10

Lakshmi Bhavani - Intel