I know how to check if a column in pandas has a specific string, like it's explained in the post Check if certain value is contained in a dataframe column in pandas. However I want to count the number of rows containing a specific string with some variability. For instance, I want to check not only if the row contains Portugal, but also if it contains PORTUGAL or portugal. Is there a way of doing this?
This is where I stopped (I tried to not only count but also see the %):
df[df['column'].str.contains('Portugal')].shape[0]/df['column'].shape[0]