Update app.py
Browse files
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 |
-
|
18 |
-
|
19 |
-
|
20 |
-
with col2:
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
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)
|