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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for eventchain-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d2360c5d90adad471df1fdae76afe8e2e23d20f0b7b9be0f0367488ef015f3 |
|
MD5 | fd01fe2f1f387a4a1cfc8ff62ff1867d |
|
BLAKE2b-256 | 96a05fa7eb11134e05f12e46e8ccca6fb10d35ba1c18c3c0ff6fbd9f1a27e5cc |