有 2 个数据帧,其在 2 个不同时间的读数为:
DF1
Sensor ID Reference Pressure Sensor Pressure
0 013677 100.15 93.18
1 013688 101.10 95.23
2 013699 100.87 93.77
... ... ... ...
Run Code Online (Sandbox Code Playgroud)
和
DF2
Sensor ID Reference Pressure Sensor Pressure
0 013688 120.01 119.43
1 013677 118.93 118.88
2 013699 120.05 118.85
... ... ... ...
Run Code Online (Sandbox Code Playgroud)
考虑到两个数据帧之间的“传感器 ID”值顺序不匹配,创建第三个数据帧(包含这些读数之间的差异)的最佳方法是什么?