nouamanetazi HF staff commited on
Commit
8aff50f
1 Parent(s): 405e170

search case insensitive

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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