toPandas() error using pyspark: 'int' object is not iterable

后端 未结 1 1687
时光说笑
时光说笑 2020-12-12 03:05

I have a pyspark dataframe and I am trying to convert it to pandas using toPandas(), however I am running into below mentioned error.

I tried different options

相关标签:
1条回答
  • 2020-12-12 03:40

    Our custom repository of libraries had a package for pyspark which was clashing with the pyspark that is provided by the spark cluster and somehow having both works on Spark shell but does not work on a notebook.
    So, renaming the pyspark library in the custom repository resolved the issue!

    0 讨论(0)
提交回复
热议问题