The Real Python Podcast cover image

Becoming More Effective at Manipulating Data With Pandas

The Real Python Podcast

00:00

The Problem With Indt Chaining in Python

In place, most of the time copies data. There's a bug to actually deprecate and remove in place from pan is because people think it's doing something that it's not doing. When you do a group by, it actually doesn't give you a data frame and gets you back this lazy group by object. So i'm my next line, after a is to say, aggregate. And i'm going to make a new column called total cells. It's going to sum up the cells columns, and I'm going to have another column called total items that's going to count the cells items tat were sold. That's actually two lines, one for each of those columns

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