python – AssertionError:col应该是Column

python – AssertionError:col应该是Column

如何在PySpark中创建一个新列并使用今天的日期填充此列? 这是我试过的: import datetimenow = datetime.datetime.now()df = df.withColumn(date, str(now)[:10]) 我收到此错误: AssertionError: col should be Column How to create a new column i

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部