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.
Пікірлер: 19
@faustopf-.11 ай бұрын
Your passion is contagious! I came here for the pandas cut tutorial, but I also got a motivation boost. Keep up the good work 💪
@ReuvenLerner11 ай бұрын
Thanks! I'm lucky to do something I really enjoy.
@iaroslavd.91620 күн бұрын
Cool explanation. Very clear!
@ReuvenLerner20 күн бұрын
I'm delighted that it helped!
@MrTkBL4 ай бұрын
great explanation, that helps me a lot, thanks!
@ReuvenLerner4 ай бұрын
I'm delighted to hear it helped!
@KavrizhkaАй бұрын
thanksfor your explanation!👍
@ReuvenLernerАй бұрын
Glad it helped!
@oguve2786 ай бұрын
Exactly what I was looking for, thanks!
@ReuvenLerner6 ай бұрын
Excellent, glad to hear it!
@aleksandarpetrovic2632 Жыл бұрын
Nice tutorial, thank you!
@ReuvenLerner Жыл бұрын
You're welcome!
@najsh23 ай бұрын
👍👍👍
@ReuvenLerner3 ай бұрын
Delighted it helped!
@moxieable Жыл бұрын
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
@ReuvenLerner Жыл бұрын
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!
@moxieable Жыл бұрын
@@ReuvenLerner this is a tutorial sent from heaven. Thanks
@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.