Is it possible to append Series to rows of DataFrame without making a list first?

前端 未结 6 1552
萌比男神i
萌比男神i 2021-02-01 01:07

I have some data I\'m trying to organize into a DataFrame in Pandas. I was trying to make each row a Series and append it to the Da

6条回答
  •  死守一世寂寞
    2021-02-01 01:27

    DataFrame.append does not modify the DataFrame in place. You need to do df = df.append(...) if you want to reassign it back to the original variable.

提交回复
热议问题