Skip to content

DOC: Clarify pivot_table fill_value description #32618

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

Merged
merged 1 commit into from
Mar 11, 2020
Merged

DOC: Clarify pivot_table fill_value description #32618

merged 1 commit into from
Mar 11, 2020

Conversation

taljaards
Copy link
Contributor

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

Clarify that fill_value gets used after performing the aggregation (i.e. it fills values in the resulting pivot table).
(Depending on the aggfunc and df, the result will be different if performing the filling before/after aggregation).


Actually, why not remove it, requiring the user to more explicitly do df.pivot_table(...).fillna(...)?

@datapythonista datapythonista changed the title Clarify pivot_table fill_value description DOC: Clarify pivot_table fill_value description Mar 11, 2020
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @taljaards

@WillAyd WillAyd added the Docs label Mar 11, 2020
@WillAyd WillAyd added this to the 1.1 milestone Mar 11, 2020
@WillAyd WillAyd merged commit 5e27d0a into pandas-dev:master Mar 11, 2020
@WillAyd
Copy link
Member

WillAyd commented Mar 11, 2020

Thanks @taljaards

SeeminSyed pushed a commit to CSCD01-team01/pandas that referenced this pull request Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants