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 BUG: Series constructor from dictionary drops key (index) levels when not all keys have same number of entries #60695 #60814

Conversation

siber64
Copy link

@siber64 siber64 commented Jan 29, 2025

This is a simple fix, the keys were dropped from uneven tuples sue to zip behavior so I changed to zip_longest. I performance tested zip_longest and on equal length tuple pairs it actually outperforms zip - go figure.
Unit test is also added

@siber64 siber64 closed this Jan 29, 2025
@siber64 siber64 deleted the BUG-#60695-Series-constructor-from-dictionary-drops-key-(index)-levels-when-not-all-keys-have-same-number-of-entries branch January 29, 2025 14:37
@siber64
Copy link
Author

siber64 commented Jan 29, 2025

I saw unit test impacts in other areas where behaviour or MultiIndex changes. I have not addressed these as I had problems getting a clean unit test run. I'll need to pick through them carefully I think.

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