First of all to using the MRJob, You will have to install MRJob. To install MRJob, You must have pip3 installed (If you already installed, you can skip this). To install use - pip3 install mrjob
from mrjob.job import MRJob
class BDM(MRJob):
def converter(self, _, line):
id, address = line.split(',')
//extract anything from the input.csv
//add it here and yield/print it
yield id, temporary
if __name__ == '__main__':
BDM.run()
Your CSV should look like this --->
1, "81 Gourav Sardana, Bengaluru, KR"
2, "44 Near semeston garden, New York, NY"
To run this, use the same format as you suggested in your question i.e python3 BDM.py input.csv >output.csv
Get Answers For Free
Most questions answered within 1 hours.