caasswa
caasswa

Reputation: 521

How to check all values in a column are lowercase?

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.

Upvotes: 0

Views: 762

Answers (1)

Ilia
Ilia

Reputation: 111

Have you tried this:

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

Upvotes: 1

Related Questions