Wprowadzenie do 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.
$$
| Polecenie | Zastosowanie |
|---|---|
%python |
Uruchamia kod Python |
%sql |
Uruchamia zapytania SQL |
%scala |
Uruchamia kod Scala |
%r |
Uruchamia kod R |
%md |
Renderuje Markdown |
%sh |
Uruchamia polecenia powłoki |
$$

$$
%run uruchamia inny notebook w tym samym kontekście$$
# Load shared helper functions
%run /Shared/utils/data_helpers
# Now use a function defined
# in data_helpers
clean_df = clean_nulls(raw_df)
$$
$$

$$
%run wczytuje funkcje z innych notebooków do bieżącej sesjiWprowadzenie do Databricks Lakehouse