yahooFinanceInvesting Dependencies yfinance be certain to see the comments at the top of TestYahoo for how to fix known issues with yfinance yahoo_fin Developement Notes -P/E(ttm) can be calculated as Price/EPS(ttm) Investopedia