How to process dafaframe column auto convert int to float when contains NaN

Pandas Dataframe
a join casting ints to floats if the result of the join contains NaN.

1.DataFrame.fillna(0) set NaN to 0

2.Use the .astype() function to manipulate column dtypes.

你可能感兴趣的:(How to process dafaframe column auto convert int to float when contains NaN)