Skip to content

Commit c26034a

Browse files
committed
fix ufunc issues
1 parent b5c992d commit c26034a

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
@@ -4622,7 +4622,7 @@ def transform(
46224622
) -> DataFrame | Series:
46234623
# Validate axis argument
46244624
self._get_axis_number(axis)
4625-
if not series_ops_only and not isinstance(func, str):
4625+
if not series_ops_only and not isinstance(func, (str, np.ufunc)):
46264626
cls_name = type(self).__name__
46274627
warnings.warn(
46284628
f"{cls_name}.transform will in the future only operate on "

0 commit comments

Comments
 (0)