ak.str.upper
------------

.. py:module: ak.str.upper

Defined in `awkward.operations.str.akstr_upper <https://github.com/scikit-hep/awkward/blob/ee63f6ea8d2a687027967d738995a7df02dadc13/src/awkward/operations/str/akstr_upper.py>`__ on `line 13 <https://github.com/scikit-hep/awkward/blob/ee63f6ea8d2a687027967d738995a7df02dadc13/src/awkward/operations/str/akstr_upper.py#L13>`__.

.. py:function:: ak.str.upper(array, *, highlevel=True, behavior=None, attrs=None)


    :param array: Array-like data (anything :py:obj:`ak.to_layout` recognizes).
    :param highlevel: If True, return an :py:obj:`ak.Array`; otherwise, return
                  a low-level :py:obj:`ak.contents.Content` subclass.
    :type highlevel: bool
    :param behavior: Custom :py:obj:`ak.behavior` for the output array, if
                 high-level.
    :type behavior: None or dict
    :param attrs: Custom attributes for the output array, if
              high-level.
    :type attrs: None or dict

Replaces any string-valued data with an uppercase version (correctly
transforming Unicode characters).

Replaces any bytestring-valued data with am uppercase version (transforming
ASCII characters only).

Note: this function does not raise an error if the ``array`` does not
contain any string or bytestring data.

Requires the pyarrow library and calls
`pyarrow.compute.utf8_upper <https://arrow.apache.org/docs/python/generated/pyarrow.compute.utf8_upper.html>`__
or
`pyarrow.compute.ascii_upper <https://arrow.apache.org/docs/python/generated/pyarrow.compute.ascii_upper.html>`__
on strings and bytestrings, respectively.