Merging datasets

Merging datasets#

Learning Objectives#

After working through this topic, you should be able to:

  • Use pd.concat to combine DataFrames vertically or horizontally

  • Use pd.merge to combine DataFrames

  • Use the how argument to determine which rows are kept

  • List different types of joining data

Materials#

Video:

Download the slides.

The Pandas tutorial on merge, join, and concatenate may be helpful.

Quiz#