Skip to main content
`Ctrl`+`K`

# pandas.Series.str.isascii

Series.str.isascii()

  Check whether all characters in each string are ascii.

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

  Returns:
    Series or Index of bool

      Series or Index of boolean values with the same length as the original Series/Index.

  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.isspace`

    Check whether all characters are whitespace.

  `Series.str.islower`

    Check whether all characters are lowercase.

  `Series.str.isupper`

    Check whether all characters are uppercase.

  `Series.str.istitle`

    Check whether all characters are titlecase.

  Examples

  The `s5.str.isascii` method checks for whether all characters are ascii characters, which includes digits 0-9, capital and lowercase letters A-Z, and some other special characters.

      >>> s5 = pd.Series(["ö", "see123", "hello world", ""])
      >>> s5.str.isascii()
      0    False
      1     True
      2     True
      3     True
      dtype: bool