Skip to main content

Easily CrossABC analyzer

Project description

crossabc

PyPI PyPI - Python Version Code style: black license

Easily CrossABC analyzer

Usage

from crossabc import CrossABC
import pandas as pd

df = pd.DataFrame(
    data={
        "sales": {"item_1": 30750, "item_2": 29000},
        "profit": {"item_1": 8900, "item_2": 3430}
        }
    )
c = CrossABC(df=df, indicators=["sales", "profit"])
ans_df = c.get_df()

When df is

sales profit
item_1 30750 8900
item_2 29000 3430

and use CrossABC(df, ["sales", "profit"]), now ans_df is

sales profit rank_sales rank_profit
item_1 30750 8900 6 8
item_2 29000 3430 10 10

Build

The source code is currently hosted on GitHub at: https://github.com/hrt0809/crossabc. Binary installers for the latest released version are available at the PyPI.

pip install crossabc

Dependencies

  1. https://numpy.org
  2. https://pandas.pydata.org

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

crossabc-0.1.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

crossabc-0.1.2-py3-none-any.whl (4.8 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