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

Function concat

xarray/structure/concat.py:45–56  ·  view source on GitHub ↗
(
    objs: Iterable[DataTree],
    dim: Hashable | T_Variable | T_DataArray | pd.Index | Any,
    data_vars: T_DataVars | CombineKwargDefault = _DATA_VARS_DEFAULT,
    coords: ConcatOptions | Iterable[Hashable] | CombineKwargDefault = _COORDS_DEFAULT,
    compat: CompatOptions | CombineKwargDefault = _COMPAT_CONCAT_DEFAULT,
    positions: Iterable[Iterable[int]] | None = None,
    fill_value: object = dtypes.NA,
    join: JoinOptions | CombineKwargDefault = _JOIN_DEFAULT,
    combine_attrs: CombineAttrsOptions = "override",
    create_index_for_new_dim: bool = True,
)

Source from the content-addressed store, hash-verified

43
44@overload
45def concat(
46 objs: Iterable[DataTree],
47 dim: Hashable | T_Variable | T_DataArray | pd.Index | Any,
48 data_vars: T_DataVars | CombineKwargDefault = _DATA_VARS_DEFAULT,
49 coords: ConcatOptions | Iterable[Hashable] | CombineKwargDefault = _COORDS_DEFAULT,
50 compat: CompatOptions | CombineKwargDefault = _COMPAT_CONCAT_DEFAULT,
51 positions: Iterable[Iterable[int]] | None = None,
52 fill_value: object = dtypes.NA,
53 join: JoinOptions | CombineKwargDefault = _JOIN_DEFAULT,
54 combine_attrs: CombineAttrsOptions = "override",
55 create_index_for_new_dim: bool = True,
56) -> DataTree: ...
57
58
59# TODO: replace dim: Any by 1D array_likes

Callers 5

_prepare_plot1d_dataFunction · 0.90
to_stacked_arrayMethod · 0.90
_combineMethod · 0.90
_combineMethod · 0.90
_combine_1dFunction · 0.90

Calls 4

_datatree_concatFunction · 0.85
_dataarray_concatFunction · 0.85
_dataset_concatFunction · 0.85
typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…