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
Built Distribution
File details
Details for the file clusterysis-1.0.3.tar.gz
.
File metadata
- Download URL: clusterysis-1.0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d83d10ca6dd2a737182091fc1a0e0f3758f20d30a52ded1823b29d1d624f9d76 |
|
MD5 | 3aa94a29ccbaaad0196a178887459585 |
|
BLAKE2b-256 | c074880db7ba45dd603b1b95485ce1babbcf741f85c2478e2bb9060297b16b5b |
File details
Details for the file clusterysis-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: clusterysis-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f6b6e08741f6b848c7352bce9fe474ee64fad011ad7fbf9187a48feb99a025 |
|
MD5 | aa1d28a651cb1181d6e9745b2cc6aa7d |
|
BLAKE2b-256 | 8f0d0d65cc718a538cfdfdbb6349ba30ecf4283aad454fa4bc07837618f535cf |