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

[Python] Conversion from pandas of empty categorical fails with ArrowInvalid #18577

Closed
asfimport opened this issue Apr 10, 2018 · 1 comment
Closed

Comments

@asfimport
Copy link

The conversion of an empty pandas categorical raises an exception. Before version 0.9.0 this was possible

import pandas as pd
import pyarrow as pa
pa.Table.from_pandas(pd.DataFrame({'cat': pd.Categorical([])}))

raises:

ArrowInvalid: Dictionary indices must have non-zero length

Reporter: Florian Jetter / @fjetter
Assignee: Uwe Korn / @xhochy

PRs and other links:

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

@asfimport
Copy link
Author

Antoine Pitrou / @pitrou:
Issue resolved by pull request 1906
#1906

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