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

Let's Play With Arrays in Numpy

If You Missed These Awesome Array Functions?

Hello... There, all the big brains making headway with the big DATA. Something common in all of us is that we are learning. Let's make it fun!

Before we jump on to the functions from Numpy, Numpy rather needs a line of introduction here. So...., NumPy! It's a Python Package (Package is a collection of programs or subroutines with related functionality) called Numerical Python consisting of high-level mathematical and numerical functions and tools designed to work with the numpy array object.

The NumPy Array Object is a powerful data structure which is more convenient and efficient than a python list.

Now this library, NumPy, is so vast that picking up a function is just looking for a needle in a haystack. Let's pick up a few functions you may then use more often.

Note: Each of the functions is explained with two working examples and one in which the function breaks.

  • numpy.where
  • numpy.unique
  • numpy.random.Generator.integers
  • numpy.asarray
  • numpy.ravel

Let's Get Started!

!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Detected Colab notebook... [jovian] Uploading colab notebook to Jovian... Committed successfully! https://jovian.ai/talevish-akha5/numpy-array-operations