How I Concatenate Pandas Dataframes

Published: 30 October 2018
on channel: Learn Pandas
7,242
69

This video will explain how to use the concat function to concatenate multiple data frames. The Pandas library comes with this handy function to glue together or stack together dataframes.

What is Pandas? A Python data analysis library

Aside from merging dataframes which we covered here:
   • Pandas Merge - How I Merge Pandas Dat...  

There is the useful concat function in Pandas. It essentially does the same thing but at least for me it seems to be an easier option than using merge. If I want to place multiple dataframes on top of each other, then I use concat. If I want to place my data side by side, I may just use concat.

A few examples are shown but notice that having common column names will make your life easier. And that is because Pandas is essentially joining the two dataframes. But just try out the Pandas concat function and see where it fits best for you.


Watch video How I Concatenate Pandas Dataframes online without registration, duration hours minute second in high quality. This video was added by user Learn Pandas 30 October 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,242 once and liked it 69 people.