gi.concatenate.concatenate_databases

gi.concatenate.concatenate_databases(db1, db2)

Concatenates two dictionaries of DataFrames into one dict of DataFrames.

The function concatenates the pandas DataFrames of the second dict of DataFrames to the first dict of DataFrames for the keys they have in common. Keys that are unique to either dictionary will be included in the final concatenated dictionary.

Parameters

Name Type Description Default
db1 Dict[str, pd.DataFrame] A dictionary of pandas DataFrames, i.e. a database. required
db2 Dict[str, pd.DataFrame] A dictionary of pandas DataFrames, i.e. a database. required

Returns

Name Type Description
dict Dict[str, pd.DataFrame] A dictionary of concatenated pandas DataFrames.