From 4adf8ff854fb95fb1b3693f1d73b4a0d9d1e6755 Mon Sep 17 00:00:00 2001 From: fawce Date: Wed, 4 Apr 2012 17:01:49 -0400 Subject: [PATCH] changes risk report period label to YYYY-MM format --- zipline/finance/risk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py index ab2d10f3..413383b0 100644 --- a/zipline/finance/risk.py +++ b/zipline/finance/risk.py @@ -123,7 +123,7 @@ class RiskMetrics(): Creates a dictionary representing the state of the risk report. Returns a dict object of the form: """ - period_label = self.end_date.strftime("%B %Y") + period_label = self.end_date.strftime("%Y-%m") return { 'trading_days' : self.trading_days, 'benchmark_volatility' : self.benchmark_volatility,