Databricks Certified Data Engineer - Associate

Databricks Certified Data Engineer - Associate

Get started today

Ultimate access to all questions.


In a Databricks notebook set to SQL as the default language, how can a data engineer execute Python code within the same notebook?





Explanation:

By default, cells in a Databricks notebook use the notebook's default language. However, you can override this for individual cells by using language magic commands at the beginning of the cell. The supported magic commands include %python, %sql, %scala, and %r. This allows for flexible language usage within the same notebook without changing the default language setting. Reference: Databricks Documentation.