Pandas Inner and Outer Joins Tutorial | Python for Data Analysis | Explained using SQL

preview_player
Показать описание
In this video we will learn how to perform inner, left, right and full outer joins in Python Pandas. We will understand the concept using SQL.

Zero to hero(Advance) SQL Aggregation:

Most Asked Join Based Interview Question:

Solving 4 Trick SQL problems:

Data Analyst Spotify Case Study:

Top 10 SQL interview Questions:

Interview Question based on FULL OUTER JOIN:

Playlist to master SQL :

Rank, Dense_Rank and Row_Number:

script:
create table emp(
emp_id int,
emp_name varchar(20),
department_id int,
salary int,
manager_id int,
emp_age int);

insert into emp
values
(1, 'Ankit', 100,10000, 4, 39;
insert into emp
values (2, 'Mohit', 100, 15000, 5, 48);
insert into emp
values (3, 'Vikas', 100, 10000,4,37);
insert into emp
values (4, 'Rohit', 100, 5000, 2, 16);
insert into emp
values (5, 'Mudit', 200, 12000, 6,55);
insert into emp
values (6, 'Agam', 200, 12000,2, 14);
insert into emp
values (7, 'Sanjay', 200, 9000, 2,13);
insert into emp
values (8, 'Ashish', 200,5000,2,12);
insert into emp
values (9, 'Mukesh',300,6000,6,51);
insert into emp
values (10, 'Rakesh',500,7000,6,50);

#pandas #joins #python
Рекомендации по теме
Комментарии
Автор

Glad to see this video Ankit Bhai, please continue this series..!

vishnureddy
Автор

Excellent, Please continue this series.and also parallely explain in sql server also in every python series.

patnamchandana
Автор

Very insightful video, pls continue this series as well with interesting example just like SQL series 👍 It really helps!!

jay_rana
Автор

Excellent Ankit bhai
I would love to see the whole series. Python for data analysis

ahmedtariqsilat
Автор

Hello Sir, I am a great fan of your content. Please emphasize on Python Interview concepts and real time interview scenarios. Many thanks for your time in creating such useful content and lightening people's future.

kavyasurepalli
Автор

Very well explained. Join topic in Pandas was quiet confusing for me, but with your knowledge my concepts are clear now. Thanks Ankit!

shorakhutte
Автор

Hello i want to to know if it was possible to marge two tables on a join condition that other than equality condition for example if i want to join 2 tables on T1.col1<T2.col2 like in Sql ?

sandeepmanjunath
Автор

You are exceptionally good. I am a data analyst in berkadia. I learn a lot from your content.If you could teach us numpy, panda etc like you teach sql. That would be really really great. Always love your content.

krantiabinash
Автор

Please do more videos on Python with SQL sir

anushanr
Автор

I am great fan of u Ankit.U have revolutionized Sql. Similarly if u can create Data Pipeline related stuff using python.It would be great help.
Your's great fan...Regards Fahad

delhilife
Автор

Correct me if I am wrong..It is more like cx_Oracle lib right sir

akshayjoshi
Автор

Bhai aap data analyst interviews me jo case study round hota hey, uss pe b video banao, taaki easy ho crack karne me.

RahulDas-osrg
Автор

Nice and informative, kindly make vedio on Dataframe manipulation i.e. how to filter in pandas.

chitransuprasad
Автор

Thanks ankit. Please continue this series. I have a question. What is the use of using queries in python?

senthilprasad
Автор

Great series! Found it really insightful!
Just a quick question..
If we have multiple joining conditions, how would we implement it in pd.merge?

aldragogaming
Автор

Hi Ankit,
while connecting with odbc with python, there is an error message("module 'pyodbc' has no attribute 'Connect'"). Can you help with the error?

TheVaibhavdang
Автор

superb explanation. But i have a doubt, We can write the sql scripts (All kind of joins) to get the result but why we are doing the operations in the data frame

prakashkrishnan
Автор

Hi! How can we give joining condition?

inderrbajaj
Автор

Can I directly read table from SAS in Juypter notebook? If yes, how ?

Mahesh_