1234567891011121314 |
- import pandas as pd
- df1 = pd.DataFrame()
- list1 = [1,2,3,4,5]
- df2 = pd.DataFrame(list1)
- test_df=pd.DataFrame({'name':['张三','李四','王五','张三','李四','王五','张三','六六'],
- 'level':[10,3,8,14,2,3,18,2],
- 'info':['吵闹','安静','中等','吵闹','安静','安静','吵闹','闲散'],
- 'change_times':[1,2,3,1,2,4,9,12]
- })
- print(df1.append(df2))
- temp = df1.append(df2)
- df3 = pd.DataFrame([7,8,9,8,8])
- print(temp.append(df3))
- print(df1.append(test_df))
|