Learn practical skills, build real-world projects, and advance your career

Assignment 2 - Numpy Array Operations

Numpy - A Python library.

Introduction

Numpy stands for Numerical Python. It consists of multidimensional array objects and a collection of routines for proccessing of arrays. Mathematical and logical operations can be performed on arrays using Numpy. Some basic Numpy functions are as follows:

  • numpy.full(shape, fill_value, dtype=None, order='C')
  • numpy.arange([start,] stop[, step,][, dtype])
  • numpy.unique(ar, return_index=False, return_inverse=False, return_counts=False, axis=None)
  • numpy.trim_zeros(filt, trim='fb')
  • numpy.sort(a, axis=-1, kind=None, order=None)
!pip install jovian --upgrade -quit
Usage: pip install [options] <requirement specifier> [package-index-options] ... pip install [options] -r <requirements file> [package-index-options] ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... no such option: -u
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Attempting to save notebook.. [jovian] Updating notebook "ahsan-masood/numpy-array-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/ahsan-masood/numpy-array-operations

Let's begin by importing Numpy and listing out the functions covered in this notebook.