lisa.datautils.df_update_duplicates#
- lisa.datautils.df_update_duplicates(df, col=None, func=None, inplace=False)[source]#
Same as
series_update_duplicates()but on apandas.DataFrame.- Parameters:
df (pandas.DataFrame) – Dataframe to act on.
col (str or None) – Column to update. If
None, the index is used.func (collections.abc.Callable or None) – See
series_update_duplicates().inplace (bool) – If
True, the passed dataframe will be modified.