I have a list of pandas dataframes as below and would like to concat/merge them so that the values in the shared column are exhaustive between all of the dataframes. What is the best approach?
DF 1:
Col1 | Col2 |
---|---|
BLAH1 | A |
BLAH2 | Z |
DF 2:
Col1 | Col2 | Col3 |
---|---|---|
BLAH2 | Z | B |
BLAH3 | Q | K |
DF 3:
Col1 | Col4 |
---|---|
BLAH2 | C |
BLAH3 | W |
Desired Outcome
Col1 | Col2 | Col3 | Col4 |
---|---|---|---|
BLAH1 | A | NaN | NaN |
BLAH2 | Z | B | C |
BLAH3 | Q | K | W |