p.271

9. 簡介及比較數據視覺化工具

章節內容

p.272

視覺化的四個重點

溝通的形式

1. 口頭交流

2. 書面交流

3. 物理通信

4. 視覺傳達

p.273

文字與圖表的對比

主頁 > 教育與就業 > 失業率跌至3.5%

失業率跌至3.5%

2023年1月19日

政府統計處公布,去年10月至12月經季節性調整的失業率為3.5%,較9月至11月的3.7%下跌0.2個百分點;就業不足率下跌0.1個百分點至1.5%。

期內總就業人數增加約8,300人至3,665,300人,總勞動人口則減少約4,400人至3,791,300人。

失業人數減少約12,700人至126,000人,就業不足人數也減少約4,400人至55,300人。

按行業分析,與消費及旅遊相關行業合計的失業率下跌0.3個百分點至4.7%。大多數其他行業,尤其是建造業、運輸業和教育業的失業率也下跌。

勞工及福利局局長孫玉菡表示,勞工市場短期內應會繼續改善。隨著政府取消大部分社交距離措施,以及香港與內地逐步通關,本地經濟活動料更顯著恢復,為勞工市場提供進一步支持,但金融狀況收緊可能抵銷部分正面影響。

Hong Kong SAR (China) - Unemployment Rate

$80.00

ADD TO CART

p.273 原掃描圖
p.273 原掃描圖

Hong Kong SAR (China): Unemployment Rate

MnemonicLBR.I.HKG
Unit% 3-mo. M&A, SA
AdjustmentsSeasonally Adjusted
Monthly
DataFeb 20233.3
Jan 20233.4

Series Information

SourceCensus and Statistics Department Hong Kong Special Administrative Region (HKSARG)
ReleaseEmployment Situation - Monthly
FrequencyMonthly
Start Date10/31/1981
End Date2/28/2023
p.274

CKH

長江和記實業有限公司

CK HUTCHISON HOLDINGS LIMITED

(Incorporated in the Cayman Islands with limited liability)

Stock code: 1

Chairman's Statement

Following the strong economic rebound in the second half of 2020, global recovery continued during 2021 helped by the accelerated vaccination rollout programs and easing of lock-downs and economic reopenings in many parts of the world. However, the global recovery was not a smooth journey in 2021 as new COVID-19 variants continued to emerge during the year. Different policy responses in various markets led to operational and cost challenges exacerbated by pandemic-related supply-demand mismatches. Nevertheless, the Group was able to respond nimbly to changing economic and business environments in various sectors and geographies and is able to report pleasing results for the full year.

The Group reported EBITDA and EBIT growth of 15% and 20% respectively in reported currency compared to last year was primarily driven by improvements in the Ports and Retail divisions together with positive underlying results of Cenovus Energy (1) as opposed to significant losses reported by Husky Energy in 2020. The results also benefitted from favourable currency translation impacts, as well as the net impact of one-off items in 2021 as compared to those in 2020. These improvements were partly offset by lower contributions from the Telecommunications division as the operating environment remains challenging, particularly in Italy. In local currencies, the Group's reported EBITDA and EBIT grew 10% and 16% respectively from last year.

Analyses by Core Business Segments

Pre-IFRS 16(1)2021HK$ million%Pre-IFRS 16(1)(2)2020HK$ million%Change%Local currencies change%
Revenue (3)
Ports and Related Services (2)42,2859%32,8658%29%26%
Retail173,60139%159,61940%9%6%
Infrastructure56,10013%52,79213%6%-
CK Hutchison Group Telecom92,57521%90,66322%2%-3%
Hutchison Asia Telecommunications8,7862%9,1472%-4%-5%
Finance & Investments and Others72,03616%58,76015%23%20%
Total Revenue445,383100%403,846100%10%7%
EBITDA (3)
Ports and Related Services (2)15,15713%10,91412%39%35%
Retail16,03414%14,39715%11%9%
Infrastructure29,63627%29,06630%2%-5%
CK Hutchison Group Telecom43,05239%48,54050%-11%-14%
Hutchison Asia Telecommunications2,0362%2,0342%--1%
Finance & Investments and Others5,3125%(8,007)-9%166%165%
Total EBITDA111,227100%96,944100%15%10%
p.275

2021 Total EBIT (2)(3)

Reported: HK$64,744 million

Underlying: HK$59,965 million

Reported

Underlying

Europe

Mainland China

Hong Kong

Asia, Australia & Others (1)

Canada

Finance & Investments and Others

Note 1: Includes Panama, Mexico and the Middle East

Note 2: Prepared under Pre-IFRS 16 basis which is set out in note 1 on page 5

