Skip to main content

🧠 CorrPY – Correlation Made Easy

PyPI version Downloads License Python


CorrPY is your lightweight buddy for fast, smart correlation analysis.
Forget just numbers — CorrPY tells you what they mean. 📊✨

Built for data scientists who want insights, not just values.


🚀 Install

pip install corrpy

📦 Quickstart

from corrpy import Corrpy

corrpy = Corrpy()
corrpy.getTotalCorrRelation(df)

✅ Analyze correlation across features
✅ Get trends + easy-to-read interpretations
✅ Go deeper with AI explanations (optional)


🔥 Key Features

  • Numerical vs Numerical — Classic correlations + strength.
  • Object vs Numerical — Category impacts, clear trends.
  • Object vs Object — Categorical association (Chi2).
  • Transitive Trap Alerts — Detect hidden indirect links. 🚨
  • AI-Generated Insights — Explain data like a boss 🧠📜

Methods

  1. getTotalCorrRelation(df, features = ["Correlation", "Pearson", "Distance"], feature = "Correlation", short = False): Pass a pandas DataFrame to get correlation analysis across all columns and get trends, interpretations and score with respect to feature u added in parameter.
  2. getGroupInf(objColumn, numColumn, df): Compute the correlation between the given object column and the given numeric column.
  3. getAllGroupInf(df): Compute the correlation between all object columns and all numeric columns.
  4. checkTransit(firstFeature, secondFeature, ThirdFeature): Check for transitive correlation between three features.
  5. checkTransitForColumn(column, df): Check for transitive correlation between a column and all other columns.

AI-Generated Insights

  1. explainTC(df, feature="Correlation", prompt="null"): Get AI insights for correlation analysis.
  2. explainShift(num1, num2, shiftValue, df, prompt="Explain like a stand-up comedian"): An AI analyst explains the output of shift() like you're in a meeting with your CEO.
  3. explainTransit(num1, num2, df, prompt="Explain like Angry Professor"): Get AI insights for transitive correlation analysis.
  4. explainTransitForcolumn(column, df, prompt="Explain like Oppenheimer"): An AI analyst explains the output of checkTransitForColumn() like you're in a meeting with your CEO.
  5. explainAI(result, prompt="Explain like angry professor"): Get AI insights for any result.
  6. makeReport(self, method="null", df=None, column=None, feature=None, target=None, prompt="Null", size="short", constant=None, first=None, second=None, third=None): Generate a human-like, well-written paragraph suitable for direct pasting into a PowerPoint slide, based on the output of other methods.

🧠 Example Insights

"Age and Fare have a moderate positive correlation.
Pclass has a strong inverse relation with Fare."

✨ Plus visual trends, interpretation tags, and more!


👨‍💻 Author

YellowForest
🔗 GitHub


📄 License

BSD 3-Clause License


⚡ TL;DR

# What CorrPY Gives You
🚀 Quick, meaningful correlation analysis
🤖 AI-driven explanations
🧩 Find hidden patterns
🔥 Detect transitive traps
🎯 Ideal for both beginners and pros

📢 FINAL NOTE:

CorrPY isn't just another EDA tool...
It's your data's best storyteller. 📚🚀


🧹 How to use:

  • README for Quick Start 📑
  • Full GUIDE.md for Deep Dive 📚

Metadata

Release files for Corrpy 0.4.11

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

Source distribution (sdist)

Source distribution for Corrpy 0.4.11
File Size Uploaded
corrpy-0.4.11.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Corrpy 0.4.11
File Interpreter ABI Platform
corrpy-0.4.11-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / corrpy-0.4.11.tar.gz

Download URL corrpy-0.4.11.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cec4d3ef15256bb2c933acfd0357877117a1d3584aa14f98a1d5c239d2ab717f
BLAKE2b-256 checksum
How to use checksums
3243523c460ba13dab854b1fef1bc0b67aaaa2028ee0f07e7471f62f4183f9c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / corrpy-0.4.11-py3-none-any.whl

Download URL corrpy-0.4.11-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be0329c4cf5b08957c5e5dd00b632a3016a5af1d46c174bb93f2d2a8bdadee93
BLAKE2b-256 checksum
How to use checksums
f1a289b1a6e1fd61fc7f599073740231014f64b3169236b1301985b83c1ece3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.4.11 This release

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.5

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.18

2 release files

0.3.17

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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