一、案例定位

原書第 1 章的正式 Exercise 要求新增 PivotTable 工作表,建立依 owner 分組、再依 status 比較的電纜數量樞紐分析表,值欄使用 objectid 的「計數」而不是「加總」。

二、學習目標

三、案例情境

原書完整練習使用 01/ch01.csv,但 A 檔正文沒有列出完整樞紐分析結果;完整解答指向書籍 GitHub 的 01/ch01_solution.xlsx。依本知識庫規則,本頁不使用外部 GitHub 取代 A 檔,因此使用原書表 1-2 中實際印出的 6 筆資料作為可重算驗證樣本。

四、開始資料

owner cablesystem region objectid status
AT&T Corp Americas II East Coast 1 In Service
GCI Communication Corp AU-Aleutian Submarine Cable System Pacific Northwest 2 In Service
GU Holdings Inc Curie West Coast 12 In Service
Eversource Energy Eversource HEEC Cable East Coast 13 In Service
GU Holdings Inc Firmina East Coast 14 In Service
GU Holdings Inc Grace Hopper East Coast 15 In Service

五、Excel/R/AI 分析方法

Excel 樞紐分析表設定:

若 Excel 預設為加總,原書要求在值欄設定中把 Sum 改成 Count。

人工智慧可以檢查樞紐配置是否符合問題,但不能根據欄位名稱猜完整資料集的結果。

六、計算結果