calamari.catalog.deduplicated#
- calamari.catalog.deduplicated(catalog_df)#
Return a de-duplicated view of a catalog DataFrame.
Drops rows flagged
is_duplicate == True(i.e. the redundant-group copy verified byte-identical to a canonical-group copy when the catalog was built – seebuild_catalog()). No files are rechecked here. Canonical-group entries and copies outside the requested comparison remain; this does not merge all exports of a physical measurement.Rows flagged
dup_status == 'name_collision_differs'(same filename in both groups but genuinely different content) are NOT dropped. Different bytes may mean different measurements, metadata or formatting; all are retained conservatively.- Parameters:
catalog_df (
DataFrame) – A catalog DataFrame produced bybuild_catalog()(must contain anis_duplicatecolumn).- Return type:
- Returns:
pandas.DataFrame– A copy ofcatalog_dfcontaining only rows withis_duplicate == False, with the index reset.- Raises:
KeyError – If
catalog_dfhas nois_duplicatecolumn (i.e. it was not produced bybuild_catalog()).