【发布时间】:2017-06-09 03:43:48
【问题描述】:
可以吗
转换自 到 pd.DataFrame
在%pyspark环境下?
【问题讨论】:
标签: apache-spark apache-spark-sql apache-zeppelin
可以吗
转换自 到 pd.DataFrame
在%pyspark环境下?
【问题讨论】:
标签: apache-spark apache-spark-sql apache-zeppelin
试试:
spark_df.toPandas()
toPandas()
Returns the contents of this DataFrame as Pandas pandas.DataFrame. This is only available if Pandas is installed and available.
如果你想要相反的:
spark_df = createDataFrame(pandas_df)
【讨论】: