Commit ·
a79a78f
1
Parent(s): 3dea8dd
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,8 +100,8 @@ tab1, tab2 = st.tabs(["Raw Data", "Efficiency Modeling"])
|
|
| 100 |
with tab1:
|
| 101 |
with st.expander("See person data"):
|
| 102 |
st.dataframe(normalized_data[['name','role','manager','modules completed','completion rate','efficiency score','module']])
|
| 103 |
-
fig1 = px.bar(data, x='name', y='modules completed', color='manager')
|
| 104 |
-
fig2 = px.scatter(data, x='modules completed', y='completion rate', color='manager',custom_data=['name', 'role', 'manager'])
|
| 105 |
fig2.update_traces(
|
| 106 |
hovertemplate="<br>".join([
|
| 107 |
"modules: %{x}",
|
|
@@ -119,12 +119,12 @@ with tab2:
|
|
| 119 |
with st.expander("See person data"):
|
| 120 |
st.dataframe(normalized_data[['name','role','manager','modules completed','completion rate','efficiency score','module']])
|
| 121 |
|
| 122 |
-
fig3 = px.box(normalized_data, x="manager", y="efficiency score")
|
| 123 |
st.plotly_chart(fig3, use_container_width=True)
|
| 124 |
-
fig4 = px.bar(manager_data, x="manager", y="efficiency score")
|
| 125 |
# fig4.update_layout(xaxis={'categoryorder':'total descending'})
|
| 126 |
st.plotly_chart(fig4, use_container_width=True)
|
| 127 |
-
fig5 = px.bar(
|
| 128 |
# fig4.update_layout(xaxis={'categoryorder':'total descending'})
|
| 129 |
st.plotly_chart(fig5, use_container_width=True)
|
| 130 |
|
|
|
|
| 100 |
with tab1:
|
| 101 |
with st.expander("See person data"):
|
| 102 |
st.dataframe(normalized_data[['name','role','manager','modules completed','completion rate','efficiency score','module']])
|
| 103 |
+
fig1 = px.bar(data, x='name', y='modules completed', color='manager',title="Modules Completed")
|
| 104 |
+
fig2 = px.scatter(data, x='modules completed', y='completion rate', color='manager',custom_data=['name', 'role', 'manager'],title="Modules Completed vs Completion Rate")
|
| 105 |
fig2.update_traces(
|
| 106 |
hovertemplate="<br>".join([
|
| 107 |
"modules: %{x}",
|
|
|
|
| 119 |
with st.expander("See person data"):
|
| 120 |
st.dataframe(normalized_data[['name','role','manager','modules completed','completion rate','efficiency score','module']])
|
| 121 |
|
| 122 |
+
fig3 = px.box(normalized_data, x="manager", y="efficiency score",title="Manager Efficiency Distribution")
|
| 123 |
st.plotly_chart(fig3, use_container_width=True)
|
| 124 |
+
fig4 = px.bar(manager_data, x="manager", y="efficiency score",title="Manager Efficiency Distribution")
|
| 125 |
# fig4.update_layout(xaxis={'categoryorder':'total descending'})
|
| 126 |
st.plotly_chart(fig4, use_container_width=True)
|
| 127 |
+
fig5 = px.bar(normalized_data, x="name", y="efficiency score",color="manager",title="Efficiency Score by Person")
|
| 128 |
# fig4.update_layout(xaxis={'categoryorder':'total descending'})
|
| 129 |
st.plotly_chart(fig5, use_container_width=True)
|
| 130 |
|