Skip to content

Commit df1b2f9

Browse files
committed
Change default observed for pivot table
1 parent 6f323e7 commit df1b2f9

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
@@ -7029,7 +7029,7 @@ def pivot_table(
70297029
margins=False,
70307030
dropna=True,
70317031
margins_name="All",
7032-
observed=False,
7032+
observed=None,
70337033
) -> DataFrame:
70347034
from pandas.core.reshape.pivot import pivot_table
70357035

pandas/core/reshape/pivot.py

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

0 commit comments

Comments
 (0)