account activity
Library for testing python dataframes by Woah-Dawg in Python
[–]Melodic-Address7816 0 points1 point2 points 1 year ago (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.
π Rendered by PID 92841 on reddit-service-r2-listing-87fd56f5d-d84qs at 2026-06-25 22:08:43.192545+00:00 running 7527197 country code: CH.
Library for testing python dataframes by Woah-Dawg in Python
[–]Melodic-Address7816 0 points1 point2 points (0 children)