I am trying to find the position of the maximum number in a 2D array. i have used .max() to find the max value but how do i find its position?
durhamandy 0
Newbie Poster
Recommended Answers
Jump to PostCan you show what you mean by 2d array as there are many alternatives. Looks from tags that you are using numpy. I am not very familiar with it. I know general way of ziping items together with their indexes and sorting the tuples, but numpy should have optimized functions …
All 4 Replies
TrustyTony 888
pyMod Team Colleague Featured Poster
TrustyTony 888
pyMod Team Colleague Featured Poster
woooee 814
Nearly a Posting Maven
vegaseat 1,735
DaniWeb's Hypocrite Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.