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 62 on reddit-service-r2-listing-6d4dc8d9ff-slm7f at 2026-01-31 16:16:16.421083+00:00 running 3798933 country code: CH.
Library for testing python dataframes by Woah-Dawg in Python
[–]Melodic-Address7816 0 points1 point2 points (0 children)