Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to write my dataframe using feather (strided data not supported)

When using the feather package (http://blog.cloudera.com/blog/2016/03/feather-a-fast-on-disk-format-for-data-frames-for-r-and-python-powered-by-apache-arrow/) to try and write a simple 20x20 dataframe, I keep getting an error stating that strided data isn't yet supported. I don't believe my data is strided (or out of the ordinary), and I can replicate the sample code given on the website, but can't seem to get it to work with my own. Here is some sample code:

import feather
import numpy as np
import pandas as pd

tempArr = reshape(np.arange(400), (20,20))
df = pd.DataFrame(tempArr)
feather.write_dataframe(df, 'test.feather')

The last line returns the following error:

FeatherError: Invalid: no support for strided data yet

I am running this on Ubuntu 14.04. Am I perhaps misunderstanding something about how pandas dataframes are stored?

like image 720
Paul S. Avatar asked Apr 04 '16 16:04

Paul S.


1 Answers

Please come to GitHub: https://github.com/wesm/feather/issues/97

Bug reports do not belong on StackOverflow

like image 51
Wes McKinney Avatar answered Nov 07 '22 06:11

Wes McKinney