I created an Altman Z Score function in Python. I am sure their is a better way to do it, but you need Market Cap based off current stock price, so I derived it in a rather hacky way. Feel free to improve and use! The backtest is simply to show the Z score works, so take the rest with a grain of salt.

Thanks,

Aaron

Author