I have to datasets, old
and new
. Both should have three columns in common: mmsi
,d
,ts
.
old
mmsi d lat lon ts
0 0 93 40.3601 122.179 1458213600
1 0 93 40.3601 122.179 1458214200
2 0 93 40.3601 122.179 1458214800
3 0 93 40.3601 122.179 1458217200
4 0 93 40.3601 122.179 1458220800
new
mmsi d ts lat lon
0 0 77 1458211800 46.3675533333 48.01107
1 0 77 1458212400 46.3675533333 48.01107
2 0 77 1458213000 46.3675533333 48.01107
3 0 77 1458215400 46.3675533333 48.01107
4 0 77 1458219000 46.3675533333 48.01107
The two sets should have mmsi
,d
,ts
in common, but when I perform a merge, the shape of the resulting data frame is much different than the shape of old
or new
.
Do I use Merge of Join in this instance? How can I combine both dataframes so that I can compare lat
and lon
?