搜索
您的当前位置:首页正文

(已解决)PySpark : AttributeError: ‘DataFrame‘ object has no attribute ‘iteritems‘

来源:独旅网

AttributeError: ‘DataFrame’ object has no attribute ‘iteritems’

原因在使用SparkSession对象中createDataFrame函数想要将pandas的dataframe转换成spark的dataframe时出现的

# 卸载新版本
pip uninstall pandas
# 安装老版本
pip install pandas==1.5.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

因篇幅问题不能全部显示,请点此查看更多更全内容

热门图文

Top