I need to apply the if condition and I have previously defined the random forest regression input data frame using pandas as follows:
rf_datas = rf_datas.sample(frac=1, replace = False).reset_index(drop=True)
if rf_datas.sample.(replace == True):
acc_600_repl.append(accuracy)
else:
acc_600.append(accuracy)
The problem is python doesn't accept the if condition as it is shown above. I need to know how to refer to a parameter (replace) value (False) in that if condition?