MulaiMulai sekarang secara gratis

Visualizing two numeric variables

Before you can run any statistical models, it's usually a good idea to visualize your dataset. Here, you'll look at the relationship between house price per area and the number of nearby convenience stores using the Taiwan real estate dataset.

One challenge in this dataset is that the number of convenience stores contains integer data, causing points to overlap. To solve this, you will make the points transparent.

taiwan_real_estate is available as a pandas DataFrame.

Latihan ini adalah bagian dari kursus

Introduction to Regression with statsmodels in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Import seaborn with alias sns
____

# Import matplotlib.pyplot with alias plt
____

# Draw the scatter plot
sns.____(____)

# Show the plot
plt.____()
Edit dan Jalankan Kode