code :
import numpy from matplotlib.mlab import PCA file_name = \"store1_pca_matrix.txt\" ori_data = numpy.loadtxt(file_name,dtype=\'float\', comments=\'#\', de
This can happen when there are inf or nan values in the data.
Use this to remove nan values:
ori_data.dropna(inplace=True)