[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify the code snippets into categories from the provided list of categories. List of categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']"}, {'role': 'user', 'content': 'Identify to which category the provided code belongs and assign the code snippet to at least 1 but up to 5 categories based on the probabilities, ignore if the probability of the category is negligible. Strictly provide your response as a list. Avoid providing any additional information, commentary, or personal opinions.\\nPython Code:def summarise_data(trip_in, station_data, trip_out):\n"""\nThis function takes trip and station information and outputs a new\ndata file with a condensed summary of major trip information. The\ntrip_in and station_data arguments will be lists of data files for\nthe trip and station information, respectively, while trip_out\nspecifies the location to which the summarized data will be written.\n"""\nstation_map = create_station_mapping(station_data)\nwith open(trip_out, \'w\') as f_out:\nout_colnames = [\'duration\', \'start_date\', \'start_year\',\n\'start_month\', \'start_hour\', \'weekday\',\n\'start_city\', \'end_city\', \'subscription_type\']\ntrip_writer = csv.DictWriter(f_out, fieldnames = out_colnames)\ntrip_writer.writeheader()\nfor data_file in trip_in:\nwith open(data_file, \'r\') as f_in:\ntrip_reader = csv.DictReader(f_in)\nfor row in trip_reader:\nnew_point = {}\nnew_point[\'duration\'] = float(row[\'Duration\']) / 60\ntrip_date = datetime.strptime(row[\'Start Date\'], \'%m/%d/%Y %H:%M\')\nnew_point[\'start_date\']  = trip_date.strftime(\'%Y-%m-%d\')\nnew_point[\'start_year\']  = trip_date.year\nnew_point[\'start_month\'] = trip_date.month\nnew_point[\'start_hour\']  = trip_date.hour\nnew_point[\'weekday\']     = trip_date.weekday()\nnew_point[\'start_city\'] = station_map[row[\'Start Terminal\']]\nnew_point[\'end_city\'] = station_map[row[\'End Terminal\']]\nif \'Subscription Type\' in row:\nnew_point[\'subscription_type\'] = row[\'Subscription Type\']\nelse:\nnew_point[\'subscription_type\'] = row[\'Subscriber Type\']\ntrip_writer.writerow(new_point)'}, {'role': 'assistant', 'content': "['data_preprocessing']"}]