title: Transposing the data from csv file to csv using python or Matlab
body: <p>I am working on data having four columns and 912500 rows in csv format. I need to transpose the data in each column to 365 columns and 2500 rows in separate csv file. eg. </p>
  
  <p>Col1 Col2 Col3 Col4</p>
  
  <p>1     33  36   38</p>
  
  <p>2      25  18   56</p>
  
  <p>365    -4  -3  10</p>
  
  <p>366    -11  20 35</p>
  
  <p>367    12   18 27 
  .
  .</p>
  
  <p>730    26   36 27
  .
  .</p>
  
  <p>.
  912500  20 37 42</p>
  
  <p>Desired output </p>
  
  <pre><code>Col1  Col2 Col3  Col4 Col5 .....Col 365 
  </code></pre>
  
  <p>1   33    25...........................-4</p>
  
  <p>2  -11   12  .......................  26 </p>
  
  <p>3</p>
  
  <p>4.............</p>
  
  <p>5............
    .
    .</p>
  
  <p>2500............................</p>
  
  <p>Please do advise me how to write a script for this? Any help will be highly appreciated.</p>