NumPy Tutorials

Python numpy.Argmax

Python numpy.argmax(): Beginners Reference

In this tutorial, we will learn about the numpy.argmax() function in Python. This function returns the indices of the maximum elements in a matrix. The function lets you pass an argument mentioning the axis along….

Numpy.Save() in Python

What is in Python?

In this tutorial, we will explore in Python under the Numpy module in Python. We will learn exactly what it does and how to use it. Let’s get started! is a method that….

Numpy Reshape() Function

The numpy.reshape() function – All you need to get started!

Hey, readers! Today, we will be having a look at one of the most interesting function of Python NumPy module – numpy.reshape() function. So, let us begin! What is numpy.reshape() function? Python NumPy module is….

Python Numpy Where

How to use Python numpy.where() Method

In Python, we can use the numpy.where() function to select elements from a numpy array, based on a condition. Not only that, but we can perform some operations on those elements if the condition is….

Numpy Arange

Python – numpy.arange()

Being a linear sequence generator, the numpy.arange() function is used to generate a sequence of numbers in linear space with a uniform step size. This is similar to another function, numpy.linspace(), which also generates a….

Numpy Linspace

Python – numpy.linspace()

Being a sequence generator, the numpy.linspace() function is used to generate a sequence of numbers in linear space with a uniform step size. Numpy generally can generate sequences using numpy.arange(), but when we use floating-point….

Python Numpy Transpose

NumPy Matrix transpose() – Transpose of an Array in Python

The transpose of a matrix is obtained by moving the rows data to the column and columns data to the rows. If we have an array of shape (X, Y) then the transpose of the….

Numpy Matrix Multiplication

NumPy Matrix Multiplication

NumPy matrix multiplication can be done by the following three methods. multiply(): element-wise matrix multiplication. matmul(): matrix product of two arrays. dot(): dot product of two arrays. 1. NumPy Matrix Multiplication Element Wise If you….

Python Numpy Cumsum

numpy.cumsum() in Python

Python numpy cumsum() function returns the cumulative sum of the elements along the given axis. Python numpy cumsum() syntax The cumsum() method syntax is: cumsum(array, axis=None, dtype=None, out=None) The array can be ndarray or array-like….

Numpy Array To List

Python – Convert NumPy Array to List

We can use numpy ndarray tolist() function to convert the array to a list. If the array is multi-dimensional, a nested list is returned. For one-dimensional array, a list with the array elements is returned…..

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages