I\'m trying to define a function that will run through each row of an existing column in a dataframe and write its value to a new column on the same row if certain condition