Skip to content

Commit

Permalink
BUG: Replaced deprecated operators for pd.Index
Browse files Browse the repository at this point in the history
Replaced + and - with union and difference, respectively
  • Loading branch information
Andrew Liang committed Apr 6, 2015
1 parent b6b5275 commit 98e2448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zipline/history/history_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def add_sids(self, to_add):
Add new sids to the container.
"""
self.sids = pd.Index(
sorted(self.sids + _ensure_index(to_add)),
sorted(self.sids.union(_ensure_index(to_add))),
)
self._realign_sids()

Expand All @@ -544,7 +544,7 @@ def drop_sids(self, to_drop):
Remove sids from the container.
"""
self.sids = pd.Index(
sorted(self.sids - _ensure_index(to_drop)),
sorted(self.sids.difference(_ensure_index(to_drop))),
)
self._realign_sids()

Expand Down

0 comments on commit 98e2448

Please sign in to comment.