[{'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 create_time_features(df):\n    """\n    Creates time series features from datetime index\n    """\n    df[\'date\'] = df.index\n    df[\'dayofweek\'] = df[\'Date\'].dt.dayofweek\n    df[\'quarter\'] = df[\'Date\'].dt.quarter\n    df[\'month\'] = df[\'Date\'].dt.month\n    df[\'dayofyear\'] = df[\'Date\'].dt.dayofyear\n    df[\'dayofmonth\'] = df[\'Date\'].dt.day\n    df[\'weekofyear\'] = df[\'Date\'].dt.weekofyear\n    \n    X = df[[\'dayofweek\',\'quarter\',\'month\',\n           \'dayofyear\',\'dayofmonth\',\'weekofyear\']]\n    return X\''}, {'role': 'assistant', 'content': 'data_preprocessing'}]