- What does this code do?
- Charts for Financial Turbulence and Systemic Risk
- Link to code
Author: Terrence Zhang
Python (3.6.4)
Modules: requirements.txt
- Download all folders and files in the repository. Maintain the file organization structure.
- Run
TurbulenceSuite.pyvia the command line. It takes one optional argument.
-d (--drop_recent)- Invoke this argument when you want to remove rows from the
index_data.pkldataframe, in reverse-chronological order. This is the number of rows to remove from theindex_data.pkldataframe.
- Invoke this argument when you want to remove rows from the
While the code can run just fine most weekdays, some weekdays (that coincide with stock market holidays) can cause the index_data.pkl dataframe to record dates incorrectly. Therefore, it is better to run the script on Saturday or Sunday.
License: MIT
For a step-by-step explanation of the code, click here.