Introducere în 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.
$$
| Comandă | Scop |
|---|---|
%python |
Rulează cod Python |
%sql |
Rulează interogări SQL |
%scala |
Rulează cod Scala |
%r |
Rulează cod R |
%md |
Randează Markdown |
%sh |
Rulează comenzi shell |
$$

$$
%run execută un alt notebook în același context$$
# Load shared helper functions
%run /Shared/utils/data_helpers
# Now use a function defined
# in data_helpers
clean_df = clean_nulls(raw_df)
$$
$$

$$
%run încarcă funcții din alte notebook-uri în sesiunea curentăIntroducere în Databricks Lakehouse