Skip to content

Instantly share code, notes, and snippets.

@adamklein
Created April 13, 2013 20:14
Show Gist options
  • Save adamklein/5379886 to your computer and use it in GitHub Desktop.
Save adamklein/5379886 to your computer and use it in GitHub Desktop.
scala> Series(datetime(2005,1,1) -> 5,
datetime(2006,1,1) -> 10,
datetime(2007,1,1) -> 12)
res0: org.saddle.Series[org.joda.time.DateTime,Int] =
[3 x 1]
2005-01-01 00:00:00.000-05:00 -> 5
2006-01-01 00:00:00.000-05:00 -> 10
2007-01-01 00:00:00.000-05:00 -> 12
scala> Series("alice" -> 33, "bob" -> 60, "joe" -> 43)
res1: org.saddle.Series[java.lang.String,Int] =
[3 x 1]
alice -> 33
bob -> 60
joe -> 43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment