fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
929 stars 196 forks source link

Series(values,date) from the tutorial does not work #342

Closed mrakgr closed 8 years ago

mrakgr commented 8 years ago
// Create from sequence of keys and sequence of values
let dates  = 
  [ DateTime(2013,1,1); 
    DateTime(2013,1,4); 
    DateTime(2013,1,8) ]
let values = 
  [ 10.0; 20.0; 30.0 ]
let first = Series(dates, values) // Does not work

I even tried opening the F# Series extensions, but I can't find the constructor with the dual arguments. I got Deedle from the FsLab template.

artemmarkin commented 8 years ago

Works for me, Deedle 1.2.4

val first : Series<DateTime,float> = 

01.01.2013 0:00:00 -> 10 
04.01.2013 0:00:00 -> 20 
08.01.2013 0:00:00 -> 30 
tpetricek commented 8 years ago

I was not able to reproduce this - and it seems to work for @artemmarkin too. I'll close it for now, but if you can provide a complete script where it fails, we can reopen it.