Re:NumPy Illustrated: The Visual Guide to NumPy
by giu on Tuesday December 29, 2020 @04:01AM
(#25568015)
Very good point. Additionally, with insert and delete we might need to apply the rules of broadcasting [0].
For example, if I have a 2-dimensional array and I insert a scalar value by using axis=0, the scalar value needs to be broadcasted to match the column dimension of the array:
For example, if I have a 2-dimensional array and I insert a scalar value by using axis=0, the scalar value needs to be broadcasted to match the column dimension of the array:
[0] https://jakevdp.github.io/PythonDataScienceHandbook/02.05-co...