Tools for user trajectories analysis in the app (python package)
- To install Python package from github, you need to clone that repository.
git clone git@github.com:appintheair/retentioneering-framework.git
or
git clone https://github.com/appintheair/retentioneering-framework.git
- Install dependencies from requirements.txt file from that directory
sudo pip install -r requirements.txt
- Then just run the setup.py file from that directory
sudo python setup.py install
- Put path to your google cloud credentials and your project name in settings json (example).
"settings": {
"service_account_path": "../credentials.json",
"project": "project"
}
- Now you are ready to do examples.
You can use retentioneering.analysis toolset with your data.
Data should have at least three columns event_name
, user_pseudo_id
, event_timestamp
.
You can put empty dict as settings.
import pandas as pd
from retentioneering import analysis
# your data import
df = pd.read_csv('path to your data')
settings = dict()
analysis.get_desc_table(df, settings=settings)