numpy 1D array: mask elements that repeat more than n times
Q: given an array of integers like [1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5] I need to mask elements that repeat more than N times. The goal is to retrieve the boolean mask array. I …