Pandas Series: append() function

Concatenate two or more Pandas series

The append() function is used to concatenate two or more Series.


Series.append(self, to_append, ignore_index=False, verify_integrity=False)
Pandas Series append image
Name Description Type/Default Value Required / Optional
to_append   Series to append with self. Series or list/tuple of Series Required
ignore_index If True, do not use the index labels. bool
Default Value: False
verify_integrity If True, raise Exception on creating index with duplicates. bool
Default Value: False

Returns: Series - Concatenated Series.


Iteratively appending to a Series can be more computationally intensive than a single concatenate. A better solution is to append values to a list and then concatenate the list with the original Series all at once.


Download the above Notebook from here.

Previous: Create a new view of Pandas Series
Next: Replace Pandas series values given in to_replace with value