File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 21
21
Appender ,
22
22
Substitution ,
23
23
)
24
- from pandas .util ._exceptions import rewrite_warning
25
24
26
25
from pandas .core .dtypes .cast import maybe_downcast_to_dtype
27
26
from pandas .core .dtypes .common import (
@@ -165,17 +164,7 @@ def __internal_pivot_table(
165
164
values = list (values )
166
165
167
166
grouped = data .groupby (keys , observed = observed , sort = sort )
168
- msg = (
169
- "pivot_table dropped a column because it failed to aggregate. This behavior "
170
- "is deprecated and will raise in a future version of pandas. Select only the "
171
- "columns that can be aggregated."
172
- )
173
- with rewrite_warning (
174
- target_message = "The default value of numeric_only" ,
175
- target_category = FutureWarning ,
176
- new_message = msg ,
177
- ):
178
- agged = grouped .agg (aggfunc )
167
+ agged = grouped .agg (aggfunc )
179
168
180
169
if dropna and isinstance (agged , ABCDataFrame ) and len (agged .columns ):
181
170
agged = agged .dropna (how = "all" )
You can’t perform that action at this time.
0 commit comments