How I Concatenate Pandas Dataframes

preview_player
Показать описание
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:

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.
Рекомендации по теме
Комментарии
Автор

Great video. Very clear. But please don't fall asleep !

wenkaiyang
Автор

wow so interactive! Keep up the good work!!

sheilaquan