Introduktion till 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.
$$
| Kommando | Syfte |
|---|---|
%python |
Kör Python-kod |
%sql |
Kör SQL-frågor |
%scala |
Kör Scala-kod |
%r |
Kör R-kod |
%md |
Renderar Markdown |
%sh |
Kör shell-kommandon |
$$

$$
%run kör en annan notebook i samma kontext$$
# Load shared helper functions
%run /Shared/utils/data_helpers
# Now use a function defined
# in data_helpers
clean_df = clean_nulls(raw_df)
$$
$$

$$
%run läser in funktioner från andra notebooks till din sessionIntroduktion till Databricks Lakehouse