3RNN/Lib/site-packages/pandas/tests/arrays/floating/test_contains.py

13 lines
204 B
Python
Raw Normal View History

2024-05-26 19:49:15 +02:00
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