:mod:`arche.rules.compare` ========================== .. py:module:: arche.rules.compare Module Contents --------------- .. data:: MAX_MISSING_VALUES :annotation: = 6 .. function:: fields(source_df: pd.DataFrame, target_df: pd.DataFrame, names: List[str], normalize: bool = False, err_thr: float = 0.25) -> Result Finds fields values difference between dataframes. :param names - a list of field names: :param normalize - if set, all fields converted to str and processed with lower: :type normalize - if set, all fields converted to str and processed with lower: ) and strip( :param err_thr - sets the failure threshold for missing values: :returns: Result with same, missing and new values. .. function:: tagged_fields(source_df: pd.DataFrame, target_df: pd.DataFrame, tagged_fields: TaggedFields, tags: List[str]) -> Result Compare fields tagged with `tags` between two dataframes.