ak.with_name
------------

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

.. py:function:: ak.with_name(array, name, highlevel=True, behavior=None)


    :param base: Data containing records or tuples.
    :param name: Name to give to the records or tuples; this assigns
             the ``"__record__"`` parameter.
    :type name: str
    :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

Returns an :py:obj:`ak.Array` or :py:obj:`ak.Record` (or low-level equivalent, if
``highlevel=False``) with a new name. This function does not change the
array in-place.

The records or tuples may be nested within multiple levels of nested lists.
If records are nested within records, only the outermost are affected.

Setting the ``"__record__"`` parameter makes it possible to add behaviors
to the data; see :py:obj:`ak.Array` and :py:obj:`ak.behavior` for a more complete
description.

