Coder Social home page Coder Social logo

rfmweb's Introduction

RFM顧客資料透視

此專案目的只為了學術技術分享,請勿拿來從事不法行為,違者自行負起法律責任

以Python套件bokeh實作出RFM動態網頁。

目錄

事前必要準備

  1. 必須要下載bokeh套件 pip install bokeh

How to Use

  1. 打開console介面,MAC電腦請開啟Ternimel,範例圖片是windows作業系統,以Anaconda prompt開啟。

  1. 複製此專案的位置,並且切換至此。 cd 檔案路徑

  1. 輸入 bokeh serve 專案資料夾名稱 開始執行server,若沒有修改資料夾名稱,那指令會是 bokeh serve showTable

  1. 在網頁輸入 http://localhost:5006/ ,即可進入server網頁。

檔案說明

showTable

實作將csv檔案在網頁上以表格的方式呈現,並且依顏色區隔數字大小。

檔案名稱 說明
templates/index.html 設定html格式,裏頭只有增加css樣式。
insurance.csv 在網頁中呈現的資料。
main.py Python程式碼,bokeh套件的功能都寫在這裡。
theme.yaml bokeh server的環境設定檔案,主要是修改主題相關顏色。

showCricle

將所有的資料,全部都自動以圓餅圖展現出來,並且滑鼠移到上方,能顯示其百分比與真實數量。

檔案名稱 說明
templates/index.html 設定html格式,裏頭只有增加css樣式。
insurance.csv 在網頁中呈現的資料。
main.py Python程式碼,bokeh套件的功能都寫在這裡。
theme.yaml bokeh server的環境設定檔案,主要是修改主題相關顏色。

animatIion

利用網頁動畫,讓品牌的GPS市場定位圖活起來,馬上讓您知道公司位於市場的何處,與競爭對手的距離一目瞭然。

檔案名稱 說明
templates/index.html 設定html格式,裏頭只有增加css樣式。
data.py 創造資料。
main.py Python程式碼,bokeh套件的功能都寫在這裡。
theme.yaml bokeh server的環境設定檔案,主要是修改主題相關顏色。

forSTR

以保險業為例,製作類別型資料的RFM Model。

檔案名稱 說明
templates/index.html 設定html格式,裏頭只有增加css樣式。
cut_dataframe.py 切割RFM資料。
insurance.csv 在網頁中呈現的資料。
main.py Python程式碼,bokeh套件的功能都寫在這裡。
theme.yaml bokeh server的環境設定檔案,主要是修改主題相關顏色。

forINT

以保險業為例,製作數值型資料的RFM Model。

檔案名稱 說明
templates/index.html 設定html格式,裏頭只有增加css樣式。
cut_dataframe.py 切割RFM資料。
insurance.csv 在網頁中呈現的資料。
main.py Python程式碼,bokeh套件的功能都寫在這裡。
theme.yaml bokeh server的環境設定檔案,主要是修改主題相關顏色。

rfmweb's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.