Using Azure Databricks Notebooks Flashcards
1
Q
What are Notebooks?
A
Notebooks consist of two cells, code cells and annotation cells. The code cells perform task while the annotation cells provide documentation.
2
Q
What is cell magic?
A
Cell magic is how you tell the notebook cell which language to use for processing that cell. Examples: %r, %py, %Sql, %md
3
Q
%fs
A
Emulates local disk storage within the DFS system.
4
Q
%md
A
Markdown Cell. These cells are used to annotate the notebook and support html.
5
Q
%python
A
Supports Python 2 and python 3 depending on the cluster.
6
Q
%r
A
R language cell.
7
Q
%run
A
Executes another notebook
8
Q
%scala
A
Uses the scala language
9
Q
%sh
A
Shell statements used to run BASH commands
10
Q
%sql
A
Used to run SQL commands