Update time_series.py