Concatenate a list of pandas dataframes together

前端 未结 4 909
北恋
北恋 2020-11-29 19:44

I have a list of Pandas dataframes that I would like to combine into one Pandas dataframe. I am using Python 2.7.10 and Pandas 0.16.2

I created the list of datafram

4条回答
  •  失恋的感觉
    2020-11-29 20:12

    Given that all the dataframes have the same columns, you can simply concat them:

    import pandas as pd
    df = pd.concat(list_of_dataframes)
    

提交回复
热议问题