Reset the csv.reader() iterator
<p>I was trying to do some csv processing using csv reader and was stuck on an issue where I have to iterate over lines read by the csv reader. But on  iterating second time, it returns nil since all the lines have already been iterated, is there any way to refresh the iterator to start from the scratch again.</p>

<p>Code:</p>

<pre><code>desc=open("example.csv","r")

Reader1=csv.read(desc)

for lines in Reader1:
(Some code)

for lines in Reader1:
(some code)
</code></pre>

<p>what is precisely want to do is read a csv file in the format below</p>

<p>id,price,name
x,y,z
a,b,c 
and rearrange it in the format below
id:x a
price: y  b
name: z   c
without using pandas library</p>