问题描述
我昨天下载了新的VS 2017,并且运行正常,除了我从Deedle
包调用静态方法Frame.ReadCsv
的每一行都收到此警告:
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
from the Deedle
package:
FS10001 This method is not intended for use from F#
对其他静态方法Frame.X
的调用不会生成相同的警告.
Calls to other static methods Frame.X
do not generate the same warning.
示例-此代码行生成警告:
Example - this line of code generates the warning:
let msft =
Frame.ReadCsv(Config.tsDir + "MSFT.csv",
hasHeaders=true,
inferTypes=true)
Intellisense会识别该方法并提供适当的提示,这些提示与http://bluemountaincapital.github.io/Deedle/reference/deedle-frame.html
Intellisense recognizes the method and provides the appropriate hints, which fit exactly with the signature in http://bluemountaincapital.github.io/Deedle/reference/deedle-frame.html
推荐答案
此代码段有效:
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
这篇关于为什么Deedle的Frame.X静态方法在VS 2017中生成警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!