コード例 #1
0
ファイル: test_ops.py プロジェクト: agartland/pandas
 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
ファイル: test_base.py プロジェクト: amirneto/pandas
 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
ファイル: test_ops.py プロジェクト: zmyer/pandas
 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
ファイル: test_ops.py プロジェクト: harshul1610/pandas
 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)