Skip to main content

corregraphe

Correlation graphs are a great way to visualize and understand the relationship between features of tabular datasets.

This package leverages NetworkX, Scipy and HoloViews to easily draw correlation graphs on any Pandas DataFrame.

Works on numerical columns only for now.

Installation

This project uses Python >= 3.6.

pip install corregraphe

Usage

Example on the Titanic dataset:

import pandas as pd
from corregraphe import CorrelationGraph
df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/titanic.csv")
cg = CorrelationGraph(df)
cg.draw()

Drawing gives this Bokeh figure:

Developer's guide

  • checked with mypy and flake8
  • formatted with black and isort
  • basic functionality is tested with doctest by running python corregraphe/core.py

License

This project is licensed under the MIT License.

MIT License

Copyright (c) 2019 Théo Delecour

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for corregraphe 0.1.1

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

Source distribution (sdist)

Source distribution for corregraphe 0.1.1
File Size Uploaded Provenance Actions
corregraphe-0.1.1.tar.gz 4.0 kB Without provenance Details for corregraphe-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / corregraphe-0.1.1.tar.gz

Download URL corregraphe-0.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f35da9ef00b98e6ee1f1d4fbe6c54faf31db5de9e71b3a6af504857cfd5f2f36
BLAKE2b-256 checksum
How to use checksums
477e56dc6334a325a0fdb2dc94584cc4553e46e40d8c6de3e8e4ec5d5cb4dc16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

Release files / corregraphe-0.1.1-py3-none-any.whl

Download URL corregraphe-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0738c0e7a0b29529e76477d0159ece0dfb72e1509bab31db9262589ea77cc6b6
BLAKE2b-256 checksum
How to use checksums
b439a4ecd3175e2f55a11b16b2dd7f54fa95bd2678e65d95861bd2926c7f0412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

Security for corregraphe 0.1.1

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

0.1.1 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