sns.catplot(x="day", y="total_bill", data=tips) 在上述代碼中,我們使用 Seaborn 內(nèi)置的 load_dataset() 函數(shù)加載了一個(gè)名為 “tips” 的數(shù)據(jù)集,然后使用 catplot() 函數(shù)繪制了一個(gè)分類變量的柱形圖。這里我們將 “day” 列作為 x 軸,“total_bill” 列作為 y 軸。 除了kind 參數(shù)
www.dbjr.com.cn/article/2794...htm 2025-6-3