I have a df called 'records' filled with numbers (0-5) as shown.
One of its column is shown with values 0-3.
I want to loop through the dataframe and change all values above 1 to 1 so there will be only 0s and 1s. I came up with this line of code but unsure how to iterate through all df values with apply:
records= records.apply(lambda x: 1 if x>1 for x in "something")

