title: Python multiprocessing with List input from CSV
body: <p>Trying multiprocessing with a list input from a CSV</p>
  
  <p>I have a function that takes a list as input.
  I'm currently passing the input from a CSV file, where each row is a List.
  However, instead of running the function row by row from the CSV, I would like it to multiprocess x rows (say 10) from the CSV and run the function 10 times at once.
  I've seen Multiprocessing examples where a single variable is being passed to the function.
  However, I'm having trouble trying to multiprocess multiple lists from a CSV.</p>
  
  <pre><code>import csv
  
  InputFile = "SampleCSV.csv"
  
  
  def My_Function(row):
      print(row)
      # Do domething else
  
  
  if __name__ == '__main__':
      with open(InputFile, 'r') as csvFile:
          reader = csv.reader(csvFile)
          next(reader)  # to skip the header row
          for row in reader:
              a = row
              My_Function(row)
  
  csvFile.close()
  
  </code></pre>