Skip to content

Tag Archives: Python numpy-ndarray

numpy.ndarray.dot() function return the dot product of two arrays. Syntax : numpy.ndarray.dot(arr, out=None) Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn… Read More
numpy.ndarray.flatten() function return a copy of the array collapsed into one dimension. Syntax : numpy.ndarray.flatten(order=’C’) Attention geek! Strengthen your foundations with the Python Programming Foundation Course… Read More
numpy.ndarray.transpose() function returns a view of the array with axes transposed. For a 1-D array this has no effect, as a transposed vector is simply… Read More
numpy.ndarray.itemset() function insert scalar into an array. There must be at least 1 argument, and define the last argument as item. Then, arr.itemset(*args) is equivalent… Read More
numpy.ndarray.tobytes() function construct Python bytes containing the raw data bytes in the array. Syntax : numpy.ndarray.tobytes(order=’C’) Attention geek! Strengthen your foundations with the Python Programming Foundation… Read More
numpy.ndarray.getfield() function return a field of the given array as a certain type. Syntax : numpy.ndarray.getfield(dtype, offset=0) Attention geek! Strengthen your foundations with the Python Programming… Read More
numpy.ndarray.setfield() function Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and… Read More
numpy.ndarray.ndim() function return the number of dimensions of an array. Syntax : numpy.ndarray.ndim(arr) Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn… Read More
numpy.ndarray.size() function return the number of elements in the array. it equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Syntax : numpy.ndarray.size(arr)  Attention… Read More
numpy.ndarray.nbytes() function return total bytes consumed by the elements of the array. Syntax : numpy.ndarray.nbytes(arr) Attention geek! Strengthen your foundations with the Python Programming Foundation Course… Read More
numpy.ndarray.itemsize() function return the length of one array element in bytes. Syntax : numpy.ndarray.itemsize(arr) Attention geek! Strengthen your foundations with the Python Programming Foundation Course and… Read More
Image Steganography is the process of hiding secret data in some image. In this post, we will hide one image inside another and convert it… Read More
With the help of np.as_series() method, we can get a 1-D series from multidimensional array by using np.as_series() method. Syntax : np.as_series(array) Return : Return… Read More
numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__ilshift__we can get the elements… Read More
numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__ixor__we can get the elements… Read More