Solution: NumPy Essentials
Let’s look at the solution to the exercise related to NumPy essentials.
We'll cover the following
Perform the following tasks:
- Generate a vector array of 25 numbers using
arange()
. - Write a code to convert the vector array into a 2-D matrix using reshape.
- Add a scalar value to all the values in the array.
- Return the array.
Solution
Get hands-on with 1400+ tech skills courses.