Pandas pca to reduce number of columns

broken image

weights : array, optional Series weights to use after transforming data according to standardize or demean when computing the principal components. If False, the loadings will have unit inner product. Demeaning data but not standardizing is equivalent to computing principal components from the covariance matrix of data normalize : bool, optional Indicates whether th normalize the factors to have unit inner product. demean is ignored if standardize is True. Using standardized data is equivalent to computing principal components from the correlation matrix of data demean : bool, optional Flag indicating whether to demean data before computing principal components.

broken image

If None, returns the as many as the smaller of the number of rows or columns in data standardize: bool, optional Flag indicating to use standardized data with mean 0 and unit variance. Class PCA ( object ): ''' Principal Component Analysis Parameters - data : array-like Variables in columns, observations in rows ncomp : int, optional Number of components to return.

broken image