
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
952 Views
To mask an array where greater than a given value, use the numpy.ma.masked_greater() method in Python Numpy. This function is a shortcut to masked_where, with condition = (x > value).A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, indicating that no ... Read More

AmitDiwan
725 Views
To mask an array where equal to a given value, use the numpy.ma.masked_equal() method in Python Numpy. This function is a shortcut to masked_where, with condition = (x == value). For floating point arrays, consider using masked_values(x, value).A masked array is the combination of a standard numpy.ndarray and a mask. ... Read More

AmitDiwan
161 Views
To return input with invalid data masked and replaced by a fill value, use the numpy.ma.fix_invalid() method in Python Numpy. A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, indicating that no value of the associated array is invalid, or an ... Read More

AmitDiwan
182 Views
To convert the input to a masked array conserving subclasses, use the numpy.ma.asanyarray() method in Python Numpy. The function returns the MaskedArray interpretation of the input.If the input is a subclass of MaskedArray, its class is conserved. No copy is performed if the input is already an ndarray. The first ... Read More

AmitDiwan
910 Views
To convert the input to a masked array of the given data-type, use the numpy.ma.asarray() method in Python Numpy. No copy is performed if the input is already an ndarray. If the input data is a subclass of MaskedArray, a base class MaskedArray is returned.The first parameter is the input ... Read More

AmitDiwan
149 Views
To reduce a mask to nomask when possible, use the np.ma.shrink_mask() method in Numpy. A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, indicating that no value of the associated array is invalid, or an array of booleans that determines for ... Read More

AmitDiwan
3K+ Views
To mask rows and/or columns of a 2D array that contain masked values, use the np.ma.mask_rowcols() method in Numpy. The function returns a modified version of the input array, masked depending on the value of the axis parameter.Mask whole rows and/or columns of a 2D array that contain masked values. ... Read More

AmitDiwan
705 Views
To mask rows of a 2D array that contain masked values, use the np.ma.mask_rows() method in Numpy. A mask is either nomask, indicating that no value of the associated array is invalid, or an array of booleans that determines for each element of the associated array whether the value is ... Read More

AmitDiwan
229 Views
To mask columns of a 2D array that contain masked values, use the np.ma.mask_cols() method in Numpy. A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, indicating that no value of the associated array is invalid, or an array of booleans ... Read More

AmitDiwan
117 Views
To return a list of slices corresponding to the unmasked clumps of a 1-D array, use the ma.clump_unmasked() in Python Numpy. A "clump" is defined as a contiguous region of the array. Returns the list of slices, one for each continuous region of unmasked elements in the array.A masked array ... Read More