Ask Your Question

sydney's profile - activity

2016-02-21 03:16:52 +0200 received badge  Famous Question (source)
2016-02-21 03:16:52 +0200 received badge  Notable Question (source)
2016-02-21 03:16:52 +0200 received badge  Popular Question (source)
2015-05-06 18:15:27 +0200 commented answer Manipulate a csv file using ipython notebook

Thank you so much for your reply. I used this code:

import csv
ifile  = open('circuit.csv')
read = csv.reader(ifile)
for row in read :
    print (row)

I got the same output as you got. But after that I stuck to run the for loop. Is it a problem that I did not mention about delimiter?

2015-05-06 08:23:48 +0200 received badge  Editor (source)
2015-05-06 08:22:34 +0200 asked a question Manipulation of a csv file using ipython notebook

I have a csv file which includes:

Branch       Ra   L       C        Rb
 1           1    10      1        1
 2           13   100     15       6

How can I get an output from this csv file which will look like`

Branch1:
Ra1 ndT nd1b 1
L1   nd1b nd1c  10
C1   nd1c  0      1
Rb1   nd1c  0      1

Branch2:
Ra2 ndT nd2b 13
L2   nd2b nd2c  100
C2   nd2c  0      15 
Rb2   nd2c  0      6
2015-05-06 08:19:31 +0200 asked a question Manipulate a csv file using ipython notebook

I have a csv file which includes:

Branch       Ra   L       C        Rb
 1           1    10      1        1
 2           13   100     15       6

How can I get an output from this csv file which will look like`

Branch1:
Ra1 ndT nd1b 1
L1   nd1b nd1c  10
C1   nd1c  0      1
Rb1   nd1c  0      1

Branch2:
Ra2 ndT nd2b 13
L2   nd2b nd2c  100
C2   nd2c  0      15 
Rb2   nd2c  0      6