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

fixed pivot_table sort argument in pandas_stubs #1077

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

Mariihmp
Copy link
Contributor

tests/test_frame.py Outdated Show resolved Hide resolved
pandas-stubs/core/frame.pyi Outdated Show resolved Hide resolved
tests/test_frame.py Outdated Show resolved Hide resolved
Comment on lines 1092 to 1097
{'a': [1, 2],
'b': [3, 4],
'c': [5, 6],
'd': [7, 8]}
)
check(assert_type(df.pivot_table(values='a', index='b', columns='c', sort=True),
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need to use double quotes here.

Be sure to follow the instructions at https://github.com/pandas-dev/pandas-stubs/blob/main/docs/setup.md to set up your environment. And run tests as shown here: https://github.com/pandas-dev/pandas-stubs/blob/main/docs/tests.md

tests/test_frame.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

Thanks @Mariihmp

@Dr-Irv Dr-Irv merged commit f8ffb46 into pandas-dev:main Dec 26, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing parameter for the sort argument of the pandas.DataFrame.pivot_table method
2 participants