Skip to content
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

Segfault when trying to serialize a DataFrame with Null-only Categorical Column #16911

Closed
asfimport opened this issue Jul 6, 2017 · 4 comments

Comments

@asfimport
Copy link

import pandas as pd
import feather
print("Pandas: %s" % pd.__version__)
print("Feather: %s" % feather.version.version)
df = pd.DataFrame({"A": (1, 2, 3), "B": ("a", "b", "c")})   # if we use this line everything works fine
df = pd.DataFrame({"A": (1, 2, 3), "B": (None, None, None)})
df = df.assign(B=df.B.astype("category"))
#feather.write_dataframe(df, "/tmp/foo.feather")   # this segfaults!
Pandas: 0.19.2
Feather: 0.4.0

Reporter: Panagiotis Mavrogiorgos
Assignee: Wes McKinney / @wesm

Note: This issue was originally created as ARROW-1188. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Marked for Arrow 0.5.0; I think this may be fixed already

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Confirming this bug still exists (it hits a DCHECK in debug builds). Going to take a look

@asfimport
Copy link
Author

Wes McKinney / @wesm:
PR: #863

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Issue resolved by pull request 863
#863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants