We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42b67df + f19b299 commit 10457ecCopy full SHA for 10457ec
1 file changed
pipelines/utils.py
@@ -46,7 +46,7 @@ def get_index(search_text: str | list[str], data: pd.Series, offset: int = 0) ->
46
search_text = [str(search_term).lower().strip() for search_term in search_text]
47
# Convert the Series to a set of True/False values based on whether they match one of the
48
# search_text values.
49
- matches = data.str.lower().str.strip().isin(search_text)
+ matches = data.astype(str).str.lower().str.strip().isin(search_text)
50
# If we don't find a match, return None
51
if not matches.any():
52
return None
0 commit comments