The Real Python Podcast cover image

Thinking in Pandas: Python Data Analysis the Right Way

The Real Python Podcast

00:00

Using the Slower Method

In a particular case, you want to process, let's say a particular column that you would say, oh, I want to apply to that, right? Using the slower method. What you're saying here is you could take the data that's in that column. And instead of looping through the data frame and going through those values in each of the columns, is it sort of moving that data into a list comprehension and then putting the data back into the data frame? Yeah, exactly. Like kind of like you're kind of doing a side step. It's maybe, and I think there's a lot of those kind of what I as a software developer would say is a hack

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