Skip to content

Commit 4f5d03d

Browse files
committed
Update warning msg
1 parent 35c0e27 commit 4f5d03d

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
@@ -573,7 +573,7 @@ def nonzero(self):
573573
"""
574574
msg = ("Series.nonzero() is deprecated "
575575
"and will be removed in a future version."
576-
"Use np.nonzero() instead")
576+
"Use np.nonzero(Series.values) instead")
577577
warnings.warn(msg, FutureWarning, stacklevel=2)
578578
return self._values.nonzero()
579579

0 commit comments

Comments
 (0)