这可能
转换自 至 pd.DataFrame
在%pyspark环境下?
答案 0 :(得分:11)
尝试:
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)