oxen.diff/diff
Oxen can be used to compare data frames and return a tabular diff. There is more information about the diff in the Diff Getting Started Documentation. For example comparing two data frames will give you an output data frame, where the.oxen.diff.status column shows if the row was added, removed,
or modified.
Usage
diff
path-os.PathLikeThe path to diff. Iftois not provided, this will compare the data frame to the previous commit.to-os.PathLikeAn optional second path to compare to. If provided this will be the right side of the diff.repo_dir-os.PathLikeThe path to the oxen repository. Must be provided ifcompare_tois not provided, or ifrevision_leftorrevision_rightis provided. If not provided, the repository will be searched for in the current working directory.revision_left-strThe left revision to compare. Can be a commit hash or branch name.revision_right-strThe right revision to compare. Can be a commit hash or branch name.output-os.PathLikeThe path to save the diff to. If not provided, the diff will not be saved.keys-list[str]Only for tabular diffs. The keys to compare on. This is used to join the two data frames. Keys will be combined and hashed to create a identifier for each row.compares-list[str]Only for tabular diffs. The compares to compare on. This is used to compare the values of the two data frames.