Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the function np.zeros(3) return?
What does 'zeros' imply?
What is the output of np.ones(5)?
Think about what 'ones' means.
What function creates an array filled with ones?
Think of what the name suggests.
True or False: np.mean() computes the median of the elements in an array.
What is the difference between mean and median?
Create a 2D array of shape (4, 2) filled with random numbers and calculate the mean and standard deviation of all the elements.
What functions allow the generation of random values?
Consider an array with the values from 0 to 10 excluding 5. How would you construct this using NumPy and compute its standard deviation?
How do you filter out specific values from an array?
5 more questions in this section. Enroll free to practise them all.
Enroll free