Answers for "np.all"

0

np.all

# 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
Posted by: Guest on June-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language