I want to merge many dataframes with 2 columns each: one common column teams, rows numbers in each dataframe is different, and teams can be present in different number of dataframe or all of them.
#df1
team_col pattern_A
team_1 1
team_3 1
team_4 1
#df2
teams_col pattern_B
team_1 1
team_2 1
#df3
team_col pattern_C
team_2 1
team_4 1
team_5 1
#df4
team_col pattern_D
team_1 1
team_3 1
team_5 1
I want a single dataframe with the column teams and all other columns. I want to associate each team with his patterns. Like below
team_col pattern_A pattern_B pattern_C pattern_D
team_1 1 1 0 1
team_2 0 1 1 0
team_3 1 0 0 1
team_4 1 0 1 0
team_5 0 0 1 1