Compute centroids func C3_W1_KMeans_Assignment the

When computing the points as it is suggested in the task hints, I receive an error: IndexError: boolean index did not match indexed array along dimension 0; dimension is 300 but corresponding boolean dimension is 10

when I change the code a little bit, all the tests are passed, but for some reason first two centroids are defined as [nan, nan]

Hi!

Can you send your code to me in a direct message so I can help?