ak.from_cudf#
Defined in awkward.operations.ak_from_cudf on line 12.
- ak.from_cudf(obj, *, highlevel=True, behavior=None, attrs=None)#
- Parameters:
obj (cudf.Series or cudf.DataFrame) – The cuDF object to convert into an Awkward Array.
highlevel (bool) – If True, return an
ak.Array; otherwise, return a low-levelak.contents.Contentsubclass.behavior (None or dict) – Custom
ak.behaviorfor the output array, if high-level.attrs (None or dict) – Custom attributes for the output array, if high-level.
Converts a cuDF Series or DataFrame into an Awkward Array by recursively traversing pylibcudf columns and wrapping GPU buffers with CuPy.
Note: DataFrame column names and order are preserved. Arrow/cuDF column metadata beyond field names (e.g. time-zone annotations, extension-type metadata) is not yet propagated and will be addressed in a follow-up.
See also
ak.to_cudf,ak.from_cupy, andak.from_dlpack.