Exercise: Using Numpy and Scipy

This lesson provides a few exercises to test your understanding of the Python basics for analytics.

We'll cover the following

Numpy #

Create a function which takes that numpy 1-D array as input and returns the following (in the same order as listed):

  • Max - Maximum value in the array
  • Std - Measure of variation between the elements of an array
  • Sum - Value obtained as a result of adding all the elements of an array
  • Dot product - Inner product of the vectors

Try to implement the function below. Feel free to view the solution, after giving it a few shots. Good Luck!

Get hands-on with 1200+ tech skills courses.