{"id":2855,"date":"2023-10-17T09:38:58","date_gmt":"2023-10-17T04:08:58","guid":{"rendered":"https:\/\/python-programs.com\/?p=2855"},"modified":"2023-11-10T11:45:02","modified_gmt":"2023-11-10T06:15:02","slug":"find-the-index-of-value-in-numpy-array-using-numpy-where","status":"publish","type":"post","link":"https:\/\/python-programs.com\/find-the-index-of-value-in-numpy-array-using-numpy-where\/","title":{"rendered":"Find the index of value in Numpy Array using numpy.where()"},"content":{"rendered":"

How to find the index of value in Numpy array using numpy.where() in Python ?<\/h2>\n

NumPy or Numerical Python which is a general purpose array processing package and it is used for working with arrays. In python there numpy.where( )<\/code> function which is used to select elements from a numpy array, based on a condition and if the condition is satisfied we perform some operations.<\/p>\n

Syntax : numpy<\/span>.where<\/span>(condition[ , x, y ]<\/span>)<\/pre>\n

Where<\/p>\n