Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Churn prediction on BPI data example code request #6

Open
burakbayramli opened this issue Sep 28, 2018 · 0 comments
Open

Churn prediction on BPI data example code request #6

burakbayramli opened this issue Sep 28, 2018 · 0 comments

Comments

@burakbayramli
Copy link

burakbayramli commented Sep 28, 2018

I'd like to share with you the BPI customer data I received from the author WTTI-RNN

Data

This could make an interesting use case of your code. The way to connect the data is:

import pandas as pd, zipfile, os
with zipfile.ZipFile('bpi_visit_churn.zip', 'r') as z:
    df =  pd.read_csv(z.open('bpi_visit.csv'),sep='\s')
df2 = df[df['cid'] == 1076745]
print len(df2)
print df2.tail(10)

It shows

           cid        date
11528  1076745  2015-11-25
11529  1076745  2015-12-02
11530  1076745  2015-12-03
11531  1076745  2015-12-08
11532  1076745  2015-12-09
11533  1076745  2015-12-31

So per customer we get a sorted list of dates, which can be seen as visits. Churn could be used to predict a customer's loyalty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant