【发布时间】:2017-12-23 14:32:09
【问题描述】:
我正在尝试将我的列类型从字符串更改为日期。我咨询了以下人员的答案:
- How to change the column type from String to Date in DataFrames?
- Why I get null results from date_format() PySpark function?
当我尝试应用链接 1 中的答案时,我得到了 null 结果,所以我参考了链接 2 中的答案,但我不明白这部分:
output_format = ... # Some SimpleDateFormat string
【问题讨论】: