Skip to content

Commit f79c5b4

Browse files
committed
Change default observed for pivot table
1 parent a4b68dd commit f79c5b4

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
@@ -6862,7 +6862,7 @@ def pivot_table(
68626862
margins=False,
68636863
dropna=True,
68646864
margins_name="All",
6865-
observed=False,
6865+
observed=None,
68666866
) -> "DataFrame":
68676867
from pandas.core.reshape.pivot import pivot_table
68686868

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)