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] to_pandas with strings_to_categorical fails #17980

Closed
asfimport opened this issue Jan 15, 2018 · 1 comment
Closed

[Python] to_pandas with strings_to_categorical fails #17980

asfimport opened this issue Jan 15, 2018 · 1 comment

Comments

@asfimport
Copy link
Collaborator

Repro code.

Seems that unexpected deallocation occured.

import pandas as pd
import pyarrow as pa

df = pd.DataFrame({
'Foo': ['A', 'A', 'B', 'B']
})

table = pa.Table.from_pandas(df)

df = table.to_pandas(strings_to_categorical=True)

Reporter: Licht Takeuchi / @Licht-T
Assignee: Licht Takeuchi / @Licht-T

PRs and other links:

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

@asfimport
Copy link
Collaborator Author

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

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

1 participant