Skip to content

Commit bc989c1

Browse files
committed
update
1 parent 6575577 commit bc989c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v2.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ Performance improvements
274274
- Performance improvement in :func:`concat` (:issue:`52291`, :issue:`52290`)
275275
- Performance improvement in :class:`Series` reductions (:issue:`52341`)
276276
- Performance improvement in :func:`concat` when ``axis=1`` and objects have different indexes (:issue:`52541`)
277+
- Performance improvement in :meth:`DataFrame.transpose` when transposing a DataFrame with a single masked dtype, e.g. :class:`Int64` (:issue:`52836`)
277278
- Performance improvement in :meth:`Series.corr` and :meth:`Series.cov` for extension dtypes (:issue:`52502`)
278279
- Performance improvement in :meth:`Series.to_numpy` when dtype is a numpy float dtype and ``na_value`` is ``np.nan`` (:issue:`52430`)
279280
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.to_numpy` (:issue:`52525`)
280-
- Performance improvement in :meth:`DataFrame.transpose` when transposing a DataFrame with a single masked dtype, e.g. :class:`Int64` (:issue:`xxxxx`)
281281
-
282282

283283
.. ---------------------------------------------------------------------------

pandas/core/frame.py

+1
Original file line numberDiff line numberDiff line change
@@ -3596,6 +3596,7 @@ def transpose(self, *args, copy: bool = False) -> DataFrame:
35963596
)
35973597
if using_copy_on_write() and len(self) > 0:
35983598
result._mgr.add_references(self._mgr) # type: ignore[arg-type]
3599+
35993600
elif (
36003601
self._is_homogeneous_type
36013602
and dtypes

0 commit comments

Comments
 (0)