Answers for "str.contains exact match"

0

str.contains exact match

company_name = 'ABC'

item = r'^' + company_name + '$' 

df[‘company’].str.match(item).any()
Posted by: Guest on November-28-2020

Browse Popular Code Answers by Language