Counting the column contents for each category, have a set of categories
- Male-Cat,
- Female-Cat,
- Male-Cat-Female
With df.temp.str.count(i)
, it is showing Male-Cat count as '2'
, which when search in data that is only '1'
, wrongly including substring of third category.
Any help will be appreciated.