API: SeriesGroupBy.product with numeric_only and empty non-numeric data #41291
Labels
API - Consistency
Internal Consistency of API/Behavior
API Design
Bug
Groupby
Nuisance Columns
Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply
Milestone
By default numeric_only=True. But when there are no numeric columns and we raise DataError, the fallback ignores numeric_only. So we end up getting wonky results.
Below I think that gb1 raising is correct, gb3 should raise, gb2 and gb4 should return empty DataFrames. cc @jreback @jorisvandenbossche @TomAugspurger @WillAyd
The text was updated successfully, but these errors were encountered: