如何解决对于循环,带有时间戳和条件的If语句
我有一个带有时间戳和参数的熊猫数据框。现在,我只希望在接下来的3天和接下来的70天内具有特定行为的行。
例如:
Select only the rows where the revenue exceeds a specific value in the next 3 days and raises to
another specific value in the next 70 Days,without dropping under a specific revenue value and
label this row as a "success".
Select only the rows where the revenue exceeds a specific value in the next 3 days and drops
under a specific revenue value befor raising to a specific value in the next 70 days and label
this row as a "loss".
All other rows label as "Not Necessary"
任何人都知道我如何在for循环中实现此时间条件行为?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。