I\'ll try to use a simple example to describe my problem.
I have a csv file with many columns. One of this columns\' header is \"names\".
In this column \"n
Using str.contains
str.contains
df.Name.str.contains('John').sum() Out[246]: 3
Or we using list and map with in
list
map
in
sum(list(map(lambda x : 'John' in x,df.Name))) Out[248]: 3