O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Concatenating data in multiple objects

Concatenation in pandas is the process of combining the data from two or more pandas objects into a new object. Concatenation of the Series objects simply results in a new Series, with the values copied in sequence.

The process of concatenating the DataFrame objects is more complex. The concatenation can be applied to either axis of the specified objects, and along that axis pandas performs relational join logic to the index labels. Then, along the opposite axis, pandas performs alignment of the labels and filling of missing values.

Because there are a number of factors to consider, we will break down the examples for concatenation into the following topics:

  • Understanding the default semantics of concatenation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required