ak.types.ArrayType — Awkward Array documentation

# ak.types.ArrayType

Type of a high-level ak.Array, which includes the length of the array.

Consider, for instance the distinction between this ak.Array and the ak.layout.Content in its ak.Array.layout:

    >>> array = ak.Array([[1.1, 2.2, 3.3], [], [4.4, 5.5]])
    >>> ak.type(array)
    3 * var * float64
    >>> ak.type(array.layout)
    var * float64

This distinction is between an ak.types.ArrayType and the ak.types.ListType it contains.

    >>> type(ak.type(array))
    <class 'awkward.types.ArrayType'>
    >>> type(ak.type(array.layout))
    <class 'awkward.types.ListType'>

In addition to the properties and methods described in ak.types.Type, an ArrayType has the following.

## ak.types.ArrayType.__init__

ak.types.ArrayType.__init__(type, length, parameters=None, typestr=None)

## ak.types.ArrayType.type

ak.types.ArrayType.type

## ak.types.ArrayType.length

ak.types.ArrayType.length