開始使用免費開始

在折線圖中繪製子群組

繼續查看 mpg 資料集。我們已經看到汽車的平均每加侖英里數隨時間上升,但汽車的平均馬力隨時間如何變化呢?而且這個趨勢是否會因產地國家而不同?

本練習屬於課程

Seaborn 資料視覺化入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Import Matplotlib and Seaborn
import matplotlib.pyplot as plt
import seaborn as sns

# Create line plot of model year vs. horsepower




# Show plot
plt.show()
編輯並執行程式碼