MCPcopy
hub / github.com/pydata/xarray / join

Method join

xarray/core/indexes.py:317–337  ·  view source on GitHub ↗

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")

Source from the content-addressed store, hash-verified

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.

Callers 15

mainFunction · 0.45
update_galleryFunction · 0.45
update_videosFunction · 0.45
_encode_coordinatesFunction · 0.45
season_to_month_tupleFunction · 0.45
inds_to_season_stringFunction · 0.45
compute_chunksMethod · 0.45
cftime_offsets.pyFile · 0.45
format_rowFunction · 0.45
format_attrsFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_reprMethod · 0.36
test_repr_multiindexMethod · 0.36
open_example_datasetFunction · 0.36
open_example_mfdatasetFunction · 0.36
create_tmp_fileFunction · 0.36
temp_dirMethod · 0.36
assert_expected_filesMethod · 0.36
test_open_fsspecFunction · 0.36