Skip to main content

cjourney is a moudle to analyse customer journey in app

Project description

Cjourney

[TOC]

Problem

  • 经常见到使用 sankey, funnel 或者其他一些图片来分析 app 中的 customer journey,但是这些方式聚都是合一段时间的数据,粒度太大且是单向的.

Idea

  • 最近看到了一些东西, Airbnb 的一篇关于 Embedding 的的论文以及 Tensorflow 的图像和文本处理 API. 每个客户的行为都可以编成序列, 用颜色编码行为并进行 Padding, 排序后就可以绘制一张customer journey map. 相似行为的客户序列会聚集在一起形成区域性的色块.

Guide

Install

pip install --user --upgrade cjourney

Use

from cjourney import Cjourney
import pandas as pd

cc = Cjourney()
df = pd.read_parquet('event_test.parquet')
cc.fit_on_actions(df, 'event')
cc.actions_to_sequences(cusid='personid', event='event', timestamp='cdate')
cc.padding(50, sampsize=10000)

cjourney

Next Version

  • 目前版本一行为一个客户的行为序列, 一个像素为一个动作. 下一版本中纵坐标可以替换为秒, 若一个动作持续时间较长, 则会占据多个像素位.

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

cjourney-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file cjourney-0.0.1.tar.gz.

File metadata

  • Download URL: cjourney-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cjourney-0.0.1.tar.gz
Algorithm Hash digest
SHA256 413d0729fc276d586201045a89e95c5cad7052ce117d7b8dcb4ae930cd4073b4
MD5 08f1162244b784e856f7b8784085b5f7
BLAKE2b-256 3d6785892d3884f3b2ed6bc9b9cd06eb0adc588719c4fa094af10a4b1d6b5ee7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page