SyntaxFix
Write A Post
Hire A Developer
Questions
You can use any:
any
print any(df.column == 07311954) True #true if it contains the number, false otherwise
If you rather want to see how many times '07311954' occurs in a column you can use:
df.column[df.column == 07311954].count()