Pandas groupby(...).apply(f)
amplifies TypeError exceptions.
#50980
Labels
Apply
Apply, Aggregate, Transform, Map
Enhancement
Error Reporting
Incorrect or improved errors from pandas
Groupby
Results in three exceptions stacked on top of each other. See below. This is particularly unpleasant for less sophisticated users because the bottom-most error is
KeyError: 'A'
which is very confusing. The actually relevant exception is the first of the three.The text was updated successfully, but these errors were encountered: