The pen data storage library for the python module object does not have a write_dataframe attribute

I get the following error after trying to read in the xlsx file, write it to the framework using feathers, then read in the same frame using the pen and display the results using df.head ()

import pandas as pd import feather v = pd.__version__ #--- read in excel data in_path = '/Users/me/Documents/python/data/FGS2000-2015.xlsx' out_path = '/Users/me/Documents/python/data/mydata.feather' df = pd.read_excel(in_path) #--- write pandas dataframe to disk feather.write_dataframe(df,out_path) #--- read dataframe from disk data = feather.read_dataframe(out_path) data.head() 
An object

'module' does not have an attribute 'write_dataframe'.

+5
source share
1 answer

I had the same problem. I was able to fix this:

 pip install feather-format 

Instead:

 pip install feather 
+2
source

Source: https://habr.com/ru/post/1257635/


All Articles