bcganalysis

Builds BCG Matrix


Keywords
BCG, Growth, Share, Matrix, Feature, Importance, Clustering
License
MIT
Install
pip install bcganalysis==1.0.1

Documentation

BCG Analysis

I built this package with the objective is to measure in a simple, fast, but effective way, how the key features of an app/webpage impact over the conversion.

It a feature importance analysis, using BCG (Growth-Share) matrix.

This analysis helps to identify key features, grouping or clustering them into 4 different categories, as the BCG matrix states (see link at the bottom for more information).

To install the package, run this command in the terminal: pip install bcganalysAis

We are going to see the following example.

Example

Important: in this package version, you have to input a dataframe, having as columns: User - Converted - [Features]

So the first column has the users, the second one is the 1 - 0 binary column stating is the user converted or not, and then all the features.

Input dataframe example:

import pandas as pd
from bcg_analysis import Generate_BCG

# you can find the toy_dataset.csv file in the example folder in the repo
df_example = pd.read_csv('toy_dataset.csv',sep=';')

df = Generate_BCG(df_example)

# generate the plot
df.plot_bcg()

# generate the table behind the plot
df.df_bcg()

A deeper explanation

https://towardsdatascience.com/analyzing-feature-importance-user-behaviour-and-ux-performance-cbf32d55eff8

About BCG / Growth-Share matrix

https://en.wikipedia.org/wiki/Growth%E2%80%93share_matrix

https://www.feedough.com/what-is-a-bcg-matrix-examples-how-to-guide/

Questions / concact

Please send an email to: mat.eil1991@gmail.com