Implementing Analytics Solutions Using Microsoft Fabric — Question 37
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?
Answer options
- A. displayHTML
- B. show
- C. write
- D. display
Correct answer: D
Explanation
The correct function to use for making the data available in the Chart view is 'display', as it renders the DataFrame for visualization purposes. The 'show' function merely outputs the DataFrame in a textual format, while 'write' is used for saving the DataFrame to storage, and 'displayHTML' is for rendering HTML content, not DataFrames.