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: Convert MultiIndex columns to string representation #1672

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 failed for DataFrames with a MultiIndex on the column axis due to a "TypeError: Setting a MultiIndex dtype to anything other than object is not supported."
This update converts all indexes to their string representation: simple indexes remain unchanged, while MultiIndexes are represented in a tuple-style format.

@ssiegel ssiegel changed the title Convert MultiIndex columns to string representation fix: Convert MultiIndex columns to string representation Nov 7, 2024
Previously, report generation failed for DataFrames with a MultiIndex on
the column axis due to a "TypeError: Setting a MultiIndex dtype to
anything other than object is not supported."
This update converts all indexes to their string representation: simple
indexes remain unchanged, while MultiIndexes are represented in a
tuple-style format.
@ssiegel ssiegel force-pushed the fix-multiindex-columns branch from b0f18fe to 06d42ab 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