I\'m trying to make a function so that every value x in a dataframe df is replaced by 1 if above y, otherwise it\'s replaced by 0.
I tried
threshold &l