[英]difference between pyspark.pandas.frame.DataFrame and pyspark.sql.dataframe.DataFrame and their conversion
I could not find any detailed documentation on this point, so what is the difference between a pyspark.pandas.frame.DataFrame
and pyspark.sql.dataframe.DataFrame
, and where to find the documentation of their methods?
還有如何投射,或將一個轉換為另一個,反之亦然? 轉換它們是否總是無縫的,或者某些數據類型無法識別?
here is the doc for pyspark-pandas (AKA pandas API on pyspark) which generates (or uses) the pyspark.pandas.DataFrame
. 您可以查看spark 文檔以了解其原生 dataframe 方法。
它們都具有可用於將一種轉換為另一種的轉換方法。
to_pandas_on_spark
to_spark
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.