Spaces:
Running
Running
change layout to sidebar
Browse files
app.py
CHANGED
@@ -7,17 +7,15 @@ st.title("Graph Correlation")
|
|
7 |
|
8 |
col1, col2, col3 = st.columns((1,1,1))
|
9 |
|
10 |
-
with
|
11 |
csv = st.file_uploader(label='CSV file to analyse')
|
12 |
-
csv = st.selectbox(label='Choose a Default Dataset', options=['flights.csv', 'titanic_cleaned.csv', 'pokemon_cleaned.csv'])
|
13 |
|
14 |
-
with col2:
|
15 |
corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'])
|
16 |
-
th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.
|
17 |
|
18 |
-
|
19 |
-
but = st.button("Show Correlation Graph")
|
20 |
|
21 |
if but == True:
|
22 |
graph_html = display_graph(csv_file=csv, threshold=th, corr_type=corr_type)
|
23 |
-
st.components.v1.html(graph_html, width=None, height=
|
|
|
7 |
|
8 |
col1, col2, col3 = st.columns((1,1,1))
|
9 |
|
10 |
+
with st.sidebar:
|
11 |
csv = st.file_uploader(label='CSV file to analyse')
|
12 |
+
csv = st.selectbox(label=' Or Choose a Default Dataset', options=['flights.csv', 'titanic_cleaned.csv', 'pokemon_cleaned.csv'])
|
13 |
|
|
|
14 |
corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'])
|
15 |
+
th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.15, step=0.01)
|
16 |
|
17 |
+
but = st.button("Show Correlation Graph",)
|
|
|
18 |
|
19 |
if but == True:
|
20 |
graph_html = display_graph(csv_file=csv, threshold=th, corr_type=corr_type)
|
21 |
+
st.components.v1.html(graph_html, width=None, height=200)
|