# Tag Archives: Python numpy-arrayManipulation

## NumPy – Fibonacci Series using Binet Formula

All of us are familiar with Fibonacci Series. Each number in the sequence is the sum of the two numbers that precede it. So, the… Read More »

## Splitting Arrays in NumPy

Array splitting can be vertical, horizontal, or depth-wise. We can use functions hsplit(), vsplit() and dsplit() respectively for the same . We can split arrays… Read More »

## numpy.intersect1d() function in Python

numpy.intersect1d() function find the intersection of two arrays and return the sorted, unique values that are in both of the input arrays. Syntax: numpy.intersect1d(arr1, arr2,… Read More »

## numpy.in1d() function in Python

numpy.in1d() function test whether each element of a 1-D array is also present in a second array and return a boolean array the same length… Read More »

## numpy.union1d() function in Python

numpy.union1d() function find the union of two arrays and return the unique, sorted array of values that are in either of the two input arrays.… Read More »

## numpy.setxor1d() function in Python

numpy.setxor1d() function find the set exclusive-or of two arrays and return the sorted, unique values that are in only one (not both) of the input… Read More »

## numpy.setdiff1d() function in Python

numpy.setdiff1d() function find the set difference of two arrays and return the unique values in arr1 that are not in arr2. Syntax : numpy.setdiff1d(arr1, arr2,… Read More »

## Python – Iterate over Columns in NumPy

Numpy (abbreviation for ‘Numerical Python‘) is a library for performing large scale mathematical operations in fast and efficient manner. This article serves to educate you… Read More »

In this numpy.ma.mask_rowcols() function, mask rows and/or columns of a 2D array that contain masked values. The masking behavior is selected using the axis parameter.… Read More »

In this numpy.ma.mask_rows() function, mask rows of a 2D array that contain masked values. This function is a shortcut to mask_rowcols with axis equal to… Read More »

## numpy.tril_indices() function | Python

numpy.tril_indices() function return the indices for the lower-triangle of an (n, m) array. Syntax : numpy.tril_indices(n, k = 0, m = None) Parameters : n… Read More »

## numpy.ix_() function | Python

numpy.ix_() function construct an open mesh from multiple sequences. This function takes N 1-D sequences and returns N outputs with N dimensions each, such that… Read More »

## numpy.ravel_multi_index() function | Python

numpy.ravel_multi_index() function converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index. Syntax : numpy.ravel_multi_index(multi_index, dims, mode… Read More »

## numpy.unravel_index() function | Python

numpy.unravel_index() function converts a flat index or array of flat indices into a tuple of coordinate arrays. Syntax : numpy.unravel_index(indices, shape, order = ‘C’) Parameters… Read More »

## numpy.matlib.empty() function | Python

numpy.matlib.empty() function return a new matrix of given shape and type, without initializing entries. Syntax : numpy.matlib.empty(shape, dtype = None, order = ‘C’) Parameters :… Read More »