这有可能吗?
转换为pd.DataFrame
在%pyspark环境下?
尝试:
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)