With below code I am able to create dataframe VAT = comm[comm['Particulars'].str.contains("comm|Britain", case=False)==True] VAT But I want to create column below code does not work comm['VAT'] = comm[comm['Particulars'].str.contains("comm|Britain", case=False)==True] comm Can you provide proper code ?