当前位置: 首页>>编程示例 >>用法及示例精选 >>正文


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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。