pandas.Index.append#
- Index.append(other)[source]#
Append a collection of Index options together.
- Parameters:
- otherIndex or list/tuple of indices
Single Index or a collection of indices, which can be either a list or a tuple.
- Returns:
- Index
Returns a new Index object resulting from appending the provided other indices to the original Index.
See also
Index.insert
Make new Index inserting new item at location.
Examples
>>> idx = pd.Index([1, 2, 3]) >>> idx.append(pd.Index([4])) Index([1, 2, 3, 4], dtype='int64')