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

Method equals

xarray/tests/indexes.py:41–46  ·  view source on GitHub ↗
(self, other, exclude=None)

Source from the content-addressed store, hash-verified

39 return self.x.create_variables() | self.y.create_variables()
40
41 def equals(self, other, exclude=None):
42 if exclude is None:
43 exclude = frozenset()
44 x_eq = True if self.x.dim in exclude else self.x.equals(other.x)
45 y_eq = True if self.y.dim in exclude else self.y.equals(other.y)
46 return x_eq and y_eq
47
48 @classmethod
49 def concat(

Calls

no outgoing calls