pyspark.pandas.Series.str.isspace

str.isspace() → pyspark.pandas.series.Series

Check whether all characters in each string are whitespaces.

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

Examples

>>> s = ps.Series([' ', '\t\r\n ', ''])
>>> s.str.isspace()
0     True
1     True
2    False
dtype: bool