Series.str.contains
has a case
parameter that is True
by default. Set it to False
to do a case insensitive match.
df2 = df1['company_name'].str.contains("apple", na=False, case=False)
Series.str.contains
has a case
parameter that is True
by default. Set it to False
to do a case insensitive match.
df2 = df1['company_name'].str.contains("apple", na=False, case=False)