# np.all checks if all of the elements along an axis evaluate to true
a = [x for x in range(0, 10)]
b = np.array(a)
print(np.all(a ==b))
# output is True
np.all([[True,False],[True,True]])
False
df = pd.DataFrame({'Price':[1, 1.2, 1.6, 2.4, 3.5]})
if df['Price'].all() < 10:
df['Price'] = df['Price'] * 10
print(df)
#output
#
# Price
#0 10.0
#1 12.0
#2 16.0
#3 24.0
#4 35.0
np.all([[True,False],[True,True]], axis=1)
array([ True, False])