Why Frame.X static methods from Deedle are generating warnings in VS 2017?

前端 未结 2 1321
我在风中等你
我在风中等你 2021-01-17 18:34

I downloaded the new VS 2017 yesterday and it is working fine, except that I am getting this warning on every line where I call the static method Frame.ReadCsv

相关标签:
2条回答
  • 2021-01-17 18:52

    It seems you have to use ReadCsv(path="file.csv") instead of ReadCsv(location="file.csv"). The first case provides you with an interface that has option values for optional settings instead of nullables, and addresses the correct overload.

    0 讨论(0)
  • 2021-01-17 18:59

    This snippet works OK:

    open Deedle
    open System.IO
    
    [<EntryPoint>]
    let main argv =
        let csv = @"C:\tmp\testDeedle.csv"
        File.Exists csv |> printfn "%A"
        let df = Frame.ReadCsv(csv,hasHeaders=true,inferTypes=true)
        df.GetColumn("Date") |> printfn "%A"
        printfn "%A" argv
        0 // return an integer exit code
    
    0 讨论(0)
提交回复
热议问题