Skip to content

Commit 959f0e2

Browse files
committed
Update deprecation msg in nonzero
1 parent 4674696 commit 959f0e2

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 Series.to_numpy().non_zero() instead")
578+
"Use Series.to_numpy().nonzero() instead")
579579
warnings.warn(msg, FutureWarning, stacklevel=2)
580580
return self._values.nonzero()
581581

0 commit comments

Comments
 (0)