1. 学ぶ
  2. /
  3. コース
  4. /
  5. NumPy入門

Connected

演習

行の追加

研究チームは、tree_census から漏れていた2本の木を見つけました。あなたのタスクは、これらの新しい木のデータを含む行を tree_census 配列の末尾に追加することです。新しい木のデータは、new_trees という2次元配列に保存されています。

new_trees = np.array([[1211, 227386, 20, 0], [1212, 227386, 8, 0]])

numpy は np として読み込まれており、tree_census と new_trees の配列が利用可能です。

指示1 / 2

undefined XP
    1
    2
  • tree_census と new_trees の形状を出力し、連結可能か確認します。