Ejemplo n.º 1
0
 def test___new___na_datetime(self):
     # Should be converted to np.datetime64.
     # Missing values should be NaT.
     a = Vector([DATETIME, NaN, NaT, None])
     b = Vector([DATETIME, NaT, NaT, NaT])
     assert a.is_datetime()
     assert a.equal(b)
Ejemplo n.º 2
0
 def test_as_datetime(self):
     a = Vector([DATE]).as_datetime()
     assert a.is_datetime()
     assert np.all(a == [np.datetime64(DATE, "us")])