Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

aaronreidsmith / pandas   python

Repository URL to install this package:

Version: 0.25.3 

/ tests / indexes / datetimes / test_datetimelike.py

""" generic tests from the Datetimelike class """

from pandas import DatetimeIndex, date_range
from pandas.util import testing as tm

from ..datetimelike import DatetimeLike


class TestDatetimeIndex(DatetimeLike):
    _holder = DatetimeIndex

    def setup_method(self, method):
        self.indices = dict(
            index=tm.makeDateIndex(10),
            index_dec=date_range("20130110", periods=10, freq="-1D"),
        )
        self.setup_indices()

    def create_index(self):
        return date_range("20130101", periods=5)

    def test_shift(self):
        pass  # handled in test_ops

    def test_pickle_compat_construction(self):
        pass

    def test_intersection(self):
        pass  # handled in test_setops

    def test_union(self):
        pass  # handled in test_setops