MCPcopy
hub / github.com/pandas-dev/pandas / test_isin_dt64tz_with_nat

Method test_isin_dt64tz_with_nat

pandas/tests/test_algos.py:1024–1033  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1022 assert not res2.any()
1023
1024 def test_isin_dt64tz_with_nat(self):
1025 # the all-NaT values used to get inferred to tznaive, which was evaluated
1026 # as non-matching GH#56427
1027 dti = date_range("2016-01-01", periods=3, tz="UTC")
1028 ser = Series(dti)
1029 ser[0] = NaT
1030
1031 res = algos.isin(ser._values, [NaT])
1032 exp = np.array([True, False, False], dtype=bool)
1033 tm.assert_numpy_array_equal(res, exp)
1034
1035 def test_categorical_from_codes(self):
1036 # GH 16639

Callers

nothing calls this directly

Calls 4

date_rangeFunction · 0.90
SeriesClass · 0.90
isinMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected