I want to update the value of opening stock and closing stock by adding 20 when dcsDep2 < 3.028512
.
here is the snapshot of dataset:
I tried with this code:
for(index_label,row_series) in dep1.iterrows():
while row_series["Closing Stock"]<3.028512:
dep1.at[index_label,"Closing Stock"]=row_series["Closing Stock"]+22
but no output is shown.