
Answer-first summary for fast verification
Answer: display(df)
To view the data of a DataFrame in a tabular format within a Databricks notebook, the `display()` command is used. This command not only allows you to see the data in a table but also provides the option to quickly create various visualizations directly from the data. For example: ```python %python display(data) ``` By clicking the down arrow next to the table, you can select from a list of visualization types to represent your data visually. Therefore, the correct answer is `display(df)`.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.