我有几个希望合并的熊猫数据框,但是:
该如何处理?
例如:
DF1:
date name observation measurement result notes
2016-08-12 this thing another 1 3 alright
2016-08-12 thing too bother 1 3 good
2016-08-13 another not great 0 0 weird
...
2017-12-29 else this thing 2 2 no way
2018-01-04 not great bother 4 1 lucky
2018-01-04 another this thing 1 1 good
DF2:
Date col1 col2 alpha delta stuff
2016-08-12 this another 1 3 87
2016-08-12 thing too bother 1 3 42
2018-04-28 not else this 2 2 31
2017-12-29 not else this 2 2 90
2018-01-04 another this 1 1 13
2016-08-13 another not great 0 0 23
...
所需结果:
mergedDF:
date name observation measurement result notes stuff
2016-08-12 this thing another 1 3 alright 87
2016-08-12 thing too bother 1 3 good 42
2016-08-13 another not great 0 0 weird 23
...
2017-12-29 else this thing 2 2 no way 90
2018-01-04 not great bother 4 1 lucky 0
2018-01-04 another this thing 1 1 good 13
预先感谢