glfeng318 / pyg2

Home Page:https://13kay.github.io/pyg2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[UNMAINTAINED] please check https://github.com/hustcc/PyG2Plot for instead. Or you are rg2 for R library.

pyg2

Overview

rg2 is a wrapper of G2Plot for R.

logo

Installation

see https://github.com/13kay/pyg2/releases/tag/0.1

Installation

import pandas as pd
from pyg2 import bar

df = pd.DataFrame.from_records([
  { 'action': '浏览', 'pv': 50000 },
  { 'action': '加购', 'pv': 35000 },
  { 'action': '下单', 'pv': 25000 },
  { 'action': '支付', 'pv': 15000 },
  { 'action': '成交', 'pv': 8500 },
])
cfg = {
    'width':600,
    'conversionTag': {'visible': True}
}
bar(df,'pv','action',cfg=cfg).title(title='店铺转化率',description='浏览->加购->下单->支付->成交').render()

About

https://13kay.github.io/pyg2/

License:MIT License


Languages

Language:Python 97.0%Language:HTML 3.0%