A = np.array([[1,2],[1,1],[1,3],[2,5],[2,6],[2,7]])
def por(x,y):
if (x[0] == y[0]):
return False
else:
return True
for i in range(6):
for j in range(6):
if (por(A[i],A[j]) == False) and i != j:
A[j] = [0,0]
print(A,”\n”)
A=A[~np.all(A==0,axis=1)]
print(A)