Databricks Lakehouse 入門
Gang Wang
Senior Data Scientist
$$

$$
# Default language: Python
df = spark.table("silver_taxi_trips")
display(df)
%sql
SELECT COUNT(*) AS total_trips
FROM silver_taxi_trips
%md
## Analysis notes
Revenue is **highest** in the Northeast region.
$$
| コマンド | 用途 |
|---|---|
%python |
Python コードを実行 |
%sql |
SQL クエリを実行 |
%scala |
Scala コードを実行 |
%r |
R コードを実行 |
%md |
Markdown をレンダリング |
%sh |
シェルコマンドを実行 |
$$

$$
%run は別のノートブックを同じコンテキストで実行します$$
# Load shared helper functions
%run /Shared/utils/data_helpers
# Now use a function defined
# in data_helpers
clean_df = clean_nulls(raw_df)
$$
$$

$$
%run は他のノートブックの関数をセッションに読み込みますDatabricks Lakehouse 入門