title: OverflowError: cannot convert float infinity to integer
body: <p>I am trying to understand why this falling apart please. The code below runs fine on pandas <code>0.17.0</code> and numpy <code>1.10.1</code> (python 2.7)</p>
  
  <pre><code>In [1]:
  import pandas as pd
  import numpy as np
  
  In [2]:    
  df = pd.DataFrame([['01-Nov-2015', 1],['02-Nov-2015', np.Inf],['03-Nov-2015', 4]], columns=('Date','c1'))
  #df.Date = pd.to_datetime(df.Date)
  df
  
  Out[2]:
      Date         c1
  0   01-Nov-2015  1.000000
  1   02-Nov-2015  inf
  2   03-Nov-2015  4.000000
  
  In [3]:    
  df == np.Inf
  
  Out[3]:
      Date    c1
  0   False   False
  1   False   True
  2   False   False
  </code></pre>
  
  <p>However if I uncomment the line <code>df.Date = pd.to_datetime(df.Date)</code> to do the date type conversion and run it again it will drop me the overflow error mentioned in the title of this post. </p>
  
  <p>I initially thought that something happens when one compares a Timestamp (or is it datetime64?) to np.Inf, however that doesnt seem to be the case since the following runs fine</p>
  
  <pre><code>In [4]:
  pd.to_datetime('5-11-2015') == np.Inf
  
  Out[4]:
  False
  </code></pre>
  
  <p>Any input would be appreciated!</p>