Intro to Pandas: Combining DFs
Lec 9
Objectives
Concat DFs
Concat DFs
pd.concat([df1, df2], axis=0)
The concat() function performs concatenation operations of multiple tables along one of the axis (row-wise or column-wise).
Merge DFs
Merge DFs
pd.merge(df1, df2,
how =’____’, on=’col’)
Resource
Q/A break