@@ -990,6 +990,12 @@ def assert_series_equal(left, right, check_dtype=True,
990
990
Specify comparison precision. Only used when check_exact is False.
991
991
5 digits (False) or 3 digits (True) after decimal points are compared.
992
992
If int, then specify the digits to compare.
993
+
994
+ When comparing two numbers, if the first number has magnitude less
995
+ than 1e-5, we compare the two numbers directly and check whether
996
+ they are equivalent within the specified precision. Otherwise, we
997
+ compare the **ratio** of the second number to the first number and
998
+ check whether it is equivalent to 1 within the specified precision.
993
999
check_names : bool, default True
994
1000
Whether to check the Series and Index names attribute.
995
1001
check_exact : bool, default False
@@ -1001,12 +1007,6 @@ def assert_series_equal(left, right, check_dtype=True,
1001
1007
obj : str, default 'Series'
1002
1008
Specify object name being compared, internally used to show appropriate
1003
1009
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.
1010
1010
"""
1011
1011
__tracebackhide__ = True
1012
1012
@@ -1137,6 +1137,12 @@ def assert_frame_equal(left, right, check_dtype=True,
1137
1137
Specify comparison precision. Only used when check_exact is False.
1138
1138
5 digits (False) or 3 digits (True) after decimal points are compared.
1139
1139
If int, then specify the digits to compare.
1140
+
1141
+ When comparing two numbers, if the first number has magnitude less
1142
+ than 1e-5, we compare the two numbers directly and check whether
1143
+ they are equivalent within the specified precision. Otherwise, we
1144
+ compare the **ratio** of the second number to the first number and
1145
+ check whether it is equivalent to 1 within the specified precision.
1140
1146
check_names : bool, default True
1141
1147
Whether to check that the `names` attribute for both the `index`
1142
1148
and `column` attributes of the DataFrame is identical, i.e.
@@ -1160,11 +1166,6 @@ def assert_frame_equal(left, right, check_dtype=True,
1160
1166
Specify object name being compared, internally used to show appropriate
1161
1167
assertion message.
1162
1168
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
1169
1169
1170
See Also
1170
1171
--------
0 commit comments