MulaiMulai sekarang secara gratis

Relationship between operating margin and debt-to-equity for real estate companies

Scatter plots are a great way of seeing the relationship between two variables. In this exercise, you'll practice computing the operating margin and debt-to-equity ratio. You'll then make a scatter plot to see if there is any relationship between the operating margin and debt-to-equity ratio for real estate companies.

pandas ans Seaborn have been loaded with the alias pd and sns, respectively. You can use the pandas DataFrame dataset to compute the ratios. The console will have the columns of dataset printed so you see which columns to use to compute the ratios.

Latihan ini adalah bagian dari kursus

Analyzing Financial Statements in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Compute the operating margin
dataset["operating_margin"] = ____

# Compute debt-to-equity
dataset["debt_to_equity"] = ____
Edit dan Jalankan Kode