[{'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:df = tci.copy()\nfc_copy = fc.loc[fc.apply(lambda x: x.filedate < dates[x.parcel], axis=1)].sort_values('filedate')\nfc_copy = fc_copy.groupby('caseno').last()\nfc_copy = pd.merge(fc_copy, tci[['parcel','Date']].set_index('parcel'), how='left',left_on='parcel',right_index=True)\ndf.loc[df.parcel.isin(fc_copy.loc[fc_copy.status=='Active','parcel']),'active_fc'] = 1\ndf.loc[df.active_fc.isnull(),'active_fc'] = 0\ndf.loc[df.parcel.isin(fc_copy[fc_copy.filedate > (fc_copy.Date-pd.DateOffset(years=1))].parcel),'fc_1yr'] = 1\ndf.loc[df.fc_1yr.isnull(), 'fc_1yr'] = 0\ndf.loc[df.parcel.isin(fc_copy[fc_copy.filedate > (fc_copy.Date-pd.DateOffset(years=2))].parcel),'fc_2yr'] = 1\ndf.loc[df.fc_2yr.isnull(), 'fc_2yr'] = 0\nrecent_fc = fc_copy.sort_values('filedate').groupby('parcel').last().reset_index()\nfc_days = pd.DataFrame(recent_fc[['parcel','filedate','Date']])\nfc_days['fc_days'] = (fc_days.Date-fc_days.filedate).astype(pd.Timedelta).apply(lambda x: x.days)\nfc_days = fc_days.set_index('parcel')\ndf = pd.merge(df, fc_days[['fc_days']], left_on='parcel',right_index=True, how='left')\ndf.loc[df.fc_days.isnull(),'fc_days'] = max(df[df.fc_days.notnull()].fc_days)+1"}, {'role': 'assistant', 'content': "['data_preprocessing']"}]