NumPy - Indexing and Slicing
Which of the following is the correct syntax to use
np.where() to select elements from arrays a and b based on condition cond?np.where() to select elements from arrays a and b based on condition cond?np.where(condition, x, y) where elements from x are chosen if condition is True, else from y.np.where(cond, a, b). Others mix the order incorrectly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions