当我在行框架上使用 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 窗口的完整输出。
最佳答案
约翰·帕尔默的评论解决了我的问题。在我的示例中编写 FirstKey 和 LastKey 函数的正确方法:
cl.Rows.FirstKey()
cl.Rows.LastKey()
关于F# Deedle 返回奇怪的输出 <fun :it@156-43>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36509940/