pyspark.pandas.Series.str.lower

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

Convert strings in the Series/Index to all lowercase.

Examples

>>> s = ps.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'])
>>> s
0                 lower
1              CAPITALS
2    this is a sentence
3              SwApCaSe
dtype: object
>>> s.str.lower()
0                 lower
1              capitals
2    this is a sentence
3              swapcase
dtype: object