[{'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 get_CompetitionActive(df):\n    def is_competition_active(row):\n        if np.isnan(row.CompetitionDistance):\n            return 0\n        \n        if np.isnan(row.CompetitionOpenSinceMonth) and np.isnan(row.CompetitionOpenSinceYear):\n            return 1\n        \n        current_month, current_year = row.Date.month, row.Date.year\n        opened_month, opened_year = row.CompetitionOpenSinceMonth, row.CompetitionOpenSinceYear\n        \n        return int((current_year == opened_year and current_month >= opened_month) or current_year > opened_year)\n        \n        \n    return df.apply(is_competition_active, axis=1)'}, {'role': 'assistant', 'content': 'data_preprocessing'}]