would appreciate help with this: I have clean float value in column (pandas DF), if this value is <1 (bad parsed data), i need to multiply it with Price value from another column (corresponding axis).
Price Comission
10 000 0.1
50 000 5 000
75 000 0.5
I tried smth like this : (without succes)
for i in range (df.shape [0]):
if (df['Comission'].iloc(i)<1)&(df['Comission'].iloc(i)>0):
df['Comission'].iloc(i)= df['Comission'].iloc(i)*df['Price'].iloc(i)
Is there a way to do the selection easier in Pandas and multiply under selection?