Assignment 2 - Numpy Array Operations
This assignment is part of the course "Data Analysis with Python: Zero to Pandas". The objective of this assignment is to develop a solid understanding of Numpy array operations. In this assignment you will:
- Pick 5 interesting Numpy array functions by going through the documentation: https://numpy.org/doc/stable/reference/routines.html
- Run and modify this Jupyter notebook to illustrate their usage (some explanation and 3 examples for each function). Use your imagination to come up with interesting and unique examples.
- Upload this notebook to your Jovian profile using
jovian.commit
and make a submission here: https://jovian.ml/learn/data-analysis-with-python-zero-to-pandas/assignment/assignment-2-numpy-array-operations
NumPy arrays - interesting functions
What is NumPy - Numerical Python ?
NumPy is a special library in Python for working with numerical data. Using NumPy you can create a multidimensional array or a matrix data structure, and perform different mathematical operations on them.
Basic specific feartures of NumPy array are:
- fixed size of NumPy array,
- elements of NumPy array are of the same data type.
There is a large variety of function used for fast operations on arrays, including mathematical, logical, sorting, selecting, linear algebra and statistical operations, and many, many others.
The function listed below represent 5 different chapters of NumPy routines:
- function 1: numpy.frompyfunc - from Functional programming
- function 2: numpy.fromfunction - from Array creation routines
- function 3: numpy.unique - from Array manipulation routines
- function 4: numpy.around - from Mathematical functions
- function 5: numpy.where - from Indexing routines
!pip install jovian --upgrade -q
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
import jovian
jovian.commit(project='numpy-array-operations-assignment-2')
[jovian] Attempting to save notebook..
[jovian] Detected Kaggle notebook...
[jovian] Please enter your API key ( from https://jovian.ml/ ):
API KEY: ········
[jovian] Uploading notebook to https://jovian.ml/nataliia/numpy-array-operations-assignment-2
Let's begin by importing Numpy and listing out the functions covered in this notebook.