sampleArray = numpy.array([[34,43,73],[82,22,12],[53,94,66]])

Expected Output:

Printing Original array [[34 43 73] [82 22 12] [53 94 66]] Printing amin Of Axis 1 [34 12 53] Printing amax Of Axis 0 [82 94 73]

Solution:

import numpy print("Printing Original array") sampleArray = numpy.array([[34,43,73],[82,22,12],[53,94,66]]) print (sampleArray) minOfAxisOne = numpy.amin(sampleArray, 1) print("Printing amin Of Axis 1") print(minOfAxisOne) maxOfAxisOne = numpy.amax(sampleArray, 0) print("Printing amax Of Axis 0") print(maxOfAxisOne)

total answers (1)

start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.

need an explanation for this answer? contact us directly to get an explanation for this answerSolution: