close
0

Concatenate a list of pandas dataframes together

avatar
asked 23-06-2022

4 Answers


0

Try

import pandas as pd
df = pd.concat(list_of_dataframes)
avatar
answered 23-06-2022

0

Use 

df = pd.DataFrame.from_dict(map(dict,df_list))
avatar
answered 23-06-2022

0

Use 

from functools import reduce
reduce(lambda df1, df2: df1.merge(df2, "outer"), mydfs)
avatar
answered 23-06-2022

0

Try

from functors import reduce as reduce
import pandas as pd;
deaf = pd.read_csv("http://www.aol.com/users/data.csv")
for q in range(0, Len(deaf)):
  new = map(lambda x: reduce(pd.concat(x))
avatar
answered 23-06-2022