On converting spark df to pandas df using pyarrow function i am getting following warning:
UserWarning: pyarrow.open_stream is deprecated, please use pyarrow.ipc.open_stream
I am using python 3.7 version and Pyspark 2.4.3 pyspark df size is 170000 rows and 40 columns On converting it to pandas using Pyarrow function i am getting only 61585 rows and 40 columns as output despite getting complete data.
train_set.count()
170000
spark.conf.set("spark.sql.execution.arrow.enabled", "True")
result_pdf = train_set.select("*").toPandas()
> C:\anaconda\lib\site-packages\pyarrow\__init__.py:152: UserWarning:
> pyarrow.open_stream is deprecated, please use pyarrow.ipc.open_stream
> warnings.warn("pyarrow.open_stream is deprecated, please use "
result_pdf.shape
(61585, 40)
Expected:
result_pdf.shape
(170000,40)
Actual:
result_pdf.shape
(61585,40)