问题描述
我有一个带有时间戳和参数的熊猫数据框。现在,我只希望在接下来的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 (将#修改为@)