Skip to content

Commit a60c3b8

Browse files
committed
DOC: Correct isdigit method in StringMethods to accurately identify numeric characters
1 parent c1adf30 commit a60c3b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings/accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,8 +3610,8 @@ def casefold(self):
36103610
>>> s3 = pd.Series(['23', '³', '⅕', ''])
36113611
>>> s3.str.isdigit()
36123612
0 True
3613-
1 False
3614-
2 False
3613+
1 True
3614+
2 True
36153615
3 False
36163616
dtype: bool
36173617
"""

0 commit comments

Comments
 (0)