Skip to main content

A library for visualizing clusters.

Project description

Clusterysis

Clusterysis is a simple tool for a first cluster analysis that helps you visualize the difference between clusters.

Usage:

import clusterysis as cly

Just pass a Dataframe with a cluster column to see several charts.

cly.View(df=df, cluster_col="cluster")

A table with the mean of each quantitative variable:

Cluster composition of each categorical variable:

Boxplot chart for quantitative variables:

Parameters:

df and cluster_col are required, if you want you can explicit which are the quantitative and categorical variables (if you don't it will be assumed strings are categorical and numbers quantitative). You can also ask to highlight a specif cluster.

cly.View(
    df=df,
    cluster_col="cluster",
    cat_cols=["job", "education"],
    quant_cols=["age", "duration"],
    diff_cluster=0
)

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

clusterysis-1.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

clusterysis-1.0.3-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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