meerkat.ops package#
Submodules#
meerkat.ops.concat module#
- concat(objs: Sequence[DataPanel] | Sequence[AbstractColumn], axis: str | int = 'rows', suffixes: Tuple[str] = None, overwrite: bool = False) DataPanel | AbstractColumn [source]#
Concatenate a sequence of columns or a sequence of DataPanel`s. If sequence is empty, returns an empty `DataPanel.
If concatenating columns, all columns must be of the same type (e.g. all
ListColumn). - If concatenating `DataPanel`s along axis 0 (rows), all `DataPanel`s must have the same set of columns. - If concatenating `DataPanel`s along axis 1 (columns), all `DataPanel`s must have the same length and cannot have any of the same column names.
- Parameters:
objs (Union[Sequence[DataPanel], Sequence[AbstractColumn]]) – sequence of columns or DataPanels.
axis (Union[str, int]) – The axis along which to concatenate. Ignored if concatenating columns.
- Returns:
concatenated DataPanel or column
- Return type:
Union[DataPanel, AbstractColumn]