def translate_column(df, column, translations):
df[column] = df[column].astype('<STR_LIT>')<EOL>translations = [translations[cat]<EOL>for cat in df[column].cat.categories]<EOL>df[column].cat.rename_categories(translations, inplace=True)<EOL>
:param df: (pandas.Dataframe) the dataframe to be translated
:param column: (str) the column to be translated
:param translations: (dict) a dictionary of the strings to be categorized and translated