datasets real and made-up data to practise on
Datasets
Data for the Playground, Database Lab and Performance Lab. Pick one and open its files.
Real daily temperature, rain, snow and wind from 100 U.S. airport weather stations, 2022–2024.
363 days of weather3 tablesJan 2022 – Dec 2024
files
Open a file to see what one row means, its columns and a preview. Open in Playground starts a new file there with code that loads it.
cities3 rows · 6 columns · CSV
A city with weather coverage.
In your code: data/cities.csv
- city_id
City ID
- city_name
City name
- state_code
Two-letter state
- latitude
Latitude
- longitude
Longitude
- land_area_sq_mi
Land area, square miles
stations3 rows · 7 columns · CSV
A weather station, usually at an airport. A city can have more than one.
In your code: data/stations.csv
- station_id
Weather station ID
- station_name
Station name
- city_id
City the station represents
- is_primary
1 for the station nearest the city centre
- latitude
Latitude
- longitude
Longitude
- elevation_m
Elevation, metres
daily_weather363 rows · 10 columns · CSV
One day at one station. A day the station didn’t report has no row.
In your code: data/daily_weather.csv
- station_id
Station
- observation_date
Local observation date
- tmax_c
Maximum temperature, °C
- tmin_c
Minimum temperature, °C
- precipitation_mm
Precipitation, mm (0 with precip_trace = 1 means a trace)
- precip_trace
1 when precipitation was too small to measure
- snowfall_mm
Snowfall, mm; often not reported
- snow_depth_mm
Snow depth, mm; often not reported
- avg_wind_speed_ms
Average wind speed, m/s
- peak_gust_ms
Fastest 2-minute wind, m/s
relationships
How to join these tables. Left column matches the right column.
- stations.city_id → cities.city_id
- daily_weather.station_id → stations.station_id