Skip to content

Commit 3889d85

Browse files
authored
DOC: add pivot_table note to dropna doc (#47808)
* moving edits to pivot_table * missing punctuation' * trailing whitespace * clarifying documentation * formatting * reverting line
1 parent d36138b commit 3889d85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/frame.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8575,7 +8575,9 @@ def pivot(self, index=None, columns=None, values=None) -> DataFrame:
85758575
margins : bool, default False
85768576
Add all row / columns (e.g. for subtotal / grand totals).
85778577
dropna : bool, default True
8578-
Do not include columns whose entries are all NaN.
8578+
Do not include columns whose entries are all NaN. If True,
8579+
rows with a NaN value in any column will be omitted before
8580+
computing margins.
85798581
margins_name : str, default 'All'
85808582
Name of the row / column that will contain the totals
85818583
when margins is True.

0 commit comments

Comments
 (0)