How can you turn numeric data into categorical data? Pandas provides us with a simple solution, namely the "cut" method. In this video, I demonstrate how "cut" works, and compare it with the manual creation of categories.
Пікірлер: 23
@faustopf-. Жыл бұрын
Your passion is contagious! I came here for the pandas cut tutorial, but I also got a motivation boost. Keep up the good work 💪
@ReuvenLerner Жыл бұрын
Thanks! I'm lucky to do something I really enjoy.
@vitoslavАй бұрын
Great vid! Was looking for such comprehensive explanation on .cut method.
@ReuvenLernerАй бұрын
Thanks so much, glad it helped!
@iaroslavd.9163 ай бұрын
Cool explanation. Very clear!
@ReuvenLerner3 ай бұрын
I'm delighted that it helped!
@Kavrizhka4 ай бұрын
thanksfor your explanation!👍
@ReuvenLerner4 ай бұрын
Glad it helped!
@aleksandarpetrovic26322 жыл бұрын
Nice tutorial, thank you!
@ReuvenLerner2 жыл бұрын
You're welcome!
@oguve2789 ай бұрын
Exactly what I was looking for, thanks!
@ReuvenLerner9 ай бұрын
Excellent, glad to hear it!
@MrTkBL6 ай бұрын
great explanation, that helps me a lot, thanks!
@ReuvenLerner6 ай бұрын
I'm delighted to hear it helped!
@sarahzaki032 ай бұрын
Really great
@ReuvenLerner2 ай бұрын
Glad you enjoyed it!
@moxieable2 жыл бұрын
This tutorial will be of immense help. I have a derived dataframe that I have been trying to categorize using python, can I apply the cut method to the entire dataframe? Thank you, Sir
@ReuvenLerner2 жыл бұрын
The Pandas docs say that the argument to pd.cut must be 1-dimensional. So you would have to run pd.cut once for each column you want to translate. Glad the tutorial was helpful!
@moxieable2 жыл бұрын
@@ReuvenLerner this is a tutorial sent from heaven. Thanks
@najsh26 ай бұрын
👍👍👍
@ReuvenLerner6 ай бұрын
Delighted it helped!
@raymondchougam2958 Жыл бұрын
pd.cut() and it's not supposed to be complicated
@ReuvenLerner Жыл бұрын
It's not supposed to be complicated, but many people don't know it exists, and then get flummoxed trying to use it.