[{'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:b"# Apply Label Encoding to train and test data\\ntrain_df_encoded = train_df.copy()\\ntest_df_encoded = test_df.copy()\\n\\n# Initialize Label encoder\\nle = LabelEncoder()\\n\\n# Create date time features\\ndef create_time_features(df):\\n    df[\'date\'] = df[\'Date\']\\n    df[\'hour\'] = df[\'date\'].dt.hour\\n    df[\'dayofweek\'] = df[\'date\'].dt.dayofweek\\n    df[\'quarter\'] = df[\'date\'].dt.quarter\\n    df[\'month\'] = df[\'date\'].dt.month\\n    df[\'year\'] = df[\'date\'].dt.year\\n    df[\'dayofyear\'] = df[\'date\'].dt.dayofyear\\n    df[\'dayofmonth\'] = df[\'date\'].dt.day\\n    df[\'weekofyear\'] = df[\'date\'].dt.weekofyear\\n    \\n    return df\\n\\ntrain_df_encoded = create_time_features(train_df_encoded)\\ntest_df_encoded = create_time_features(test_df_encoded)\\ntrain_df_encoded.State = le.fit_transform(train_df_encoded.State)\\ntrain_df_encoded.Country = le.fit_transform(train_df_encoded.Country)\\ntest_df_encoded.State = le.fit_transform(test_df_encoded.State)\\ntest_df_encoded.Country = le.fit_transform(test_df_encoded.Country)\\n\\ndisplay(train_df_encoded.tail())\\nprint(\'\\\\n\')\\ndisplay(test_df_encoded.tail())"'}, {'role': 'assistant', 'content': 'data_preprocessing'}]