cudf.RangeIndex.to_numpy#
- RangeIndex.to_numpy( ) np.ndarray[source]#
Convert the RangeIndex to a NumPy array.
- Parameters:
- dtypestr or
numpy.dtype, optional The dtype to cast the result to. Defaults to the RangeIndex dtype.
- copybool, default False
Whether to ensure that the returned value is not a view on another array. Note that
copy=Falsedoes not ensure thatto_numpy()is no-copy. Rather,copy=Trueensures that a copy is made, even if not strictly necessary.- na_valueAny, default None
Value to use for missing values. Since
RangeIndexcannot contain missing values, this parameter has no effect.
- dtypestr or
- Returns:
- numpy.ndarray