Commit
•
ae90632
1
Parent(s):
90ed9b3
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ st.pyplot(fig)
|
|
37 |
|
38 |
|
39 |
# Extract user_id from the is_edit_required field in the response column and count occurrences
|
40 |
-
user_ids = df['
|
41 |
user_id_counts = user_ids.value_counts()
|
42 |
|
43 |
# Convert the user ID counts to a DataFrame for display in the table
|
|
|
37 |
|
38 |
|
39 |
# Extract user_id from the is_edit_required field in the response column and count occurrences
|
40 |
+
user_ids = df['responses'].apply(lambda x: x['is_edit_required']).explode().apply(lambda x: x['user_id'])
|
41 |
user_id_counts = user_ids.value_counts()
|
42 |
|
43 |
# Convert the user ID counts to a DataFrame for display in the table
|