Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
8aff50f
1
Parent(s):
405e170
search case insensitive
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ def display_dataframe(df, drop_cols, data_url, search_id=True, status=False, for
|
|
242 |
|
243 |
if query:
|
244 |
# Filtering the dataframe based on the query
|
245 |
-
mask = df.apply(lambda row: row.astype(str).str.contains(query).any(), axis=1)
|
246 |
display_df = df[mask]
|
247 |
else:
|
248 |
display_df = df
|
|
|
242 |
|
243 |
if query:
|
244 |
# Filtering the dataframe based on the query
|
245 |
+
mask = df.apply(lambda row: row.astype(str).str.contains(query.lower(), case=False).any(), axis=1)
|
246 |
display_df = df[mask]
|
247 |
else:
|
248 |
display_df = df
|