Skip to main content

Correlation graphs with NetworkX

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

corregraphe-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

corregraphe-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file corregraphe-0.1.1.tar.gz.

File metadata

  • Download URL: corregraphe-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for corregraphe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f35da9ef00b98e6ee1f1d4fbe6c54faf31db5de9e71b3a6af504857cfd5f2f36
MD5 79fc111b8692b5d9e5e4cb87c84ba77a
BLAKE2b-256 477e56dc6334a325a0fdb2dc94584cc4553e46e40d8c6de3e8e4ec5d5cb4dc16

See more details on using hashes here.

File details

Details for the file corregraphe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: corregraphe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for corregraphe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0738c0e7a0b29529e76477d0159ece0dfb72e1509bab31db9262589ea77cc6b6
MD5 556dc760b8c24a49716c63c7b1159ffa
BLAKE2b-256 b439a4ecd3175e2f55a11b16b2dd7f54fa95bd2678e65d95861bd2926c7f0412

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page