Skip to content

Commit 01de5fe

Browse files
committed
Expose top-level xarray.indexes in __init__
Also expose CoordinateTransformIndex Closes #10424
1 parent 8796d55 commit 01de5fe

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

xarray/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from importlib.metadata import version as _version
22

3-
from xarray import coders, groupers, testing, tutorial, ufuncs
3+
from xarray import coders, groupers, indexes, testing, tutorial, ufuncs
44
from xarray.backends.api import (
55
load_dataarray,
66
load_dataset,
@@ -70,6 +70,7 @@
7070
# Sub-packages
7171
"coders",
7272
"groupers",
73+
"indexes",
7374
"testing",
7475
"tutorial",
7576
"ufuncs",

xarray/indexes/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@
44
"""
55

66
from xarray.core.indexes import (
7+
CoordinateTransformIndex,
78
Index,
89
PandasIndex,
910
PandasMultiIndex,
1011
)
1112
from xarray.indexes.range_index import RangeIndex
1213

13-
__all__ = ["Index", "PandasIndex", "PandasMultiIndex", "RangeIndex"]
14+
__all__ = [
15+
"CoordinateTransformIndex",
16+
"Index",
17+
"PandasIndex",
18+
"PandasMultiIndex",
19+
"RangeIndex",
20+
]

0 commit comments

Comments
 (0)