From 72f235ddceeea45afc572d98e337b6759c696008 Mon Sep 17 00:00:00 2001 From: amp Date: Thu, 17 Dec 2015 03:16:23 -0600 Subject: [PATCH] changed deprecated TimeSeries to Series --- QSTK/qstkutil/qsdateutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSTK/qstkutil/qsdateutil.py b/QSTK/qstkutil/qsdateutil.py index 14720188a..c06b4eaf8 100644 --- a/QSTK/qstkutil/qsdateutil.py +++ b/QSTK/qstkutil/qsdateutil.py @@ -33,7 +33,7 @@ def _cache_dates(): dates = [] for i in datestxt: dates.append(dt.datetime.strptime(i, "%m/%d/%Y")) - return pd.TimeSeries(index=dates, data=dates) + return pd.Series(index=dates, data=dates) GTS_DATES = _cache_dates() @@ -254,7 +254,7 @@ def _trade_dates(dt_start, dt_end, s_period): # Note, dates are index as well as values, we select based on index # but return values since it is a numpy array of datetimes instead of # pandas specific. - ts_dates = pd.TimeSeries(index=ldt_timestamps, data=ldt_timestamps) + ts_dates = pd.Series(index=ldt_timestamps, data=ldt_timestamps) # These are the dates we want if s_period[:2] == 'BW':