8th day of python challenges 111-117

This commit is contained in:
abd.shallal
2019-08-04 15:26:35 +03:00
parent b04c1b055f
commit 627802c383
3215 changed files with 760227 additions and 491 deletions

View File

@@ -0,0 +1,30 @@
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=[])