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

Unit test for groupby.rolling.corr #54499

Merged
merged 6 commits into from
Aug 11, 2023
Merged

Conversation

@omar-elbaz
Copy link
Contributor Author

pre-commit.ci autofix

@jreback jreback added Testing pandas testing functions or related to the test suite Groupby Window rolling, ewma, expanding labels Aug 11, 2023
@jreback jreback added this to the 2.1 milestone Aug 11, 2023
@jreback jreback merged commit 906471e into pandas-dev:main Aug 11, 2023
@jreback
Copy link
Contributor

jreback commented Aug 11, 2023

thanks @omar-elbaz

@@ -3159,3 +3159,29 @@ def test_groupby_series_with_datetimeindex_month_name():
expected = Series([2, 1], name="jan")
expected.index.name = "jan"
tm.assert_series_equal(result, expected)


def test_rolling_corr_grouping_column_contains_tuples_1(df):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move these tests to pandas/tests/window/test_groupby.py in a follow up PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sounds good, will get it in shortly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mroeschke, this is the number for the new pr #54504, I'm just waiting for the checks to clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mroeschke the other PR went through please merge :) thanks

@omar-elbaz omar-elbaz deleted the unit-test branch August 11, 2023 18:09
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: groupby.rolling.corr incorrect/fails when grouping columns contain tuples
3 participants