MCPcopy Index your code
hub / github.com/pydata/xarray / test_equals

Method test_equals

xarray/tests/test_indexes.py:262–265  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260 index.sel({"x": slice("2001", "2002")})
261
262 def test_equals(self) -> None:
263 index1 = PandasIndex([1, 2, 3], "x")
264 index2 = PandasIndex([1, 2, 3], "x")
265 assert index1.equals(index2) is True
266
267 def test_join(self) -> None:
268 index1 = PandasIndex(["a", "aa", "aaa"], "x", coord_dtype="<U3")

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.95
PandasIndexClass · 0.90

Tested by

no test coverage detected