cudf.core.column.string.StringMethods.lower#
- StringMethods.lower() SeriesOrIndex[source]#
将所有字符转换为小写。
等同于 str.lower().
- Returns:
- Series or Index of object
对象的一个副本,其中所有字符串都已转换为小写。
另请参阅
upper将所有字符转换为大写。
title将每个单词的第一个字符转换为大写,其余字符转换为小写。
capitalize将第一个字符转换为大写,其余字符转换为小写。
swapcase将大写字母转换为小写字母,小写字母转换为大写字母。
示例
>>> import cudf >>> data = ['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe'] >>> s = cudf.Series(data) >>> s.str.lower() 0 lower 1 capitals 2 this is a sentence 3 swapcase dtype: object