To find the first occurrence of a value in an array, I would recommend using `np.where()` as follows:
```
import numpy as np

arr = np.array([1, 2, 3, 3, 5])
index = np.where(arr == 3)[0][0]
```
As the core of NumPy is based on an optimized C implementation, the `np.where()` function is more efficient than the `ndenumerate()` method which is implemented with a loop in Python, especially when the number of elements is high.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence