[SciPy-user] TimeSeries
Pierre GM
pgmdevlist at gmail.com
Wed May 2 12:13:31 EDT 2007
On Wednesday 02 May 2007 11:52:28 Fred Jendrzejewski wrote:
> The following makes same problems:
> I think it is because the dlist.dtype.kind gives back 'U'
>
> but creating a normal Date-Object works
> D=TS.Date(freq='W', string=rows[0])
Fred,
Thanks a lot. Series w/ undefined frequencies are always tricky to work with,
as David and yourself had the misfortune to realize. I'm glad you were able
to find a work around.
However, the bug comes from the fact that you used unicode characters. The
array you get then is of kind 'U', not of kind 'S' (string), as expected.
Before I update the SVN, you can apply the following fix:
in tdates.py, change line 494 to
if dlist.dtype.kind in 'SU':
That solves your problem.
Your feedback is invaluable. Please do not hesitate to keep on posting your
comments/error logs. I'll check where the problems are and will address them
as soon as possible. This week however, please expect a bit of delay, as I'm
very busy with some current projects.
More information about the SciPy-User
mailing list