movingclusterlib
This library implements a tool to analyze cluster evolution during the time for a given Pandas dataframe.
Installation
pip install movingclusterlib
Usage example
import numpy as np
from movingclusterlib import GraphAnalizer, gates, plot_clusters
df = ...
# Cluster analysis
ga = GraphAnalizer(
edge_func=gates.And(
gates.TimeWindow(40000),
gates.Equal("a"),
).full_code(),
features={
'ts': np.uint32,
'a': np.int32,
},
)
df['cluster_id'], df['cluster_size'] = ga.process(df)
# Plot 10 biggest clusters on a diagram
plot_clusters(df['ts'], df['cluster_id'], df['cluster_size'], size=10)
Metadata
Release files for movingclusterlib 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| movingclusterlib-0.1.2.tar.gz | 3.0 kB | Without provenance | Details for movingclusterlib-0.1.2.tar.gz |
Release files / movingclusterlib-0.1.2.tar.gz
| Download URL | movingclusterlib-0.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2f8ec2c7d85d82ec5d12773a15fec09fdafcc245f5ae1dfd92eb759a151594d
|
|
BLAKE2b-256 checksum How to use checksums |
0899b93ff0d64418668a70baea55d9c8d2cf27321d8649f94bcb3a1dbd30c6be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for movingclusterlib 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.