Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
s1 = pd.Series([2, 3, 4])
s2 = pd.Series([5, 6, 7])
s3 = pd.Series([5, 6, 7], index=[4, 5, 6])
In [3]:
s1.append(s2)
Out[3]:
0    2
1    3
2    4
0    5
1    6
2    7
dtype: int64

In [4]:
s1.append(s3)
Out[4]:
0    2
1    3
2    4
4    5
5    6
6    7
dtype: int64

With ignore_index set to True:

In [5]:
s1.append(s2, ignore_index=True)
Out[5]:
0    2
1    3
2    4
3    5
4    6
5    7
dtype: int64

With verify_integrity set to True:

s1.append(s2, verify_integrity=True) Traceback (most recent call last): ... ValueError: Indexes have overlapping values: [0, 1, 2]