cudf.Series.data#
- property Series.data#
The gpu buffer for the data
- Returns
- outThe GPU buffer of the Series.
Examples
>>> import cudf >>> series = cudf.Series([1, 2, 3, 4]) >>> series 0 1 1 2 2 3 3 4 dtype: int64 >>> series.data <cudf.core.buffer.Buffer object at 0x...> >>> series.data.to_host_array() array([1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0], dtype=uint8)