Index.append() is used to add one or a set of indexes together ... In the case of a collection of indices, they are all appended to the original index in the same order in which they are passed to
Index.append () . The function returns the added index.
Syntax: Index.append (other)
other: Index or list / tuple of indices
Returns: appended: bool or array_like (if axis is specified)
A single element array_like may be converted to bool.
Example # 1: Use
Index.append () to add a separate index to the given index.
Let`s add a df2 index at the end of df1.
As we see in the output, the second index, i.e. df2 was added at the end of df1 .
Example # 2: Use
Index.append () to add the index collection at the end of the given index.
Let`s add both df2 and df3 indices at the end of df1 . p>