API: Allow partial failure with TypeError in agg with dict-like arguments #40539
Labels
API - Consistency
Internal Consistency of API/Behavior
Apply
Apply, Aggregate, Transform, Map
Enhancement
Error Reporting
Incorrect or improved errors from pandas
With
df = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
, my expectation is that:Behave the same. However, the former allows partial failure when a TypeError is raised, whereas the latter does not. Similarly with groupby as well.
While I'd like to focus this issue on just agg with list/dict-likes, comparisons for all frame/series, agg/transform, list/dict with functions that raise ValueError/TypeError combinations are below.
Results
Code
The text was updated successfully, but these errors were encountered: