cogwheel.utils.update_dataframe

cogwheel.utils.update_dataframe(df1, df2)

Modify a dataframe in-place by adding the columns from another.

Caution: if (some of) the columns of df1 are also in df2 they get silently overwritten without checking for consistency.

Parameters:
df1, df2pandas.DataFrame

Update df1 in-place with columns from df2.