What is the output of new_var?
dataset = np.array(['paul', 'jacob', 'vince', 'paul', 'miky', 'jacob', 'warren'])
new_var = (dataset == 'paul') | (dataset == 'jacob')
ans = [ True True False True False True False]
How ?
What is the output of new_var?
dataset = np.array(['paul', 'jacob', 'vince', 'paul', 'miky', 'jacob', 'warren'])
new_var = (dataset == 'paul') | (dataset == 'jacob')
ans = [ True True False True False True False]
How ?