numpy.flip() in Python

numpy.flip() in Python The numpy.flip() function is used to reverse the order of elements in an array along the given axis where the shape of the array is preserved, but the elements are reordered. Syntax numpy.flip(m, axis=None) 123...

numpy.unique() in Python

numpy.unique() in Python The numpy.unique() function finds the unique elements of an array and returns the sorted unique elements for the specified array.  Syntax numpy.unique(ar, return_index=False, return_inverse=False, return_counts=False, axis=None) 12345...

numpy.trim_zeros() in Python

numpy.trim_zeros() in Python The numpy.trim_zeros() trims the leading and/or trailing zeros from a 1-D array or sequence. Syntax numpy.trim_zeros(filt, trim='fb') 123  numpy.trim_zeros(filt, trim='fb')  Parameter The numpy.trim_zeros() function consists of...

numpy.resize() in Python

numpy.resize() in Python The numpy.resize() returns a new array with the specified shape. If the new array is larger than the original array, then the new array is filled with repeated copies of a.  Syntax numpy.resize(a, new_shape) 123...

numpy.append() in Python

numpy.append() in Python The numpy.append() function appends the values to the end of an array. Syntax numpy.append(arr, values, axis=None) 123  numpy.append(arr, values, axis=None)  Parameter The numpy.append() function consists of three parameters, which...

numpy.delete() in Python

numpy.delete() in Python The numpy.delete() function returns a new array with sub-arrays along an axis deleted. For 1-D array, this function returns those entries which are not returned by arr[obj]. Syntax numpy.delete(arr, obj, axis=None) 123...

numpy.repeat() in Python

numpy.repeat() in Python The numpy.repeat() function repeats the elements of an array. Syntax numpy.repeat(a, repeats, axis=None) 123  numpy.repeat(a, repeats, axis=None)  Parameter The numpy.repeat() function consists of three parameters, which are as...

numpy.tile() in Python

numpy.tile() in Python The numpy.tile() function constructs an array by repeating the parameter ‘A’  the number of times as specified by the ‘reps’ parameter. Syntax numpy.tile(A, reps) 123  numpy.tile(A, reps)  Parameter The numpy.tile() function consists...

numpy.split() in Python

numpy.split() in Python The numpy.split() function splits an array into multiple sub-arrays. Syntax numpy.split(ary, indices_or_sections, axis=0) 123  numpy.split(ary, indices_or_sections, axis=0)  Parameter ary: This parameter represents the Array to...

numpy.vstack() in Python

numpy.vstack() in Python The numpy.vstack() function stacks the arrays in a sequence vertically (row wise). Syntax numpy.vstack(tup) 123  numpy.vstack(tup)  Parameter tup: This parameter represents the sequence of ‘ndarrays’ where the arrays must have...

Pin It on Pinterest