我有一个代码,其中有以下框架和过滤器行,如下所示:
let dfff=
[ "year" => series [ 1 => 1990.0; 2 => 1991.00; 3 => 1992.0; 4 => 1993.0]
"gold" => series [ 1 => 10.0; 2 => 10.00; 3 => 15.0; 4 => 20.0]
"silver" => series [ 1 => 20.0; 2 => 30.00; 3 => 45.0; 4 => 55.0] ]
|> frame
let dfff2 = dfff |> Frame.filterRows (fun key row -> row?year <= 1992.0 )
为什么我必须写密钥
Frame.filterRows (fun key row -> row?year <= 1992.0)
如果我的功能只取决于行?键在这里起什么作用?如果有人能解释我的逻辑,我将不胜感激。谢谢!