ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 193 - DP-203 discussion

Report
Export

DRAG DROP

You use PySpark in Azure Databricks to parse the following JSON input.

You need to output the data in the following tabular format.

How should you complete the PySpark code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the spit bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Question 193
Correct answer: Question 193

Explanation:

Box 1: select

Box 2: explode

Bop 3: alias pyspark.sql.Column.alias returns this column aliased with a new name or names (in the case of expressions that return more than one column, such as explode).

Reference:

https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.Column.alias.html

https://docs.microsoft.com/en-us/azure/databricks/sql/language-manual/functions/explode

asked 02/10/2024
Aviv Beck
41 questions
User
0 comments
Sorted by

Leave a comment first