-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_ipc
won't load Feather V2 files
#1488
Comments
You are running a very old version of polars. Could you try to update to 0.9.12 and try again? |
The read_feather problem was fixed quite a while ago: #623 The problem with your Feather file is that is uses compression, which was not supported in With the following it would have worked to load it with that old version of polars: pd.DataFrame({
"foo": [None, 1, 2],
"bar": np.arange(3)
}).to_feather("test.arrow", compression=None) Last version of polars: pd.DataFrame({
"foo": [None, 1, 2],
"bar": np.arange(3)
}).to_feather("test.arrow")
pl.read_ipc("test.arrow", use_pyarrow=False)
Out[1]:
shape: (3, 2)
┌──────┬─────┐
│ foo ┆ bar │
│ --- ┆ --- │
│ f64 ┆ i64 │
╞══════╪═════╡
│ null ┆ 0 │
├╌╌╌╌╌╌┼╌╌╌╌╌┤
│ 1 ┆ 1 │
├╌╌╌╌╌╌┼╌╌╌╌╌┤
│ 2 ┆ 2 │
└──────┴─────┘ |
You're both right - not sure how I managed to install such an old version. Will close this, thanks. |
Are you using Python or Rust?
Python
Which feature gates did you use?
This can be ignored by Python users.
What version of polars are you using?
0.7.15
What operating system are you using polars on?
macOS Big Sur
Describe your bug.
Following the code for
read_ipc
whenuse_pyarrow=True
, it seems likeDataFrame.from_arrow
gets called on the result ofpa.feather.read_feather
. Should this instead be called on the result ofpa.feather.read_table
? The former returns a Pandas DataFrame, while the latter gives an Arrow table.When
use_pyarrow
is False, the file loads, but with incorrect values.What are the steps to reproduce the behavior?
Example
Output 1:
Output 2:
The text was updated successfully, but these errors were encountered: