We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal reproducer:
import pandas as pd import pyarrow as pa pa.array(pd.Categorical(['a', 'b', 'c'], categories=['a', 'b']))
Reporter: Keith Kraus / @kkraus14 Assignee: Wes McKinney / @wesm
Note: This issue was originally created as ARROW-3374. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered:
Wes McKinney / @wesm: You have to pass from_pandas=True
from_pandas=True
In [4]: pa.array(pd.Categorical(['a', 'b', 'c'], categories=['a', 'b']), from_pandas=True) Out[4]: <pyarrow.lib.DictionaryArray object at 0x7fd2064810a8> -- dictionary: [ "a", "b" ] -- indices: [ 0, 1, null ]
Sorry, something went wrong.
Wes McKinney / @wesm: Actually, I think in this case we can safely assume the user's intent is to respect pandas's nulls. I will fix
Wes McKinney / @wesm: Issue resolved by pull request 2670 #2670
wesm
No branches or pull requests
Minimal reproducer:
Reporter: Keith Kraus / @kkraus14
Assignee: Wes McKinney / @wesm
PRs and other links:
Note: This issue was originally created as ARROW-3374. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: