-
-
Notifications
You must be signed in to change notification settings - Fork 141
added list[Levels] to Dataframe.stack() #491
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a test corresponding to the code from the issue, and also an example that tests a single level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on this: https://github.com/pandas-dev/pandas-stubs/actions/runs/3831371047/jobs/6520515609
you need to run the pre-commit action to format the files.
If you do poetry run poe style
, that should fix the issue.
added a generic Any for series output created tests for stack wrapping generics in quotes for compatibility style update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @muddi900
added list[Levels] as per pandas-dev#489 and added appropriate tests added a generic Any for series output created tests for stack wrapping generics in quotes for compatibility style update
assert_type()
to assert the type of any return value