I have a list of 10 elements and I chose 5 features to create my input and converted the input list to an array; then I applied pca with the number of components=2:
idx = {0, 2, 3, 7, 8}
Input = array([Input[x] for x in idx]).reshape((1, -1))
print (Input.shape) # prints (1, 5)
pca = PCA(n_components=2).fit(Input)
Input = pca.transform(Input)
print (Input.shape) #prints (1, 1)
Why after pca with n_components=2 my input shape is (1,1) and not (1,2) ?