DP-600 · Question #14
You are analyzing the data in a Fabric notebook. You have a Spark DataFrame assigned to a variable named df. You need to use the Chart view in the notebook to explore the data manually. Which function
The correct answer is D. display. To make a Spark DataFrame available in the Chart view for manual exploration within a Fabric notebook, the display function must be used.
Question
You are analyzing the data in a Fabric notebook. You have a Spark DataFrame assigned to a variable named df. You need to use the Chart view in the notebook to explore the data manually. Which function should you run to make the data available in the Chart view?
Options
- AdisplayHTML
- Bshow
- Cwrite
- Ddisplay
How the community answered
(32 responses)- B6% (2)
- C3% (1)
- D91% (29)
Why each option
To make a Spark DataFrame available in the Chart view for manual exploration within a Fabric notebook, the `display` function must be used.
`displayHTML` is used to render arbitrary HTML content directly in the notebook output, not to present a DataFrame for interactive charting.
The `display()` function in Fabric notebooks is designed to render Spark DataFrames into an interactive tabular view, which includes built-in options like the Chart view for visual data exploration.
Concept tested: Spark DataFrame visualization in Fabric notebooks
Source: https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-develop-code#display-data
Topics
Community Discussion
No community discussion yet for this question.