Preserve Dataframe column data type after outer merge
This should really only be an issue with bool or int dtypes. float, object and datetime64[ns] can already hold NaN or NaT without changing the type. Because of this, I’d recommend using the new nullable dtypes. You can use Int64 for your integer and ‘boolean’ for your Boolean columns. Both of these now support missing … Read more