Skip to content

Commit 90ad650

Browse files
committed
update
1 parent d7ef8fd commit 90ad650

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/source/whatsnew/v2.1.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ Performance improvements
289289
- Performance improvement in :func:`concat` when ``axis=1`` and objects have different indexes (:issue:`52541`)
290290
- Performance improvement in :meth:`.DataFrameGroupBy.groups` (:issue:`53088`)
291291
- Performance improvement in :meth:`DataFrame.loc` when selecting rows and columns (:issue:`53014`)
292+
- Performance improvement in :meth:`DataFrame.transpose` when transposing a DataFrame with a single masked dtype, e.g. :class:`Int64` (:issue:`52836`)
292293
- Performance improvement in :meth:`Series.corr` and :meth:`Series.cov` for extension dtypes (:issue:`52502`)
293294
- Performance improvement in :meth:`Series.to_numpy` when dtype is a numpy float dtype and ``na_value`` is ``np.nan`` (:issue:`52430`)
294295
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.to_numpy` (:issue:`52525`)

pandas/core/frame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3588,6 +3588,7 @@ def transpose(self, *args, copy: bool = False) -> DataFrame:
35883588
)
35893589
if using_copy_on_write() and len(self) > 0:
35903590
result._mgr.add_references(self._mgr) # type: ignore[arg-type]
3591+
35913592
elif (
35923593
self._is_homogeneous_type
35933594
and dtypes

0 commit comments

Comments
 (0)