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

Code before:
    2    False
    3    False
    dtype: bool
    """
    _shared_docs["isdigit"] = """
    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    False
    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
    --------

    >>> s4 = pd.Series([' ', '\\t\\r\\n ', ''])
    >>> s4.str.isspace()
    0     True
    1     True

Review comment (suggestion):
This is a behaviour change we should actually fix, see https://github.com/pandas-dev/pandas/issues/61466

Code after:
    2    False
    3    False
    dtype: bool
    """
    _shared_docs["isdigit"] = """
    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    False
    2    False
    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
    --------

    >>> s4 = pd.Series([' ', '\\t\\r\\n ', ''])
    >>> s4.str.isspace()
    0     True
    1     True