Skip to content

Commit eacead8

Browse files
committed
Update deprecation warning in nonzero
1 parent 8278828 commit eacead8

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
@@ -575,7 +575,7 @@ def nonzero(self):
575575
"""
576576
msg = ("Series.nonzero() is deprecated "
577577
"and will be removed in a future version."
578-
"Use np.nonzero(Series.values) instead")
578+
"Use Series.to_numpy().non_zero() instead")
579579
warnings.warn(msg, FutureWarning, stacklevel=2)
580580
return self._values.nonzero()
581581

0 commit comments

Comments
 (0)