-
-
Notifications
You must be signed in to change notification settings - Fork 129
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(frame): add arguments for stack method #926
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2256,6 +2256,20 @@ def test_frame_stack() -> None: | |
), | ||
pd.Series, | ||
) | ||
check( | ||
assert_type( | ||
df_multi_level_cols2.stack(0, future_stack=False), | ||
Union[pd.DataFrame, "pd.Series[Any]"], | ||
), | ||
pd.DataFrame, | ||
) | ||
check( | ||
assert_type( | ||
df_multi_level_cols2.stack(0, dropna=True, sort=True), | ||
Union[pd.DataFrame, "pd.Series[Any]"], | ||
), | ||
pd.DataFrame, | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like you have to include the To see this, do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh ok nice I didn't notice the |
||
|
||
|
||
def test_frame_reindex() -> None: | ||
|
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 surround this with
if PD_LTE_22:
as thefuture_stack
parameter is being removed in the future, and it will allow the nightly tests that get run upon a merge to succeed?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.
Sure, I just added the condition 👍