om_code.omgenutils.absorbdf#

absorbdf(blob, victim, cols)[source]#

Absorb one dataframe into another using a list of columns as an index to align the dataframes. Any NaNs in the victim will replace those in blob (not the default behaviour of pd.update).

Arguments – blob: the absorbing dataframe victim: the dataframe to be absorbed cols: a list of columns to align the dataframes