Skip to content

Conversation

@jbrockmendel
Copy link
Member

No description provided.

expected = df.groupby(level=0).agg(alt)
tm.assert_frame_equal(result, expected)

@pytest.mark.parametrize("klass", [Series, DataFrame])
Copy link
Contributor

Choose a reason for hiding this comment

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

we ought to make some rules to prohibit this in favor of the fixture (maybe not be perfect but can prob catch most of these)

@jreback jreback added MultiIndex Testing pandas testing functions or related to the test suite labels Nov 23, 2020
@jreback jreback added this to the 1.2 milestone Nov 23, 2020
@jreback jreback merged commit fe97aa2 into pandas-dev:master Nov 23, 2020
@jbrockmendel jbrockmendel deleted the tst-multilevel branch November 23, 2020 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MultiIndex Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants