Don't do THIS Pandas mistake!

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this video, I'm going to show you the pandas mistake that many people make when using groupby and how you can avoid it.

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

The last trick on calculating how much of the data is missing in percentage terms was neat. I have been tripped up by this before and I did the long fix of actually correcting the source data to no longer have the NaN so it would group properly. This is definitely a nice trick to quickly get the totals and then you can worry about if the source data needs correcting.

jonathanlegendre
ะะฒั‚ะพั€

Great video.
Took me a while to discover why my group by were out putting the wrong values.

carlos-ferreira
ะะฒั‚ะพั€

Oh my, these are some tasty tips!
I just found this months later - sorry i missed it, but glad to have it now ๐Ÿ˜Š

bc
ะะฒั‚ะพั€

I am so happy ๐Ÿคฉthat I found this channel! Another short, to the point and very helpful video. Loved the easy percentage calculation! Danke you very much. ๐Ÿ˜ƒ

sandrakyoutube
ะะฒั‚ะพั€

oh, yes, indeed it was helpful. thx!

michalbotor
ะะฒั‚ะพั€

dafaq. I just terrified that didnt know

tayfundogruer
ะะฒั‚ะพั€

Ohh nice... After that tutorial I'm always going to use dropna = False.

shrey
ะะฒั‚ะพั€

hello
your videos are really good thank you very much
please is there any method to email sms to any number in the world for free

michocha
ะะฒั‚ะพั€

Totally true, iโ€™ve faced this issue with pivot tables, thus i used df.fillna at the beginning of the analysis, bro you have really inspired me to learn py..pandas from scratch! Ty!

CameLinis