I have two dataframes df1 and df2
df1 looks like:
a b
ravi 2
ramesh 3
ganesh 4
kamlesh 8
df2 looks like:
a c d
harish 50 70
ravi 80 60
suresh 40 20
kamlesh 90 100
when I'm merging the two df's df2 and df1 using an outer join(on column a) to include all the columns, the resultant dataframe having dtypes as int64 for columns c,d,b changes from int64 to float.
Is there any way of preserving the same dtypes as int after merging?