swat.functions.merge

swat.functions.merge(left, right, **kwargs)

Merge data in given objects

All objects in the merge must be of the same type.

This function is simply a thin wrapper around pandas.merge’ or ‘CASTable.merge depending on which objects are in the merge. See the documentation for each function / method for which parameters are supported.

Parameters
leftCASTable or SASDataFrame or DataFrame, optional

CASTable or (SAS)DataFrame object

rightCASTable or SASDataFrame or DataFrame, optional

CASTable or (SAS)DataFrame object to merge with

**kwargskeyword arguments, optional

Optional arguments to merge function

Returns
CASTable

If first input is a CASTable

SASDataFrame

If first input is a SASDataFrame

DataFrame

If first input is a pandas.DataFrame

Series

If first input is a pandas.Series

See also

pandas.merge()
CASTable.merge()