- OVFFile.remove_duplicates(xcol=None, delta=1e-08, strategy='keep first', ycol=None, yerr=None)¶
Find and remove rows with duplicated values of the search column(s).
- Keyword Arguments
xcol (index types) – The column)s) to search for duplicates in.
strategy (str, default keep first) –
- What to do with duplicated rows. Options are:
keep first - the first row is kept, others are discarded
average - the duplicate rows are average together.
yerr (ycol,) – When using an average strategey identifies columns that represent values and uncertainties where the proper weighted standard error should be done.
(dictionary of value –
- [list of row indices]):
The unique value and the associated rows that go with it.
If ycol is not specified, then the
Data.setasattribute is used. If this is also not set, then all columns are considered.