Skip to main content

Simplified Chain Analytics

Project description

eventchain

This file will become your README and also the index of your documentation.

Install

pip install eventchain

How to use

Fill me in please! Don’t forget code examples:

import pandas as pd
from eventchain.core import *
visited = pd.read_csv('../data/visited.csv')
purchased = pd.read_csv('../data/purchased.csv')

visited['date'] = pd.to_datetime(visited['date'])
purchased['date'] = pd.to_datetime(purchased['date'])
chain = EventChain(df1=visited, df2=purchased, user_col="user_id", timestamp_col="date", suffix=["landed", "registered"])
chain.first_before_first
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; } .dataframe tbody tr th { vertical-align: top; } .dataframe thead th { text-align: right; } </style>
user_id date_landed date_registered gap
0 1 2018-07-01 2018-07-02 1 days
3 5 2018-07-10 2018-07-11 1 days
4 6 2018-07-07 2018-07-10 3 days
5 8 2018-08-01 2018-08-02 1 days

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

eventchain-0.0.1.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

eventchain-0.0.1-py3-none-any.whl (8.0 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