Note 3: The outer pie chart represents EBITDA and EBIT %-mix on a reported basis. The inner pie chart represents underlying EBITDA and EBIT %-mix, which excludes the gain on disposal of tower assets completed in 2021 of HK$25.3 billion, non-cash impairment of goodwill of the Group's Italian telecommunication business of HK$(15.5) billion, impairment charge of Cenovus of HK$(1.5) billion and a non-cash foreign exchange reserve loss of HK$(3.5) billion following the Cenovus-Husky merger

Note 4: Represents EBITDA and EBIT %-mix for Europe on a reported basis

Note 5: Represents EBITDA and EBIT %-mix for Europe on an underlying basis

Reported

Underlying

Ports & Related Services

Retail

Infrastructure

Telecommunications

Finance & Investments and Others

p.276

數據分析用途的視覺化圖表

在數據分析和數據科學領域,數據量是巨大的。我們必須以人性化的方式展示結果。

UnivCourse NameMSDMLNOMAPROGCAPSTORDIGITSECBIGPREPCONDECCOMMVISETHCASEEVAL
CCData Miningxxxxxx
Introduction to Data Sciencexxxx
Dataset Organization and Managementxxxx
Data Science Capstonexxx
NKUData Visualizationx
Data Miningxxxx
Big Dataxxx
Intro to Data Sciencex
Data Analyticsxxx
Data Science Capstonexxxx
OSUIntro to Scientific Visualizationx
Introduction to Data Miningxxxx
URIntroduction to Data Miningxxxx
USFData Visualizationxxxx
Data Miningxxxxxx
Mathematical Modelingxx

Table 10: Mapping of competencies to courses in data science programs

Scatterplot example on diamonds dataset

p.276 原掃描圖
p.276 原掃描圖

p.277

有效數據可視化的關鍵原則

  1. 確定最佳視覺物件 Determine the best visual

  2. 平衡設計 Balance the design

  3. 聚焦關鍵領域 Focus on the key areas

  4. 保持簡單 Keep it simple

  5. 使用模式 Use patterns

  6. 比較方面 Compare aspects

基本圖表種類

條形圖 Bar Chart 用於快速比較不同類別的數據、強調差異、披露歷史高點和低點以及指示趨勢和異常值。

Class 1 Class 2 Class 3 Class 4 Class 5

Section A

Section B

Section C

A Data of number of students in a different Section of different Class

p.278

折線圖 Line Chart 用於視覺化數據趨勢,通常隨時間變化(例如五年內的股價變化或當月的網站頁面瀏覽量)

p.278 原掃描圖
p.278 原掃描圖

餅形圖 Pie Chart 是圓形統計圖形,它被分成不同的切片,以數位比例顯示各數據。

Website Visits

Site Traffic Sources

ORGANIC

SEARCH ENGINE

EMAIL MARKETING

SOCIAL MEDIA

REFERRAL LINK

22%

p.279

直方分佈圖 Histogram 用於匯總離散或連續的數據,並按區間刻度進行測量。

它經常用於以方便的格式可視化數據分佈的重要特徵。Y-軸可以是頻率、出現次數、或其對數。

Height of Students

p.279 原掃描圖
p.279 原掃描圖

分散點圖 Scatter plots 有助於檢查兩個或多個變數之間的關係,揭示一個變數是否是另一個變數的良好預測變數,或者它們是否傾向於獨立變化。

p.279 原掃描圖
p.279 原掃描圖

p.280

數據分析之視覺化工具

matplotlib

seaborn

plotly | Graphing Libraries

plotly | Dash

Power BI

Apache Superset™

p.281

Matplotlib 是 John Hunter(1968-2012)和該專案的眾多貢獻者努力開發的結果。

Matplotlib 是一個為其用戶維護並由其用戶維護的社區專案。

Matplotlib 是數據分析和資料科學行業中最常用的工具。

Matplotlib 是一個全面的視覺化工具,可與 iPython 配合使用。

p.282

Matplotlib Bar Chart 條形圖

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

vaccine = ['1st dose', '2nd dose', '3rd dose', '4th dose']
counts = [6904243, 6779247, 5764953, 675118]
bar_colors = ['tab:blue', 'tab:green', 'tab:orange', 'tab:red']

ax.bar(vaccine, counts, label=bar_labels, color=bar_colors)

ax.set_ylabel('Population with Doses Administered')
ax.set_title('Vaccine Doses Administered')

plt.show()

p.282 原掃描圖
p.282 原掃描圖

