Exercise

Broad analysis

To check whether a company is doing well financially, you should check how it compares to its competitors in the same industry.

In this exercise, you'll compute the companies' average debt-to-equity ratio, asset turnover ratio, current ratio, and gross margin over several years.

You'll also compute the average of these ratios in the FMCG, Tech, and Real Estate industries over several years and see how the companies' ratios compare to their industry average.

Instructions 1/2

undefined XP
    1
    2
  • Use .pivot_table() to compute the average "debt_to_equity","current_ratio", "asset_turnover", "gross_margin" of the companies in the DataFrame statement_info; the column "comp_type" has industry information.
  • Use .pivot_table() to compute the average "debt_to_equity", "current_ratio", "asset_turnover", "gross_margin" of the industries in the DataFrame statement_info; the column "comp_type" has industry information.