- 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 11359 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
130 Views
To left-justify elements of an array and set the characters to use for padding, use the numpy.char.ljust() method in Python Numpy. The "width" parameter is the length of the resulting strings. The "fillchar" parameter is the character to use for padding.The function returns an output array of str or unicode, ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
125 Views
To return an array with the elements of an array left-justified in a string of length width, use the numpy.char.ljust() method in Python Numpy. The "width" parameter is the length of the resulting strings. The function returns an output array of str or unicode, depending on input type.The numpy.char module ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
313 Views
To compare and return True if two string arrays are not equal, use the numpy.char.not_equal() method in Python Numpy. The arr1 and arr2 are the two input string arrays of the same shape.Unlike numpy.not_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
1K+ Views
To unpack elements of a uint8 array into a binary-valued output array, use the numpy.unpackbits() method in Python Numpy. The result is binary-valued (0 or 1).Each element of the input array represents a bit-field that should be unpacked into a binary-valued output array. The shape of the output array is ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
237 Views
To pack the elements of a binary-valued array into bits in a uint8 array, use the numpy.packbits() method in Python Numpy. The result is padded to full bytes by inserting zero bits at the end. The axis is set using the axis parameter. The axis is the dimension over which ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
77 Views
To return a list of the words in the string using separator as the delimiter string, use the numpy.char.split() method in Python Numpy −The 1st parameter is the input arrayThe 2nd parameter is the separatorIf maxsplit parameter is given, at most maxsplit splits are done. The function split() returns an ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
104 Views
To return a copy of the string with all occurrences of substring old replaced by new, use the numpy.char.replace() method in Python Numpy −The 1st parameter is the input arrayThe 2nd parameter is the old string to be replacedThe 3rd parameter is the new string to be replaced with the ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
125 Views
To return a copy of an array with the trailing characters removed, use the numpy.char.rstrip() method in Python Numpy. The "chars" parameter is used to set a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. The chars argument ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
285 Views
To return True if two arrays are element-wise equal within a tolerance, use the ma.allclose() method in Python Numpy. This function is equivalent to allclose except that masked values are treated as equal (default) or unequal, depending on the masked_equal argument. The "masked_values" parameter is used to set the masked ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
76 Views
To return a copy of an array with the trailing spaces removed, use the numpy.char.rstrip() method in Python Numpy.The numpy.char module provides a set of vectorized string operations for arrays of type numpy.str_ or numpy.bytes_.The chars parameter is a string specifying the set of characters to be removed. If omitted ... Read More