Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas check match string lowercase

# credit to the Stack Overflow user in the source link
# (?i) is the regex patter to tell the re module to ignore case
df["check"] = df["str_type_col"].str.contains("(?i)your_string")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #check #match #string #lowercase
ADD COMMENT
Topic
Name
8+3 =