[Spark][Python]DataFrame where 操作例子

[Spark][Python]DataFrame中取出有限个记录的例子 的 继续

[15]: myDF=peopleDF.where("age>21")

In [16]: myDF.limit(2).show()

+---+-------+-----+----+
|age| name|pcode|pcoe|
+---+-------+-----+----+
| 30|Brayden|94304|null|
| 46| Diana| null|null|
+---+-------+-----+----+

posted @ 2017-10-05 20:26  健哥的数据花园  阅读(7611)  评论(0编辑  收藏  举报