Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

join 3 dataframes by index python

dfs = [df1, df2, df3]
dfs = [df.set_index('name') for df in dfs] #if all index are the same this can be left out
dfs[0].join(dfs[1:])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #join #dataframes #index #python
ADD COMMENT
Topic
Name
7+8 =