Params and examples¶
To use Pandas Diff in a project:
import pandas_diff
Main module.
- pandas_diff.pandas_diff.get_diffs(before: DataFrame, after: DataFrame, keys: list, ignore_columns=[])[source]¶
Generate DataFrame with differences between two DataFrames
- Args:
before (pd.DataFrame): Before DataFrame
after(pd.DataFrame): After DataFrame
keys (list): Key fields
ignore_columns (list): Columns to not be considered for modify options (optional)
Example of filtering the column “power”, when calculating modify fields.:
df = get_diffs(A ,B ,"hero", ignore_columns=["power"])