Skip to content

Commit 0863d19

Browse files
fbourgeymroeschke
andauthored
Update pandas/tests/frame/methods/test_to_numpy.py
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 03c693c commit 0863d19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/frame/methods/test_to_numpy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ def test_to_numpy_datetime_with_na(self):
5050
df = DataFrame(dti)
5151
df.iloc[0, 0] = NaT
5252
expected = np.array([[np.nan], [1.45169280e18], [1.45177920e18]])
53-
assert np.allclose(
54-
df.to_numpy(float, na_value=np.nan), expected, equal_nan=True
55-
)
53+
result = df.to_numpy(float, na_value=np.nan),
54+
tm.assert_numpy_array_equal(result, expected)
5655

5756
df = DataFrame(
5857
{

0 commit comments

Comments
 (0)