lowestMin() 函数
lowestMin()
从每个输入表中选择指定 column
中值最低的记录,并返回底部 n
条记录。
注意:lowestMin()
会删除空表。
函数类型签名
(<-tables: stream[A], n: int, ?column: string, ?groupColumns: [string]) => stream[A] where A: Record
有关更多信息,请参阅 函数类型签名。
参数
n
(必需) 要返回的记录数。
column
要评估的列。 默认为 _value
。
groupColumns
要分组的列的列表。默认为 []
。
tables
输入数据。默认为管道传递的数据 (<-
)。
示例
从表流中返回最低的两个值
import "sampledata"
sampledata.int()
|> lowestMin(n: 2, groupColumns: ["tag"])
此页是否对您有所帮助?
感谢您的反馈!