【发布时间】:2019-02-06 15:30:48
【问题描述】:
我有两个如下所述的数据框:
df1 =
Symbol Subject Broadcast Date/Time
0 CUMMINSIND Financial Result Updates 06-Feb-2019 18:31
1 IGL Financial Result Updates 06-Feb-2019 17:16
2 MANAPPURAM Financial Result Updates 06-Feb-2019 16:10
3 MANAPPURAM Result Updates 06-Feb-2019 16:00
4 JSWSTEEL Financial Result Updates 06-Feb-2019 15:18
df2 =
Symbol Subject Broadcast Date/Time
0 MANAPPURAM Financial Result Updates 06-Feb-2019 16:10
我想找到与 df2 行与 df1 行匹配的精确值的位置。 并使用匹配行上方的所有行创建结果 df3。
df3 =
Symbol Subject Broadcast Date/Time
0 CUMMINSIND Financial Result Updates 06-Feb-2019 18:31
1 IGL Financial Result Updates 06-Feb-2019 17:16
【问题讨论】:
标签: python-3.x pandas dataframe