[Spark][Python]DataFrame select 操作例子II

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

In [4]: peopleDF.select("age","name")

In [11]: myDF=peopleDF.select("age","name")

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

+----+-------+
| age| name|
+----+-------+
|null| Alice|
| 30|Brayden|
+----+-------+

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