Skip to content

Commit 00db647

Browse files
committed
Change default observed for pivot table
1 parent bf3fa92 commit 00db647

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
@@ -6858,7 +6858,7 @@ def pivot_table(
68586858
margins=False,
68596859
dropna=True,
68606860
margins_name="All",
6861-
observed=False,
6861+
observed=None,
68626862
) -> "DataFrame":
68636863
from pandas.core.reshape.pivot import pivot_table
68646864

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)