The Real Python Podcast cover image

Using NumPy and Linear Algebra for Faster Python Code

The Real Python Podcast

00:00

Broadcasting Is Like Stretching Magic Under the Hood

Numpy can sort of do some magic under the hood, where it sort of implicitly creates those copies. It's sort of like stretches out the size of the data frame. So it sort of fills in those copies. And it then can do the subtraction for you. Broadcasting is a little bit difficult to explain. But yeah, there's certain conditions under which it can work. We'll have a link for that in the episode notes.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app