Home > Mobile >  How to check all values in a column are lowercase?
How to check all values in a column are lowercase?

Time:12-09

I'd like to check if all values in column A are lowercase strings.

How would one go about this?

I also want to assert if there are any which are not lowercase.

Strings can be like some_string or stringystring etc.

CodePudding user response:

Have you tried this:

df['A'].str.islower().all()
  • Related