Skip to content

Commit 500de06

Browse files
author
Sandeep P
committed
1 parent aad7739 commit 500de06

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pandas/util/testing.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,12 @@ def assert_series_equal(left, right, check_dtype=True,
10011001
obj : str, default 'Series'
10021002
Specify object name being compared, internally used to show appropriate
10031003
assertion message.
1004+
1005+
When comparing two numbers, if the first number has magnitude less
1006+
than 1e-5, we compare the two numbers directly and check whether
1007+
they are equivalent within the specified precision. Otherwise, we
1008+
compare the **ratio** of the second number to the first number and
1009+
check whether it is equivalent to 1 within the specified precision.
10041010
"""
10051011
__tracebackhide__ = True
10061012

@@ -1153,7 +1159,13 @@ def assert_frame_equal(left, right, check_dtype=True,
11531159
obj : str, default 'DataFrame'
11541160
Specify object name being compared, internally used to show appropriate
11551161
assertion message.
1156-
1162+
1163+
When comparing two numbers, if the first number has magnitude less
1164+
than 1e-5, we compare the two numbers directly and check whether
1165+
they are equivalent within the specified precision. Otherwise, we
1166+
compare the **ratio** of the second number to the first number and
1167+
check whether it is equivalent to 1 within the specified precision.
1168+
11571169
See Also
11581170
--------
11591171
assert_series_equal : Equivalent method for asserting Series equality.

0 commit comments

Comments
 (0)