
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
6K+ Views
To test element-wise for NaT, use the numpy.isnat() method in Python Numpy. It checks the value for datetime or timedelta data type.The condition is broadcast over the input. At locations where the condition is True, the out array will be set to the ufunc result. Elsewhere, the out array will ... Read More

AmitDiwan
667 Views
To test element-wise for NaN, use the numpy.isnan() method in Python Numpy. Returns True where x is NaN, false otherwise. This is a scalar if x is a scalar. The condition is broadcast over the input. At locations where the condition is True, the out array will be set to ... Read More

AmitDiwan
260 Views
To test array values for infiniteness, use the numpy.isinf() method in Python Numpy. The new location where we will store the result is a new array. Returns a boolean array of the same shape as x, True where x == +/-inf, otherwise False.NumPy uses the IEEE Standard for Binary Floating-Point ... Read More

AmitDiwan
3K+ Views
To test array for positive or negative infinity, use the numpy.isinf() method in Python Numpy. Returns a boolean array of the same shape as x, True where x == +/-inf, otherwise False.NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754). Errors result if the second argument is ... Read More

AmitDiwan
98 Views
To return the x1 * 2**x2, element-wise, use the numpy.ldexp() method in Python Numpy. The 1st parameter X1 is the array of multipliers. The 2nd parameter X2 is the array of twos exponents. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of ... Read More

AmitDiwan
651 Views
To extract the fractional and integral parts of a specific array value, use the index value inside the numpy.modf() method. The fractional and integral parts are negative if the given number is negative.The out is a location into which the result is stored. If provided, it must have a shape ... Read More

AmitDiwan
3K+ Views
To cube each element in an array., element-wise, use the numpy.power() method in Python. Here, the 1st parameter is the base and the 2nd exponents. Since, we want the cube, the exponent is 3.Raise each base in x1 to the positionally-corresponding power in x2. x1 and x2 must be broadcastable ... Read More

AmitDiwan
1K+ Views
To power array elements of an array with a given value, use the numpy.power() method in Python. Here, the 1st parameter is the base and the 2nd exponents. The dtype parameter is used to set the output datatype.Raise each base in x1 to the positionally-corresponding power in x2. x1 and ... Read More

AmitDiwan
698 Views
To set the first array elements raised to powers from second array, element-wise, use the numpy.power() method in Python. Here, the 1st parameter is the base and the 2nd exponents.Raise each base in x1 to the positionally-corresponding power in x2. x1 and x2 must be broadcastable to the same shape. ... Read More

AmitDiwan
966 Views
To display the Numerical negative, use the np.negative() method in Python Numpy. The out is a location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible only as ... Read More