Пример #1
0
 def test_nonunique_contains(self):
     # GH 9512
     for idx in map(TimedeltaIndex, ([0, 1, 0], [0, 0, -1], [0, -1, -1],
                                     ['00:01:00', '00:01:00', '00:02:00'],
                                     ['00:01:00', '00:01:00', '00:00:01'])):
         tm.assertIn(idx[0], idx)
Пример #2
0
 def test_nonunique_contains(self):
     # GH 9512
     for idx in map(DatetimeIndex, ([0, 1, 0], [0, 0, -1], [0, -1, -1],
                                    ['2015', '2015', '2016'], ['2015', '2015', '2014'])):
         tm.assertIn(idx[0], idx)
Пример #3
0
 def test_nonunique_contains(self):
     # GH 9512
     for idx in map(TimedeltaIndex, ([0, 1, 0], [0, 0, -1], [0, -1, -1], [
             '00:01:00', '00:01:00', '00:02:00'
     ], ['00:01:00', '00:01:00', '00:00:01'])):
         tm.assertIn(idx[0], idx)
Пример #4
0
 def test_nonunique_contains(self):
     # GH 9512
     for idx in map(DatetimeIndex,
                    ([0, 1, 0], [0, 0, -1], [0, -1, -1],
                     ['2015', '2015', '2016'], ['2015', '2015', '2014'])):
         tm.assertIn(idx[0], idx)