3.5 - Useful NumPy Functions
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does the function np.zeros(3) return?
💡 Hint: What does 'zeros' imply?
What is the output of np.ones(5)?
💡 Hint: Think about what 'ones' means.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What function creates an array filled with ones?
💡 Hint: Think of what the name suggests.
True or False: np.mean() computes the median of the elements in an array.
💡 Hint: What is the difference between mean and median?
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a 2D array of shape (4, 2) filled with random numbers and calculate the mean and standard deviation of all the elements.
💡 Hint: 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?
💡 Hint: How do you filter out specific values from an array?
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.