1.

Which of the following function can be used to combine different vectors so as to obtain the result for each n-uplet?(a) iid_(b) ix_(c) ixd_(d) all of the mentionedThe question was posed to me in final exam.Question is from NumPy topic in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (b) ix_

The best EXPLANATION: Length of the 1D boolean ARRAY MUST coincide with the length of the DIMENSION (or axis) you want to SLICE.



Discussion

No Comment Found

Related InterviewSolutions