
Databricks Certified Associate Developer for Apache Spark
Get started today
Ultimate access to all questions.
Which of the following code blocks returns a DataFrame with a column named dayOfYear that contains the integer day-of-year value derived from the openDate column in DataFrame storesDF?
Note: The openDate column is of integer type and stores UNIX epoch timestamps (seconds since midnight on January 1, 1970).
A sample of storesDF is shown below:
storeId openDate
0 1100746394
1 1474410343
2 1116610009
3 1180035265
4 1408024997
Which of the following code blocks returns a DataFrame with a column named dayOfYear that contains the integer day-of-year value derived from the openDate column in DataFrame storesDF?
Note: The openDate column is of integer type and stores UNIX epoch timestamps (seconds since midnight on January 1, 1970).
A sample of storesDF is shown below:
storeId openDate
0 1100746394
1 1474410343
2 1116610009
3 1180035265
4 1408024997
Exam-Like
Comments
Loading comments...