import streamlit as st import pandas as pd import matplotlib.pyplot as plt import seaborn as sns st.title('File uploader') st.subheader('Input csv') uploader_file = st.file_uploader('upload a csv') if uploader_file is not None: df = pd.read_csv(uploader_file) st.subheader('Dataframe') st.write(df) col1, col2 = st.columns(2) with col1: fig1 = plt.figure() sns.scatterplot(x='EstimatedSalary',y='Age',hue='Purchased',data=df) st.pyplot(fig1) with col2: fig2 = plt.figure() sns.histplot(df.Age) st.pyplot(fig2)