You are viewing documentation about an older version (1.20.0). View latest version

modin.pandas.Series.str.isdigit

Series.str.isdigit()

Check whether all characters in each string are digits.

This is equivalent to running the Python string method str.isdigit() for each element of the Series. If a string has zero characters, False is returned for that check.

Return type:

Series of boolean values with the same length as the original Series.

Examples

>>> s = pd.Series(['23', '³', '⅕', ''])
Copy

The s.str.isdigit method checks for characters used to form numbers in base 10. Currently, special digits like superscripted and subscripted digits in unicode are not checked for. >>> s.str.isdigit() 0 True 1 False 2 False 3 False dtype: bool