MRJob and python - .csv file output for Reducer?
问题 I'm using the MRJob module for python 2.7. I have created a class that inherits from MRJob, and have correctly mapped everything using the inherited mapper function. Problem is, I would like to have the reducer function output a .csv file...here is the code for the reducer: def reducer(self, geo_key, info_list): info_list.insert(0, ['Name,Age,Gender,Height']) for set in info_list: yield set Then i run in the command line---> python -m map_csv <inputfile.txt> outputfile.csv I keep getting this