samyakbayar commited on
Commit
a213b2b
·
verified ·
1 Parent(s): ddff0fa

Upload us-tornado-catalog dataset files

Browse files
Files changed (9) hide show
  1. .gitattributes +1 -0
  2. KAGGLE.md +166 -0
  3. README.md +175 -0
  4. about.md +26 -0
  5. data_dictionary.csv +56 -0
  6. dataset-metadata.json +311 -0
  7. kernel-metadata.json +14 -0
  8. notebook.ipynb +235 -0
  9. tornadoes.csv +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ tornadoes.csv filter=lfs diff=lfs merge=lfs -text
KAGGLE.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # U.S. Tornado Catalog 1950-2024
2
+
3
+ **Subtitle:** Every recorded US tornado with coordinates, path size, F/EF scale & damage
4
+
5
+ **Tags:** `weather`, `climate`, `time-series`, `tabular`
6
+
7
+ **Dataset File:** `tornadoes.csv` (71,813 rows, 55 columns, 18.3 MB)
8
+
9
+ **Provenance & Source:** NOAA Storm Prediction Center (SPC) Tornado Database
10
+
11
+ **Expected Update Frequency:** `annually`
12
+
13
+ ---
14
+
15
+ ## 📖 Description
16
+
17
+ ### Every recorded U.S. tornado, 1950–2024
18
+
19
+ The NOAA Storm Prediction Center's tornado database is the canonical record of U.S. tornadoes:
20
+ **71,813 events** with start and end coordinates, path dimensions, F/EF magnitude, casualties and
21
+ damage estimates. This file keeps all 29 source fields and adds **26
22
+ derived parameters** for a total of **55 columns**.
23
+
24
+ Each row includes:
25
+ - **Identity and timing** — year, month, day, full date, local start time and time-zone code,
26
+ decade, month name, meteorological season, day-of-year, hour band.
27
+ - **Location** — state code and FIPS, full state name, region, start/end latitude and longitude,
28
+ track midpoint and compass bearing.
29
+ - **Magnitude** — raw F/EF value, the scale in force that year, a label such as `EF4`,
30
+ significant (2+) and violent (4+) flags.
31
+ - **Path** — length in miles, width in yards, computed area in square miles, length-to-width ratio.
32
+ - **Impact** — injuries, fatalities, casualties, property and crop damage in unadjusted millions,
33
+ a damage band, fatalities/injuries per mile, killer and injurious flags, crop-loss flag.
34
+ - **Legacy codes** — the original SPC F1–F4 and FC fields, preserved for reproducibility.
35
+
36
+ **22,517 events** are from the EF era (2007+), and the file spans the shift from the original
37
+ Fujita scale to the Enhanced Fujita scale — a built-in discontinuity that makes trend analysis
38
+ genuinely interesting.
39
+
40
+ ## 🧾 Columns (55)
41
+
42
+ `om`, `yr`, `mo`, `dy`, `date`, `time`, `tz`, `st`, `stf`, `stn`, `mag`, `inj`, `fat`, `loss`, `closs`, `slat`, `slon`, `elat`, `elon`, `len`, `wid`, `ns`, `sn`, `sg`, `f1`, `f2`, `f3`, `f4`, `fc`, `state_name`, `region`, `decade`, `month_name`, `season`, `day_of_year`, `hour_local`, `time_of_day`, `scale`, `magnitude_label`, `is_violent`, `is_significant`, `path_area_sq_miles`, `midpoint_lat`, `midpoint_lon`, `path_bearing_deg`, `path_direction`, `is_killer`, `is_injurious`, `fatalities_per_mile`, `injuries_per_mile`, `casualties`, `damage_class`, `has_crop_loss`, `length_width_ratio`, `record_seq`
43
+
44
+ ## 💡 Ideas for using this data
45
+
46
+ 1. **Tornado Alley is moving?** — spatial density by decade; compare the classic Plains hotspot with the Southeast.
47
+ 2. **Rating drift** — how the F-to-EF transition in 2007 changed the distribution of ratings, and how to correct for it.
48
+ 3. **Casualty modelling** — predict fatalities from path length, width, magnitude and time of day.
49
+ 4. **Night-time risk** — `time_of_day` versus casualties; are overnight tornadoes deadlier per unit of damage?
50
+ 5. **Damage curves** — property loss as a function of magnitude and path area.
51
+ 6. **Seasonality** — day-of-year density plots by region; find the Southeast's winter secondary season.
52
+ 7. **Track geometry** — distribution of path bearings and length/width ratios; do long-track events cluster?
53
+ 8. **Outbreak detection** — group by date and state to find the biggest tornado outbreaks since 1950.
54
+ 9. **Reporting bias** — annual counts before/after NEXRAD (1990s); how many weak tornadoes were simply missed?
55
+
56
+ ## 📁 Files
57
+
58
+ | File | What it is |
59
+ |---|---|
60
+ | `tornadoes.csv` | 71,813 tornadoes x 55 parameters. |
61
+ | `data_dictionary.csv` | Column / type / description for every field. |
62
+ | `notebook.ipynb` | Starter notebook: trends, geography, casualties, ratings. |
63
+ | `dataset-metadata.json` | Kaggle API metadata. |
64
+ | `about.md` | Plain-text About block. |
65
+
66
+ ## 🏷️ Tags
67
+
68
+ `tornado`, `weather`, `natural-disasters`, `climate`, `meteorology`, `usa`, `geospatial`, `time-series`, `tabular`, `risk-analysis`
69
+
70
+ ## 🔗 Provenance
71
+
72
+ - **Source:** NOAA Storm Prediction Center, **SPC Severe Weather Database**,
73
+ file `1950-2024_actual_tornadoes.csv` (`https://www.spc.noaa.gov/wcm/`).
74
+ - **Upstream curation:** SPC compiles local storm reports and NWS damage surveys; the file is the
75
+ standard research extract used in climatology and actuarial work.
76
+ - **Processing:** every one of the 29 source columns is preserved; coordinates are kept as decimals;
77
+ dates and times are parsed for derived features.
78
+ - **Derived columns:** state name, region, decade, season, day-of-year, hour band, magnitude label,
79
+ significant/violent flags, path area, midpoint, bearing, casualty rates, damage band, ratio.
80
+ - **Snapshot date:** 21 November 2026.
81
+
82
+ ## 🔄 Update frequency
83
+
84
+ **Annual.** SPC updates the database when each year's surveys are finalised (usually spring); re-run `scripts/23_tornadoes.py`.
85
+
86
+ ## ⚠️ Caveats
87
+
88
+ - F-scale (1950–2006) and EF-scale (2007+) ratings are not strictly comparable; the `scale` column marks the break.
89
+ - Damage (`loss`, `closs`) is in unadjusted historical dollars — do not compare across decades without deflating.
90
+ - Weak tornadoes were under-reported before the NEXRAD era, so the apparent upward trend in counts is largely observational.
91
+ - Time is local clock time and 00:00 is used when unknown, which conflates midnight events with missing data.
92
+ - Path length and width are survey estimates and are rounded (length to 0.1 mi, width to 1 yd).
93
+ - Multi-state and multi-segment tornadoes appear as several rows linked by `sn`/`sg`.
94
+ - The file covers U.S. tornadoes only, including Puerto Rico and territories where reported.
95
+
96
+ ## 📜 Licence
97
+
98
+ Public domain — NOAA Storm Prediction Center (U.S. Government work).
99
+
100
+ ### 📋 Column Definitions & File Header
101
+
102
+ | # | Column Name | Data Type | Description |
103
+ |---|---|---|---|
104
+ | 1 | `om` | `number` | Sequential record number in the SPC database. |
105
+ | 2 | `yr` | `number` | Year of the tornado. |
106
+ | 3 | `mo` | `number` | Month (1-12). |
107
+ | 4 | `dy` | `number` | Day of month. |
108
+ | 5 | `date` | `date` | Local calendar date (YYYY-MM-DD). |
109
+ | 6 | `time` | `string` | Local start time (HH:MM:SS); 00:00 when unknown. |
110
+ | 7 | `tz` | `number` | Time-zone code used by the source. |
111
+ | 8 | `st` | `string` | Two-letter state code. |
112
+ | 9 | `stf` | `number` | State FIPS code. |
113
+ | 10 | `stn` | `number` | Station number in the source. |
114
+ | 11 | `mag` | `number` | F-scale (1950-2006) or EF-scale (2007+) magnitude, 0-5. |
115
+ | 12 | `inj` | `number` | Number of injuries. |
116
+ | 13 | `fat` | `number` | Number of fatalities. |
117
+ | 14 | `loss` | `number` | Property damage in millions of US dollars, unadjusted. |
118
+ | 15 | `closs` | `number` | Crop damage in millions of US dollars, unadjusted. |
119
+ | 16 | `slat` | `number` | Start latitude (degrees). |
120
+ | 17 | `slon` | `number` | Start longitude (degrees). |
121
+ | 18 | `elat` | `number` | End latitude (degrees). |
122
+ | 19 | `elon` | `number` | End longitude (degrees). |
123
+ | 20 | `len` | `number` | Path length in miles. |
124
+ | 21 | `wid` | `number` | Path width in yards. |
125
+ | 22 | `ns` | `number` | Number of states affected (1 or 2). |
126
+ | 23 | `sn` | `number` | State number for multi-state tracks. |
127
+ | 24 | `sg` | `number` | Segment number for multi-segment tracks. |
128
+ | 25 | `f1` | `number` | F-scale injury code (legacy field). |
129
+ | 26 | `f2` | `number` | F-scale fatality code (legacy field). |
130
+ | 27 | `f3` | `number` | F-scale loss code (legacy field). |
131
+ | 28 | `f4` | `number` | F-scale crop-loss code (legacy field). |
132
+ | 29 | `fc` | `number` | Flood/other code (legacy field). |
133
+ | 30 | `state_name` | `string` | Full state name. |
134
+ | 31 | `region` | `string` | Census-style region: Northeast, Midwest, South or West. |
135
+ | 32 | `decade` | `number` | Decade of the year. |
136
+ | 33 | `month_name` | `string` | Month name. |
137
+ | 34 | `season` | `string` | Meteorological season (DJF, MAM, JJA, SON). |
138
+ | 35 | `day_of_year` | `number` | Day number within the year (1-366). |
139
+ | 36 | `hour_local` | `number` | Start hour in local time, 0-23. |
140
+ | 37 | `time_of_day` | `string` | Hour band: Overnight, Morning, Afternoon, Evening. |
141
+ | 38 | `scale` | `string` | Magnitude scale in force that year: F (through 2006) or EF (2007+). |
142
+ | 39 | `magnitude_label` | `string` | Scale plus rating, e.g. EF4 or F2. |
143
+ | 40 | `is_violent` | `boolean` | true for F4/EF4 and stronger. |
144
+ | 41 | `is_significant` | `boolean` | true for F2/EF2 and stronger. |
145
+ | 42 | `path_area_sq_miles` | `number` | Path length x width, converted to square miles. |
146
+ | 43 | `midpoint_lat` | `number` | Latitude midway between start and end. |
147
+ | 44 | `midpoint_lon` | `number` | Longitude midway between start and end. |
148
+ | 45 | `path_bearing_deg` | `number` | Initial bearing from start to end, in degrees. |
149
+ | 46 | `path_direction` | `string` | Compass direction of the track. |
150
+ | 47 | `is_killer` | `boolean` | true when at least one fatality was reported. |
151
+ | 48 | `is_injurious` | `boolean` | true when at least one injury was reported. |
152
+ | 49 | `fatalities_per_mile` | `number` | Fatalities divided by path length. |
153
+ | 50 | `injuries_per_mile` | `number` | Injuries divided by path length. |
154
+ | 51 | `casualties` | `number` | Fatalities plus injuries. |
155
+ | 52 | `damage_class` | `string` | Property-damage band in the source's unadjusted millions of dollars. |
156
+ | 53 | `has_crop_loss` | `boolean` | true when crop damage was reported. |
157
+ | 54 | `length_width_ratio` | `number` | Path length in yards divided by width — how elongated the track is. |
158
+ | 55 | `record_seq` | `number` | Row number in the filtered file. |
159
+
160
+
161
+
162
+ ---
163
+
164
+ ## 🌟 Support & Community
165
+ If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
166
+ Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.
README.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - tabular
5
+ tags:
6
+ - tabular
7
+ pretty_name: U.S. Tornado Catalog 1950-2024
8
+ ---
9
+
10
+ # U.S. Tornado Catalog 1950-2024
11
+
12
+ **Subtitle:** Every recorded US tornado with coordinates, path size, F/EF scale & damage
13
+
14
+ **Tags:** `weather`, `climate`, `time-series`, `tabular`
15
+
16
+ **Dataset File:** `tornadoes.csv` (71,813 rows, 55 columns, 18.3 MB)
17
+
18
+ **Provenance & Source:** NOAA Storm Prediction Center (SPC) Tornado Database
19
+
20
+ **Expected Update Frequency:** `annually`
21
+
22
+ ---
23
+
24
+ ## 📖 Description
25
+
26
+ ### Every recorded U.S. tornado, 1950–2024
27
+
28
+ The NOAA Storm Prediction Center's tornado database is the canonical record of U.S. tornadoes:
29
+ **71,813 events** with start and end coordinates, path dimensions, F/EF magnitude, casualties and
30
+ damage estimates. This file keeps all 29 source fields and adds **26
31
+ derived parameters** for a total of **55 columns**.
32
+
33
+ Each row includes:
34
+ - **Identity and timing** — year, month, day, full date, local start time and time-zone code,
35
+ decade, month name, meteorological season, day-of-year, hour band.
36
+ - **Location** — state code and FIPS, full state name, region, start/end latitude and longitude,
37
+ track midpoint and compass bearing.
38
+ - **Magnitude** — raw F/EF value, the scale in force that year, a label such as `EF4`,
39
+ significant (2+) and violent (4+) flags.
40
+ - **Path** — length in miles, width in yards, computed area in square miles, length-to-width ratio.
41
+ - **Impact** — injuries, fatalities, casualties, property and crop damage in unadjusted millions,
42
+ a damage band, fatalities/injuries per mile, killer and injurious flags, crop-loss flag.
43
+ - **Legacy codes** — the original SPC F1–F4 and FC fields, preserved for reproducibility.
44
+
45
+ **22,517 events** are from the EF era (2007+), and the file spans the shift from the original
46
+ Fujita scale to the Enhanced Fujita scale — a built-in discontinuity that makes trend analysis
47
+ genuinely interesting.
48
+
49
+ ## 🧾 Columns (55)
50
+
51
+ `om`, `yr`, `mo`, `dy`, `date`, `time`, `tz`, `st`, `stf`, `stn`, `mag`, `inj`, `fat`, `loss`, `closs`, `slat`, `slon`, `elat`, `elon`, `len`, `wid`, `ns`, `sn`, `sg`, `f1`, `f2`, `f3`, `f4`, `fc`, `state_name`, `region`, `decade`, `month_name`, `season`, `day_of_year`, `hour_local`, `time_of_day`, `scale`, `magnitude_label`, `is_violent`, `is_significant`, `path_area_sq_miles`, `midpoint_lat`, `midpoint_lon`, `path_bearing_deg`, `path_direction`, `is_killer`, `is_injurious`, `fatalities_per_mile`, `injuries_per_mile`, `casualties`, `damage_class`, `has_crop_loss`, `length_width_ratio`, `record_seq`
52
+
53
+ ## 💡 Ideas for using this data
54
+
55
+ 1. **Tornado Alley is moving?** — spatial density by decade; compare the classic Plains hotspot with the Southeast.
56
+ 2. **Rating drift** — how the F-to-EF transition in 2007 changed the distribution of ratings, and how to correct for it.
57
+ 3. **Casualty modelling** — predict fatalities from path length, width, magnitude and time of day.
58
+ 4. **Night-time risk** — `time_of_day` versus casualties; are overnight tornadoes deadlier per unit of damage?
59
+ 5. **Damage curves** — property loss as a function of magnitude and path area.
60
+ 6. **Seasonality** — day-of-year density plots by region; find the Southeast's winter secondary season.
61
+ 7. **Track geometry** — distribution of path bearings and length/width ratios; do long-track events cluster?
62
+ 8. **Outbreak detection** — group by date and state to find the biggest tornado outbreaks since 1950.
63
+ 9. **Reporting bias** — annual counts before/after NEXRAD (1990s); how many weak tornadoes were simply missed?
64
+
65
+ ## 📁 Files
66
+
67
+ | File | What it is |
68
+ |---|---|
69
+ | `tornadoes.csv` | 71,813 tornadoes x 55 parameters. |
70
+ | `data_dictionary.csv` | Column / type / description for every field. |
71
+ | `notebook.ipynb` | Starter notebook: trends, geography, casualties, ratings. |
72
+ | `dataset-metadata.json` | Kaggle API metadata. |
73
+ | `about.md` | Plain-text About block. |
74
+
75
+ ## 🏷️ Tags
76
+
77
+ `tornado`, `weather`, `natural-disasters`, `climate`, `meteorology`, `usa`, `geospatial`, `time-series`, `tabular`, `risk-analysis`
78
+
79
+ ## 🔗 Provenance
80
+
81
+ - **Source:** NOAA Storm Prediction Center, **SPC Severe Weather Database**,
82
+ file `1950-2024_actual_tornadoes.csv` (`https://www.spc.noaa.gov/wcm/`).
83
+ - **Upstream curation:** SPC compiles local storm reports and NWS damage surveys; the file is the
84
+ standard research extract used in climatology and actuarial work.
85
+ - **Processing:** every one of the 29 source columns is preserved; coordinates are kept as decimals;
86
+ dates and times are parsed for derived features.
87
+ - **Derived columns:** state name, region, decade, season, day-of-year, hour band, magnitude label,
88
+ significant/violent flags, path area, midpoint, bearing, casualty rates, damage band, ratio.
89
+ - **Snapshot date:** 21 November 2026.
90
+
91
+ ## 🔄 Update frequency
92
+
93
+ **Annual.** SPC updates the database when each year's surveys are finalised (usually spring); re-run `scripts/23_tornadoes.py`.
94
+
95
+ ## ⚠️ Caveats
96
+
97
+ - F-scale (1950–2006) and EF-scale (2007+) ratings are not strictly comparable; the `scale` column marks the break.
98
+ - Damage (`loss`, `closs`) is in unadjusted historical dollars — do not compare across decades without deflating.
99
+ - Weak tornadoes were under-reported before the NEXRAD era, so the apparent upward trend in counts is largely observational.
100
+ - Time is local clock time and 00:00 is used when unknown, which conflates midnight events with missing data.
101
+ - Path length and width are survey estimates and are rounded (length to 0.1 mi, width to 1 yd).
102
+ - Multi-state and multi-segment tornadoes appear as several rows linked by `sn`/`sg`.
103
+ - The file covers U.S. tornadoes only, including Puerto Rico and territories where reported.
104
+
105
+ ## 📜 Licence
106
+
107
+ Public domain — NOAA Storm Prediction Center (U.S. Government work).
108
+
109
+ ### 📋 Column Definitions & File Header
110
+
111
+ | # | Column Name | Data Type | Description |
112
+ |---|---|---|---|
113
+ | 1 | `om` | `number` | Sequential record number in the SPC database. |
114
+ | 2 | `yr` | `number` | Year of the tornado. |
115
+ | 3 | `mo` | `number` | Month (1-12). |
116
+ | 4 | `dy` | `number` | Day of month. |
117
+ | 5 | `date` | `date` | Local calendar date (YYYY-MM-DD). |
118
+ | 6 | `time` | `string` | Local start time (HH:MM:SS); 00:00 when unknown. |
119
+ | 7 | `tz` | `number` | Time-zone code used by the source. |
120
+ | 8 | `st` | `string` | Two-letter state code. |
121
+ | 9 | `stf` | `number` | State FIPS code. |
122
+ | 10 | `stn` | `number` | Station number in the source. |
123
+ | 11 | `mag` | `number` | F-scale (1950-2006) or EF-scale (2007+) magnitude, 0-5. |
124
+ | 12 | `inj` | `number` | Number of injuries. |
125
+ | 13 | `fat` | `number` | Number of fatalities. |
126
+ | 14 | `loss` | `number` | Property damage in millions of US dollars, unadjusted. |
127
+ | 15 | `closs` | `number` | Crop damage in millions of US dollars, unadjusted. |
128
+ | 16 | `slat` | `number` | Start latitude (degrees). |
129
+ | 17 | `slon` | `number` | Start longitude (degrees). |
130
+ | 18 | `elat` | `number` | End latitude (degrees). |
131
+ | 19 | `elon` | `number` | End longitude (degrees). |
132
+ | 20 | `len` | `number` | Path length in miles. |
133
+ | 21 | `wid` | `number` | Path width in yards. |
134
+ | 22 | `ns` | `number` | Number of states affected (1 or 2). |
135
+ | 23 | `sn` | `number` | State number for multi-state tracks. |
136
+ | 24 | `sg` | `number` | Segment number for multi-segment tracks. |
137
+ | 25 | `f1` | `number` | F-scale injury code (legacy field). |
138
+ | 26 | `f2` | `number` | F-scale fatality code (legacy field). |
139
+ | 27 | `f3` | `number` | F-scale loss code (legacy field). |
140
+ | 28 | `f4` | `number` | F-scale crop-loss code (legacy field). |
141
+ | 29 | `fc` | `number` | Flood/other code (legacy field). |
142
+ | 30 | `state_name` | `string` | Full state name. |
143
+ | 31 | `region` | `string` | Census-style region: Northeast, Midwest, South or West. |
144
+ | 32 | `decade` | `number` | Decade of the year. |
145
+ | 33 | `month_name` | `string` | Month name. |
146
+ | 34 | `season` | `string` | Meteorological season (DJF, MAM, JJA, SON). |
147
+ | 35 | `day_of_year` | `number` | Day number within the year (1-366). |
148
+ | 36 | `hour_local` | `number` | Start hour in local time, 0-23. |
149
+ | 37 | `time_of_day` | `string` | Hour band: Overnight, Morning, Afternoon, Evening. |
150
+ | 38 | `scale` | `string` | Magnitude scale in force that year: F (through 2006) or EF (2007+). |
151
+ | 39 | `magnitude_label` | `string` | Scale plus rating, e.g. EF4 or F2. |
152
+ | 40 | `is_violent` | `boolean` | true for F4/EF4 and stronger. |
153
+ | 41 | `is_significant` | `boolean` | true for F2/EF2 and stronger. |
154
+ | 42 | `path_area_sq_miles` | `number` | Path length x width, converted to square miles. |
155
+ | 43 | `midpoint_lat` | `number` | Latitude midway between start and end. |
156
+ | 44 | `midpoint_lon` | `number` | Longitude midway between start and end. |
157
+ | 45 | `path_bearing_deg` | `number` | Initial bearing from start to end, in degrees. |
158
+ | 46 | `path_direction` | `string` | Compass direction of the track. |
159
+ | 47 | `is_killer` | `boolean` | true when at least one fatality was reported. |
160
+ | 48 | `is_injurious` | `boolean` | true when at least one injury was reported. |
161
+ | 49 | `fatalities_per_mile` | `number` | Fatalities divided by path length. |
162
+ | 50 | `injuries_per_mile` | `number` | Injuries divided by path length. |
163
+ | 51 | `casualties` | `number` | Fatalities plus injuries. |
164
+ | 52 | `damage_class` | `string` | Property-damage band in the source's unadjusted millions of dollars. |
165
+ | 53 | `has_crop_loss` | `boolean` | true when crop damage was reported. |
166
+ | 54 | `length_width_ratio` | `number` | Path length in yards divided by width — how elongated the track is. |
167
+ | 55 | `record_seq` | `number` | Row number in the filtered file. |
168
+
169
+
170
+
171
+ ---
172
+
173
+ ## 🌟 Support & Community
174
+ If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
175
+ Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.
about.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ U.S. Tornado Catalog 1950–2024
2
+
3
+ ### Every recorded U.S. tornado, 1950–2024
4
+
5
+ The NOAA Storm Prediction Center's tornado database is the canonical record of U.S. tornadoes:
6
+ **71,813 events** with start and end coordinates, path dimensions, F/EF magnitude, casualties and
7
+ damage estimates. This file keeps all 29 source fields and adds **26
8
+ derived parameters** for a total of **55 columns**.
9
+
10
+ Each row includes:
11
+ - **Identity and timing** — year, month, day, full date, local start time and time-zone code,
12
+ decade, month name, meteorological season, day-of-year, hour band.
13
+ - **Location** — state code and FIPS, full state name, region, start/end latitude and longitude,
14
+ track midpoint and compass bearing.
15
+ - **Magnitude** — raw F/EF value, the scale in force that year, a label such as `EF4`,
16
+ significant (2+) and violent (4+) flags.
17
+ - **Path** — length in miles, width in yards, computed area in square miles, length-to-width ratio.
18
+ - **Impact** — injuries, fatalities, casualties, property and crop damage in unadjusted millions,
19
+ a damage band, fatalities/injuries per mile, killer and injurious flags, crop-loss flag.
20
+ - **Legacy codes** — the original SPC F1–F4 and FC fields, preserved for reproducibility.
21
+
22
+ **22,517 events** are from the EF era (2007+), and the file spans the shift from the original
23
+ Fujita scale to the Enhanced Fujita scale — a built-in discontinuity that makes trend analysis
24
+ genuinely interesting.
25
+
26
+ 55 columns; one row per recorded tornado (multi-state tracks appear as separate segments).
data_dictionary.csv ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ column,data_type,description
2
+ om,number,Sequential record number in the SPC database.
3
+ yr,number,Year of the tornado.
4
+ mo,number,Month (1-12).
5
+ dy,number,Day of month.
6
+ date,date,Local calendar date (YYYY-MM-DD).
7
+ time,string,Local start time (HH:MM:SS); 00:00 when unknown.
8
+ tz,number,Time-zone code used by the source.
9
+ st,string,Two-letter state code.
10
+ stf,number,State FIPS code.
11
+ stn,number,Station number in the source.
12
+ mag,number,"F-scale (1950-2006) or EF-scale (2007+) magnitude, 0-5."
13
+ inj,number,Number of injuries.
14
+ fat,number,Number of fatalities.
15
+ loss,number,"Property damage in millions of US dollars, unadjusted."
16
+ closs,number,"Crop damage in millions of US dollars, unadjusted."
17
+ slat,number,Start latitude (degrees).
18
+ slon,number,Start longitude (degrees).
19
+ elat,number,End latitude (degrees).
20
+ elon,number,End longitude (degrees).
21
+ len,number,Path length in miles.
22
+ wid,number,Path width in yards.
23
+ ns,number,Number of states affected (1 or 2).
24
+ sn,number,State number for multi-state tracks.
25
+ sg,number,Segment number for multi-segment tracks.
26
+ f1,number,F-scale injury code (legacy field).
27
+ f2,number,F-scale fatality code (legacy field).
28
+ f3,number,F-scale loss code (legacy field).
29
+ f4,number,F-scale crop-loss code (legacy field).
30
+ fc,number,Flood/other code (legacy field).
31
+ state_name,string,Full state name.
32
+ region,string,"Census-style region: Northeast, Midwest, South or West."
33
+ decade,number,Decade of the year.
34
+ month_name,string,Month name.
35
+ season,string,"Meteorological season (DJF, MAM, JJA, SON)."
36
+ day_of_year,number,Day number within the year (1-366).
37
+ hour_local,number,"Start hour in local time, 0-23."
38
+ time_of_day,string,"Hour band: Overnight, Morning, Afternoon, Evening."
39
+ scale,string,Magnitude scale in force that year: F (through 2006) or EF (2007+).
40
+ magnitude_label,string,"Scale plus rating, e.g. EF4 or F2."
41
+ is_violent,boolean,true for F4/EF4 and stronger.
42
+ is_significant,boolean,true for F2/EF2 and stronger.
43
+ path_area_sq_miles,number,"Path length x width, converted to square miles."
44
+ midpoint_lat,number,Latitude midway between start and end.
45
+ midpoint_lon,number,Longitude midway between start and end.
46
+ path_bearing_deg,number,"Initial bearing from start to end, in degrees."
47
+ path_direction,string,Compass direction of the track.
48
+ is_killer,boolean,true when at least one fatality was reported.
49
+ is_injurious,boolean,true when at least one injury was reported.
50
+ fatalities_per_mile,number,Fatalities divided by path length.
51
+ injuries_per_mile,number,Injuries divided by path length.
52
+ casualties,number,Fatalities plus injuries.
53
+ damage_class,string,Property-damage band in the source's unadjusted millions of dollars.
54
+ has_crop_loss,boolean,true when crop damage was reported.
55
+ length_width_ratio,number,Path length in yards divided by width — how elongated the track is.
56
+ record_seq,number,Row number in the filtered file.
dataset-metadata.json ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "U.S. Tornado Catalog 1950-2024",
3
+ "id": "samyakrajbayar/us-tornado-catalog",
4
+ "subtitle": "Every recorded US tornado with coordinates, path size, F/EF scale & damage",
5
+ "description": "# U.S. Tornado Catalog 1950-2024\n\n**Subtitle:** Every recorded US tornado with coordinates, path size, F/EF scale & damage\n\n**Tags:** `weather`, `climate`, `time-series`, `tabular`\n\n**Dataset File:** `tornadoes.csv` (71,813 rows, 55 columns, 18.3 MB)\n\n**Provenance & Source:** NOAA Storm Prediction Center (SPC) Tornado Database\n\n**Expected Update Frequency:** `annually`\n\n---\n\n## \ud83d\udcd6 Description\n\n### Every recorded U.S. tornado, 1950\u20132024\n\nThe NOAA Storm Prediction Center's tornado database is the canonical record of U.S. tornadoes:\n**71,813 events** with start and end coordinates, path dimensions, F/EF magnitude, casualties and\ndamage estimates. This file keeps all 29 source fields and adds **26\nderived parameters** for a total of **55 columns**.\n\nEach row includes:\n- **Identity and timing** \u2014 year, month, day, full date, local start time and time-zone code,\n decade, month name, meteorological season, day-of-year, hour band.\n- **Location** \u2014 state code and FIPS, full state name, region, start/end latitude and longitude,\n track midpoint and compass bearing.\n- **Magnitude** \u2014 raw F/EF value, the scale in force that year, a label such as `EF4`,\n significant (2+) and violent (4+) flags.\n- **Path** \u2014 length in miles, width in yards, computed area in square miles, length-to-width ratio.\n- **Impact** \u2014 injuries, fatalities, casualties, property and crop damage in unadjusted millions,\n a damage band, fatalities/injuries per mile, killer and injurious flags, crop-loss flag.\n- **Legacy codes** \u2014 the original SPC F1\u2013F4 and FC fields, preserved for reproducibility.\n\n**22,517 events** are from the EF era (2007+), and the file spans the shift from the original\nFujita scale to the Enhanced Fujita scale \u2014 a built-in discontinuity that makes trend analysis\ngenuinely interesting.\n\n## \ud83e\uddfe Columns (55)\n\n`om`, `yr`, `mo`, `dy`, `date`, `time`, `tz`, `st`, `stf`, `stn`, `mag`, `inj`, `fat`, `loss`, `closs`, `slat`, `slon`, `elat`, `elon`, `len`, `wid`, `ns`, `sn`, `sg`, `f1`, `f2`, `f3`, `f4`, `fc`, `state_name`, `region`, `decade`, `month_name`, `season`, `day_of_year`, `hour_local`, `time_of_day`, `scale`, `magnitude_label`, `is_violent`, `is_significant`, `path_area_sq_miles`, `midpoint_lat`, `midpoint_lon`, `path_bearing_deg`, `path_direction`, `is_killer`, `is_injurious`, `fatalities_per_mile`, `injuries_per_mile`, `casualties`, `damage_class`, `has_crop_loss`, `length_width_ratio`, `record_seq`\n\n## \ud83d\udca1 Ideas for using this data\n\n1. **Tornado Alley is moving?** \u2014 spatial density by decade; compare the classic Plains hotspot with the Southeast.\n2. **Rating drift** \u2014 how the F-to-EF transition in 2007 changed the distribution of ratings, and how to correct for it.\n3. **Casualty modelling** \u2014 predict fatalities from path length, width, magnitude and time of day.\n4. **Night-time risk** \u2014 `time_of_day` versus casualties; are overnight tornadoes deadlier per unit of damage?\n5. **Damage curves** \u2014 property loss as a function of magnitude and path area.\n6. **Seasonality** \u2014 day-of-year density plots by region; find the Southeast's winter secondary season.\n7. **Track geometry** \u2014 distribution of path bearings and length/width ratios; do long-track events cluster?\n8. **Outbreak detection** \u2014 group by date and state to find the biggest tornado outbreaks since 1950.\n9. **Reporting bias** \u2014 annual counts before/after NEXRAD (1990s); how many weak tornadoes were simply missed?\n\n## \ud83d\udcc1 Files\n\n| File | What it is |\n|---|---|\n| `tornadoes.csv` | 71,813 tornadoes x 55 parameters. |\n| `data_dictionary.csv` | Column / type / description for every field. |\n| `notebook.ipynb` | Starter notebook: trends, geography, casualties, ratings. |\n| `dataset-metadata.json` | Kaggle API metadata. |\n| `about.md` | Plain-text About block. |\n\n## \ud83c\udff7\ufe0f Tags\n\n`tornado`, `weather`, `natural-disasters`, `climate`, `meteorology`, `usa`, `geospatial`, `time-series`, `tabular`, `risk-analysis`\n\n## \ud83d\udd17 Provenance\n\n- **Source:** NOAA Storm Prediction Center, **SPC Severe Weather Database**,\n file `1950-2024_actual_tornadoes.csv` (`https://www.spc.noaa.gov/wcm/`).\n- **Upstream curation:** SPC compiles local storm reports and NWS damage surveys; the file is the\n standard research extract used in climatology and actuarial work.\n- **Processing:** every one of the 29 source columns is preserved; coordinates are kept as decimals;\n dates and times are parsed for derived features.\n- **Derived columns:** state name, region, decade, season, day-of-year, hour band, magnitude label,\n significant/violent flags, path area, midpoint, bearing, casualty rates, damage band, ratio.\n- **Snapshot date:** 21 November 2026.\n\n## \ud83d\udd04 Update frequency\n\n**Annual.** SPC updates the database when each year's surveys are finalised (usually spring); re-run `scripts/23_tornadoes.py`.\n\n## \u26a0\ufe0f Caveats\n\n- F-scale (1950\u20132006) and EF-scale (2007+) ratings are not strictly comparable; the `scale` column marks the break.\n- Damage (`loss`, `closs`) is in unadjusted historical dollars \u2014 do not compare across decades without deflating.\n- Weak tornadoes were under-reported before the NEXRAD era, so the apparent upward trend in counts is largely observational.\n- Time is local clock time and 00:00 is used when unknown, which conflates midnight events with missing data.\n- Path length and width are survey estimates and are rounded (length to 0.1 mi, width to 1 yd).\n- Multi-state and multi-segment tornadoes appear as several rows linked by `sn`/`sg`.\n- The file covers U.S. tornadoes only, including Puerto Rico and territories where reported.\n\n## \ud83d\udcdc Licence\n\nPublic domain \u2014 NOAA Storm Prediction Center (U.S. Government work).\n\n### \ud83d\udccb Column Definitions & File Header\n\n| # | Column Name | Data Type | Description |\n|---|---|---|---|\n| 1 | `om` | `number` | Sequential record number in the SPC database. |\n| 2 | `yr` | `number` | Year of the tornado. |\n| 3 | `mo` | `number` | Month (1-12). |\n| 4 | `dy` | `number` | Day of month. |\n| 5 | `date` | `date` | Local calendar date (YYYY-MM-DD). |\n| 6 | `time` | `string` | Local start time (HH:MM:SS); 00:00 when unknown. |\n| 7 | `tz` | `number` | Time-zone code used by the source. |\n| 8 | `st` | `string` | Two-letter state code. |\n| 9 | `stf` | `number` | State FIPS code. |\n| 10 | `stn` | `number` | Station number in the source. |\n| 11 | `mag` | `number` | F-scale (1950-2006) or EF-scale (2007+) magnitude, 0-5. |\n| 12 | `inj` | `number` | Number of injuries. |\n| 13 | `fat` | `number` | Number of fatalities. |\n| 14 | `loss` | `number` | Property damage in millions of US dollars, unadjusted. |\n| 15 | `closs` | `number` | Crop damage in millions of US dollars, unadjusted. |\n| 16 | `slat` | `number` | Start latitude (degrees). |\n| 17 | `slon` | `number` | Start longitude (degrees). |\n| 18 | `elat` | `number` | End latitude (degrees). |\n| 19 | `elon` | `number` | End longitude (degrees). |\n| 20 | `len` | `number` | Path length in miles. |\n| 21 | `wid` | `number` | Path width in yards. |\n| 22 | `ns` | `number` | Number of states affected (1 or 2). |\n| 23 | `sn` | `number` | State number for multi-state tracks. |\n| 24 | `sg` | `number` | Segment number for multi-segment tracks. |\n| 25 | `f1` | `number` | F-scale injury code (legacy field). |\n| 26 | `f2` | `number` | F-scale fatality code (legacy field). |\n| 27 | `f3` | `number` | F-scale loss code (legacy field). |\n| 28 | `f4` | `number` | F-scale crop-loss code (legacy field). |\n| 29 | `fc` | `number` | Flood/other code (legacy field). |\n| 30 | `state_name` | `string` | Full state name. |\n| 31 | `region` | `string` | Census-style region: Northeast, Midwest, South or West. |\n| 32 | `decade` | `number` | Decade of the year. |\n| 33 | `month_name` | `string` | Month name. |\n| 34 | `season` | `string` | Meteorological season (DJF, MAM, JJA, SON). |\n| 35 | `day_of_year` | `number` | Day number within the year (1-366). |\n| 36 | `hour_local` | `number` | Start hour in local time, 0-23. |\n| 37 | `time_of_day` | `string` | Hour band: Overnight, Morning, Afternoon, Evening. |\n| 38 | `scale` | `string` | Magnitude scale in force that year: F (through 2006) or EF (2007+). |\n| 39 | `magnitude_label` | `string` | Scale plus rating, e.g. EF4 or F2. |\n| 40 | `is_violent` | `boolean` | true for F4/EF4 and stronger. |\n| 41 | `is_significant` | `boolean` | true for F2/EF2 and stronger. |\n| 42 | `path_area_sq_miles` | `number` | Path length x width, converted to square miles. |\n| 43 | `midpoint_lat` | `number` | Latitude midway between start and end. |\n| 44 | `midpoint_lon` | `number` | Longitude midway between start and end. |\n| 45 | `path_bearing_deg` | `number` | Initial bearing from start to end, in degrees. |\n| 46 | `path_direction` | `string` | Compass direction of the track. |\n| 47 | `is_killer` | `boolean` | true when at least one fatality was reported. |\n| 48 | `is_injurious` | `boolean` | true when at least one injury was reported. |\n| 49 | `fatalities_per_mile` | `number` | Fatalities divided by path length. |\n| 50 | `injuries_per_mile` | `number` | Injuries divided by path length. |\n| 51 | `casualties` | `number` | Fatalities plus injuries. |\n| 52 | `damage_class` | `string` | Property-damage band in the source's unadjusted millions of dollars. |\n| 53 | `has_crop_loss` | `boolean` | true when crop damage was reported. |\n| 54 | `length_width_ratio` | `number` | Path length in yards divided by width \u2014 how elongated the track is. |\n| 55 | `record_seq` | `number` | Row number in the filtered file. |\n\n\n\n---\n\n## \ud83c\udf1f Support & Community\nIf you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (\ud83d\udc4d) on Kaggle!**\nFeedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.\n",
6
+ "isPrivate": false,
7
+ "licenses": [
8
+ {
9
+ "name": "CC0-1.0"
10
+ }
11
+ ],
12
+ "keywords": [
13
+ "weather",
14
+ "climate",
15
+ "time-series",
16
+ "tabular"
17
+ ],
18
+ "resources": [
19
+ {
20
+ "path": "tornadoes.csv",
21
+ "description": "Primary dataset file containing 71,813 records across 55 parameters.",
22
+ "schema": {
23
+ "fields": [
24
+ {
25
+ "name": "om",
26
+ "type": "number",
27
+ "description": "Sequential record number in the SPC database."
28
+ },
29
+ {
30
+ "name": "yr",
31
+ "type": "number",
32
+ "description": "Year of the tornado."
33
+ },
34
+ {
35
+ "name": "mo",
36
+ "type": "number",
37
+ "description": "Month (1-12)."
38
+ },
39
+ {
40
+ "name": "dy",
41
+ "type": "number",
42
+ "description": "Day of month."
43
+ },
44
+ {
45
+ "name": "date",
46
+ "type": "date",
47
+ "description": "Local calendar date (YYYY-MM-DD)."
48
+ },
49
+ {
50
+ "name": "time",
51
+ "type": "string",
52
+ "description": "Local start time (HH:MM:SS); 00:00 when unknown."
53
+ },
54
+ {
55
+ "name": "tz",
56
+ "type": "number",
57
+ "description": "Time-zone code used by the source."
58
+ },
59
+ {
60
+ "name": "st",
61
+ "type": "string",
62
+ "description": "Two-letter state code."
63
+ },
64
+ {
65
+ "name": "stf",
66
+ "type": "number",
67
+ "description": "State FIPS code."
68
+ },
69
+ {
70
+ "name": "stn",
71
+ "type": "number",
72
+ "description": "Station number in the source."
73
+ },
74
+ {
75
+ "name": "mag",
76
+ "type": "number",
77
+ "description": "F-scale (1950-2006) or EF-scale (2007+) magnitude, 0-5."
78
+ },
79
+ {
80
+ "name": "inj",
81
+ "type": "number",
82
+ "description": "Number of injuries."
83
+ },
84
+ {
85
+ "name": "fat",
86
+ "type": "number",
87
+ "description": "Number of fatalities."
88
+ },
89
+ {
90
+ "name": "loss",
91
+ "type": "number",
92
+ "description": "Property damage in millions of US dollars, unadjusted."
93
+ },
94
+ {
95
+ "name": "closs",
96
+ "type": "number",
97
+ "description": "Crop damage in millions of US dollars, unadjusted."
98
+ },
99
+ {
100
+ "name": "slat",
101
+ "type": "number",
102
+ "description": "Start latitude (degrees)."
103
+ },
104
+ {
105
+ "name": "slon",
106
+ "type": "number",
107
+ "description": "Start longitude (degrees)."
108
+ },
109
+ {
110
+ "name": "elat",
111
+ "type": "number",
112
+ "description": "End latitude (degrees)."
113
+ },
114
+ {
115
+ "name": "elon",
116
+ "type": "number",
117
+ "description": "End longitude (degrees)."
118
+ },
119
+ {
120
+ "name": "len",
121
+ "type": "number",
122
+ "description": "Path length in miles."
123
+ },
124
+ {
125
+ "name": "wid",
126
+ "type": "number",
127
+ "description": "Path width in yards."
128
+ },
129
+ {
130
+ "name": "ns",
131
+ "type": "number",
132
+ "description": "Number of states affected (1 or 2)."
133
+ },
134
+ {
135
+ "name": "sn",
136
+ "type": "number",
137
+ "description": "State number for multi-state tracks."
138
+ },
139
+ {
140
+ "name": "sg",
141
+ "type": "number",
142
+ "description": "Segment number for multi-segment tracks."
143
+ },
144
+ {
145
+ "name": "f1",
146
+ "type": "number",
147
+ "description": "F-scale injury code (legacy field)."
148
+ },
149
+ {
150
+ "name": "f2",
151
+ "type": "number",
152
+ "description": "F-scale fatality code (legacy field)."
153
+ },
154
+ {
155
+ "name": "f3",
156
+ "type": "number",
157
+ "description": "F-scale loss code (legacy field)."
158
+ },
159
+ {
160
+ "name": "f4",
161
+ "type": "number",
162
+ "description": "F-scale crop-loss code (legacy field)."
163
+ },
164
+ {
165
+ "name": "fc",
166
+ "type": "number",
167
+ "description": "Flood/other code (legacy field)."
168
+ },
169
+ {
170
+ "name": "state_name",
171
+ "type": "string",
172
+ "description": "Full state name."
173
+ },
174
+ {
175
+ "name": "region",
176
+ "type": "string",
177
+ "description": "Census-style region: Northeast, Midwest, South or West."
178
+ },
179
+ {
180
+ "name": "decade",
181
+ "type": "number",
182
+ "description": "Decade of the year."
183
+ },
184
+ {
185
+ "name": "month_name",
186
+ "type": "string",
187
+ "description": "Month name."
188
+ },
189
+ {
190
+ "name": "season",
191
+ "type": "string",
192
+ "description": "Meteorological season (DJF, MAM, JJA, SON)."
193
+ },
194
+ {
195
+ "name": "day_of_year",
196
+ "type": "number",
197
+ "description": "Day number within the year (1-366)."
198
+ },
199
+ {
200
+ "name": "hour_local",
201
+ "type": "number",
202
+ "description": "Start hour in local time, 0-23."
203
+ },
204
+ {
205
+ "name": "time_of_day",
206
+ "type": "string",
207
+ "description": "Hour band: Overnight, Morning, Afternoon, Evening."
208
+ },
209
+ {
210
+ "name": "scale",
211
+ "type": "string",
212
+ "description": "Magnitude scale in force that year: F (through 2006) or EF (2007+)."
213
+ },
214
+ {
215
+ "name": "magnitude_label",
216
+ "type": "string",
217
+ "description": "Scale plus rating, e.g. EF4 or F2."
218
+ },
219
+ {
220
+ "name": "is_violent",
221
+ "type": "boolean",
222
+ "description": "true for F4/EF4 and stronger."
223
+ },
224
+ {
225
+ "name": "is_significant",
226
+ "type": "boolean",
227
+ "description": "true for F2/EF2 and stronger."
228
+ },
229
+ {
230
+ "name": "path_area_sq_miles",
231
+ "type": "number",
232
+ "description": "Path length x width, converted to square miles."
233
+ },
234
+ {
235
+ "name": "midpoint_lat",
236
+ "type": "number",
237
+ "description": "Latitude midway between start and end."
238
+ },
239
+ {
240
+ "name": "midpoint_lon",
241
+ "type": "number",
242
+ "description": "Longitude midway between start and end."
243
+ },
244
+ {
245
+ "name": "path_bearing_deg",
246
+ "type": "number",
247
+ "description": "Initial bearing from start to end, in degrees."
248
+ },
249
+ {
250
+ "name": "path_direction",
251
+ "type": "string",
252
+ "description": "Compass direction of the track."
253
+ },
254
+ {
255
+ "name": "is_killer",
256
+ "type": "boolean",
257
+ "description": "true when at least one fatality was reported."
258
+ },
259
+ {
260
+ "name": "is_injurious",
261
+ "type": "boolean",
262
+ "description": "true when at least one injury was reported."
263
+ },
264
+ {
265
+ "name": "fatalities_per_mile",
266
+ "type": "number",
267
+ "description": "Fatalities divided by path length."
268
+ },
269
+ {
270
+ "name": "injuries_per_mile",
271
+ "type": "number",
272
+ "description": "Injuries divided by path length."
273
+ },
274
+ {
275
+ "name": "casualties",
276
+ "type": "number",
277
+ "description": "Fatalities plus injuries."
278
+ },
279
+ {
280
+ "name": "damage_class",
281
+ "type": "string",
282
+ "description": "Property-damage band in the source's unadjusted millions of dollars."
283
+ },
284
+ {
285
+ "name": "has_crop_loss",
286
+ "type": "boolean",
287
+ "description": "true when crop damage was reported."
288
+ },
289
+ {
290
+ "name": "length_width_ratio",
291
+ "type": "number",
292
+ "description": "Path length in yards divided by width \u2014 how elongated the track is."
293
+ },
294
+ {
295
+ "name": "record_seq",
296
+ "type": "number",
297
+ "description": "Row number in the filtered file."
298
+ }
299
+ ]
300
+ }
301
+ },
302
+ {
303
+ "path": "data_dictionary.csv",
304
+ "description": "Field-level data dictionary detailing column names, data types, and semantic definitions."
305
+ },
306
+ {
307
+ "path": "notebook.ipynb",
308
+ "description": "Jupyter starter notebook providing exploratory data analysis."
309
+ }
310
+ ]
311
+ }
kernel-metadata.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "samyakrajbayar/us-tornado-catalog-analysis",
3
+ "title": "U.S. Tornado Catalog 1950-2024 Analysis",
4
+ "code_file": "notebook.ipynb",
5
+ "language": "python",
6
+ "kernel_type": "notebook",
7
+ "is_private": false,
8
+ "enable_gpu": false,
9
+ "enable_tpu": false,
10
+ "enable_internet": true,
11
+ "dataset_sources": [
12
+ "samyakrajbayar/us-tornado-catalog"
13
+ ]
14
+ }
notebook.ipynb ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "id": "8e6eed2a",
6
+ "metadata": {},
7
+ "source": [
8
+ "# U.S. Tornado Catalog 1950–2024\n",
9
+ "\n",
10
+ "Starter notebook for the Kaggle dataset in this folder. It loads `tornadoes.csv` with pandas and walks through quality checks and a first piece of analysis.\n",
11
+ "\n",
12
+ "**Files:** `tornadoes.csv`, `data_dictionary.csv`."
13
+ ]
14
+ },
15
+ {
16
+ "cell_type": "markdown",
17
+ "id": "0000f7f2",
18
+ "metadata": {},
19
+ "source": [
20
+ "## 1. Load the data"
21
+ ]
22
+ },
23
+ {
24
+ "cell_type": "code",
25
+ "id": "fe2cc775",
26
+ "metadata": {},
27
+ "execution_count": null,
28
+ "outputs": [],
29
+ "source": [
30
+ "import pandas as pd\n",
31
+ "\n",
32
+ "df = pd.read_csv(\"tornadoes.csv\", low_memory=False)\n",
33
+ "print(df.shape)"
34
+ ]
35
+ },
36
+ {
37
+ "cell_type": "markdown",
38
+ "id": "325de123",
39
+ "metadata": {},
40
+ "source": [
41
+ "## 2. Shape, types and missing values"
42
+ ]
43
+ },
44
+ {
45
+ "cell_type": "code",
46
+ "id": "6eb42bc8",
47
+ "metadata": {},
48
+ "execution_count": null,
49
+ "outputs": [],
50
+ "source": [
51
+ "print(f\"{df.shape[0]:,} rows x {df.shape[1]} columns\")\n",
52
+ "\n",
53
+ "missing = df.isna().mean().mul(100).sort_values(ascending=False)\n",
54
+ "missing[missing > 0].round(1).to_frame(\"missing_%\").head(15)"
55
+ ]
56
+ },
57
+ {
58
+ "cell_type": "markdown",
59
+ "id": "f2d963fe",
60
+ "metadata": {},
61
+ "source": [
62
+ "## 3. Numeric summary"
63
+ ]
64
+ },
65
+ {
66
+ "cell_type": "code",
67
+ "id": "aa2f8fd4",
68
+ "metadata": {},
69
+ "execution_count": null,
70
+ "outputs": [],
71
+ "source": [
72
+ "df.describe(include='number').T.round(2).head(20)"
73
+ ]
74
+ },
75
+ {
76
+ "cell_type": "markdown",
77
+ "id": "950f8aaf",
78
+ "metadata": {},
79
+ "source": [
80
+ "## 4. Tornadoes per year"
81
+ ]
82
+ },
83
+ {
84
+ "cell_type": "code",
85
+ "id": "32a46f35",
86
+ "metadata": {},
87
+ "execution_count": null,
88
+ "outputs": [],
89
+ "source": [
90
+ "df.groupby(\"yr\").size().plot(figsize=(11, 4), title=\"Recorded tornadoes per year\")"
91
+ ]
92
+ },
93
+ {
94
+ "cell_type": "markdown",
95
+ "id": "6959bcbb",
96
+ "metadata": {},
97
+ "source": [
98
+ "## 5. Ratings"
99
+ ]
100
+ },
101
+ {
102
+ "cell_type": "code",
103
+ "id": "429d7227",
104
+ "metadata": {},
105
+ "execution_count": null,
106
+ "outputs": [],
107
+ "source": [
108
+ "df[\"magnitude_label\"].value_counts().head(14).to_frame(\"tornadoes\")"
109
+ ]
110
+ },
111
+ {
112
+ "cell_type": "markdown",
113
+ "id": "c8ea63fb",
114
+ "metadata": {},
115
+ "source": [
116
+ "## 6. Where they happen\\n\\nTop 15 states by count."
117
+ ]
118
+ },
119
+ {
120
+ "cell_type": "code",
121
+ "id": "2a8a2a95",
122
+ "metadata": {},
123
+ "execution_count": null,
124
+ "outputs": [],
125
+ "source": [
126
+ "df[\"state_name\"].value_counts().head(15).to_frame(\"tornadoes\")"
127
+ ]
128
+ },
129
+ {
130
+ "cell_type": "markdown",
131
+ "id": "91fcb8b2",
132
+ "metadata": {},
133
+ "source": [
134
+ "## 7. Seasonality"
135
+ ]
136
+ },
137
+ {
138
+ "cell_type": "code",
139
+ "id": "75238557",
140
+ "metadata": {},
141
+ "execution_count": null,
142
+ "outputs": [],
143
+ "source": [
144
+ "df[\"month_name\"].value_counts().reindex([\n",
145
+ " \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]\n",
146
+ ").plot(kind=\"bar\", figsize=(10, 4), title=\"Tornadoes by month\")"
147
+ ]
148
+ },
149
+ {
150
+ "cell_type": "markdown",
151
+ "id": "e1ae38cd",
152
+ "metadata": {},
153
+ "source": [
154
+ "## 8. Casualties vs magnitude"
155
+ ]
156
+ },
157
+ {
158
+ "cell_type": "code",
159
+ "id": "53e893cf",
160
+ "metadata": {},
161
+ "execution_count": null,
162
+ "outputs": [],
163
+ "source": [
164
+ "df.groupby(\"magnitude_label\")[[\"fat\", \"inj\"]].sum().sort_values(\"fat\", ascending=False).head(12)"
165
+ ]
166
+ },
167
+ {
168
+ "cell_type": "markdown",
169
+ "id": "5f3cdddd",
170
+ "metadata": {},
171
+ "source": [
172
+ "## 9. Path length by rating"
173
+ ]
174
+ },
175
+ {
176
+ "cell_type": "code",
177
+ "id": "b609feb1",
178
+ "metadata": {},
179
+ "execution_count": null,
180
+ "outputs": [],
181
+ "source": [
182
+ "df.boxplot(column=\"len\", by=\"magnitude_label\", figsize=(11, 5), rot=45)"
183
+ ]
184
+ },
185
+ {
186
+ "cell_type": "markdown",
187
+ "id": "29677c56",
188
+ "metadata": {},
189
+ "source": [
190
+ "## 10. F vs EF era"
191
+ ]
192
+ },
193
+ {
194
+ "cell_type": "code",
195
+ "id": "3aadf186",
196
+ "metadata": {},
197
+ "execution_count": null,
198
+ "outputs": [],
199
+ "source": [
200
+ "df.groupby(\"scale\")[\"mag\"].agg([\"count\", \"mean\", \"median\"]).round(2)"
201
+ ]
202
+ },
203
+ {
204
+ "cell_type": "markdown",
205
+ "id": "6e43770c",
206
+ "metadata": {},
207
+ "source": [
208
+ "## Next steps\n",
209
+ "\n",
210
+ "See `KAGGLE.md` for analysis ideas, caveats and provenance."
211
+ ]
212
+ }
213
+ ],
214
+ "metadata": {
215
+ "kernelspec": {
216
+ "display_name": "Python 3",
217
+ "language": "python",
218
+ "name": "python3"
219
+ },
220
+ "language_info": {
221
+ "name": "python",
222
+ "version": "3.11",
223
+ "mimetype": "text/x-python",
224
+ "file_extension": ".py",
225
+ "codemirror_mode": {
226
+ "name": "ipython",
227
+ "version": 3
228
+ },
229
+ "pygments_lexer": "ipython3",
230
+ "nbconvert_exporter": "python"
231
+ }
232
+ },
233
+ "nbformat": 4,
234
+ "nbformat_minor": 5
235
+ }
tornadoes.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e9da90b7d39733eaddc1645910ae82beedb3c68e1f8037642b1ae3013a2564c
3
+ size 19192685