Which of the following code blocks returns a DataFrame containing a column month, an integer representation of the day of the year from column openDate from DataFrame storesDF.
Note that column openDate is of type integer and represents a date in the UNIX epoch format – the number of seconds since midnight on January 1st, 1970.
A sample of storesDF is displayed below:
Code block:
stored.withColumn(“openTimestamp”, col(“openDate”).cast(__1__))
.withColumn(__2__, __3__(__4__))