Get the Most out of Your Array With These Four Numpy Methods

How to Split your Numpy Array Vertically or Find Elements in a Particular Range.

Khuyen Tran
The Startup

--

Motivation

As a data enthusiastic, Numpy is a library that you cannot have in your data science practice. In fact, you often do this every time you start a new data science project.

import numpy as np
import pandas as pd

You probably know (or not) some basic functions of Numpy. Check out this article if you are interested in knowing how to create a random array, an array with the same size, reshape, or shuffle to make the array random.

There are some other methods that are particularly useful but might not be as common. Like splitting the array horizontally, finding the minimum values for every column, finding the number in a particular range, or finding the indices of the sorted array. Let’s find out how we can do that with Numpy.

Photo by Olav Ahrens Røtne on Unsplash

Splitting of Array

--

--