solve the problem : A loop produces multiple single column Dataframe, I want a cycle , Use one Dataframe Put these Dataframe Connect .
The functions that need to be used are pd.contcat,
df2 = pd.DataFrame()
cell_list = [1,2,4,5,6,8]for cell_num in cell_list:
data = data[data['num']==cell_num]
df = pd.DataFrame(data[['Time']])
df.rename(columns={'Time':data_new_columns},inplace = True)
df2 = pd.concat([df2,df],axis=1)
Reference link :https://blog.csdn.net/S_o_l_o_n/article/details/84332299