API: update Series.apply to follow changes in DataFrame.apply #19866
Labels
API - Consistency
Internal Consistency of API/Behavior
Apply
Apply, Aggregate, Transform, Map
Enhancement
As a follow-up to the changes in DataFrame.apply (#18577), we should make sure
Series.apply
behaves consistently with that as well.I think the default behaviour is OK (it already did what we now do by default for DataFrame: expand Series, keep lists or arrays as scalars, see below).
But we could in principle also add the same control over the output type by adding a similar
result_type
keyword.Current behaviour:
The text was updated successfully, but these errors were encountered: