
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
294 Views
To reduce a multi-dimensional array along negative axis, use the np.ufunc.reduce() method in Python Numpy. Here, we have used add.reduce() to reduce it to the addition of elements. The axis is set using the "axis" parameter. Axis or axes along which a reduction is performed.The numpy.ufunc has functions that operate ... Read More

AmitDiwan
305 Views
To compare two arrays with some Inf values and return the element-wise minimum, use the numpy.minimum() method in Python Numpy. Return value is either True or False. Returns the minimum of x1 and x2, element-wise. This is a scalar if both x1 and x2 are scalars.Compare two arrays and returns ... Read More

AmitDiwan
759 Views
To reduce a multi-dimensional array, use the np.ufunc.reduce() method in Python Numpy. Here, we have used add.reduce() to reduce it to the addition of elements. The axis is set using the "axis" parameter. Axis or axes along which a reduction is performed.The numpy.ufunc has functions that operate element by element ... Read More

AmitDiwan
142 Views
To reduce a multi-dimensional array, use the np.ufunc.reduce() method in Python Numpy. Here, we have used multiply.reduce() to reduce it to the multiplication of elements. The axis is set using the "axis" parameter. Axis or axes along which a reduction is performed. The negative axis counts from the last to ... Read More

AmitDiwan
632 Views
To return the truth value of an array equal to another element-wise, use the numpy.equal() method in Python Numpy. Return value is either True or False.The function returns an output array, element-wise comparison of x1 and x2. Typically of type bool, unless dtype=object is passed. This is a scalar if ... Read More

AmitDiwan
4K+ Views
To compare two arrays and return the element-wise maximum, use the numpy.maximum() method in Python Numpy. Return value is either True or False. Returns the maximum of x1 and x2, element-wise. This is a scalar if both x1 and x2 are scalars.Compare two arrays and returns a new array containing ... Read More

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

AmitDiwan
271 Views
To compute the truth value of an array XOR another array element-wise, use the numpy.logical_xor() method in Python Numpy. Return value is either True or False. Return value is the Boolean result of the logical XOR operation applied to the elements of x1 and x2; the shape is determined by ... Read More

AmitDiwan
217 Views
To reduce a multi-dimensional array, use the np.ufunc.reduce() method in Python Numpy. Here, we have used multiply.reduce() to reduce it to the multiplication of elements. The axis is set using the "axis" parameter. Axis or axes along which a reduction is performedThe numpy.ufunc has functions that operate element by element ... Read More

AmitDiwan
508 Views
To compare two arrays with some NaN values and return the element-wise minimum, use the numpy.maximum() method in Python NumpyIf one of the elements being compared is a NaN, then that element is returned.If both elements are NaNs then the first is returnedThe latter distinction is important for complex NaNs, ... Read More