Msgtype Date ConvID message
enquire 12/1 689 I want your car
reply 12/3 689 it is available
reply 12/4 689 rent please?
reply 12/6 689 $200
accept 12/8 689 please pay through CC
reply 12/8 689 thank you, what about fuel?
reply 12/8 689 you have to take care
enquire 12/3 690 Looking for car
reply 12/4 690 available
accept 12/5 690 paid
reply 12/6 690 thank you
我想按 ConvID 对这些数据进行分组并按日期对其进行排序。我想要直到“Msgtype”=接受该特定ConvID的行。旨在分析消息数据,直到特定 ConvID 的预订请求被接受。所以对于 ConvID = 689,我想要行直到“Msgtype” = 接受。“接受”之后的其余行不是必需的。
例如:ConvID = 689 不需要这两个
Msgtype Date ConvID message
reply 12/8 689 thank you, what about fuel?
reply 12/8 689 you have to take care
同样,ConvID = 690 不需要此行
Msgtype Date ConvID message
reply 12/6 690 thank you