dvilasuero HF staff commited on
Commit
a3bc6dc
1 Parent(s): b41a0ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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 Rows for Each Language')
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