title: DataFrame Floats to Ints?
body: <p>I am new to programming and I have written a program that reads and modifies a large excel file using Python Pandas. In the code I have the following line:</p>
  
  <pre><code>df1 = df1.apply(lambda x : pd.to_numeric(x,errors='ignore'))
  </code></pre>
  
  <p>Which does what I need it to, but it also turns the data below my header into floats. Is there a way to have them turn to and int type instead?</p>
  
  <p>df1 is a dataframe and I am attempting to create a nested dictionary with its contents. </p>