outer-join

Outer merging two data frames in place in pandas

Outer merging two data frames in place in pandas Question: How can I outer merge two data frames in place in pandas? For example, assume we have these two data frames: import pandas as pd s1 = pd.DataFrame({ ‘time’:[1234567000,1234567005,1234567009], ‘X1’:[96.32,96.01,96.05] },columns=[‘time’,’X1′]) # to keep columns order s2 = pd.DataFrame({ ‘time’:[1234567001,1234567005], ‘X2’:[23.88,23.96] },columns=[‘time’,’X2′]) # to keep …

Total answers: 2