title: Seperate binary digits to excel rows with python
body: <p>Actually I'm creating a list where I convert integer to binary digits with 8 bit representation and writing the binary to excel spreadsheet:</p>
  
  <pre><code>row = 3
  for x in MyList:
      mybinary = bin(x)[2:].zfill(8)  
      ws.write(r,2,mybinary)
      row+=1
  </code></pre>
  
  <p>The result looks like:
  <a href="https://i.stack.imgur.com/umNxX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/umNxX.png" alt="enter image description here"></a></p>
  
  <p>What I would like to achieve is:
  <a href="https://i.stack.imgur.com/Jx2eI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jx2eI.png" alt="enter image description here"></a></p>
  
  <p>The bits should have the same order but just ordered over the 8 rows from right side.</p>
  
  <p>Debug Info:</p>
  
  <pre><code>print(type(MyList))
  &lt;type 'list'&gt;
  
  
  print(type(x))
  &lt;type 'int'&gt;
  &lt;type 'int'&gt;
  &lt;type 'int'&gt;
  &lt;type 'int'&gt;
  &lt;type 'int'&gt;
  </code></pre>
  
  <p>And the output of mybinary is so far OK (The binary string which is output in excel sheet) and correct converted</p>
  
  <p>Any idea?</p>