I want to recreate the following chart and table. The picture shows drawdowns of the S&P 500 index from 2019 to 2022 that are equal to or greater than five percent. I am unable to locate them because I do not fully understand the methodology used to calculate them.
Do you have any suggestions on how to implement this in Python?