xarray.IndexSelResult#

class xarray.IndexSelResult(dim_indexers, indexes=<factory>, variables=<factory>, drop_coords=<factory>, drop_indexes=<factory>, rename_dims=<factory>)[source]#

Index query results.

dim_indexers#

A dictionary where keys are array dimensions and values are location-based indexers.

Type

dict

indexes#

New indexes to replace in the resulting DataArray or Dataset.

Type

dict, optional

variables#

New variables to replace in the resulting DataArray or Dataset.

Type

dict, optional

drop_coords#

Coordinate(s) to drop in the resulting DataArray or Dataset.

Type

list, optional

drop_indexes#

Index(es) to drop in the resulting DataArray or Dataset.

Type

list, optional

rename_dims#

A dictionary in the form {old_dim: new_dim} for dimension(s) to rename in the resulting DataArray or Dataset.

Type

dict, optional

__init__(dim_indexers, indexes=<factory>, variables=<factory>, drop_coords=<factory>, drop_indexes=<factory>, rename_dims=<factory>)[source]#

Methods

__init__(dim_indexers[, indexes, variables, ...])

as_tuple()

Unlike dataclasses.astuple, return a shallow copy.

Attributes