Sklearn's PCA gives 'wrong' output for last row
问题 I am trying to run data through sklearn's PCA (n_components=2) and find that the y-value of the last row is different to the other values of the same input values. Notably, the input data only consist of two distinct entries and when changing the number of occurrences for an entry the error disappears. Please find the code below to replicate the error. import pandas as pd from sklearn.decomposition import PCA lst1 = [[-0.485886999,0,-0.485886999,-0.485886999,-0.485886999,0,-0.485886999,-0