Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 10 new columns ({'recovery_date', 'trough_close', 'total_days', 'depth_pct', 'peak_close', 'trough_date', 'status', 'recovery_days', 'peak_date', 'fall_days'}) and 3 missing columns ({'date', 'pct_below_peak', 'close'}).

This happened while the csv dataset builder was generating data using

hf://datasets/trifectasignals/sp500-drawdowns-since-1927/sp500_drawdown_episodes.csv (at revision e564967a2f1538d50b12bed29af13c3b52f57b2c), ['hf://datasets/trifectasignals/sp500-drawdowns-since-1927@e564967a2f1538d50b12bed29af13c3b52f57b2c/sp500_daily_underwater.csv', 'hf://datasets/trifectasignals/sp500-drawdowns-since-1927@e564967a2f1538d50b12bed29af13c3b52f57b2c/sp500_drawdown_episodes.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              peak_date: string
              peak_close: double
              trough_date: string
              trough_close: double
              depth_pct: double
              fall_days: int64
              recovery_date: string
              recovery_days: double
              total_days: double
              status: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1484
              to
              {'date': Value('string'), 'close': Value('float64'), 'pct_below_peak': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 10 new columns ({'recovery_date', 'trough_close', 'total_days', 'depth_pct', 'peak_close', 'trough_date', 'status', 'recovery_days', 'peak_date', 'fall_days'}) and 3 missing columns ({'date', 'pct_below_peak', 'close'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/trifectasignals/sp500-drawdowns-since-1927/sp500_drawdown_episodes.csv (at revision e564967a2f1538d50b12bed29af13c3b52f57b2c), ['hf://datasets/trifectasignals/sp500-drawdowns-since-1927@e564967a2f1538d50b12bed29af13c3b52f57b2c/sp500_daily_underwater.csv', 'hf://datasets/trifectasignals/sp500-drawdowns-since-1927@e564967a2f1538d50b12bed29af13c3b52f57b2c/sp500_drawdown_episodes.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

date
string
close
float64
pct_below_peak
float64
1927-12-30
17.66
0
1928-01-03
17.76
0
1928-01-04
17.72
-0.23
1928-01-05
17.55
-1.18
1928-01-06
17.66
-0.56
1928-01-09
17.5
-1.46
1928-01-10
17.37
-2.2
1928-01-11
17.35
-2.31
1928-01-12
17.47
-1.63
1928-01-13
17.58
-1.01
1928-01-16
17.29
-2.65
1928-01-17
17.3
-2.59
1928-01-18
17.26
-2.82
1928-01-19
17.38
-2.14
1928-01-20
17.48
-1.58
1928-01-23
17.64
-0.68
1928-01-24
17.71
-0.28
1928-01-25
17.52
-1.35
1928-01-26
17.63
-0.73
1928-01-27
17.69
-0.39
1928-01-30
17.49
-1.52
1928-01-31
17.57
-1.07
1928-02-01
17.53
-1.3
1928-02-02
17.63
-0.73
1928-02-03
17.4
-2.03
1928-02-06
17.45
-1.75
1928-02-07
17.44
-1.8
1928-02-08
17.49
-1.52
1928-02-09
17.55
-1.18
1928-02-10
17.54
-1.24
1928-02-14
17.44
-1.8
1928-02-15
17.4
-2.03
1928-02-16
17.35
-2.31
1928-02-17
17.04
-4.05
1928-02-20
16.95
-4.56
1928-02-21
17.11
-3.66
1928-02-23
17.13
-3.55
1928-02-24
17.18
-3.27
1928-02-27
17.11
-3.66
1928-02-28
17.16
-3.38
1928-02-29
17.26
-2.82
1928-03-01
17.3
-2.59
1928-03-02
17.3
-2.59
1928-03-05
17.57
-1.07
1928-03-06
17.67
-0.51
1928-03-07
17.58
-1.01
1928-03-08
17.64
-0.68
1928-03-09
17.93
0
1928-03-12
18
0
1928-03-13
17.92
-0.44
1928-03-14
17.93
-0.39
1928-03-15
18.07
0
1928-03-16
18.26
0
1928-03-19
18.36
0
1928-03-20
18.46
0
1928-03-21
18.65
0
1928-03-22
18.6
-0.27
1928-03-23
18.78
0
1928-03-26
19.05
0
1928-03-27
18.94
-0.58
1928-03-28
18.89
-0.84
1928-03-29
18.95
-0.52
1928-03-30
19.28
0
1928-04-02
18.91
-1.92
1928-04-03
19.02
-1.35
1928-04-04
18.99
-1.5
1928-04-05
19.23
-0.26
1928-04-09
19.27
-0.05
1928-04-10
19.1
-0.93
1928-04-11
19.44
0
1928-04-12
19.41
-0.15
1928-04-13
19.73
0
1928-04-16
19.68
-0.25
1928-04-17
19.52
-1.06
1928-04-18
19.52
-1.06
1928-04-19
19.63
-0.51
1928-04-20
19.34
-1.98
1928-04-23
19.15
-2.94
1928-04-24
19.25
-2.43
1928-04-25
19.33
-2.03
1928-04-26
19.47
-1.32
1928-04-27
19.68
-0.25
1928-04-30
19.75
0
1928-05-01
19.78
0
1928-05-02
19.83
0
1928-05-03
19.93
0
1928-05-04
20.24
0
1928-05-07
20.41
0
1928-05-08
20.27
-0.69
1928-05-09
20.24
-0.83
1928-05-10
20.21
-0.98
1928-05-11
20.36
-0.24
1928-05-14
20.44
0
1928-05-15
20.39
-0.24
1928-05-16
20.05
-1.91
1928-05-17
20.12
-1.57
1928-05-18
19.92
-2.54
1928-05-21
19.63
-3.96
1928-05-22
19.36
-5.28
1928-05-23
19.75
-3.38
End of preview.

S&P 500 Drawdowns of 10% or More Since 1927

Every S&P 500 decline of 10% or more since 1927, counted on daily closes — plus the complete daily "underwater" series behind the count: for each of the 24,844 trading days from December 30, 1927 through November 25, 2026, the index close and how far it sat below its running peak close.

There are 27 episodes in the record, 9 of them since 2000. The worst is 1929–32 (−86.2%, recovered September 1954); the worst modern episode is 2007–09 (−56.8%, recovered March 2013); the 2020 crash fell −33.9% in 33 days and recovered in 148. The most recent episode (peak October 6, 2026) is still open.

This is the dataset behind the live tracker at https://trifectasignals.com/drawdown-tracker, which is rebuilt every day after the US market close. The same dataset is also published on Kaggle.

Methodology

  • Daily closes only. Episodes open, deepen and close on closing prices; intraday extremes are not used.
  • Recovery-merged episodes. An episode opens at a closing peak once the index closes 10% or more below it. The trough is the lowest close that follows before recovery. The recovery date is the first close back at or above the peak. Because an episode runs until recovery, a fall that pauses, rallies partway and falls again is one episode, not several — the 2000–02 bear market, for example, contains several rallies of 15% or more that never regained the March 2000 peak, and is counted once, at its full −49.1% depth. Episodes never overlap.
  • Day counts are calendar days (peak to trough, trough to recovery, peak to recovery).
  • Index level, not total return. The series follows the S&P 500 index level, which excludes dividends, so a holder's total return recovered sooner than the recovery dates shown here. Recovery dates are also nominal — the inflation-adjusted break-even arrives later.

Files

sp500_drawdown_episodes.csv

One row per episode of 10% or more (27 rows).

  • peak_date — date of the closing peak the episode fell from
  • peak_close — index close at the peak
  • trough_date — date of the lowest close in the episode
  • trough_close — index close at the trough
  • depth_pct — percentage decline from peak close to trough close (negative)
  • fall_days — calendar days from peak to trough
  • recovery_date — first close back at or above the peak (blank while the episode is open)
  • recovery_days — calendar days from trough to recovery (blank while open)
  • total_days — calendar days from peak to recovery (blank while open)
  • status — Recovered or Open

sp500_daily_underwater.csv

The daily series the episodes are counted from (24,844 rows).

  • date — trading day
  • close — S&P 500 closing level
  • pct_below_peak — percent below the running peak close: 0.00 at a new high, negative while underwater

Source

Computed and maintained by Trifecta Signals from S&P 500 daily closes. Live version: S&P 500 Drawdown & Recovery Tracker.

License

CC BY 4.0. Credit "Trifecta Signals" and link the live tracker when you reuse or display the data.

Downloads last month
59