awacke1 commited on
Commit
f591369
β€’
1 Parent(s): d40a118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -50,9 +50,13 @@ def display_table():
50
  (10, "πŸ™ƒ", "What's the most useless talent you have?", "[Wikipedia](https://en.wikipedia.org/wiki/Talent_(human))"),
51
  ]
52
 
53
- st.table(pd.DataFrame(data, columns=['Question', 'Emoji', 'Title', 'Description']))
54
-
 
55
 
 
 
 
56
 
57
  def update_vote_log(term, vote_type):
58
  with open('vote.log.txt', 'a') as f:
 
50
  (10, "πŸ™ƒ", "What's the most useless talent you have?", "[Wikipedia](https://en.wikipedia.org/wiki/Talent_(human))"),
51
  ]
52
 
53
+ df=pd.DataFrame(data, columns=['Question', 'Emoji', 'Title', 'Description'])
54
+
55
+ #st.table(df) # simplest dataframe view
56
 
57
+ edited_df = st.data_editor(df) # robust df editor
58
+ #favorite_command = edited_df.loc[edited_df["rating"].idxmax()]["command"]
59
+ #st.markdown(f"Your favorite command is **{favorite_command}** 🎈")
60
 
61
  def update_vote_log(term, vote_type):
62
  with open('vote.log.txt', 'a') as f: