pyspark.pandas.Series.str.lower ¶
-
str.
lower
( ) → pyspark.pandas.series.Series ¶ -
将 Series/Index 中的字符串转换为全部小写。
示例
>>> 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