unique() 函数
unique()
返回指定列中包含唯一值的所有记录。
组键、列和值不会被修改。 unique()
会删除空表。
函数类型签名
(<-tables: stream[A], ?column: string) => stream[A] where A: Record
有关更多信息,请参阅 函数类型签名。
参数
column
搜索唯一值的列。 默认为 _value
。
tables
输入数据。 默认为管道转发数据 (<-
)。
示例
从输入表返回唯一值
import "sampledata"
sampledata.int()
|> unique()
此页内容对您有帮助吗?
感谢您的反馈!