Manipulation of a csv file using ipython notebook [closed]

asked 2015-05-06 01:22:34 -0600

sydney gravatar image

updated 2017-08-01 05:07:14 -0600

FrédéricC gravatar image

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
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tmonteil
close date 2015-05-06 04:29:46.656450

Comments

tmonteil gravatar imagetmonteil ( 2015-05-06 04:44:23 -0600 )edit