top of page
Piotroski F-Score
The project calculates the Piotroski F-Scores of each company in the Dow Jones index, which is used to assess a company's financial strength. The F-Score takes a value between 0 and 9, 9 being the strongest. The final output returns a data frame in which the tickers and their F-Scores are listed in descending order.
Importing required libraries:

Getting the balance sheet, income statement, and the statement of cash flows,
then calculating the ratios used in the F-Score:

Calculating the F-Score based on the ratios:

Getting the list of stocks in the Dow Jones Index and applying the F-Score function to each of them:

Final output where the tickers and their F-Scores are stored in a data frame, printed in descending order:


bottom of page