How to filter a pandas DataFrame | 6 HELPFUL METHODS

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

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

  • @aniketmishra9265
    @aniketmishra9265 3 ปีที่แล้ว +6

    Years in, I'm still learning good coding practices. Thank you.
    And amazing tutorial! I was looking for efficient ways to loop through a month worth of timestamps and I found you. Absolutely amazing stuff man.

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

      Thanks Aniket! That means a lot :)

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

    Why youtube algoritm did not show your vídeos to me before? You have made a great job. Even if I know how it's done, your vídeos are so Nice. Congrats.

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

    very rarely I leave comments..usually its just a like.. but this was "awesome"

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

      Thanks you Vinay Suchede! I'm glad you liked it.

  • @mosama22
    @mosama22 7 หลายเดือนก่อน +1

    Thank you 🙂

  • @vicky5548
    @vicky5548 11 หลายเดือนก่อน

    The code is much helpful for filtering data in pandas. Thank you very much

  • @gemini22581
    @gemini22581 6 หลายเดือนก่อน

    Thank u bro..super informative

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

    nice sharing much love

  • @ap5672
    @ap5672 3 ปีที่แล้ว +5

    May I clarify 15:13: is this meant to be df6 instead of df?
    I don't quite understand why this worked: List rows in df (instead of df6), where the column 'Total' in df6 is not null.
    You are basically trying to do a lookup from df_A based on a column in df_B? In this case since df6 is a copy of df it worked. But what if these are not copies of each other. Am I getting confused over nothing?

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

      Good Catch. Yes, that should be df6 not df! Thank you.😀

    • @hubert155
      @hubert155 ปีที่แล้ว

      !!

  • @StalkedHuman
    @StalkedHuman 4 หลายเดือนก่อน

    I have a problem where certain columns that were too long got split into the rext row and conjured None and Nan entiies and misplaced name-stub that should be in first column but was paced in 3rd column. I want to append the stub to the column 1 name of the previous row and then remove the row with the None Nan entiies.

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

    You are saving my life !

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

    really really helpful bro😉

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

    You are a great teacher. Thanks. I will look for more content here!

  • @lakewobegonesbest8725
    @lakewobegonesbest8725 9 หลายเดือนก่อน

    Great video, very helpful!

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

    Thanks a lot, really the best one .

  • @LeonardTRUSCELLO
    @LeonardTRUSCELLO ปีที่แล้ว

    At 5:40, it should be | instead of & for the equivalent code
    PS: thanks for the videos, it is really helpful!

  • @Kristina_Tsoy
    @Kristina_Tsoy ปีที่แล้ว

    Thank you for the great tutorial!

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

    ya de best, thanks!!!

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

    Great video! Many thanks :)

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

    Thanks for the video! How can i get two criterias for the same column? Let's say social science or engineering. I want both values. Thanks.

  • @user-qg4ky1dq7n
    @user-qg4ky1dq7n 2 ปีที่แล้ว

    Please explain how to convert from datetime to unix time

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

    Do you have any video about merging dataframes?

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

    "Passing list-likes to .loc or [] with any missing labels is no longer supported..." ???

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

      Can you paste in the code that you used when you got the error. I get this error every once and a while and usually it means I'm missing a set of [ ] (depending on what you are doing you may need a double set of brackets [[ ]] ), but I would need to see the code to know for sure.

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

    Why major category make equal to social science??