Skip to content

Commit 78a8a5e

Browse files
committed
fix ufunc issues
1 parent d791604 commit 78a8a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4626,7 +4626,7 @@ def transform(
46264626
) -> DataFrame | Series:
46274627
# Validate axis argument
46284628
self._get_axis_number(axis)
4629-
if not series_ops_only and not isinstance(func, str):
4629+
if not series_ops_only and not isinstance(func, (str, np.ufunc)):
46304630
cls_name = type(self).__name__
46314631
warnings.warn(
46324632
f"{cls_name}.transform will in the future only operate on "

0 commit comments

Comments
 (0)