Repository: pandas-dev/pandas
File: pandas/core/strings/accessor.py (Python)

Code before:
    See Also
    --------
    Series.str.isalpha : Check whether all characters are alphabetic.
    Series.str.isnumeric : Check whether all characters are numeric.
    Series.str.isalnum : Check whether all characters are alphanumeric.
    Series.str.isdecimal : Check whether all characters are decimal.
    Series.str.isspace : Check whether all characters are whitespace.
    Series.str.islower : Check whether all characters are lowercase.
    Series.str.isascii : Check whether all characters are ascii.
    Series.str.isupper : Check whether all characters are uppercase.
    Series.str.istitle : Check whether all characters are titlecase.

    Examples
    --------
    Similar to ``str.isdecimal`` but also includes special digits, like
    superscripted and subscripted digits in unicode.

    >>> s3 = pd.Series(['23', '³', '⅕', ''])
    >>> s3.str.isdigit()
    0     True
    1     True
    2     True
    3    False
    dtype: bool

    Notes
    -----
    The exact behavior of this method, i.e. which unicode characters are
    considered as digits, depends on the backend used for string operations,
    and there can be small differences.
    For example, Python considers the ³ superscript character as a digit, but
    not the ⅕ fraction character, while PyArrow considers both as digits. For
    simple (ascii) decimal numbers, the behaviour is consistent.
    """

    _shared_docs["isspace"] = """
    See Also
    --------
    Series.str.isalpha : Check whether all characters are alphabetic.
    Series.str.isnumeric : Check whether all characters are numeric.
    Series.str.isalnum : Check whether all characters are alphanumeric.
    Series.str.isdigit : Check whether all characters are digits.
    Series.str.isdecimal : Check whether all characters are decimal.
    Series.str.islower : Check whether all characters are lowercase.
    Series.str.isascii : Check whether all characters are ascii.
    Series.str.isupper : Check whether all characters are uppercase.
    Series.str.istitle : Check whether all characters are titlecase.

    Examples
    --------


Review comment (bug):
```
Error:...:GL07:pandas.Series.str.isdigit:Sections are in the wrong order. Correct order is: Returns, See Also, Notes, Examples
```

Code after:
    See Also
    --------
    Series.str.isalpha : Check whether all characters are alphabetic.
    Series.str.isnumeric : Check whether all characters are numeric.
    Series.str.isalnum : Check whether all characters are alphanumeric.
    Series.str.isdecimal : Check whether all characters are decimal.
    Series.str.isspace : Check whether all characters are whitespace.
    Series.str.islower : Check whether all characters are lowercase.
    Series.str.isascii : Check whether all characters are ascii.
    Series.str.isupper : Check whether all characters are uppercase.
    Series.str.istitle : Check whether all characters are titlecase.

    Notes
    -----
    Similar to ``str.isdecimal`` but also includes special digits, like
    superscripted and subscripted digits in unicode.

    The exact behavior of this method, i.e. which unicode characters are
    considered as digits, depends on the backend used for string operations,
    and there can be small differences.
    For example, Python considers the ³ superscript character as a digit, but
    not the ⅕ fraction character, while PyArrow considers both as digits. For
    simple (ascii) decimal numbers, the behaviour is consistent.

    Examples
    --------

    >>> s3 = pd.Series(['23', '³', '⅕', ''])
    >>> s3.str.isdigit()
    0     True
    1     True
    2     True
    3    False
    dtype: bool
    """

    _shared_docs["isspace"] = """
    See Also
    --------
    Series.str.isalpha : Check whether all characters are alphabetic.
    Series.str.isnumeric : Check whether all characters are numeric.
    Series.str.isalnum : Check whether all characters are alphanumeric.
    Series.str.isdigit : Check whether all characters are digits.
    Series.str.isdecimal : Check whether all characters are decimal.
    Series.str.islower : Check whether all characters are lowercase.
    Series.str.isascii : Check whether all characters are ascii.
    Series.str.isupper : Check whether all characters are uppercase.
    Series.str.istitle : Check whether all characters are titlecase.

    Examples
    --------