Turn numbers into categories with the Pandas "cut" method

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии •

  • @faustopf-.
    @faustopf-. Год назад +4

    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
      @ReuvenLerner  Год назад

      Thanks! I'm lucky to do something I really enjoy.

  • @vitoslav
    @vitoslav 5 месяцев назад +1

    Great vid! Was looking for such comprehensive explanation on .cut method.

    • @ReuvenLerner
      @ReuvenLerner  5 месяцев назад

      Thanks so much, glad it helped!

  • @torpedoe1936
    @torpedoe1936 3 месяца назад +1

    You are legendary, sir !

  • @iaroslavd.916
    @iaroslavd.916 7 месяцев назад +1

    Cool explanation. Very clear!

    • @ReuvenLerner
      @ReuvenLerner  7 месяцев назад +1

      I'm delighted that it helped!

  • @oguve278
    @oguve278 Год назад +1

    Exactly what I was looking for, thanks!

  • @Kavrizhka
    @Kavrizhka 8 месяцев назад +1

    thanksfor your explanation!👍

  • @aleksandarpetrovic2632
    @aleksandarpetrovic2632 2 года назад +2

    Nice tutorial, thank you!

  • @MrTkBL
    @MrTkBL 10 месяцев назад +1

    great explanation, that helps me a lot, thanks!

    • @ReuvenLerner
      @ReuvenLerner  10 месяцев назад

      I'm delighted to hear it helped!

  • @moxieable
    @moxieable 2 года назад +2

    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
      @ReuvenLerner  2 года назад +2

      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
      @moxieable 2 года назад +2

      @@ReuvenLerner this is a tutorial sent from heaven.
      Thanks

  • @sarahzaki03
    @sarahzaki03 6 месяцев назад +1

    Really great

  • @najsh2
    @najsh2 10 месяцев назад +1

    👍👍👍

  • @raymondchougam2958
    @raymondchougam2958 Год назад +1

    pd.cut() and it's not supposed to be complicated

    • @ReuvenLerner
      @ReuvenLerner  Год назад +1

      It's not supposed to be complicated, but many people don't know it exists, and then get flummoxed trying to use it.