我只有几个条件要做,就像- 1. if employment is 'salaried' or 'business' and annual income is '<=10 lakhs' and stpstp flagging is 'STP' then result should be 'Issue' 我试过这个代码- df['Result'] = 'Null'
df['Result']=np.where
嗨,想知道有没有人可以帮我做他们的“Python魔术”!我有一个介于3个日期范围内的大型数据集(图像文件中有一个小样本) excel image of data 到目前为止,我已经将数据导入到pandas中,并将开始日期从对象转换为日期戳。我想在数据中添加一列,其中列中的值特定于开始日期。例如,对于介于26/11/2020 - 28/12/2020之间的任何开始日期,该列将包含"W20