# uproot.AsArray

Defined in [uproot.containers](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/containers.py) on [line 637](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/containers.py#L637).

| **Inheritance order:**                                                          |
|---------------------------------------------------------------------------------|
| 1. [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md) |

### *class* uproot.containers.AsArray(header, speedbump, values, inner_shape=())

* **Parameters:**
  * **header** (*bool*) – Sets the [header](uproot.containers.AsContainer.html.md#uproot-containers-ascontainer-header).
  * **speedbump** (*bool*) – If True, one byte must be skipped before reading the
    data.
  * **values** ([uproot.Model](uproot.model.Model.html.md), [uproot.containers.Container](uproot.containers.Container.html.md), or `numpy.dtype`) – Data
    type for data nested in the array.
  * **inner_shape** (*Optional* *[**Tuple* *[**int* *]* *]*) – Shape not counting first axis, if any

A [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md) for simple arrays (not
`std::vector`).

<a id="uproot-containers-asarray-speedbump"></a>

## speedbump

#### AsArray.speedbump

If True, one byte must be skipped before reading the data.

<a id="uproot-containers-asarray-values"></a>

## values

#### AsArray.values

Data type for data nested in the array. May be a
[uproot.Model](uproot.model.Model.html.md), [uproot.containers.Container](uproot.containers.Container.html.md), or
`numpy.dtype`.

<a id="uproot-containers-asarray-inner-shape"></a>

## inner_shape

#### AsArray.inner_shape

The shape of possible extra dimensions in this array

<a id="uproot-containers-asarray-cache-key"></a>

## cache_key

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.cache_key

<a id="uproot-containers-asarray-typename"></a>

## typename

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.typename

<a id="uproot-containers-asarray-awkward-form"></a>

## awkward_form

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.awkward_form(file, context)

* **Parameters:**
  * **file** ([uproot.reading.CommonFileMethods](uproot.reading.CommonFileMethods.html.md)) – The file associated
    with this interpretation’s `TBranch`.
  * **context** (*dict*) – Context for the Form-generation; defaults are
    the remaining arguments below.
  * **index_format** (*str*) – Format to use for indexes of the
    `awkward.forms.Form`; may be `"i32"`, `"u32"`, or
    `"i64"`.
  * **header** (*bool*) – If True, include header fields of each C++ class.
  * **tobject_header** (*bool*) – If True, include header fields of each `TObject`
    base class.
  * **breadcrumbs** (*tuple* *of* *class objects*) – Used to check for recursion.
    Types that contain themselves cannot be Awkward Arrays because the
    depth of instances is unknown.

The `awkward.forms.Form` to use to put objects of type type in an
Awkward Array.

<a id="uproot-containers-asarray-strided-interpretation"></a>

## strided_interpretation

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.strided_interpretation(file, header=False, tobject_header=True, breadcrumbs=(), original=None)

* **Parameters:**
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – File to use to generate
    [uproot.Model](uproot.model.Model.html.md) classes from its
    [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers) and `file_path`
    for error messages.
  * **header** (*bool*) – If True, assume the outermost object has a header.
  * **tobject_header** (*bool*) – If True, assume that `TObjects` have headers.
  * **breadcrumbs** (*tuple* *of* *class objects*) – Used to check for recursion.
    Types that contain themselves cannot be strided because the
    depth of instances is unknown.
  * **original** (None, [uproot.Model](uproot.model.Model.html.md), or [uproot.containers.Container](uproot.containers.Container.html.md)) – The
    original, non-strided model or container.

Returns a list of (str, `numpy.dtype`) pairs to build a
[uproot.AsStridedObjects](uproot.interpretation.objects.AsStridedObjects.html.md) interpretation.

<a id="uproot-containers-asarray-header"></a>

## header

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.header

If True, assume this container has a header.

<a id="uproot-containers-asarray-read"></a>

## read

Inherited from [uproot.containers.AsContainer](uproot.containers.AsContainer.html.md).

#### AsArray.read(chunk, cursor, context, file, selffile, parent, header=True)

* **Parameters:**
  * **chunk** ([uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md)) – Buffer of contiguous data
    from the file [uproot.source.chunk.Source](uproot.source.chunk.Source.html.md).
  * **cursor** ([uproot.Cursor](uproot.source.cursor.Cursor.html.md)) – Current position in
    that `chunk`.
  * **context** (*dict*) – Auxiliary data used in deserialization.
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – An open file object,
    capable of generating new [uproot.Model](uproot.model.Model.html.md) classes
    from its [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers).
  * **selffile** ([uproot.reading.CommonFileMethods](uproot.reading.CommonFileMethods.html.md)) – A possibly
    [uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md) associated with this object.
  * **parent** (*None* *or* *calling object*) – The previous `read` in the
    recursive descent.
  * **header** (*bool*) – If True, enable the container’s
    [header](uproot.containers.AsContainer.html.md#uproot-containers-ascontainer-header).

Read one object as part of a recursive descent.
