0
PySparkで新しいカラムを作成し、このカラムに今日の日付を記入する方法は?AssertionError:colはカラムであるべきです
これは私が試したものです:
import datetime
now = datetime.datetime.now()
df = df.withColumn("date", str(now)[:10])
私はこのエラーを取得する:
AssertionError: col should be Column