1.

Point out the wrong statement.(a) A universal function is a function that operates on ndarrays in an element-by-element fashion(b) In Numpy, universal functions are instances of the numpy.ufunction class(c) Many of the built-in functions are implemented in compiled C code(d) All of the mentionedThe question was asked during an interview.My question comes from NumPy in portion Developing Data Products and Working with NumPy of Data Science

Answer»

The correct choice is (b) In NUMPY, universal functions are instances of the numpy.ufunction class

To EXPLAIN I WOULD say: ufunc instances can also be PRODUCED using the frompyfunc factory function.



Discussion

No Comment Found

Related InterviewSolutions