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.10.3

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.10.3
File Size Uploaded Provenance Actions
pca-2.10.3.tar.gz 38.2 kB Without provenance Details for pca-2.10.3.tar.gz

Built distribution (wheel)

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

Total release size: 73.9 kB

Release files / pca-2.10.3.tar.gz

Download URL pca-2.10.3.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
93e9c277bbfe8a552de4182a53d180a8c0b3e5b238c7cd9964ab833564ae807b
BLAKE2b-256 checksum
How to use checksums
200f5cfff0e64404225269b5e6f01112ac1fbb6dd04a4335f5bba91bffcd149c
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.10.3-py3-none-any.whl

Download URL pca-2.10.3-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50a93078182bbc69fb0bab1786ca1812f30563d50897f598794329fc1335df2e
BLAKE2b-256 checksum
How to use checksums
5068d66f617a51617f018e8f97a3125d80f9c27a5b2971e98f694831d941620e
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.10.3

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.10.3 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