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

fix: Support Pandas future.infer_string=True in report generation #1674

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ssiegel
Copy link

@ssiegel ssiegel commented Nov 7, 2024

Previously, report generation encountered issues when future.infer_string=True was set. This resulted in multiple warnings ("FutureWarning: Dtype inference on a pandas object is deprecated") and failures when string columns contained only empty strings ("AttributeError: 'StringDtype' object has no attribute 'pyarrow_dtype'").
This change resolves the issue by explicitly setting the dtype to "object" for the relevant operations.

@ssiegel ssiegel changed the title Support Pandas future.infer_string=True in report generation fix: Support Pandas future.infer_string=True in report generation Nov 7, 2024
Previously, report generation encountered issues when
`future.infer_string=True` was set. This resulted in multiple warnings
("FutureWarning: Dtype inference on a pandas object is deprecated") and
failures when string columns contained only empty strings
("AttributeError: 'StringDtype' object has no attribute
'pyarrow_dtype'").
This change resolves the issue by explicitly setting the dtype to
"object" for the relevant operations.
@ssiegel ssiegel force-pushed the fix-pd-future-infer-string branch from 0364724 to d65a768 Compare November 10, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant