How can I Cast Multiple columns in Pyspark using fold or Map Function?

前端 未结 0 1780
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 18:27

Currently I am using withColumn like below.

df_To_Cast.withColumn("ContractID", col("ContractID").cast(\'long\')) \\
        .withColumn(&         


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