title: Performing bitwise operations on a dataframe
body: <p>I have a pandas dataframe like this</p>
  
  <pre><code>In [7]:
  
  XYZ
  
  Out[7]:
  
  0     8495872
  1     8496128
  2     8561408
  3     8561664
  4     8626944
  5     8627200
  6     8692736 
  7     8692992
  8     8693248
  9     8693504
  10    8758016
  11    8758272
  12    8758528
  13    8758784
  14    8759040
  15    8823296
  16    8823552
  17    8823808
  18    8824064
  19    8824320
  20    8824576
  21    8824832
  22    8888832
  23    8890112
  Name: XYZ, dtype: int64
  </code></pre>
  
  <p>I want to convert these values to 32bit binary.
  I have tried XYZ.apply(bin) function but it gives something like this</p>
  
  <pre><code>0     0b100000011010001100000000
  1     0b100000011010010000000000
  2     0b100000101010001100000000
  3     0b100000101010010000000000
  ...
  </code></pre>
  
  <p>there is this unwanted '0b' in front and the output is 24 bit.
  how to get these values converted to 32 bit without the '0b' part in front?</p>
  
  <p>After the conversion, I am going to do some bitwise and / or operations with those values and generate a new dataframe.</p>