def fetch_deputies(data_dir):
deputies = DeputiesDataset()<EOL>df = deputies.fetch()<EOL>save_to_csv(df, data_dir, "<STR_LIT>")<EOL>holders = df.condition == '<STR_LIT>'<EOL>substitutes = df.condition == '<STR_LIT>'<EOL>log.info("<STR_LIT>", len(df))<EOL>log.info("<STR_LIT>", len(df[holders]))<EOL>log.info("<STR_LIT>", len(df[substitutes]))<EOL>return df<EOL>
:param data_dir: (str) directory in which the output file will be saved