小编O P*_*O P的帖子

查找 pandas 中两个不匹配数据帧的增量

有 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”值顺序不匹配,创建第三个数据帧(包含这些读数之间的差异)的最佳方法是什么?

python pandas

-2
推荐指数
1
解决办法
83
查看次数

标签 统计

pandas ×1

python ×1