Skip to content

Commit

Permalink
Merge pull request #29 from quantopian/fix-tc-bug
Browse files Browse the repository at this point in the history
BUG: Fix bug on python 3.6.
  • Loading branch information
Scott Sanderson authored Oct 17, 2018
2 parents 10d9ec5 + c21c888 commit 12eefc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trading_calendars/trading_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def _special_dates(self, calendars, ad_hoc_dates, start_date, end_date):
return pd.Series([])

result = pd.concat(merged).sort_index()
return result[(result >= start_date) & (result <= end_date)]
return result.loc[(result >= start_date) & (result <= end_date)]

def _calculate_special_opens(self, start, end):
return self._special_dates(
Expand Down

0 comments on commit 12eefc6

Please sign in to comment.