Skip to main content

ROI - Return on Investment is an all inclusive package for maketing analytics. The first release focuses on cohort analysis. The plan is to slowly include more analysis, as the package grows.

Installation:


You can install ROI using

pip install roi

Usage:


Example: Cohort Analysis

import pandas as pd
import matplotlib.pyplot as plt
from roi import cohort analysis

# Read dataset 
data= pd.read_csv('/content/data.csv',encoding='latin',parse_dates=['OrderDate'])

#Pass the dataframe to an instance of cohort analysis class and also pass name of the column with UserId and ActivityDate.
analysis = cohort_analysis(input_df=data, ActivityDate='OrderDate', CustomerID='UserId')

## Generate retention heatmap

analysis.plot_retention()

Metadata

Release files for roi 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roi 0.1.2
File Size Uploaded
roi-0.1.2.tar.gz 2.6 kB Details

Release files / roi-0.1.2.tar.gz

Download URL roi-0.1.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c07a46a7f871dbfbb2bdef69009e079485508fcefbbba1ca7e3adc7424d6cc09
BLAKE2b-256 checksum
How to use checksums
9d8d9d3915407bbb650af14eff2e27d36574a63bc4e39fe0c15b40b6e044ea3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.5

1 release file

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page