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
939 stars 197 forks source link

Mono: Rows.GetObservations() .. error FS0039 'GetObservations' is not defined #263

Closed TonyAbell closed 10 years ago

TonyAbell commented 10 years ago

Environment

mono nuget.exe install fslab

Script

#I "packages/Deedle.1.0.1"
#load "Deedle.fsx"

open System
open Deedle

let root = __SOURCE_DIRECTORY__
let csv  = Frame.ReadCsv(root + "/train.csv")
let obs = csv.Rows.GetObservations()

Error

/home/tony/fslab/script.fsx(9,20): error FS0039: The field, constructor or member 'GetObservations' is not defined

Note

This works on VS2013

tpetricek commented 10 years ago

GetObservations is an extension method, so this would require F# 3.1 (which recognizes C# style extension methods). We decided not to support this for F# 3.0, so your best option is to use F#-style function:

csv.Rows |> Series.observations