How do I change a data type of a single column in dataframe with astype()?
<p>I have a column of float64 in my DataFrame, which needs to be converted into Int.
I tried the both codes, but the datatype remains unchanged (float64)</p>

<pre><code>final_df['Total'] = final_df.Total.astype(int)
final_df['Total'] = final_df['Total'].astype(int)
</code></pre>

<p>Also, could someone explain the difference between dataframe['col'] and dataframe.col? </p>