I have a code in pyspark. I need to convert it to string then convert it to date type, etc.
I can't find any method to convert this type to string. I tried str(), .to_string(), but none works. I put the code below.
from pyspark.sql import functions as F
df = in_df.select('COL1')
> type(df)
> <class 'pyspark.sql.dataframe.DataFrame'>
> df.printSchema()
> |-- COL1: offsetdatetimeudt (nullable = true)