3RNN/Lib/site-packages/pandas/tests/arrays/floating/test_contains.py
2024-05-26 19:49:15 +02:00

13 lines
204 B
Python

import numpy as np
import pandas as pd
def test_contains_nan():
# GH#52840
arr = pd.array(range(5)) / 0
assert np.isnan(arr._data[0])
assert not arr.isna()[0]
assert np.nan in arr