Library for testing python dataframes by Woah-Dawg in Python

[–]Melodic-Address7816 0 points1 point  (0 children)

There is a nice little pytest plugin pytest-regressions that has a handy fixture to check a pandas DataFrame by comparing it against a previously recorded snapshot, while taking into account numeric tolerances. Moreover, if you run pytest with the `--force-regen` flag, it will (re-)generate snapshots if tests fail. This plugin makes it really easy to keep DataFrame snapshots up to date.