title: How to shift the columns of table from CSV?
body: <p>I've added new headings(parameters) for the CSV data and the new parameter's have to be calculated so it needs to stay empty. I need to shift the whole data to the right by one column and I can't figure out how with python v 3.2
  Can anybody please help me?</p>
  
  <p>So when I open my python CSV file with excel, it gives me something like this(super simplified version, I have thousands of rows and columns)</p>
  
  <pre><code>P1 P2 P3 P4 P5 ...
  
  1  2  3  4  5
  1  2  3  4  5
  1  2  3  4  5
  </code></pre>
  
  <p>.
  .</p>
  
  <p>And I want to change this to; leaving P1 empty.</p>
  
  <pre><code>P1 P2 P3 P4 P5 ...
  
      1  2  3  4  
      1  2  3  4   
      1  2  3  4  
  </code></pre>
  
  <p>This is the code that I've got so far. I just want to shift that data to the right by one column. Can anybody please help me?
  Thanks in advance!</p>
  
  <pre><code>    import csv
  
      # reads the input and spits out the output
      with open ('DownloadDB_CSV1.csv', 'r') as csvinput:
           with open ('outputCSV.csv', 'w', newline ='') as csvoutput:
               reader = csv.reader(csvinput, delimiter = ',')
              writer = csv.writer(csvoutput,  delimiter = ',')
      all = []
      row = next(reader)
      row.insert(0,'GenomePosition')
      all.append(row)
  
  
  
      for row in reader:
          all.append(row)
          contents = row[0::] # sepearte it to a variable
      writer.writerows(all)
  </code></pre>