Skip to content

theodcr/corregraphe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

About

๐Ÿ’ƒ Correlation graphs with NetworkX

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages