Pandas functions: merge vs. join vs. concat

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Pandas is very useful but sometimes it could be hard to understand the differences between some functions that work towards similar goals. In this video, let's see how merge, join and concat works and what their differences are.
    RESOURCES:
    🏃‍♀️ Data Science Kick-starter mini-course: www.misraturp.com/courses/dat...
    🐼 Pandas cheat sheet: misraturp.gumroad.com/l/pandascs
    📥 Streamlit template: misraturp.gumroad.com/l/stemp
    📝 NNs hyperparameters cheat sheet: www.misraturp.com/nn-hyperpar...
    📙 Fundamentals of Deep Learning in 25 pages: misraturp.gumroad.com/l/fdl
    COURSES:
    👩‍💻 Hands-on Data Science: Complete your first portfolio project: www.misraturp.com/hods
    🌎 Website - misraturp.com/
    🐥 Twitter - / misraturp
  • Věda a technologie

Komentáře • 62

  • @misraturp
    @misraturp  Před 2 lety +6

    Which Pandas functions would you like me to compare/explain next?

    • @YogiNotTheBear007
      @YogiNotTheBear007 Před 2 lety

      hi, could you please explain cut, apply and map?

    • @misraturp
      @misraturp  Před 2 lety +2

      @@YogiNotTheBear007 Added to the list! Thank you!

    • @arshad1781
      @arshad1781 Před 2 lety

      Make a complete video series A to Z step by step on Data science, Machine learning, Deep learning like hot 🔥 topic

    • @misraturp
      @misraturp  Před 2 lety

      @@arshad1781 Good idea, thanks Arshad!

    • @zulhishamtan4308
      @zulhishamtan4308 Před 5 měsíci

      Merge_asof() is awesome for time series merging. Hope you can consider to make a video for it. Thanks again.

  • @mosama22
    @mosama22 Před 4 měsíci +1

    Do you know what I really LOVE about your videos, you COVER THE WHOLE TOPIC, so if we talking about reshaping for example you mentioned all the 8 functions could be used and then you chose. Having the full picture really helps a lot. Even if you are an expert, going back to your videos, sometimes help remind us what other options do we have, or what other functions we might forget about.

  • @mosama22
    @mosama22 Před 4 měsíci +2

    Thank you for the beautiful videos, I'd just appreciate if you added a link to the data set and the notebook you use for each video please, so we can follow up with you.
    Thanks a million again for the beautiful videos 🙂

  • @bethuelthipe-moukangwe7786

    The lessons about pandas are now making sense to me, especially on how to use groupby, apply ,apply map and lambda function.
    Big thanks Ms Misra Turp.

  • @Xirato95
    @Xirato95 Před rokem

    Thank you for your clear explanations! I love it how you explain it while using a simple example and go through it step by step. I’m new to Python and Pandas library and while looking up different functions the explanations can be a little bit overwhelming. You made this noobie prove! Keep up the good work and much appreciated!

    • @misraturp
      @misraturp  Před rokem

      This is awesome to hear, you're welcome!

  • @oscar-expertprojectmanager6733

    Thank you Misra. Great explanation on the Pandas functions: merge vs. join vs. concat. One comment I would make about using pd.set_options('display.max_rows', None) and pd.set_options('display.max_columns', None); If your dataset is large, you run the risk of crushing your notebook, and you would have to go through a process to fix it.

  • @gaganbhattacharya9890
    @gaganbhattacharya9890 Před 7 měsíci

    I didn't know what does ''left_on & right_on' means in merge & the difference between merge & join but now I understand!
    Thanks!

  • @SESHUNITR
    @SESHUNITR Před rokem

    loved it Misra. clear explanation and a quick reference if we forget.

  • @kentjordan4658
    @kentjordan4658 Před rokem +2

    May you provide the dataset? Thanks! 😄

  • @blackpenny9628
    @blackpenny9628 Před rokem

    great...concise and straight

  • @ahmedalhomeidy
    @ahmedalhomeidy Před rokem

    clear explanation and precise and on to the point, I love it

  • @zulhishamtan4308
    @zulhishamtan4308 Před 5 měsíci

    Thank you for the sharing... Awesome... I learnt a lot...

  • @mariaclaraceballos3488

    thanks for the explanation! what happens if we use the function concat with 2 dataframes that have repeated data, i mean an ID that is in both dataframes?

  • @harishpoalampalli9637
    @harishpoalampalli9637 Před rokem +1

    Hey Turp !! great explanantion !! Is it possibe to provide the data sets !! Thanks

  • @ArunKumar-sc9dl
    @ArunKumar-sc9dl Před 2 lety +1

    Thank you, very simple explanation.

  • @86Maryj
    @86Maryj Před rokem

    Hi can you please help to do pivot with multiple sheets

  • @khemrajpatil5683
    @khemrajpatil5683 Před 2 lety

    Thanks for the vide!. It gives me clarity.

  • @loordgo8772
    @loordgo8772 Před rokem +1

    thanx for the video. what about Merge Conflict? can be detected using Pandas?

  • @ashwinr1407
    @ashwinr1407 Před rokem

    clear and informative ! thanks.

  • @nicknicknick7860
    @nicknicknick7860 Před 2 lety

    Nailed the explanation, thank youu!

  • @kennethstephani692
    @kennethstephani692 Před rokem

    Great video!!

  • @domillima
    @domillima Před rokem

    When you merge left_on='ID', right_on='ID2'.. two columns of different names with the same IDs, is there a way to drop one of these, other than adding .dop(col_name) at the end? thanks

  • @ishanseth4442
    @ishanseth4442 Před 6 měsíci

    Thanks a lot

  • @AmitMishra-xd7yo
    @AmitMishra-xd7yo Před 2 lety

    Thanks! It's pretty useful!

  • @avirajankitjain256
    @avirajankitjain256 Před rokem +1

    Hi , where is the data set?

  • @ahamedsuhails
    @ahamedsuhails Před rokem

    Thank you

  • @vaibhavk2430
    @vaibhavk2430 Před 2 lety

    In streamlit can you implement direction feature like we have in google maps i.e. we choose our starting point and ending point and and there is a direction showing the way

    • @misraturp
      @misraturp  Před 2 lety

      I don't think so but then again I never tried doing that.

  • @batyratayev2230
    @batyratayev2230 Před 9 měsíci

    Thanks @misraturp!

  • @anurajms
    @anurajms Před 9 měsíci

    thank you

  • @abinetayele7901
    @abinetayele7901 Před rokem

    Perfect video.

  • @GregThatcher
    @GregThatcher Před 3 měsíci

    Thanks!

  • @tusharwarade4603
    @tusharwarade4603 Před 9 měsíci +1

    plz add datasets used in this video😊😊

  • @bryan-9742
    @bryan-9742 Před rokem

    I never got sent any of the cheat sheets. Are you sure that links is still functioning?

    • @misraturp
      @misraturp  Před rokem

      Hey Bryan, it should still be working. Could you check your spam folder. I see that someone with the name Bryan submitted the form but never confirmed their email. (Don't want to share the last name here but that could be you). Either way, if you cannot find the mail in your spam folder, you can get it here too: misraturp.gumroad.com/l/pandascs

  • @vijhey3850
    @vijhey3850 Před 2 lety

    wheres video for group by ()?

  • @arshad1781
    @arshad1781 Před 2 lety

    Nice 👍

  • @busrauygun1158
    @busrauygun1158 Před rokem

    Videolarınıza Türkçe altyazı ekleseniz Türkler de bu nimetten faydalansa çok güzel olmaz mı

  • @sanooosai
    @sanooosai Před rokem

    rocker

  • @chethanhv3125
    @chethanhv3125 Před rokem

    thanks @misra Turp

  • @vigneshm4916
    @vigneshm4916 Před 2 lety

    Great video !