ak.fields
---------

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

.. py:function:: ak.fields(array)

Extracts record fields or tuple slot numbers from ``array`` (many types
supported, including all Awkward Arrays and Records).

If the array contains nested records, only the outermost record is
queried. If it contains tuples instead of records, this function outputs
string representations of integers, such as ``"0"``, ``"1"``, ``"2"``, etc.
The records or tuples may be within multiple layers of nested lists.

If the array contains neither tuples nor records, this returns an empty
list.

