How do I access the formatted month headers in an aggregated time series?

z1 is a zooreg time series that I want to aggregate by month:

ma = r.aggregate(z1, r['as.yearmon'], r.mean, **{'na.rm': True})

When I print the result vector, I get month/year information along with 
the mean values:

 >>> print ma
Oct 2010 Nov 2010 Dec 2010 Jan 2011 Feb 2011 Mar 2011 Apr 2011 May 2011
47.77013 37.67899 24.00681 21.13515 23.55795 31.07691 44.50374 54.54929
Jun 2011 Jul 2011 Aug 2011 Sep 2011
64.70333 71.83513 66.28675 61.23810

The following prints the values, but not the month headers:

 >>> for i in ma:
...     print(i)
...
47.7701307894
37.6789938802
24.006809277
21.1351547062
23.5579549446
31.0769134429
44.5037406619
54.5492913771
64.703330373
71.8351280835
66.2867477876
61.2380968468

How do I access/capture the month headers?

Bill



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to