- spark 2.x 版本
- spark 3.2 版本及以上
- 参考文献
spark 2.x 版本
spark 2.4.8 版本:
- https://spark.apache.org/docs/2.4.8/api/python/_modules/pyspark/sql/dataframe.html#Dataframe.toPandas
源代码:
@since(1.3)
def toPandas(self):
"""
Returns the contents of this :class:`Dataframe


