Skip to content

Commit 4becd71

Browse files
author
Sylvain MARIE
committed
Merge branch 'main' of https://github.com/pandas-dev/pandas into feature/44764_perf_issue_new_period
# Conflicts: # doc/source/whatsnew/v2.1.0.rst
2 parents ea9fc47 + af43bfc commit 4becd71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+813
-462
lines changed

doc/source/_static/css/getting_started.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ ul.task-bullet > li > p:first-child {
236236

237237
.tutorial-card .card-header {
238238
cursor: pointer;
239-
background-color: white;
239+
background-color: transparent;
240240
}
241241

242242
.tutorial-card .card-body {
243-
background-color: #F0F0F0;
243+
background-color: transparent;
244244
}
245245

246246
.tutorial-card .badge {

doc/source/whatsnew/v2.1.0.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
8686

8787
Other API changes
8888
^^^^^^^^^^^^^^^^^
89-
-
89+
- :class:`~arrays.ArrowExtensionArray` comparison methods now return data with :class:`ArrowDtype` with ``pyarrow.bool_`` type instead of ``"boolean"`` dtype (:issue:`51643`)
9090
-
9191

9292
.. ---------------------------------------------------------------------------
@@ -115,6 +115,7 @@ Performance improvements
115115
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.isna` when array has zero nulls or is all nulls (:issue:`51630`)
116116
- Performance improvement when parsing strings to ``boolean[pyarrow]`` dtype (:issue:`51730`)
117117
- Performance improvement when searching an :class:`Index` sliced from other indexes (:issue:`51738`)
118+
- Performance improvement in :meth:`Series.combine_first` (:issue:`51777`)
118119
- :class:`Period`'s default formatter (`period_format`) is now significantly
119120
(~twice) faster. This improves performance of ``str(Period)``, ``repr(Period)``, and
120121
:meth:`Period.strftime(fmt=None)`, as well as ``PeriodArray.strftime(fmt=None)``,
@@ -208,7 +209,9 @@ Groupby/resample/rolling
208209

209210
Reshaping
210211
^^^^^^^^^
212+
- Bug in :meth:`DataFrame.stack` losing extension dtypes when columns is a :class:`MultiIndex` and frame contains mixed dtypes (:issue:`45740`)
211213
- Bug in :meth:`DataFrame.transpose` inferring dtype for object column (:issue:`51546`)
214+
- Bug in :meth:`Series.combine_first` converting ``int64`` dtype to ``float64`` and losing precision on very large integers (:issue:`51764`)
212215
-
213216

214217
Sparse

pandas/_testing/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,8 @@ def shares_memory(left, right) -> bool:
10281028
left = cast("ArrowExtensionArray", left)
10291029
if isinstance(right, ExtensionArray) and right.dtype == "string[pyarrow]":
10301030
right = cast("ArrowExtensionArray", right)
1031-
left_pa_data = left._data
1032-
right_pa_data = right._data
1031+
left_pa_data = left._pa_array
1032+
right_pa_data = right._pa_array
10331033
left_buf1 = left_pa_data.chunk(0).buffers()[1]
10341034
right_buf1 = right_pa_data.chunk(0).buffers()[1]
10351035
return left_buf1 == right_buf1

0 commit comments

Comments
 (0)