raise LinAlgError(“SVD did not converge”) LinAlgError: SVD did not converge in matplotlib pca determination May 31, 2023 by Tarik This can happen when there are inf or nan values in the data. Use this to remove nan values: ori_data.dropna(inplace=True)