BaşlayınÜcretsiz Başlayın

Adding rows

The research team has discovered two trees that were left off the tree_census. Your task is to add rows containing the data for these new trees to the end of the tree_census array. The new trees' data is saved in a 2D array called new_trees:

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

numpy is loaded as np, and the tree_census and new_trees arrays are available.

Bu egzersiz

Introduction to NumPy

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print the shapes of tree_census and new_trees
print(____)
Kodu Düzenle ve Çalıştır