That would depend on your OS and other factors that I can’t help with since it’s a local installation.
I would recommend simply googling for updating pandas for your OS and you should find tutorials that can help you out.
If it’s difficult or overwhelming for you, I would recommend either completing the project on DQ’s platform or creating a new, separate question asking specifically about updating Pandas version with details related to your local installation - like the OS, what you have tried so far, what package manager you might be using on your system etc.
To count the number of True, you can use .sum() since True has a value 1 and False has a value of 0 – this is because Boolean is subclass of int. Then, number of False = length of data frame or series - number of True.