I m trying to add columns in dataframe from the list in pyspark

后端 未结 0 949
误落风尘
误落风尘 2020-12-11 15:39

some_list=[\'col1\',\'col2\'] df.withColumn(\'S1\',sum(df[col] for col in list(some_list))) and some_list\'s all columns are there in df getting Column is not iterab

相关标签:
回答
  • 消灭零回复
提交回复
热议问题