Uh oh!
There was an error while loading. Please reload this page.
feat: add df.unstack - #63
Conversation
Uh oh!
There was an error while loading. Please reload this page.
| ) | ||
| def test_column_multi_index_unstack(scalars_df_index, scalars_pandas_df_index): |
There was a problem hiding this comment.
[nit] would test_multi_column_unstack better represent this test?
There was a problem hiding this comment.
My naming convention is based on the initial dataframe object, column_multi_index indicating that the initial column axis is a multi-index. Open to changing this convention, but it is inline with how I've named the tests so far.
| ) | ||
| pd_result = hockey_pandas_df.set_index( | ||
| ["team_name", "season", "position"] | ||
| ).unstack() |
There was a problem hiding this comment.
I think it would be worth testing for all levels: {-3, -2, -1, 0, 1, 2}
There was a problem hiding this comment.
I don't support levels param yet. Will add levels support to stack() and unstack() in a later pr.
Uh oh!
There was an error while loading. Please reload this page.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