Skip to content

Commit ea7d2ba

Browse files
add news
1 parent 6e77fc9 commit ea7d2ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ Reshaping
11451145
^^^^^^^^^
11461146
- Bug in :func:`qcut` where values at the quantile boundaries could be incorrectly assigned (:issue:`59355`)
11471147
- Bug in :meth:`DataFrame.combine_first` not preserving the column order (:issue:`60427`)
1148+
- Bug in :meth:`DataFrame.combine_first` where large ``int64``/``uint64`` values could lose precision when an outer alignment introduced missing values. (:issue:`60128`)
11481149
- Bug in :meth:`DataFrame.explode` producing incorrect result for :class:`pyarrow.large_list` type (:issue:`61091`)
11491150
- Bug in :meth:`DataFrame.join` inconsistently setting result index name (:issue:`55815`)
11501151
- Bug in :meth:`DataFrame.join` when a :class:`DataFrame` with a :class:`MultiIndex` would raise an ``AssertionError`` when :attr:`MultiIndex.names` contained ``None``. (:issue:`58721`)

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9174,7 +9174,7 @@ def _cast_large_numpy_ints_to_nullable(df: DataFrame) -> DataFrame:
91749174

91759175
return df.astype(cast_map) if cast_map else df
91769176

9177-
# Cast any side that will gain rows on outer align (introduces <NA>).
9177+
# Only need to cast sides that gain rows on outer align (introduces <NA>).
91789178
if len(other.index.difference(self.index, sort=False)):
91799179
self = _cast_large_numpy_ints_to_nullable(self)
91809180
if len(self.index.difference(other.index, sort=False)):

0 commit comments

Comments
 (0)