Skip to content

Commit 4f9456d

Browse files
committed
Change default observed for pivot table
1 parent 0eeca0a commit 4f9456d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6857,7 +6857,7 @@ def pivot_table(
68576857
margins=False,
68586858
dropna=True,
68596859
margins_name="All",
6860-
observed=False,
6860+
observed=None,
68616861
) -> DataFrame:
68626862
from pandas.core.reshape.pivot import pivot_table
68636863

pandas/core/reshape/pivot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def pivot_table(
4545
margins=False,
4646
dropna=True,
4747
margins_name="All",
48-
observed=False,
48+
observed=None,
4949
) -> "DataFrame":
5050
index = _convert_by(index)
5151
columns = _convert_by(columns)

0 commit comments

Comments
 (0)