Skip to content

Commit 8220a4a

Browse files
switch order of docstring sections
1 parent c2318fb commit 8220a4a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

pandas/core/strings/accessor.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3602,27 +3602,28 @@ def casefold(self):
36023602
Series.str.isupper : Check whether all characters are uppercase.
36033603
Series.str.istitle : Check whether all characters are titlecase.
36043604
3605-
Examples
3606-
--------
3605+
Notes
3606+
-----
36073607
Similar to ``str.isdecimal`` but also includes special digits, like
36083608
superscripted and subscripted digits in unicode.
36093609
3610+
The exact behavior of this method, i.e. which unicode characters are
3611+
considered as digits, depends on the backend used for string operations,
3612+
and there can be small differences.
3613+
For example, Python considers the ³ superscript character as a digit, but
3614+
not the ⅕ fraction character, while PyArrow considers both as digits. For
3615+
simple (ascii) decimal numbers, the behaviour is consistent.
3616+
3617+
Examples
3618+
--------
3619+
36103620
>>> s3 = pd.Series(['23', '³', '⅕', ''])
36113621
>>> s3.str.isdigit()
36123622
0 True
36133623
1 True
36143624
2 True
36153625
3 False
36163626
dtype: bool
3617-
3618-
Notes
3619-
-----
3620-
The exact behavior of this method, i.e. which unicode characters are
3621-
considered as digits, depends on the backend used for string operations,
3622-
and there can be small differences.
3623-
For example, Python considers the ³ superscript character as a digit, but
3624-
not the ⅕ fraction character, while PyArrow considers both as digits. For
3625-
simple (ascii) decimal numbers, the behaviour is consistent.
36263627
"""
36273628

36283629
_shared_docs["isspace"] = """

0 commit comments

Comments
 (0)