Explain NumPy broadcasting and its rules
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.What is broadcasting in NumPy?
- State the rules.
- Which of these work, and what is the result shape?
(5, 3) - (3,),(5, 3) - (5,),(3, 1) + (1, 4). - What hidden cost can broadcasting have?