用法:
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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。