title: Python reading data from CSV in memory and writing it to cassandra in multi threaded
body: <p>I am bit new in python,
  My current code download the csv file and import it in cassandra but as a single thread. is there a way to create 5 or 10 threads to split the csv file(rows) and read it in parallel and insert the rows in Cassandra one row per thread?  , i am trying to create a equity trading Database to store all tick database thus looking for ways to improve the performance of code and methods. please just ignore me if the question sounds bit silly. </p>
  
  <pre><code>    conn = requests.get(url, stream=True)
      if conn.status_code == 200:
         zfile = zipfile.ZipFile(io.BytesIO(conn.content))
         zfile.extractall()
         with open(csv_file) as csv_d:
         csv_content = csv.reader(csv_d)
         for row in csv_content:
             symbol = row[0]
             stype = row[1]
             openp = row[2]
             highp = row[3]
             lowp = row[4]
             closep = row[5]
             vol = row[8]
             dtime = row[10]
             cassa.main('load', symbol, dtime, stype, openp, highp, lowp, closep, vol)
  
    csv_d.close()
    os.remove(csv_file)
    logging.info("csv file processed succesfully") 
  </code></pre>
  
  <p>Thanks &amp; Regards</p>