I am using databricks on MS Azure and am getting this warning everytime I convert a pandas dataframe to Pyspark dataframe:
/databricks/spark/python/pyspark/sql/pandas/conversion.py:539: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
arrow_data = [[(c, t) for (_, c), t in zip(pdf_slice.iteritems(), arrow_types)]
The code I am using is:
df_spk = spark.createDataFrame(df_pd)
Since I cannot find an alternative to the line above, I cannot use a newer version of Python. Does anyone have any ideas?
Thank you in advance, T