Skip to content

Category Archives: Python

SunPy is a package for solar data analysis using Python. We will be using this package for analysis of solar data Installation On the command… Read More
The numpy.extract() function returns elements of input_array if they satisfy some specified condition.  Syntax: numpy.extract(condition, array) Parameters :   Attention geek! Strengthen your foundations with the Python… Read More
The numpy.compress() function returns selected slices of an array along mentioned axis, that satisfies an axis. Syntax: numpy.compress(condition, array, axis = None, out = None)… Read More
The numpy.one_like() function returns an array of given shape and type as a given array, with ones. Syntax: numpy.ones_like(array, dtype = None, order = 'K',… Read More
The numpy.ones() function returns a new array of given shape and type, with ones. Syntax: numpy.ones(shape, dtype = None, order = 'C') Parameters :  Attention… Read More
The numpy.put() function replaces specific elements of an array with given values of p_array. Array indexed works on flattened array. Syntax: numpy.put(array, indices, p_array, mode… Read More
The numpy.take() function returns elements from array along the mentioned axis and indices. Syntax: numpy.take(array, indices, axis = None, out = None, mode ='raise') Parameters… Read More
Phyllotaxis/phyllotaxy is the arrangement of leaves on a plant stem & the Phyllotactic spirals form a distinctive class of patterns in nature. The word itself… Read More
The numpy.full_like() function return a new array with the same shape and type as a given array. Syntax :  Attention geek! Strengthen your foundations with… Read More
HMAC is a mechanism for message authentication using cryptographic hash functions. HMAC can be used with any iterative cryptographic hash function, e.g., MD5, SHA-1, in… Read More
This class returns a matrix from a string of data or array-like object. Matrix obtained is a specialised 2D array. Syntax : numpy.matrix(data, dtype =… Read More
numpy.full(shape, fill_value, dtype = None, order = ‘C’) : Return a new array with the same shape and type as a given array filled with… Read More
numpy.tri(R, C = None, k = 0, dtype = ‘float’) : Creates an array with 1’s at and below the given diagonal(about k) and 0’s… Read More
numpy.triu(a, k = 0) : Returns copy of array with upper part of the triangle w.r.t k Parameters : a : input array k :… Read More
numpy.diag(a, k=0) : Extracts and construct a diagonal array Parameters :  a : array_like k : [int, optional, 0 by default] Diagonal we require; k>0 means… Read More