Two Coordinates objects are equal if they have matching variables, all of which are equal. See Also -------- Coordinates.identical
(self, other: Self)
| 476 | del self._data.coords[key] |
| 477 | |
| 478 | def equals(self, other: Self) -> bool: |
| 479 | """Two Coordinates objects are equal if they have matching variables, |
| 480 | all of which are equal. |
| 481 | |
| 482 | See Also |
| 483 | -------- |
| 484 | Coordinates.identical |
| 485 | """ |
| 486 | if not isinstance(other, Coordinates): |
| 487 | return False |
| 488 | return self.to_dataset().equals(other.to_dataset()) |
| 489 | |
| 490 | def identical(self, other: Self) -> bool: |
| 491 | """Like equals, but also checks all variable attributes. |