One way to test if a value occurs in a column in a Pandas data frame is to count the occurrences of each value, so for example if we want to check for the occurrence of \'do