Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame({'c1': [True, True], 'c2': [True, False]})
df
Out[2]:
c1 c2
0 True True
1 True False

Default behaviour checks if column-wise values all return True:

In [3]:
df.all()
Out[3]:
c1     True
c2    False
dtype: bool

Specify axis='columns' to check if row-wise values all return True:

In [4]:
df.all(axis='columns')
Out[4]:
0     True
1    False
dtype: bool

Or axis=None for whether every value is True.