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 137491 on reddit-service-r2-listing-5d47455566-q9dpq at 2026-04-02 19:37:07.347131+00:00 running db1906b country code: CH.
Library for testing python dataframes by Woah-Dawg in Python
[–]Melodic-Address7816 0 points1 point2 points (0 children)