Skip to content

Commit 3847c48

Browse files
committed
update
1 parent 95230dd commit 3847c48

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
@@ -298,14 +298,14 @@ Performance improvements
298298
- Performance improvement in :meth:`.DataFrameGroupBy.groups` (:issue:`53088`)
299299
- Performance improvement in :meth:`DataFrame.loc` when selecting rows and columns (:issue:`53014`)
300300
- Performance improvement in :meth:`Series.add` for pyarrow string and binary dtypes (:issue:`53150`)
301+
- Performance improvement in :meth:`DataFrame.transpose` when transposing a DataFrame with a single masked dtype, e.g. :class:`Int64` (:issue:`52836`)
301302
- Performance improvement in :meth:`Series.corr` and :meth:`Series.cov` for extension dtypes (:issue:`52502`)
302303
- Performance improvement in :meth:`Series.str.get` for pyarrow-backed strings (:issue:`53152`)
303304
- Performance improvement in :meth:`Series.to_numpy` when dtype is a numpy float dtype and ``na_value`` is ``np.nan`` (:issue:`52430`)
304305
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.astype` when converting from a pyarrow timestamp or duration dtype to numpy (:issue:`53326`)
305306
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.to_numpy` (:issue:`52525`)
306307
- Performance improvement when doing various reshaping operations on :class:`arrays.IntegerArrays` & :class:`arrays.FloatingArray` by avoiding doing unnecessary validation (:issue:`53013`)
307308
- Performance improvement when indexing with pyarrow timestamp and duration dtypes (:issue:`53368`)
308-
- Performance improvement in :meth:`DataFrame.transpose` when transposing a DataFrame with a single masked dtype, e.g. :class:`Int64` (:issue:`xxxxx`)
309309
-
310310

311311
.. ---------------------------------------------------------------------------

pandas/core/frame.py

+1
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)