Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame([[2, 3], [4, 5]], columns=list('PQ'))
df
Out[2]:
P Q
0 2 3
1 4 5

Pandas: Dataframe - append.

In [3]:
df2 = pd.DataFrame([[6, 7], [8, 9]], columns=list('PQ'))
df.append(df2)
Out[3]:
P Q
0 2 3
1 4 5
0 6 7
1 8 9

Pandas: Dataframe - append(df2).

With ignore_index set to True:

In [4]:
df.append(df2, ignore_index=True)
Out[4]:
P Q
0 2 3
1 4 5
2 6 7
3 8 9

Pandas: Dataframe - append(df2) With ignore_index set to True.