Skip to content

Commit

Permalink
STY Use APPROX_BDAYS_PER_MONTH instead of 21.
Browse files Browse the repository at this point in the history
  • Loading branch information
twiecki committed Apr 18, 2016
1 parent 23e4c4b commit 9ce08a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfolio/round_trips.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
('Avg # round_trips per day', lambda x: float(len(x)) /
(x.max() - x.min()).days),
('Avg # round_trips per month', lambda x: float(len(x)) /
(((x.max() - x.min()).days) / 21)),
(((x.max() - x.min()).days) / utils.APPROX_BDAYS_PER_MONTH)),
])


Expand Down

0 comments on commit 9ce08a0

Please sign in to comment.