
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
744 Views
To get the fill value, use the ma.MaskedArray.get_fill_value() method in Python Numpy. The filling value of the masked array is a scalar. 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, ... Read More

AmitDiwan
136 Views
To force the mask to hard, use the ma.MaskedArray.soften_mask() method. Whether the mask of a masked array is hard or soft is determined by its hardmask property. The soften_mask() sets hardmask to False.A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, ... Read More

AmitDiwan
393 Views
To compute the differences between consecutive elements of a masked array, use the MaskedArray.ediff1d() method in Python Numpy. The "to_begin" parameter sets the number(s) to prepend at the beginning of the returned differences.This function is the equivalent of numpy.ediff1d that takes masked values into account, see numpy.ediff1d for details.A masked ... Read More

AmitDiwan
179 Views
To compute the differences between consecutive elements of a masked array, use the MaskedArray.ediff1d() method in Python Numpy. This function is the equivalent of numpy.ediff1d that takes masked values into account, see numpy.ediff1d for details.A masked array is the combination of a standard numpy.ndarray and a mask. A mask is ... Read More

AmitDiwan
182 Views
A new array from the set of choices is constructed using the np.ma.choose() method. The mode parameter is set to 'wrap'. If mode='wrap', values greater than n-1 are mapped to n-1; and then the new array is constructed.Given an array of integers and a list of n choice arrays, this ... Read More

AmitDiwan
130 Views
To force the mask to hard, use the ma.MaskedArray.harden_mask() method. Whether the mask of a masked array is hard or soft is determined by its hardmask property. The harden_mask() sets hardmask to True. A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either ... Read More

AmitDiwan
475 Views
To return the length of the masked array, use the ma.MaskedArray.__len__() 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 array of booleans that determines ... Read More

AmitDiwan
117 Views
To return a new array when dtype is different from the current dtype, use the ma.MaskedArray.__array__(dtype) method in Python Numpy. We have set the dtype parameter to be float. 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
398 Views
To return the truth value of an array greater than equal to another element-wise, use the numpy.greater_equal() method in Python Numpy. Return value is either True or False. Returns an output array, element-wise comparison of x1 and x2. Typically, of type bool, unless dtype=object is passed. This is a scalar ... Read More

AmitDiwan
1K+ Views
To return the truth value of an array greater than another element-wise, use the numpy.greater() method in Python Numpy. Return value is either True or False. Returns an output array, elementwise comparison of x1 and x2. Typically of type bool, unless dtype=object is passed. This is a scalar if both ... Read More