Return a new index from the combination of this index with another index of the same type. Implementation is optional but required in order to support alignment. Parameters ---------- other : Index The other Index object to combine with this inde
(self, other: Self, how: JoinOptions = "inner")
| 315 | raise NotImplementedError(f"{self!r} doesn't support label-based selection") |
| 316 | |
| 317 | def join(self, other: Self, how: JoinOptions = "inner") -> Self: |
| 318 | """Return a new index from the combination of this index with another |
| 319 | index of the same type. |
| 320 | |
| 321 | Implementation is optional but required in order to support alignment. |
| 322 | |
| 323 | Parameters |
| 324 | ---------- |
| 325 | other : Index |
| 326 | The other Index object to combine with this index. |
| 327 | join : str, optional |
| 328 | Method for joining the two indexes (see :py:func:`~xarray.align`). |
| 329 | |
| 330 | Returns |
| 331 | ------- |
| 332 | joined : Index |
| 333 | A new Index object. |
| 334 | """ |
| 335 | raise NotImplementedError( |
| 336 | f"{self!r} doesn't support alignment with inner/outer join method" |
| 337 | ) |
| 338 | |
| 339 | def reindex_like(self, other: Self) -> dict[Hashable, Any]: |
| 340 | """Query the index with another index of the same type. |
no outgoing calls