Skip to content

Commit

Permalink
Fix deprecated use of set indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
mathijs81 committed Apr 21, 2022
1 parent 463fad1 commit fd57c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphalens/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def common_start_returns(factor,
equities_slice |= set(demean_equities)

series = returns.loc[returns.index[starting_index:ending_index],
equities_slice]
list(equities_slice)]
series.index = range(starting_index - day_zero_index,
ending_index - day_zero_index)

Expand Down

0 comments on commit fd57c58

Please sign in to comment.