BUG: Series.combine_first()
changes int dtypes, but not Int (extension) dtypes
#53700
Closed
2 of 3 tasks
Labels
Closing Candidate
May be closeable, needs more eyeballs
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
In the example, the dtypes of the
Series
areint64
but when you docombine_first
, the result has a dtype offloat64
.If you use
convert_dtypes()
to change the types toInt64
, then the dtype is preserved.Expected Behavior
The
int64
dtype should be preserved.Installed Versions
show_details()
didn't work!pandas 2.0.2
The text was updated successfully, but these errors were encountered: