Introduction to 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.
$$
| Příkaz | Účel |
|---|---|
%python |
Spustit kód v Pythonu |
%sql |
Spustit SQL dotazy |
%scala |
Spustit kód ve Scale |
%r |
Spustit kód v R |
%md |
Vykreslit Markdown |
%sh |
Spustit příkazy shellu |
$$

$$
%run spustí jiný notebook ve stejném kontextu$$
# Load shared helper functions
%run /Shared/utils/data_helpers
# Now use a function defined
# in data_helpers
clean_df = clean_nulls(raw_df)
$$
$$

$$
%run načte funkce z jiných notebooků do tvé relaceIntroduction to Databricks Lakehouse