Skip to content

Commit 1a82d2a

Browse files
committed
modified: pandas/core/frame.py
- Updated dropna param description in `_shared_docs["pivot_table"]` to use bulleted list similar to `parse_dates` param description in `pandas.io.parsers.readers._doc_read_csv_and_table`. modified: pandas/core/reshape/pivot.py - Updated docstring for `dropna` param in :func:`pivot_table` to use bulleted list similar to `parse_dates` param description in `pandas.io.parsers.readers._doc_read_csv_and_table`.
1 parent bc66c1a commit 1a82d2a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

pandas/core/frame.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -9347,10 +9347,12 @@ def pivot(
93479347
on the rows and columns.
93489348
dropna : bool, default True
93499349
Do not include columns whose entries are all NaN. If True,
9350-
- rows with a NA value in any column will be omitted before computing
9351-
margins,
9352-
- index/column keys containing NA values will be dropped (see ``dropna``
9353-
parameter in :meth:``DataFrame.groupby``).
9350+
9351+
* rows with a NA value in any column will be omitted before computing
9352+
margins,
9353+
* index/column keys containing NA values will be dropped (see ``dropna``
9354+
parameter in :meth:``DataFrame.groupby``).
9355+
93549356
margins_name : str, default 'All'
93559357
Name of the row / column that will contain the totals
93569358
when margins is True.

pandas/core/reshape/pivot.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ def pivot_table(
102102
on the rows and columns.
103103
dropna : bool, default True
104104
Do not include columns whose entries are all NaN. If True,
105-
- rows with a NA value in any column will be omitted before computing margins,
106-
- index/column keys containing NA values will be dropped (see ``dropna``
107-
parameter in :meth:``DataFrame.groupby``).
105+
106+
* rows with a NA value in any column will be omitted before computing margins,
107+
* index/column keys containing NA values will be dropped (see ``dropna``
108+
parameter in :meth:``DataFrame.groupby``).
109+
108110
margins_name : str, default 'All'
109111
Name of the row / column that will contain the totals
110112
when margins is True.

0 commit comments

Comments
 (0)