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 / series / common.py

from pandas.util._decorators import cache_readonly

import pandas as pd
import pandas.util.testing as tm

_ts = tm.makeTimeSeries()


class TestData:
    @cache_readonly
    def ts(self):
        ts = _ts.copy()
        ts.name = "ts"
        return ts

    @cache_readonly
    def series(self):
        series = tm.makeStringSeries()
        series.name = "series"
        return series

    @cache_readonly
    def objSeries(self):
        objSeries = tm.makeObjectSeries()
        objSeries.name = "objects"
        return objSeries

    @cache_readonly
    def empty(self):
        return pd.Series([], index=[])