ak.from_rdataframe#

Defined in awkward.operations.ak_from_rdataframe on line 6.

ak.from_rdataframe(rdf, columns, offsets_type='int64_t')#
Parameters
  • rdf (ROOT.RDataFrame) – ROOT RDataFrame to convert into an Awkward Array.

  • columns (str or iterable of str) – A column or multiple columns to be converted to Awkward Array.

  • offsets_type (str) – A C++ type of the ListOffsetArray offsets.

Converts ROOT RDataFrame columns into an Awkward Array.

If columns is a string, the return value represents a single RDataFrame column.

If columns is any other iterable, the return value is a record array, in which each field corresponds to an RDataFrame column. In particular, if the columns iterable contains only one string, it is still a record array, which has only one field.

See also ak.to_rdataframe.