I am trying to select the first 3 distinct points in a column excluding the first 0 point. I need distinct points to perform polynomial regression.
My_column:
A = np.array([0, 0.5, 0, 0 ,1.0, 2.0])
Expected:
B = np.array([0, 0.5, 0.0, 1.0])
Essentially I want to skip over one 0 and select the 1.0 instead.