def clean_outcomert(row):
    """
    Intended for use with DataFrame.apply()

    Returns an array with 'outcomert' converted from milliseconds to seconds if the 'study' variable is '3'
    """
    if int(row['study']) >= 3:
        return float(row['outcomert'] * .001)
    else:
        return row['outcomert']