from math import sin import pandas as pd ts = pd.Series([sin(x/20.0) for x in range(365)]) ts.head(20)