I have two pandas dataframes.
noclickDF = DataFrame([[0,123,321],[0,1543,432]], columns=[\'click\', \'id\',\'location\'])
clickDF = DataFrame([[1,123,421],[1,154
For future users (sometime >pandas 0.23.0):
You may also need to add sort=True to sort the non-concatenation axis when it is not already aligned (i.e. to retain the OP's desired concatenation behavior). I used the code contributed above and got a warning, see Python Pandas User Warning. The code below works and does not throw a warning.
In [36]: pd.concat([noclickDF, clickDF], ignore_index=True, sort=True)
Out[36]:
click id location
0 0 123 321
1 0 1543 432
2 1 421 123
3 1 436 1543