Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -49,14 +49,14 @@ def filter_dataset_by_gender(data, gender_filter):
|
|
49 |
filtered_data = data[data['gender'].str.contains(gender_filter, case=False)]
|
50 |
return filtered_data
|
51 |
|
|
|
52 |
# Create a text_input for filtering by gender
|
53 |
-
gender_filter = st.text_input("Filter by gender"
|
54 |
|
55 |
# Filter the dataset based on the input gender filter
|
56 |
filtered_data = filter_dataset_by_gender(data, gender_filter)
|
57 |
|
58 |
# Display the filtered dataset
|
59 |
-
st.write("### Filter")
|
60 |
st.write(filtered_data)
|
61 |
|
62 |
st.write('---')
|
|
|
49 |
filtered_data = data[data['gender'].str.contains(gender_filter, case=False)]
|
50 |
return filtered_data
|
51 |
|
52 |
+
st.write("### Filter")
|
53 |
# Create a text_input for filtering by gender
|
54 |
+
gender_filter = st.text_input("Filter by gender")
|
55 |
|
56 |
# Filter the dataset based on the input gender filter
|
57 |
filtered_data = filter_dataset_by_gender(data, gender_filter)
|
58 |
|
59 |
# Display the filtered dataset
|
|
|
60 |
st.write(filtered_data)
|
61 |
|
62 |
st.write('---')
|