- 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
282 Views
To add a scalar value with each element of a masked Array in-place, use the ma.MaskedArray.__iadd__() 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 ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
353 Views
To replace tab characters by a fixed tabsize in a string array, use the numpy.char.expandtabs() method in Python Numpy. The "tabsize" parameter is used to replace tabs with tabsize number of spaces. If not given defaults to 8 spaces.The function expandtabs() returns a copy of each string element where all ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
80 Views
To return a copy of each string element where all tab characters are replaced by spaces, use the numpy.char.expandtabs() method in Python Numpy. We can also set the "tabsize" parameter i.e. replace tabs with tabsize number of spaces. If not given defaults to 8 spaces.The function expandtabs() returns a copy ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
763 Views
To decode string array values that is already encoded, use the numpy.char.decode() method in Python Numpy. The "encoding" parameter sets the name of the encode used while encoding. The set of available codecs comes from the Python standard library, and may be extended at runtime. The type of the result ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
952 Views
To encode string array values, use the numpy.char.encode() method in Python Numpy. The arr is the input array to be encoded. The "encoding" parameter sets the name of the encode. The set of available codecs comes from the Python standard library, and may be extended at runtime. The type of ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
85 Views
To return a copy of an array with its elements centered in a string of length width, use the numpy.char.center() method in Python Numpy. The width is the length of the resulting strings. The function returns the output array of str or unicode, depending on input types.The numpy.char module provides ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
133 Views
To get the number of elements of the Masked Array, use the ma.MaskedArray.size attribute in Numpy. The array.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value, which returns an instance of np.int_), and may be relevant if ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
202 Views
To get the shape of the Masked Array, use the ma.MaskedArray.shape attribute in Numpy. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it.As with numpy.reshape, one ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
401 Views
To get the dimensions of the Masked Array, use the ma.MaskedArray.ndim attribute in Python 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 valid or ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
228 Views
To return a copy of an array with only the first character of each element capitalized, use the numpy.char.capitalize() method in Python Numpy. The arr is the input array of strings to capitalize. The function returns the output array of str or unicode, depending on input types.The numpy.char module provides ... Read More