Select Rows and Columns in Pandas | Python Tutorial For Beginners | Select Data Conditionally

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

ความคิดเห็น • 19

  • @JacquesSpace
    @JacquesSpace 2 ปีที่แล้ว +1

    Exactly what I was looking for. Thank God I found this video! Whew!!! Thanks for sharing

    • @datagy
      @datagy  2 ปีที่แล้ว

      I’m so glad it was helpful!!

  • @Mrshepism
    @Mrshepism 3 ปีที่แล้ว +1

    Thank you for the help! Appreciate the timestamps as well!

    • @datagy
      @datagy  3 ปีที่แล้ว

      Thanks for the feedback! It’s very helpful.

  • @kbkonatham1701
    @kbkonatham1701 2 ปีที่แล้ว +1

    it is very help full

    • @datagy
      @datagy  2 ปีที่แล้ว

      Thanks!

  • @everything-5251
    @everything-5251 3 ปีที่แล้ว +1

    Thank you bro

    • @datagy
      @datagy  3 ปีที่แล้ว

      No problem! Hope it helped!

  • @FabioRBelotto
    @FabioRBelotto 2 ปีที่แล้ว

    What is the difference of filtering strigh on colum select or using loc method?

  • @IsItBehindTheFridge
    @IsItBehindTheFridge 2 ปีที่แล้ว +1

    This was very helpful. Thankyou

    • @datagy
      @datagy  2 ปีที่แล้ว

      Thank you! :)

  • @lawyewka4726
    @lawyewka4726 2 ปีที่แล้ว +1

    Hello, may I know how to filter to show row starting with specific letter?

    • @datagy
      @datagy  2 ปีที่แล้ว

      Hey there! Great question. You can use:
      df[df[col].str[0] == letter]
      Here, you’re accessing only the first letter of the string and checking if it’s equal to your letter. Hope that helps!

    • @lawyewka4726
      @lawyewka4726 2 ปีที่แล้ว +1

      datagy may I know what’s the function for str[0]

    • @datagy
      @datagy  2 ปีที่แล้ว +1

      With .str you get access to different string functions, and with [0] you’re accessing the first index of the string :)

    • @lawyewka4726
      @lawyewka4726 2 ปีที่แล้ว +1

      @@datagy Oh thanks for the explanation

    • @datagy
      @datagy  2 ปีที่แล้ว

      You’re welcome!

  • @SniperUSMC
    @SniperUSMC 3 ปีที่แล้ว +2

    nice but volume is too low

    • @datagy
      @datagy  3 ปีที่แล้ว

      Thanks for your feedback! I’ll work on that!