[SciPy-User] scikits.timeseries: select with date condition
Andreas Hilboll
lists at hilboll.de
Wed Apr 21 14:05:40 EDT 2010
Hi there,
I'd like to do something like this:
condition = (mySeries.dates.quarter == 1)
mySeries[condition]
However, this is the error I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/hilboll/lib/python2.6/site-packages/scikits.timeseries-0.91.3-py2.6-linux-x86_64.egg/scikits/timeseries/tseries.py",
line 863, in __repr__
timestr = str(_dates)
File
"/home/hilboll/lib/python2.6/site-packages/numpy-1.4.0-py2.6-linux-x86_64.egg/numpy/core/numeric.py",
line 1404, in array_str
return array2string(a, max_line_width, precision, suppress_small, ' ',
"", str)
File
"/home/hilboll/lib/python2.6/site-packages/numpy-1.4.0-py2.6-linux-x86_64.egg/numpy/core/arrayprint.py",
line 300, in array2string
separator, prefix)
File
"/home/hilboll/lib/python2.6/site-packages/numpy-1.4.0-py2.6-linux-x86_64.egg/numpy/core/arrayprint.py",
line 222, in _array2string
_summaryEdgeItems, summary_insert)[:-1]
File
"/home/hilboll/lib/python2.6/site-packages/numpy-1.4.0-py2.6-linux-x86_64.egg/numpy/core/arrayprint.py",
line 343, in _formatArray
word = format_function(a[-i]) + separator
File
"/home/hilboll/lib/python2.6/site-packages/numpy-1.4.0-py2.6-linux-x86_64.egg/numpy/core/arrayprint.py",
line 438, in __call__
if isnan(x):
TypeError: function not supported for these types, and can't coerce safely
to supported types
Any idea what's going wrong here?
Thanks for your insight,
Andreas.
More information about the SciPy-User
mailing list