File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ Timezones
283
283
- Bug in :func: `Timestamp.tz_localize ` and :func: `Timestamp.tz_convert ` does not propagate ``freq `` (:issue: `25241 `)
284
284
- Bug in :func: `Series.at ` where setting :class: `Timestamp ` with timezone raises ``TypeError `` (:issue: `25506 `)
285
285
- Bug in :func: `DataFrame.update ` when updating with timezone aware data would return timezone naive data (:issue: `25807 `)
286
+ - Bug in :func: `Series.apply ` failed when the series is a timezone aware datetime index (:issue: `25959 `)
286
287
287
288
Numeric
288
289
^^^^^^^
Original file line number Diff line number Diff line change @@ -3687,6 +3687,8 @@ def f(x):
3687
3687
3688
3688
if len (mapped ) and isinstance (mapped [0 ], Series ):
3689
3689
from pandas .core .frame import DataFrame
3690
+ # GH 25959 we don't need to call tolist
3691
+ # if we've been given an ExtensionArray
3690
3692
if not isinstance (mapped , ExtensionArray ):
3691
3693
mapped = mapped .tolist ()
3692
3694
return DataFrame (mapped , index = self .index )
You can’t perform that action at this time.
0 commit comments