Passing a level argument to max/min prevents non-numeric columns from being dropped #11164
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Nuisance Columns
Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply
Reduction Operations
sum, mean, min, max, etc.
When passing a
level
argument andnumeric_only=True
tomax
andmin
, non-numeric columns are not dropped in the result:I would have expected that column 'd' would not be included here, as is the case if the
level
argument is omitted:The text was updated successfully, but these errors were encountered: