Skip to content

Commit 9b2ce5f

Browse files
committed
Update warning msg
1 parent 58a4d22 commit 9b2ce5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/series.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ def nonzero(self):
572572
dtype: int64
573573
"""
574574
msg = ("Series.nonzero() is deprecated "
575-
"and will be removed in a future version.")
575+
"and will be removed in a future version."
576+
"Use np.nonzero() instead")
576577
warnings.warn(msg, FutureWarning, stacklevel=2)
577578
return self._values.nonzero()
578579

0 commit comments

Comments
 (0)