Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-s committed Nov 15, 2017
1 parent d166f15 commit 27f7adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alphalens/tears.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def create_returns_tear_sheet(factor_data,
mean_return_quantile_group.apply(utils.rate_of_return, axis=0)

num_groups = len(mean_quant_rateret_group.index
.get_level_values('group')
.unique())
.get_level_values('group').unique())

vertical_sections = 1 + (((num_groups - 1) // 2) + 1)
gf = GridFigure(rows=vertical_sections, cols=2)

Expand Down

0 comments on commit 27f7adf

Please sign in to comment.