當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python cudf.core.column.string.StringMethods.lower用法及代碼示例

用法:

StringMethods.lower() → SeriesOrIndex

將所有字符轉換為小寫。

等效於 str.lower()

返回

對象的係列或索引

所有字符串都轉換為小寫的對象的副本。

例子

>>> 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

相關用法


注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.core.column.string.StringMethods.lower。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。