Thank you very much for your help!
Question: How can I count the number of rows that contain '9999-Don't Know' in multiple columns?
I have been able to find solutions that take me halfway. For example, I found many examples where you can use the name of the column to get the number of rows with a specific criteria. BUT, I have 76 columns and each column represents a different question in a survey, hence has a different label, so that would be very inefficient.
Below is a sample df. Again, keep in mind I have 76 columns so using the name of the column is not a feasible option.
pd.DataFrame.from_items([('RespondentId', ['1ghi3g','335hduu','4vlsiu4','5nnvkkt','634deds','7kjng']), ('Satisfaction - Timing', ['9-Excellent','9-Excellent','9999-Don\'t Know','8-Very Good','1-Very Unsatisfied','9999-Don\'t Know']),('Response Speed - Time',['9999-Don\'t Know','9999-Don\'t Know','9-Excellent','9-Excellent','9-Excellent','9-Excellent'])])
As you can see, there are a total of 4 rows where '9999-Don't Know' appears so I would like to get the output 4.