Get startedGet started for free

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.

This exercise is part of the course

Analyzing Financial Statements in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Check the columns of the income statement
print(income_statement.____)
Edit and Run Code