【发布时间】:2021-02-10 11:46:47
【问题描述】:
enter code here if fluadf['CLINICAL_STATUS'] = 'DRAFT' and fluadf['CLINICAL_DATE_RECEIVED'] = " / /
" fluadf['CLINICAL_STATUS'].str.replace( “草稿”、“在途”) 别的 fluadf['CLINICAL_STATUS'].str.replace( '草稿','处理中')
不确定这段代码是否有意义。我正在尝试测试两个值,如果它们都是真的(临床状态是草稿,并且没有收到临床日期的日期),那么将草稿更改为运输中。否则,将草稿更改为处理中。我非常感谢任何帮助指导我完成此任务的帮助。
【问题讨论】:
-
看看 numpy.where (numpy.org/doc/stable/reference/generated/numpy.where.html)
-
你可以添加一些数据样本,minimal, complete, and verifiable example 吗?
标签: python pandas if-statement conditional-statements