[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|
[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|