diff --git a/tabled/compare_tables.py b/tabled/compare_tables.py index 4e522ca..143ee9b 100644 --- a/tabled/compare_tables.py +++ b/tabled/compare_tables.py @@ -112,7 +112,10 @@ def dataframe_diffs( df1: pd.DataFrame, df2: pd.DataFrame, comparisons: Comparisons = DFLT_COMPARISONS, + *, diff_condition=bool, + left_name='left', + right_name='right', ) -> dict: """ Compare the diff of dataframes using specified diff comparison functions. @@ -148,4 +151,5 @@ def dataframe_diffs( diff_value = comparison(df1, df2) if diff_condition(diff_value): diffs[name] = diff_value + diffs = diffs.rename(columns={'left': left_name, 'right': right_name}) return diffs