Skip to main content

Python Pypi Docs LOC Downloads Downloads License Github Forks Open Issues Project Status Medium Gumroad Colab GitHub repo size Donate

pca is a Python package for Principal Component Analysis. The core of PCA is built on sklearn functionality to find maximum compatibility when combining with other packages. But this package can do a lot more. Besides the regular PCA, it can also perform SparsePCA, and TruncatedSVD. Depending on your input data, the best approach can be chosen. pca contains the most-wanted analysis and plots. Navigate to API documentations for more detailed information. ⭐️ Star it if you like it ⭐️


Key Features

Feature Description Docs Medium Gumroad & Podcast
Fit and Transform Perform the PCA analysis. Link PCA Guide Link
Biplot and Loadings Make Biplot with the loadings. Link – –
Explained Variance Determine the explained variance and plot. Link – –
Best Performing Features Extract the best performing features. Link – –
Scatterplot Create scatterplot with loadings. Link – –
Outlier Detection Detect outliers using Hotelling T2 and/or SPE/Dmodx. Link Outlier Detection Link
Normalize out Variance Remove any bias from your data. Link – –
Save and load Save and load models. Link – –
Analyze discrete datasets Analyze discrete datasets. Link – –


Installation

pip install pca
from pca import pca

Examples

Quick Start Make Biplot
Explained Variance Plot 3D Plots
Alpha Transparency Normalize Out Principal Components
Extract Feature Importance
Make the biplot to visualize the contribution of each feature to the principal components.

Detect Outliers Show Only Loadings
Detect outliers using Hotelling's T² and Fisher’s method across top components (PC1–PC5).

Select Outliers Toggle Visibility
Select and filter identified outliers for deeper inspection or removal. Toggle visibility of samples and components to clean up visualizations.
Map Unseen Datapoints
Project new data into the transformed PCA space. This enables testing new observations without re-fitting the model.

Contributors

Setting up and maintaining PCA has been possible thanks to users and contributors. Thanks to:

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • Yes! This library is entirely free but it runs on coffee! :) Feel free to support with a Coffee.

Buy me a coffee

Metadata

Release files for pca 2.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pca 2.11.0
File Size Uploaded Provenance Actions
pca-2.11.0.tar.gz 44.0 kB Without provenance Details for pca-2.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pca 2.11.0
File Interpreter ABI Platform Actions
pca-2.11.0-py3-none-any.whl Python 3 none any Details for pca-2.11.0-py3-none-any.whl

Total release size: 86.1 kB

Release files / pca-2.11.0.tar.gz

Download URL pca-2.11.0.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c49be690031aa57cd666f4dfc0679d31cb72c10c37520ec7854b0bda3f020080
BLAKE2b-256 checksum
How to use checksums
196255f8a2f69d0c3f730dd39ee4aeaade0e767dc77094475e907ec862ec4aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / pca-2.11.0-py3-none-any.whl

Download URL pca-2.11.0-py3-none-any.whl
Size 42.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe93c88abe7eab5a548771cf2a469bdfa7197d27cce459333c4b44d2d43bdd71
BLAKE2b-256 checksum
How to use checksums
049ef1817322ef40136c2ba820fbd381d552425f9610cd896e42ece9b758c460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for pca 2.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.11.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page