用法:
classmethod Series.from_arrow(array)
從 PyArrow Array/ChunkedArray 創建。
- array:PyArrow 數組/ChunkedArray
必須轉換的 PyArrow 對象。
- 單列框架
- 無效輸入類型的 TypeError。
參數:
返回:
拋出:
例子:
>>> import cudf >>> import pyarrow as pa >>> cudf.Index.from_arrow(pa.array(["a", "b", None])) StringIndex(['a' 'b' None], dtype='object') >>> cudf.Series.from_arrow(pa.array(["a", "b", None])) 0 a 1 b 2 <NA> dtype: object
相關用法
- Python cudf.Series.from_pandas用法及代碼示例
- Python cudf.Series.from_categorical用法及代碼示例
- Python cudf.Series.from_masked_array用法及代碼示例
- Python cudf.Series.floordiv用法及代碼示例
- Python cudf.Series.fillna用法及代碼示例
- Python cudf.Series.factorize用法及代碼示例
- Python cudf.Series.first用法及代碼示例
- Python cudf.Series.floor用法及代碼示例
- Python cudf.Series.ceil用法及代碼示例
- Python cudf.Series.update用法及代碼示例
- Python cudf.Series.max用法及代碼示例
- Python cudf.Series.head用法及代碼示例
- Python cudf.Series.reindex用法及代碼示例
- Python cudf.Series.interleave_columns用法及代碼示例
- Python cudf.Series.min用法及代碼示例
- Python cudf.Series.nlargest用法及代碼示例
- Python cudf.Series.to_frame用法及代碼示例
- Python cudf.Series.mask用法及代碼示例
- Python cudf.Series.notnull用法及代碼示例
- Python cudf.Series.isnull用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.Series.from_arrow。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。