CHRIST012 commited on
Commit
e6f619e
1 Parent(s): 71c532d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -5,19 +5,18 @@ import seaborn as sns
5
 
6
  st.title('File uploader')
7
  st.subheader('Input csv')
8
-
9
  uploader_file = st.file_uploader('upload a csv')
10
  if uploader_file is not None:
11
  df = pd.read_csv(uploader_file)
12
  st.subheader('Dataframe')
13
  st.write(df)
14
 
15
- col1, col2 = st.columns(2)
16
- with col1:
17
- fig1 = plt.figure()
18
- sns.scatterplot(x='EstimatedSalary',y='Age',hue='Purchased',data=df)
19
- st.pyplot(fig1)
20
- with col2:
21
- fig2 = plt.figure()
22
- sns.histplot(df.Age)
23
- st.pyplot(fig2)
 
5
 
6
  st.title('File uploader')
7
  st.subheader('Input csv')
 
8
  uploader_file = st.file_uploader('upload a csv')
9
  if uploader_file is not None:
10
  df = pd.read_csv(uploader_file)
11
  st.subheader('Dataframe')
12
  st.write(df)
13
 
14
+ col1, col2 = st.columns(2)
15
+ with col1:
16
+ fig1 = plt.figure()
17
+ sns.scatterplot(x='EstimatedSalary',y='Age',hue='Purchased',data=df)
18
+ st.pyplot(fig1)
19
+ with col2:
20
+ fig2 = plt.figure()
21
+ sns.histplot(df.Age)
22
+ st.pyplot(fig2)