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

Method test_large

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

Source from the content-addressed store, hash-verified

989 tm.assert_numpy_array_equal(result, expected)
990
991 def test_large(self):
992 s = date_range("20000101", periods=2000000, freq="s").values
993 result = algos.isin(s, s[0:2])
994 expected = np.zeros(len(s), dtype=bool)
995 expected[0] = True
996 expected[1] = True
997 tm.assert_numpy_array_equal(result, expected)
998
999 @pytest.mark.parametrize("dtype", ["m8[ns]", "M8[ns]", "M8[ns, UTC]", "period[D]"])
1000 def test_isin_datetimelike_all_nat(self, dtype):

Callers

nothing calls this directly

Calls 2

date_rangeFunction · 0.90
isinMethod · 0.45

Tested by

no test coverage detected