新增欄位
你在上一組練習中建立了一個名為 trunk_stump_diameters 的陣列,將樹幹直徑與樹樁直徑兩個欄位的資料合併成一個 1D 陣列。現在,你要把這個 1D 陣列加入為 tree_census 陣列中的一個欄位。
numpy 已以 np 載入,且 tree_census 與 trunk_stump_diameters 兩個陣列都已可用。
本練習屬於課程
NumPy 入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Print the shapes of tree_census and trunk_stump_diameters
print(____)