cudf.core.column.string.StringMethods.islower#
- StringMethods.islower() SeriesOrIndex[source]#
检查每个字符串中的所有字符是否都是小写。
这相当于对Series/Index中的每个元素运行Python字符串方法 str.islower()。 如果字符串没有字符,则返回False 用于该检查。
- Returns:
- Series or Index of bool
与原始Series/Index长度相同的布尔值Series或Index。
另请参阅
示例
>>> import cudf >>> s = cudf.Series(['leopard', 'Golden Eagle', 'SNAKE', '']) >>> s.str.islower() 0 True 1 False 2 False 3 False dtype: bool