Skip to content

Commit 86c11c9

Browse files
committed
use numpy.array_equal instead of ==
1 parent b28bc3a commit 86c11c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/series/test_analytics.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,8 @@ def test_ptp(self):
859859
ser = Series(arr)
860860
ptp_np = np.ptp(arr)
861861
ptp_pd = np.ptp(ser)
862-
assert ptp_pd == ptp_np
862+
863+
assert np.array_equal(ptp_pd, ptp_np)
863864

864865
def test_repeat(self):
865866
s = Series(np.random.randn(3), index=["a", "b", "c"])

0 commit comments

Comments
 (0)