cudf.core.accessors.string.StringMethods.lower#
- StringMethods.lower() Series | Index[source]#
Converts all characters to lowercase.
Equivalent to str.lower().
- Returns:
- Series or Index of object
A copy of the object with all strings converted to lowercase.
See also
upperConverts all characters to uppercase.
titleConverts first character of each word to uppercase and remaining to lowercase.
capitalizeConverts first character to uppercase and remaining to lowercase.
swapcaseConverts uppercase to lowercase and lowercase to uppercase.
Examples
>>> 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