hard20 pts · first answer countsnumpy
Shape after NumPy broadcasting
What shape does this print?
import numpy as np a = np.zeros((3, 1)) b = np.zeros(4) print((a + b).shape)
Discussion 0
Join free to post in the discussion.
Related questions
- Shape after summing along axis 0Data Scientist
- Labelling orders as high or lowData Scientist
- Values from np.linspaceData Scientist
- Reshaping with -1Data Scientist
- Share of orders above a thresholdData Scientist
- dtype of an array with NaNData Scientist
- Index of the largest valueData Scientist
- Recommended way to make random numbersData Scientist