Topics

NumPy

About this topic: Articles tagged __TAG__

Showing 115 articles

Topics

Articles

Showing 115 articles

How-tos How to Save and Load NumPy Array in Python There are 3 methods to save and load a NumPy array in Python, the numpy.savetxt() and numpy.loadtxt() functions, the numpy.tofile() and numpy.fromfile() functions, and the … How-tos How to Calculate the Mode of Array in NumPy There are many ways to calculate the mode of array in NumPy, and we are going to discuss them all in this article. How-tos How to Slice 2D Array in NumPy There are several methods that we can utilize if we want to slice a 2-dimensional sub-array from a 2-dimensional array in Python. These methods include array indexing and … How-tos How to Replace Values in NumPy There are three main methods that can be used to replace values inside a NumPy array in Python, the numpy.clip() function, the numpy.minimum() function, and the indexing method. How-tos How to NumPy Shuffle Two Arrays There are three main methods that can be used to shuffle two corresponding arrays in Python, the sklearn.utils.shuffle() function, the numpy.random.shuffle() function, and the … How-tos How to Get Combinations of Two Arrays in NumPy There are three main methods that can be used to find the cartesian product of two NumPy arrays in Python, the itertools.product() function, the numpy.meshgrid() function, and the … How-tos How to Divide Matrix by Vector in NumPy There are three main methods that can be used to divide a matrix by a vector in Python, the broadcasting method, the transpose method, and the numpy.reshape() function. How-tos How to Shift Array in Python NumPy There are three main methods that can be used to shift an array in Python, the numpy.roll() function, the array slicing method, and the shift() function in scipy library. How-tos How to Implement Bernoulli Distribution Using Python NumPy This tutorial discusses what the Bernoulli distribution is and how to implement it in Python using NumPy. How-tos How to Iterate Over Rows of a Numpy Array in Python This tutorial discusses how to iterate over rows of a NumPy array in Python. How-tos How to Convert Datetime64 to Datetime.Datetime or Timestamp in NumPy This article aims to demonstrate how to convert data between numPy.datetim64, datetime.datetime and Timestamp. How-tos How to Use Axis Argument to Manipulate a NumPy Array in Python This article explains how to work with NumPy axis arguments and see what an axis is in NumPy. We will also learn how to use an axis argument as a powerful operation to manipulate a … Reference Python Numpy.where() Function The numpy where() function checks elements in an input array and generates output as per the condition specified. Reference Python Numpy.mean() - Arithmetic Mean The numpy.mean() function computes the arithmetic mean of an array along the specified axis. Reference Python Numpy.std() - Standard Deviation Function The numpy std() function checks and computes the standard deviation of data in an array along the specified axis. Reference Python Numpy.log() - Logarithm Python numpy.log() function computes the natural logarithm of a numpy array. numpy.log2() and numpy.log10() calculate the logarithm with base 2 and 10. Reference Python Numpy.square() - Square Python numpy.square() function computes the square of a numpy array. Reference Python Numpy.sqrt() - Square Root Python numpy.sqrt() function computes the square root of a numpy array. Reference Python Numpy.linalg.inv() - Inverse Matrix Python numpy.linalg.inv() function computes the inverse of the given matrix. Reference Python NumPy numpy.histogram() Function The Python numpy.histogram() function generates the values of a histogram. Reference Python NumPy numpy.concatenate() Function The Python numpy.concatenate() function concatenates multiple arrays over a specified axis. Reference Python NumPy numpy.shape() Function The Python numpy.shape() function finds the shape of an array. Reference Python NumPy numpy.linalg.norm() Function The Python numpy.linalg.norm() function finds the value of matrix norm or vector norm. Reference Python NumPy numpy.sort() Function The Python numpy.sort() function sorts an array.

← All topics