O'Reilly logo

Mastering pandas by Femi Anthony

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

Merging and joining

There are various functions that can be used to merge and join pandas' data structures, which include the following functions:

  • concat
  • append

The concat function

The concat function is used to join multiple pandas' data structures along a specified axis and possibly perform union or intersection operations along other axes. The following command explains the concat function:

concat(objs, axis=0, , join='outer', join_axes=None, ignore_index=False,
       keys=None, levels=None, names=None, verify_integrity=False)

The synopsis of the elements of concat function are as follows:

  • The objs function: A list or dictionary of Series, DataFrame, or Panel objects to be concatenated.
  • The axis function: The axis along which the concatenation should be ...

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