Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Create a 1D NumPy array containing numbers 1 to 5.
Use `np.array` to create an array.
What is the output of np.array([1, 2, 3]).mean()?
Consider what the mean of {1, 2, 3} is.
What does the command np.array([5, 10, 15]) do?
Consider what the prefix 'np' indicates.
True or False: An ndarray can contain elements of different data types.
Think about the structure of data in NumPy.
Given two NumPy arrays, a = np.array([1, 2, 3]) and b = np.array([4, 5, 6]), write a function that returns their element-wise product.
Think of how NumPy allows operations on arrays directly.
Create a 2D NumPy array representing a dataset of 3 different plants with 4 features each, and compute the standard deviation of each feature.
Take advantage of NumPy’s abilities to handle multidimensional data.
6 more questions in this section. Enroll free to practise them all.
Enroll free