col2.subheader("數(shù)據(jù)可視化") # 選擇繪圖列 x_col = st.selectbox("選擇X軸列", df.columns) y_col = st.selectbox("選擇Y軸列", df.columns) # 繪制散點(diǎn)圖 plt.figure(figsize=(8, 6)) sns.scatterplot(data=df, x=x_col, y=y_col) st.pyplot(fig=plt.gcf()) 然后,在命令行中運(yùn)行以...
www.dbjr.com.cn/python/337873i...htm 2025-6-8