Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ st.write(data)
|
|
46 |
st.write('---')
|
47 |
# Define function to filter dataset based on gender
|
48 |
def filter_dataset_by_gender(data, gender_filter):
|
49 |
-
filtered_data = data[data['
|
50 |
return filtered_data
|
51 |
|
52 |
st.write("### Filter")
|
|
|
46 |
st.write('---')
|
47 |
# Define function to filter dataset based on gender
|
48 |
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 |
st.write("### Filter")
|