How to count number of values by their name? I have a pandas data frame:
word token
physical I-Problem
design I-Problem
for I-Problem
XML I-Problem
databases I-Problem
which o
is o
the o
process o
I need to count how many I-Problem in the token.
I tried df['token'].count('I-Problem')
but it doesn't work.
expected output :
I-Problem : 5
or
5