A package for ABC classification
Project description
ABC classification library
Library is in process of development. It'll be published on pypi.org soon.
Example
Let's say we have dataframe
product | total sold |
---|---|
fade cream | 27000 |
powders | 24000 |
shadows | 18000 |
mascara | 16000 |
lipstick | 6000 |
concealer | 5000 |
sculptors | 4000 |
You can create ABCClasifier object, pass your dataframe to it and call classify method.
abc_clf = ABCClassifier(df)
abc_df = abc_clf.classify('product', 'total sold')
This way you'll get new dataframe with classified products.
product | total sold | class |
---|---|---|
fade cream | 27000 | A |
powders | 24000 | A |
shadows | 18000 | A |
mascara | 16000 | B |
lipstick | 6000 | B |
concealer | 5000 | C |
sculptors | 4000 | C |
You also can use brief_abc method to get aggregated information
abc_clf.brief_abc(abc_df)
class | total sold |
---|---|
A | 69000 |
B | 22000 |
C | 9000 |
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
Close
Hashes for abc_classification-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c9a782ebb5ee467df6e84f45f1d79ffe6d6373ffaa8ce0c32984e3b455f107 |
|
MD5 | 99544f04eb8942cf17f95dc797813b8c |
|
BLAKE2b-256 | 3dfcb609ba6cadd687bfab3bda5c293d53c792589f03551d18e0f30ea8fce110 |