Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

agriconnect / pandas   python

Repository URL to install this package:

Version: 0.24.2 

/ tests / tseries / offsets / conftest.py

import pytest

import pandas.tseries.offsets as offsets


@pytest.fixture(params=[getattr(offsets, o) for o in offsets.__all__])
def offset_types(request):
    """
    Fixture for all the datetime offsets available for a time series.
    """
    return request.param


@pytest.fixture(params=[getattr(offsets, o) for o in offsets.__all__ if
                        issubclass(getattr(offsets, o), offsets.MonthOffset)
                        and o != 'MonthOffset'])
def month_classes(request):
    """
    Fixture for month based datetime offsets available for a time series.
    """
    return request.param