Pandas Merge Function | Python Pandas Tutorial #9 | Merge dataframes in Pandas, SQL-Joins in Pandas

preview_player
Показать описание
The Pandas merge function provides functionality similar to SQL joins, allow you to merge dataframes on a single or multiple columns. You'll learn how to create left, right, outer, and inner joins on dataframes and how to apply indicators to your resulting dataframe.

0:00 Introduction
0:38 SQL Join Types
2:50 Pandas Merge Function Overview
5:00 Pandas Merge Function Join Types (Left, Right, Outer, Inner)
6:25 Pandas Merge Function Indicator Argument
7:05 Pandas Merge on Multiple Keys
10:10 Conclusion

Download the datasets here:

Learn Python programming the right way!

----------------------------------------------------------

✅ Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

This was a very good video. The python material I used for a data analytics class was so jumbled and unorganized. I felt I could just jump into this video and got what I needed. I will be merging tomorrow.

johndavis
Автор

I've been binging on your videos due to insomnia and have picked up a lot to the point where I was going to check out your book. However, the link doesn't work.

I do my data analysis in Tableau. The downside is that Tableau is its cost. Licencing makes sharing work expensive for colleagues who need a simple, infrequently updated dataset that they can run at their leisure. Python with packages like pandas is a good fit. Analyses seem to come together easy with this too, and it seems fun to code in Python & Pandas.

legojenn
Автор

Good job my friend, looking forward to see more ♥

majddabour
Автор

i was wondering if you were on LinkedIn?

majddabour
Автор

Hi, this was a very good video. I have been trying merging and still don't know why the merge produces more rows than the larger file.
I have been doing a merge of two excel files one has 1, 017 rows and the other 411. There is a common column that I used. The resulting outer merge should contain 1, 017, but it show 1, 034! Will you be able to explain why this happens?

fschmidkonz