append data to column in pan

Solutions on MaxInterview for append data to column in pan by the best coders in the world

showing results for - "append data to column in pan"
Francesca
11 Nov 2017
1In [35]:
2
3df1 = pd.DataFrame.from_items([('A', [1, 2, 3]), ('B', [4, 5, 6])])
4df2 = pd.DataFrame.from_items([('B', [5, 6, 7]), ('A', [8, 9, 10])])
5df3 = pd.DataFrame.from_items([('C', [5, 6, 7]), ('D', [8, 9, 10]), ('A',[1,2,3]), ('B',[4,5,7])])
6df_list = [df1,df2,df3[['A','B']]]
7pd.concat(df_list, ignore_index=True)
8Out[35]:
9    A  B
100   1  4
111   2  5
122   3  6
133   8  5
144   9  6
155  10  7
166   1  4
177   2  5
188   3  7
19