PL(Programming Language)/Python

[Python] 판다스 concat, append, join, merge 차이

탱젤 2021. 3. 7. 23:48

Pandas concat vs append vs join vs merge

  • Concat gives the flexibility to join based on the axis( all rows or all columns)

  • Append is the specific case(axis=0, join='outer') of concat

  • Join is based on the indexes (set by set_index) on how variable =['left','right','inner','couter']

  • Merge is based on any particular column each of the two dataframes, this columns are variables on like 'left_on', 'right_on', 'on'

출처: stackoverflow.com/questions/15819050/pandas-dataframe-concat-vs-append

 

Pandas DataFrame concat vs append

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. See details below: da...

stackoverflow.com

 

728x90