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: Avoid failure when index level shares name with a column #1673

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 where an index level had the same name as a column, resulting in a "ValueError: 'foo' is both an index level and a column label, which is ambiguous." This update removes index names for the relevant groupby operation, ensuring the column is prioritized.

@ssiegel ssiegel changed the title Avoid failure when index level shares name with a column fix: Avoid failure when index level shares name with a column Nov 7, 2024
Previously, report generation failed for DataFrames where an index level
had the same name as a column, resulting in a "ValueError: 'foo' is both
an index level and a column label, which is ambiguous."
This update removes index names for the relevant groupby operation,
ensuring the column is prioritized.
@ssiegel ssiegel force-pushed the fix-index-column-name-clash branch from b575bd1 to f39f669 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