+1 vote
in NumPy by
mask convert boolean values to number #num = np.arange(1,11)

1 Answer

0 votes
by
mask convert boolean values to number #num = np.arange(1,11)

mask = num>5

print(‘print bigger than 5 numbers’,num[mask]) #5,7,8,9,10

Related questions

0 votes
asked May 21, 2019 in Mathematics by sheetalkhandelwal
0 votes
asked Jan 28, 2020 in Data Handling by rahuljain1
...