QuestionQ114

VerifiedPrepare data

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?

Explanation

The display() function in Fabric notebooks enables both table and chart visualization views for Spark DataFrames. displayHTML() renders HTML content only, show() is a PySpark method that displays data but does not provide chart view functionality, and write() is used for I/O operations. Only display() activates the chart view feature for interactive exploration.

Community Discussion

No comments yet. Be the first to start the discussion!