Skip to content

DOC: Make usage of rtol and atol arguments in pd.testing.assert_frame_equal clearer #59344

Closed
@conorhamill36

Description

@conorhamill36

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.testing.assert_frame_equal.html

Documentation problem

When atol and rtol are used, the check of equality between two dataframes is of the form absolute(a - b) <= (atol + rtol * absolute(b)).

It's not clear that atol and rtol are used together like this, resulting in it being unclear what exact is being checked.

Suggested fix for documentation

Expand the explanation of atol and rtol in the documentation, possibly explicitly including the equation that is testing equality.

Metadata

Metadata

Assignees

Labels

DocsTestingpandas testing functions or related to the test suite

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions