Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,19 +93,19 @@ uploaded_file = "Intervention.csv"
|
|
| 93 |
df_full = pd.read_csv(uploaded_file) # Load the full data *once*
|
| 94 |
st.write("Overall Data Visualizations")
|
| 95 |
|
| 96 |
-
col1_full, col2_full = st.columns(
|
| 97 |
|
| 98 |
with col1_full:
|
| 99 |
fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
|
| 100 |
-
fig_gender_full.update_layout(height=
|
| 101 |
st.plotly_chart(fig_gender_full)
|
| 102 |
|
| 103 |
fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
|
| 104 |
-
fig_youth_full.update_layout(height=
|
| 105 |
st.plotly_chart(fig_youth_full)
|
| 106 |
|
| 107 |
-
fig_company_full = px.histogram(df_full,
|
| 108 |
-
fig_company_full.update_layout(height=300, width=
|
| 109 |
st.plotly_chart(fig_company_full)
|
| 110 |
|
| 111 |
with col2_full:
|
|
|
|
| 93 |
df_full = pd.read_csv(uploaded_file) # Load the full data *once*
|
| 94 |
st.write("Overall Data Visualizations")
|
| 95 |
|
| 96 |
+
col1_full, col2_full = st.columns([0.9, 0.9])
|
| 97 |
|
| 98 |
with col1_full:
|
| 99 |
fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
|
| 100 |
+
fig_gender_full.update_layout(height=350, width=350)
|
| 101 |
st.plotly_chart(fig_gender_full)
|
| 102 |
|
| 103 |
fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
|
| 104 |
+
fig_youth_full.update_layout(height=350, width=300)
|
| 105 |
st.plotly_chart(fig_youth_full)
|
| 106 |
|
| 107 |
+
fig_company_full = px.histogram(df_full, y="Company Name", title="Overall Company Distribution")
|
| 108 |
+
fig_company_full.update_layout(height=300, width=300)
|
| 109 |
st.plotly_chart(fig_company_full)
|
| 110 |
|
| 111 |
with col2_full:
|