def put_dfs_in_dict(df):   
    """ Split the merged dataframe into smaller dataframes, one for each yaml file.       
        Place each df into a dictionary using the yaml_file name as a key.
        Also drops the 'en' column in the df because the English is not needed as output.
         And drops the yaml_filename col because it's not needed in the output; instead
         the yaml_filename will be used to name the file when written."""   
    res = {} # empty results dictionary
    for yaml_file_name in df.yaml_filename.unique():
        df_filtered = df[df['yaml_filename'] == yaml_file_name]
        df_clean = df_filtered.drop(['en','yaml_filename'], axis=1)
        # use file_name as a key
        res[yaml_file_name] = df_clean
    return res