2

当我在行帧上使用 FirstKey 和 LastKey 时,我从 Deedle 得到一个奇怪的输出。cl 在以下示例中是一个 DataFrame。

cl.Rows.FirstKey 

返回: val it : (unit -> DateTime) =<fun:it@156-43>在 FSI 窗口中。

cl.Rows.LastKey

返回: val it : (unit -> DateTime) =<fun:it@157-44>在 FSI 窗口中。

我期待 DateTime 的关键值。有人认识输出吗?我是否必须进行某种进一步处理才能获得有用的输出?

更新。我编辑了问题,现在可以看到 FSI 窗口的完整输出。

4

1 回答 1

2

John Palmer 的评论解决了我的问题。在我的示例中编码 FirstKey 和 LastKey 函数的正确方法:

cl.Rows.FirstKey() 
cl.Rows.LastKey()
于 2016-04-09T18:47:09.337 回答