How to replace/set/change value in array/dataframe if value is less/greater than?

Thank you for your reply - you are correct, the arrays solution works.

Does the DataFrames on not just specify the first column (assuming it is named col1)?