Spaces:
Sleeping
Sleeping
Commit
•
a3bc6dc
1
Parent(s):
b41a0ac
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,17 @@ language_counts = df['language'].value_counts()
|
|
21 |
# Plotting the bar chart using matplotlib
|
22 |
fig, ax = plt.subplots()
|
23 |
language_counts.plot(kind='bar', ax=ax)
|
24 |
-
ax.set_title('Number of
|
25 |
ax.set_xlabel('Language')
|
26 |
ax.set_ylabel('Count')
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
# Display the plot in the Streamlit app
|
29 |
st.pyplot(fig)
|
30 |
|
|
|
21 |
# Plotting the bar chart using matplotlib
|
22 |
fig, ax = plt.subplots()
|
23 |
language_counts.plot(kind='bar', ax=ax)
|
24 |
+
ax.set_title('Number of Completed Tasks for Each Language')
|
25 |
ax.set_xlabel('Language')
|
26 |
ax.set_ylabel('Count')
|
27 |
|
28 |
+
# Convert the language counts to a DataFrame for display in the table
|
29 |
+
language_counts_df = language_counts.reset_index()
|
30 |
+
language_counts_df.columns = ['Language', 'Count']
|
31 |
+
|
32 |
+
# Display the table in the Streamlit app
|
33 |
+
st.table(language_counts_df)
|
34 |
+
|
35 |
# Display the plot in the Streamlit app
|
36 |
st.pyplot(fig)
|
37 |
|