Defined in awkward.operations.convert on line 1654.

ak.to_awkward0(array, keep_layout=False)
  • array – Data to convert into an Awkward 0.x array.

  • keep_layout (bool) – If True, stay true to the Awkward 1.x layout, ensuring zero-copy; otherwise, allow transformations that copy data for more flexibility.

Converts array (many types supported, including all Awkward Arrays and Records) into an Awkward 0.x array.

This is only needed during the transition from the old library to the new library.