pycorr
v0.1.5
Eine einfache Bibliothek zur Berechnung der Korrelation zwischen Variablen. Derzeit bietet Korrelation zwischen nominalen Variablen.
Basierend auf der statistischen Methodik wie Cramer'v und TschuProws können die Korrelation zwischen kategorialen Variablen messen. Die Fähigkeit, die Korrelation in Form von Heatmap zu zeichnen, wird ebenfalls bereitgestellt.
import pandas as pd
from pycorrcat.pycorrcat import plot_corr, corr_matrix
df = pd.DataFrame([('a', 'b'), ('a', 'd'), ('c', 'b'), ('e', 'd')],
columns=['dogs', 'cats'])
correlation_matrix = corr_matrix(data, ['dogs', 'cats'])
plot_corr(df, ['dogs','cats'] )
Erstellen Sie ein Virtualenv und installieren Sie Abhängigkeiten:
pip install -r requirements.dev.txtpip install -r requirements.txt pre-commit installpre-commit lokal aus, um Dateien zu überprüfen pre-commit run --all-files
Anurag Kumar Mishra - Verbinden Sie sich mit Github oder geben Sie eine Post fallen
Unter der GNU -Lizenz verteilt. Weitere Informationen finden Sie LICENSE .
Github Repo Link https://github.com/mavericksds/pycorr
git checkout -b feature/fooBar ).git commit -am 'Add some fooBar' )git push origin feature/fooBar )