Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Right Join | Joining Data
Data Manipulation using pandas
course content

Зміст курсу

Data Manipulation using pandas

Data Manipulation using pandas

1. Preprocessing Data: Part I
2. Preprocessing Data: Part II
3. Grouping Data
4. Aggregating and Visualizing Data
5. Joining Data

Right Join

Another type of join is the right one. This join is literally the same as the left join, but with swapped tables (i.e., to perform a right join of table1 to table2 is literally the same as left join of table2 to table1). To perform a right join, set the how = 'right' parameter.

So both data1.merge(data2, on = 'id', how = 'right') and data2.merge(data1, on = 'id', how = 'left') will return the same result (with changed order of columns).

Все було зрозуміло?

Секція 5. Розділ 3
We're sorry to hear that something went wrong. What happened?
some-alt