Skip to content

changed deprecated TimeSeries to Series #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QSTK/qstkutil/qsdateutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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':
Expand Down