def get_definition_items(definitions: pd.DataFrame): """Create the list of duplicates items Args: definitions: DataFrame of column definitions Returns: List of column definitions to show in the interface. """ items = [] if definitions is not None and len(definitions) > 0: items.append( Duplicate( duplicate=definitions, name="Columns", anchor_id="definitions", )) return items
def get_duplicates_items(duplicates: pd.DataFrame): """Create the list of duplicates items Args: duplicates: DataFrame of duplicates Returns: List of duplicates items to show in the interface. """ items = [] if duplicates is not None and len(duplicates) > 0: items.append( Duplicate( duplicate=duplicates, name="Most frequent", anchor_id="duplicates", )) return items