[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify code snippets into one of the following categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']."}, {'role': 'user', 'content': 'Identify the single most appropriate category to which the provided code belongs. Provide your response as a single category label without any additional information, commentary, or personal opinions.\\nPython Code:def convert_AgeuponOutcome_to_weeks(df):\nresult = {}\nfor k in df[\'AgeuponOutcome\'].unique():\nif type(k) != type(""):\nresult[k] = -1\nelse:\nv1, v2 = k.split()\nif v2 in ["year", "years"]:\nresult[k] = int(v1) * 52\nelif v2 in ["month", "months"]:\nresult[k] = int(v1) * 4.5\nelif v2 in ["week", "weeks"]:\nresult[k] = int(v1)\nelif v2 in ["day", "days"]:\nresult[k] = int(v1) / 7\ndf[\'_AgeuponOutcome\'] = df[\'AgeuponOutcome\'].map(result).astype(float)\ndf = df.drop(\'AgeuponOutcome\', axis = 1)\nreturn df\ntrain = convert_AgeuponOutcome_to_weeks(train)\ntest = convert_AgeuponOutcome_to_weeks(test)'}, {'role': 'assistant', 'content': 'data_preprocessing'}]