用法:
class cudf.RangeIndex(start, stop=None, step=1, dtype=None, copy=False, name=None)
实现单调整数范围的不可变索引。
当用户没有提供显式索引时,这是 DataFrame 和 Series 使用的默认索引类型。
- start:int(默认值:0),或其他范围实例
- stop:整数(默认值:0)
- step:整数(默认值:1)
- name:对象,可选
要存储在索引中的名称。
- dtype:numpy 数据类型
未使用,接受与其他索引类型的同质性。
- copy:布尔值,默认为 False
未使用,接受与其他索引类型的同质性。
- 范围索引
参数:
返回:
例子:
>>> import cudf >>> cudf.RangeIndex(0, 10, 1, name="a") RangeIndex(start=0, stop=10, step=1, name='a')
>>> cudf.RangeIndex(range(1, 10, 1), name="a") RangeIndex(start=1, stop=10, step=1, name='a')
相关用法
- Python cudf.core.column.string.StringMethods.is_vowel用法及代码示例
- Python cudf.Series.ceil用法及代码示例
- Python cudf.core.column.string.StringMethods.endswith用法及代码示例
- Python cudf.Series.update用法及代码示例
- Python cudf.DataFrame.mod用法及代码示例
- Python cudf.DataFrame.isin用法及代码示例
- Python cudf.core.column.string.StringMethods.title用法及代码示例
- Python cudf.DataFrame.rmul用法及代码示例
- Python cudf.Series.max用法及代码示例
- Python cudf.DatetimeIndex.dayofweek用法及代码示例
- Python cudf.DataFrame.apply用法及代码示例
- Python cudf.core.column.string.StringMethods.contains用法及代码示例
- Python cudf.core.column.string.StringMethods.rsplit用法及代码示例
- Python cudf.DataFrame.exp用法及代码示例
- Python cudf.Series.head用法及代码示例
- Python cudf.DataFrame.drop用法及代码示例
- Python cudf.core.column.string.StringMethods.zfill用法及代码示例
- Python cudf.Series.reindex用法及代码示例
- Python cudf.Series.interleave_columns用法及代码示例
- Python cudf.core.series.DatetimeProperties.month用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 cudf.RangeIndex。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。