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

Chill DS stuff with Numpy

Sorting, Searching and Counting made easy with Numpy.

Numpy is a python library that provides data strucutres,functions and tools for doing Numerical Computations, easily quickly. And there are so many amazing case studies on their website.

Case Study: The First Image of a Black Hole

Case Study: Discovery of Gravitational Waves

  • function 1 :numpy.sort()
  • function 2 :numpy.concatenate()
  • function 3 :numpy.argmax()
  • function 4 :numpy.count_nonzero()
  • function 5 :numpy.extract()

The recommended way to run this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks.

!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='zero-to-pandas-assignment-2-numpy-array-operations')
[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/aakashkrsingh1/zero-to-pandas-assignment-2-numpy-array-operations

Function-1 numpy.sort() / numpy.argsort()

The sort function basically sorts a numpy array.
argsort returns the indices that would sort the array.