Skip to content

Commit 6231c8c

Browse files
committed
Added versionadded tag and removed unused code
1 parent e507c79 commit 6231c8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/_libs/testing.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ cpdef assert_almost_equal(a, b,
9292
index : str, default None
9393
Specify shared index of objects being compared, internally used to
9494
show appropriate assertion message
95+
96+
.. versionadded:: 1.1.0
97+
9598
"""
9699
cdef:
97100
int decimal

pandas/_testing.py

-3
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,6 @@ def raise_assert_detail(obj, message, left, right, diff=None, index=None):
924924
elif is_categorical_dtype(right):
925925
right = repr(right)
926926

927-
if isinstance(index, np.ndarray):
928-
index = pprint_thing(index)
929-
930927
msg += f"""
931928
[left]: {left}
932929
[right]: {right}"""

0 commit comments

Comments
 (0)