添加列
在上一组练习中,您创建了一个名为 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(____)