Pandas DataFrame concat vs append

后端 未结 4 1298
盖世英雄少女心
盖世英雄少女心 2020-11-28 03:36

I have a list of 4 pandas dataframes containing a day of tick data that I want to merge into a single data frame. I cannot understand the behavior of concat on my timestamps

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 04:23

    One more thing you have to keep in mind that the APPEND() method in Pandas doesn't modify the original object. Instead it creates a new one with combined data. Because of involving creation and data buffer, its performance is not well. You'd better use CONCAT() function when doing multi-APPEND operations.

提交回复
热议问题