⚠️ 本頁有 1 段未能本地執行(#1: NameError: name 'bar_labels' is not defined),原因見 OCR_run_report.md

p.283

Seaborn 是一個高級介面,建基於 Matplotlib 繪製統計圖形。它旨在簡化可視化成複雜數據集的核心部分的編程。

您可以將 Seaborn 視為 Matplotlib 的外掛程式,以簡化編碼和優良設計。

Seaborn 在 Matplotlib 起源的簡單代碼庫中設計得更好,這意味著您必須在使用前安裝兩者。

1 sns.pairplot(penguins, hue="species")

p.283 原掃描圖
p.283 原掃描圖

p.284

Seaborn 的簡化程式碼

1 sns.histplot(data=penguins, x="flipper_length_mm", hue="species", multiple="stack")

<AxesSubplot:xlabel='flipper_length_mm', ylabel='Count'>

p.284 原掃描圖
p.284 原掃描圖

p.285

iii plotly

Plotly 建立於 2012 年,比 Matplotlib 相對新。它集中開發在線/離線數據分析和可視化工具。Plotly 為個人和開發人員提供在線圖形、分析和統計工具,以及能用於 Python、R、MATLAB、Perl、Julia、Arduino 和 REST 的科學圖形庫。

由於其簡單的編碼功能和互動式精心設計的圖形可視化,用戶群體正在快速增長!

iii plotly | Graphing Libraries

Plotly's Python graphing library 製作互動式、出版品質的圖表。在本章中,我們將重點介紹此模組的數據分析。

iii plotly | Dash

Dash 是用於使用 Python、R、Julia 和 F#(實驗性)快速構建數據應用的原始低代碼框架。

Dash 基於 Plotly.js 和 React.js 編寫,非常適合構建和部署具有自定義使用者介面的數據應用程式。它特別適合任何處理數據的人。

p.286

plotly 最方便的好處之一是它關於懸停的互動式數據。大大增加了展示性。

fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", size='petal_length', hover_data=['petal_width'])
2
fig.show()

p.286 原掃描圖
p.286 原掃描圖

⚠️ 本頁有 1 段未能本地執行(#1: NameError: name 'df' is not defined. Did you mean: 'yf'?),原因見 OCR_run_report.md

p.287

+ableau

Tableau 是用於數據分析和商業智慧的領先數據可視化工具。

它也是一個儀錶板環境可視化工具。

Tableau 特色

  1. Tableau 支援強大的數據發現和探索功能,使用戶能夠在幾秒鐘內回答重要問題

  2. 不需要先驗程式設計知識;沒有相關經驗的使用者可以立即開始使用 Tableau 創建可視化效果

  3. 它可以連接到其他 Business Intelligence BI 工具 不支援的多個資料來源―。Tableau 使用戶能夠通過聯接和混合不同的數據集來創建報表

Tableau Server 支援集中位置來管理組織內所有已發佈的數據源

Tableau 通過完全集成的數據管理和治理、可視化分析和數據故事講述以及協作,推動更好的業務成果,所有這些都是 Salesforce 行業領先的內置功能。

p.287 原掃描圖
p.287 原掃描圖

p.288

Tableau Desktop 交付以訪問、視覺化和分析您的資料。通過直觀的拖放介面,您可以發現隱藏的見解,從而更快地做出有影響力的業務決策。

p.288 原掃描圖
p.288 原掃描圖

p.289

Superset 快速、輕量級、直觀,並載入了各種選項,使所有技能的使用者都可以輕鬆流覽和可視化他們的數據,從簡單的折線圖到高度詳細的地理空間圖表。

特色:

  1. 儀錶板創建

  2. 企業身份驗證(OpenID、LDAP、OAuth 等)

  3. 與 Apache ECharts 集成

  4. 輕量級語義層

  5. 可視化外掛程式支援

  6. 與大多數使用 SQL 的數據源相容

p.289 原掃描圖
p.289 原掃描圖

使用數據可視化數位探索數據。

通過互動式儀錶板查看數據

使用 SQL Lab 編寫查詢以瀏覽數據

p.290

Power BI

Microsoft

Power BI 由 Microsoft 創建。Power BI 是一個統一、可縮放的自助服務和企業商業智慧(BI)平臺。連接並視覺化注入應用。

輕鬆連接、建模和視覺化數據,創建具有 KPI 和品牌個人化的令人難忘的報告。甚至獲得 AI 驅動的業務問題的快速答案。

p.290 原掃描圖
p.290 原掃描圖

在相同的數據上輕鬆協作,協作處理報表,並在流行的 Microsoft Office 應用程式(如 Microsoft Teams 和 Excel)之間共用見解,以快速做出數據驅動的決策,從而推動戰略行動。

p.290 原掃描圖
p.290 原掃描圖

p.291

Power BI: MS Office 般的介面

p.291 原掃描圖
p.291 原掃描圖

p.292

Python 相容

matplotlib

seaborn

il plotly | Graphing Libraries

il plotly | Dash

獨立運作

Superset

Power BI

参考资料:

• https://matplotlib.org/

• https://seaborn.pydata.org/

• https://plotly.com/graphing-libraries/

• https://dash.plotly.com/

• https://www.tableau.com/

• https://superset.apache.org/

• https://powerbi.microsoft.com/

← 第 8 章 Pandas 套件課程總覽第 10 章 Matplotlib 套件 →