[{'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:crime.insert(0, 'Count', 1)                                # Adds a column containing a 1 for each row\ncrimepivot = pd.pivot_table(crime,                         # Creates a pivot table\nindex=['Year','Category'],     # for the year and category of crime\naggfunc=np.sum)                # by the sum of the count column created above\ncrimepivot = crimepivot.unstack('Category')                # Unstacks category and moves it to the top\ncrimepivot = crimepivot['Count'].fillna(value=0)           # Selects only the count columns & fills in NaN values with 0\ntop12 = crimepivot[['MISCELLANEOUS','ASSAULT','LARCENY',   # Creates a 'top12', a dataFrame containing the top 12 offenses\n'BURGLARY','DAMAGE TO PROPERTY',        # This dataframe is now a yearly count of each offense\n'STOLEN VEHICLE','MURDER/INFORMATION',\n'AGGRAVATED ASSAULT','TRAFFIC',\n'ROBBERY','FRAUD','DANGEROUS DRUGS']]\nfig, ax = plt.subplots()                                   # Creates a figure\ntop12.plot(ax=ax,figsize=(12,6))                           # Plots the dataframe 'top12'\nax.legend(bbox_to_anchor=(1.3, 1))                         # Moves the legend off the graph\nax.set_ylabel('Number of Offenses', fontsize=14)           # Label the y-axis\nax.set_title('Top 12 Offenses Over Time',                  # Title the graph\nfontsize=16, fontweight='bold')\nax.ticklabel_format(useOffset=False)                       # Make sure the years show on the x-axis\nplt.show()\ntop10 = top12[['ASSAULT','LARCENY','BURGLARY',             # Creates a new 'top10' dataFrame\n'DAMAGE TO PROPERTY','STOLEN VEHICLE',\n'AGGRAVATED ASSAULT','TRAFFIC',\n'ROBBERY','FRAUD','DANGEROUS DRUGS']]\nfig, ax = plt.subplots()                                   # Creates a figure\ntop10.plot(ax=ax,figsize=(12,6))                           # Plots the dataframe\nax.legend(bbox_to_anchor=(1.3, 1))                         # Moves the legend off the graph\nax.set_ylabel('Number of Offenses', fontsize=14)           # Label the y-axis\nax.set_title('Top 10 Offenses Over Time',                  # Title the graph\nfontsize=16, fontweight='bold')\nax.ticklabel_format(useOffset=False)                       # Make sure the years show on the x-axis\nplt.show()"}, {'role': 'assistant', 'content': 'data_exploration'}]