[DEV NOTES] How to merge pandas DataFrame objects

Sam Couch
1 min readJan 26, 2018

--

Something that is useful is the ability to take two or more existing pandas DataFrame objects and merge them into a single DataFrame. There are a few ways to accomplish this, but one of the easiest is to simply use the pandas.concat method.

Passing the ignore_index=True parameter tells pandas to clear the existing indices and to reindex the new DataFrame.

--

--