[Scipy-svn] r2394 - trunk/Lib/sandbox/timeseries/examples

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Dec 11 14:00:06 EST 2006


Author: mattknox_ca
Date: 2006-12-11 13:00:02 -0600 (Mon, 11 Dec 2006)
New Revision: 2394

Modified:
   trunk/Lib/sandbox/timeseries/examples/example.py
Log:


Modified: trunk/Lib/sandbox/timeseries/examples/example.py
===================================================================
--- trunk/Lib/sandbox/timeseries/examples/example.py	2006-12-11 18:55:48 UTC (rev 2393)
+++ trunk/Lib/sandbox/timeseries/examples/example.py	2006-12-11 19:00:02 UTC (rev 2394)
@@ -15,6 +15,13 @@
 
 
 """
+Set values occurring on Fridays to 100.
+"""
+weekdays = ts.day_of_week(ts.tser(bSer.firstValue(asDate=True),bSer.lastValue(asDate=True)))
+bSer[ts.where(weekdays == 4,True,False)] = 100
+
+
+"""
 Convert bSer to a monthly frequency series.
 
 The optional observed argument to the convert method specifies what




More information about the Scipy-svn mailing list