Exemplo n.º 1
0
    def test_empty_dt64tz(self):
        dti = date_range("2016-01-01", periods=2, tz="Asia/Tokyo")
        dtype = dti.dtype

        shape = (0, )
        result = DatetimeArray._empty(shape, dtype=dtype)
        assert result.dtype == dtype
        assert isinstance(result, DatetimeArray)
        assert result.shape == shape
Exemplo n.º 2
0
 def test_empty_dt64(self):
     shape = (3, 9)
     result = DatetimeArray._empty(shape, dtype="datetime64[ns]")
     assert isinstance(result, DatetimeArray)
     assert result.shape == shape