lisa.datautils.series_update_duplicates#
- lisa.datautils.series_update_duplicates(series, func=None)[source]#
Update a given series to avoid duplicated values.
- Parameters:
series (pandas.Series) – Series to act on.
func (collections.abc.Callable or None) – The function used to update the column. It must take a
pandas.Series
of duplicated entries to update as parameters, and return a newpandas.Series
. The function will be called as long as there are remaining duplicates. IfNone
, the column is assumed to be floating point number of seconds and will be updated so that the no duplicated timestamps exist once translated to an integer number of nanoseconds.