import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import streamlit as st st.title("file uploader") st.subheader('input csv') uploaded_file=st.file_uploader("choose a csv file",type="csv") if uploaded_file is not None: data=pd.read_csv(uploaded_file) st.subheader('dataFreame') st.write(data) col1,col2=st.columns(2) with col1: fig1=plt.figure() sns.scatterplot(data=data,x='Age',y='EstimatedSalary',hue="Purchased") st.pyplot(fig1) with col2: fig2=plt.figure() sns.histplot(data=data,x='Age') st.pyplot(fig2)