From 9ce08a00d42142ad063e9a7e4eb3a4a6476ed5f2 Mon Sep 17 00:00:00 2001 From: Thomas Wiecki Date: Mon, 18 Apr 2016 18:18:23 +0200 Subject: [PATCH] STY Use APPROX_BDAYS_PER_MONTH instead of 21. --- pyfolio/round_trips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfolio/round_trips.py b/pyfolio/round_trips.py index eb502608..466500f9 100644 --- a/pyfolio/round_trips.py +++ b/pyfolio/round_trips.py @@ -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)), ])