You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to assert two Pandas or Polars dataframes for equality and have tolerance on float precision?
Right now when I save a Pandas dataframe as a snaphot using df.to_dict(), I'm able to compare actual and snapshot dataframes for equality on my Windows PC with success, but when I run pytest on a Linux machine, float columns are different and it fail the comparison due to float precision.
The text was updated successfully, but these errors were encountered:
Is there a way to assert two Pandas or Polars dataframes for equality and have tolerance on float precision?
Right now when I save a Pandas dataframe as a snaphot using df.to_dict(), I'm able to compare actual and snapshot dataframes for equality on my Windows PC with success, but when I run pytest on a Linux machine, float columns are different and it fail the comparison due to float precision.
The text was updated successfully, but these errors were encountered: