when I am reading the file using read_excel() function integer columns are auto-converted into the float datatype in pandas python when any NAN value present. like in below example:
A B C D
1 2 s 3.9
3 4 d 2.0
when I am reading the file using read_excel().
Dataframe is like this
A B C D
1.0 2.0 s 3.9
Nan Nan Nan nan
3.0 4.0 d 2.0
can anyone suggest me how to stop this auto conversion from int to float while reading the file in pandas