📌  相关文章
📜  将结果计数限制为指定的数量 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.697000             🧑  作者: Mango

代码示例1
# Limits the result count to the number specified

df.limit(1).collect()
# [Row(age=2, name=u'Alice')]
df.limit(0).collect()
# []