Exercise

Computing ratios from the income statement

The gross and operating margins are commonly used to see how efficiently a company uses its assets to earn money. In this exercise, you will compute the average gross margin and operating margin by industry.

The DataFrame income_statement has already been loaded for you, and pandas have also been loaded with the alias pd.

Instructions 1/2

undefined XP
    1
    2
  • Print the columns of income_statement to view the columns you can use to compute the gross and operating margin.