Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Databricks Certified Data Analyst Associate Exam Databricks-Certified-Data-Analyst-Associate Question # 20 Topic 3 Discussion

Databricks Certified Data Analyst Associate Exam Databricks-Certified-Data-Analyst-Associate Question # 20 Topic 3 Discussion

Databricks-Certified-Data-Analyst-Associate Exam Topic 3 Question 20 Discussion:
Question #: 20
Topic #: 3

A data analyst is working on a DataFrame named dates_df and needs to add a new column, date, derived from the timestamp field.

Which code fragment should be used to extract the date from a timestamp?


A.

dates_df.withColumn( " date " , f.unix_timestamp( " timestamp " )).show()


B.

dates_df.withColumn( " date " , f.to_date( " timestamp " )).show()


C.

dates_df.withColumn( " date " , f.date_format( " timestamp " , " yyyy-MM-dd " )).show()


D.

dates_df.withColumn( " date " , f.from_unixtime( " timestamp " )).show()


Get Premium Databricks-Certified-Data-Analyst-Associate Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.