ak.from_awkward0
----------------

Defined in `awkward.operations.convert <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/convert.py>`__ on `line 1264 <https://github.com/scikit-hep/awkward-1.0/blob/80bbef0738a6b7928333d7c705ee1b359991de5b/src/awkward/operations/convert.py#L1264>`__.

.. py:function:: ak.from_awkward0(array, keep_layout=False, regulararray=False, recordarray=True, highlevel=True, behavior=None)


    :param array: Data to convert to Awkward
              1.x.
    :type array: Awkward 0.x or Awkward 1.x array
    :param keep_layout: If True, stay true to the Awkward 0.x layout,
                    ensuring zero-copy; otherwise, allow transformations that copy
                    data for more flexibility.
    :type keep_layout: bool
    :param regulararray: If True and the array is multidimensional,
                     the dimensions are represented by nested :py:obj:`ak.layout.RegularArray`
                     nodes; if False and the array is multidimensional, the dimensions
                     are represented by a multivalued :py:obj:`ak.layout.NumpyArray.shape`.
                     If the array is one-dimensional, this has no effect.
    :type regulararray: bool
    :param recordarray: If True and the array is a NumPy structured array
                    (dtype.names is not None), the fields are represented by an
                    :py:obj:`ak.layout.RecordArray`; if False and the array is a structured
                    array, the structure is left in the :py:obj:`ak.layout.NumpyArray` ``format``,
                    which some functions do not recognize.
    :type recordarray: bool
    :param highlevel: If True, return an :py:obj:`ak.Array`; otherwise, return
                  a low-level :py:obj:`ak.layout.Content` subclass.
    :type highlevel: bool
    :param behavior: Custom :py:obj:`ak.behavior` for the output array, if
                 high-level.
    :type behavior: None or dict

Converts an array from Awkward 0.x to Awkward 1.x.

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

If ``array`` is already an Awkward 1.x Array, it is simply passed through
this function (so that interfaces that scripts don't need to remove this
function when their 0.x sources are replaced by 1.x).

