Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

feather data storage library for python 'module' object has no attribute 'write_dataframe' error

I am getting the following error after attempting to read in an xlsx file, write it to a dataframe using feather, then read in that same dataframe using feather 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()

'module' object has no attribute 'write_dataframe' error.

like image 365
yoshiserry Avatar asked Oct 03 '16 09:10

yoshiserry


1 Answers

I had the same issue. I was able to fix it by doing:

pip install feather-format

Instead of:

pip install feather
like image 137
Christie Haskell Marsh Avatar answered Sep 30 '22 12:09

Christie Haskell Marsh