Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

String to Date Format in PySpark 3.5

$
0
0

Date

'2020/12/01'20201227'2020/12/03'NULL'2020-12-13'

In the date column, these kinds of data are available and I need to change the yyyy-MM-dd formatHow we can achieve this in Pyspark.

Basically, when I use to_date it gives NULL.

When I used to_datetime() in panda its working fine but how its possible in pyspark


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>