@@ -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
@@ -1131,6 +1137,12 @@ def assert_frame_equal(left, right, check_dtype=True,
1131
1137
Specify comparison precision. Only used when check_exact is False.
1132
1138
5 digits (False) or 3 digits (True) after decimal points are compared.
1133
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.
1134
1146
check_names : bool, default True
1135
1147
Whether to check that the `names` attribute for both the `index`
1136
1148
and `column` attributes of the DataFrame is identical, i.e.
0 commit comments