Dataframe

Dataframe.concat(*dss, **kwargs)
Concatenate dataswim instances from and
set it to the main dataframe
Parameters:
  • dss (Ds) – dataswim instances to concatenate
  • kwargs – keyword arguments for pd.concat
Dataframe.split_(col: str) -> list(Ds)

Split the main dataframe according to a column’s unique values and return a dict of dataswim instances

Returns:list of dataswim instances
Return type:list(Ds)
Example:dss = ds.slit_("Col 1")
Dataframe.merge(df: pandas.core.frame.DataFrame, on: str, how: str = 'outer', **kwargs)

Set the main dataframe from the current dataframe and the passed dataframe

Parameters:
  • df (pd.DataFrame) – the pandas dataframe to merge
  • on (str) – param for pd.merge
  • how (str, optional) – param for pd.merge, defaults to “outer”
  • kwargs – keyword arguments for pd.merge