df.append() is not appending to the DataFrame

后端 未结 2 1805
感动是毒
感动是毒 2020-11-30 12:44

I formulated this question about adding rows WITH index, but it is not yet clear to me how/why this happens when there are no indexes:

columnsList=[\'A\',\'B         


        
2条回答
  •  佛祖请我去吃肉
    2020-11-30 13:36

    The statement data.append(sub_data) does not work on its own.

    But the statement data=data.append(sub_data) will work

    Assigning it back solved the issue for me. Good tip not available elsewhere.

提交回复
热议问题