- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 11360 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
82 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
326 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
119 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
113 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
88 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
313 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
80 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
303 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](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
862 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
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
309 Views
To return the greatest common divisor, use the numpy.gcd() method in Python Numpy. The parameters are arrays of values. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).To return the lowest common multiple, use the numpy.lcm() method in Python Numpy. ... Read More