# xarray.core.indexing.LazilyIndexedArray

### *class* xarray.core.indexing.LazilyIndexedArray(array, key=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/indexing.py#L708-L822)

Wrap an array to make basic and outer indexing lazy.

#### \_\_init_\_(array, key=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/indexing.py#L713-L740)

* **Parameters:**
  * **array** ([array_like](https://numpy.org/doc/stable/glossary.html#term-array_like)) – Array like object to index.
  * **key** (`ExplicitIndexer`, *optional*) – Array indexer. If provided, it is assumed to already be in
    canonical expanded form.

### Methods

| [`__init__`](#xarray.core.indexing.LazilyIndexedArray.__init__)(array[, key])   |    |
|---------------------------------------------------------------------------|----|
| `async_get_duck_array`()                                                  |    |
| `get_duck_array`()                                                        |    |
| `transpose`(order)                                                        |    |

### Attributes

| `array`   |                                  |
|-----------|----------------------------------|
| `key`     |                                  |
| `dtype`   |                                  |
| `ndim`    | Number of array dimensions.      |
| `oindex`  |                                  |
| `shape`   |                                  |
| `size`    | Number of elements in the array. |
| `vindex`  |                                  |
