设置' timespan'价值第一个时间'在第一个零件中的值不包括主题的地方
Jacob,19,Male,True,1654949111,0,1
Anna,20,Female,True,1654949111,0,1
Jacob,19,Male,True,1654949222,0,2
Anna,20,Female,True,1654949222,0,2
Brother,20,Male,True,1654949333,0,3
Anna,20,Female,True,1654949333,0,3
Cleitinho,53,Female,True,1654949444,0,4
Jacob,19,Male,True,1654949444,0,4
每个'batch'都是网络scrape。 我想将值放在每个“名称”上的“ timespan”列中。 对于“时间”列中的值第一个“批次”中未包含在“时间”列中
。 。 。 。
如果在几个连续的“批处理”中存在“名称”,那么就可以删除第一个和最后一个之间的条目,这也很好。
在最后一个“批次”中,“ timespan”的值应为“时间” + 1秒。
Jacob,19,Male,True,1654949111,1654949333,1
Anna,20,Female,True,1654949111,1654949444,1
Brother,20,Male,True,1654949333,1654949444,3
Cleitinho,53,Female,True,1654949444,1654949445,4
Jacob,19,Male,True,1654949444,1654949445,4
Jacob,19,Male,True,1654949111,0,1
Anna,20,Female,True,1654949111,0,1
Jacob,19,Male,True,1654949222,0,2
Anna,20,Female,True,1654949222,0,2
Brother,20,Male,True,1654949333,0,3
Anna,20,Female,True,1654949333,0,3
Cleitinho,53,Female,True,1654949444,0,4
Jacob,19,Male,True,1654949444,0,4
Each 'Batch' is a web scrape.
I want to put the value in the 'Timespan' column on each 'Name'.
To the value in the 'Time' column in the first next 'Batch' that 'Name' was not included in.
Should 'Name' appear in a later 'Batch', the procedure must be repeated. . . .
Also it would be nice if 'Name' is present in several consecutive 'Batch' to just remove the entries inbetween the first and last.
On the last 'Batch', the value for 'Timespan' should be 'Time' + 1 second.
Jacob,19,Male,True,1654949111,1654949333,1
Anna,20,Female,True,1654949111,1654949444,1
Brother,20,Male,True,1654949333,1654949444,3
Cleitinho,53,Female,True,1654949444,1654949445,4
Jacob,19,Male,True,1654949444,1654949445,4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在最后一个“批处理”中,“ timespan”的值仍不包括在内。
我现在如何解决它:
On the last 'Batch', the value for 'Timespan' should be 'Time' is still not included.
How i solved it for now: