Skip to content

Tag: row

Cut a row from a dataframe and paste it to another dataframe

Hello , i got a DataFrame table let’s call it RC1.It’s at the top. And i got an another table let’s call it Vehicle1.I need to cut RC1 row(0) to the begining of Vehicle1 table.I write my code. zero_row=rc1.iloc[0,:] vehicle1=pd.concat([zero_row, vehicle1]).reset_index(drop=True) Here is the result, it takes the zero_row as a column.I try to reshape it but failed. I look