I have the same dataframe as i asked in (pandas dataframe check if column contains string that exists in another column)
Name Description
Am Owner of Am
BQ Employee at bq
JW Employee somewhere
I want to check if the name is also a part of the description, and if so keep the row. If it's not, delete the row. In this case, it will delete the 3rd row (JW Employee somewhere)
I am using
df[df.apply(lambda x: x['Name'] in x['Description'], axis = 1)]
In this case, it is also deleting the row of BQ because in the description "bq" is in lowercase. In there anyway to use to same syntax but with taking into consideration case sensitivity ?