The below column 'Total' from my data frame has integers with extra .0 (1.0,2.0..) & Null values. Before exporting data to csv, when below line of code executes it is throwing the error : ValueError: invalid literal for int() with base 10: ''
df['Total'] = df['Total'].astype('Int64')
How to handle a column which has int & null values. At the same time if i remove above validation, Total output column coming as extra .0 (Ex: 11.0, 199.0, 33.0 etc). I want to export pure int/null to my csv. Any help is highly appreciated.