🍾 Xarray is now 10 years old! 🎉

xarray.core.indexing.LazilyIndexedArray

xarray.core.indexing.LazilyIndexedArray#

class xarray.core.indexing.LazilyIndexedArray(array, key=None)[source]#

Wrap an array to make basic and outer indexing lazy.

__init__(array, key=None)[source]#
Parameters:
  • array (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__(array[, key])

Parameters:
  • array (array_like) -- Array like object to index.

get_duck_array()

transpose(order)

Attributes

array

key

dtype

ndim

Number of array dimensions.

oindex

shape

size

Number of elements in the array.