Skip to content

Commit 0ae1512

Browse files
authored
Merge branch 'main' into dependabot/github_actions/pypa/cibuildwheel-2.21.0
2 parents d26487f + f1e6cc1 commit 0ae1512

File tree

20 files changed

+186
-60
lines changed

20 files changed

+186
-60
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ jobs:
102102
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
103103
include:
104104
# TODO: Remove this plus installing build deps in cibw_before_build.sh
105-
# and test deps in cibw_before_test.sh after pandas can be built with a released NumPy/Cython
106-
- python: ["cp313", "3.13"]
107-
cibw_build_frontend: 'pip; args: --no-build-isolation'
105+
# after pandas can be built with a released NumPy/Cython
108106
- python: ["cp313t", "3.13"]
109107
cibw_build_frontend: 'pip; args: --no-build-isolation'
110108
# Build Pyodide wheels and upload them to Anaconda.org
@@ -187,11 +185,9 @@ jobs:
187185
- name: Test Windows Wheels
188186
if: ${{ matrix.buildplat[1] == 'win_amd64' }}
189187
shell: pwsh
190-
# TODO: Remove NumPy nightly install when there's a 3.13 wheel on PyPI
191188
run: |
192189
$TST_CMD = @"
193190
python -m pip install hypothesis>=6.84.0 pytest>=7.3.2 pytest-xdist>=3.4.0;
194-
${{ matrix.python[1] == '3.13' && 'python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy;' }}
195191
python -m pip install `$(Get-Item pandas\wheelhouse\*.whl);
196192
python -c `'import pandas as pd; pd.test(extra_args=[`\"--no-strict-data-files`\", `\"-m not clipboard and not single_cpu and not slow and not network and not db`\"])`';
197193
"@

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ graft pandas/_libs/include
6565

6666
# Include cibw script in sdist since it's needed for building wheels
6767
include scripts/cibw_before_build.sh
68-
include scripts/cibw_before_test.sh

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
383383
-i "pandas.tseries.offsets.Week.n GL08" \
384384
-i "pandas.tseries.offsets.Week.normalize GL08" \
385385
-i "pandas.tseries.offsets.Week.weekday GL08" \
386-
-i "pandas.tseries.offsets.WeekOfMonth SA01" \
387386
-i "pandas.tseries.offsets.WeekOfMonth.is_on_offset GL08" \
388387
-i "pandas.tseries.offsets.WeekOfMonth.n GL08" \
389388
-i "pandas.tseries.offsets.WeekOfMonth.normalize GL08" \

doc/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@
254254
"json_url": "https://pandas.pydata.org/versions.json",
255255
"version_match": switcher_version,
256256
},
257-
"show_version_warning_banner": True,
257+
# This shows a warning for patch releases since the
258+
# patch version doesn't compare as equal (e.g. 2.2.1 != 2.2.0 but it should be)
259+
"show_version_warning_banner": False,
258260
"icon_links": [
259261
{
260262
"name": "Mastodon",

doc/source/whatsnew/v2.2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ Other
5656
Contributors
5757
~~~~~~~~~~~~
5858

59-
.. contributors:: v2.2.1..v2.2.2|HEAD
59+
.. contributors:: v2.2.1..v2.2.2

doc/source/whatsnew/v2.2.3.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _whatsnew_223:
22

3-
What's new in 2.2.3 (September XX, 2024)
3+
What's new in 2.2.3 (September 20, 2024)
44
----------------------------------------
55

66
These are the changes in pandas 2.2.3. See :ref:`release` for a full changelog
@@ -9,28 +9,37 @@ including other versions of pandas.
99
{{ header }}
1010

1111
.. ---------------------------------------------------------------------------
12-
.. _whatsnew_223.regressions:
1312
14-
Fixed regressions
15-
~~~~~~~~~~~~~~~~~
16-
-
13+
.. _whatsnew_220.py13_compat:
14+
15+
Pandas 2.2.3 is now compatible with Python 3.13
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
18+
Pandas 2.2.3 is the first version of pandas that is generally compatible with the upcoming
19+
Python 3.13, and both wheels for free-threaded and normal Python 3.13 will be uploaded for
20+
this release.
21+
22+
As usual please report any bugs discovered to our `issue tracker <https://github.com/pandas-dev/pandas/issues/new/choose>`_
1723

1824
.. ---------------------------------------------------------------------------
1925
.. _whatsnew_223.bug_fixes:
2026

2127
Bug fixes
2228
~~~~~~~~~
23-
-
29+
- Bug in :func:`eval` on :class:`complex` including division ``/`` discards imaginary part. (:issue:`21374`)
30+
- Minor fixes for numpy 2.1 compatibility. (:issue:`59444`)
2431

2532
.. ---------------------------------------------------------------------------
2633
.. _whatsnew_223.other:
2734

2835
Other
2936
~~~~~
30-
-
37+
- Missing licenses for 3rd party dependencies were added back into the wheels. (:issue:`58632`)
3138

3239
.. ---------------------------------------------------------------------------
3340
.. _whatsnew_223.contributors:
3441

3542
Contributors
3643
~~~~~~~~~~~~
44+
45+
.. contributors:: v2.2.2..v2.2.3|HEAD

doc/source/whatsnew/v3.0.0.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ Other
693693
^^^^^
694694
- Bug in :class:`DataFrame` when passing a ``dict`` with a NA scalar and ``columns`` that would always return ``np.nan`` (:issue:`57205`)
695695
- Bug in :func:`eval` on :class:`ExtensionArray` on including division ``/`` failed with a ``TypeError``. (:issue:`58748`)
696-
- Bug in :func:`eval` on :class:`complex` including division ``/`` discards imaginary part. (:issue:`21374`)
697696
- Bug in :func:`eval` where the names of the :class:`Series` were not preserved when using ``engine="numexpr"``. (:issue:`10239`)
698697
- Bug in :func:`unique` on :class:`Index` not always returning :class:`Index` (:issue:`57043`)
699698
- Bug in :meth:`DataFrame.apply` where passing ``engine="numba"`` ignored ``args`` passed to the applied function (:issue:`58712`)

pandas/_libs/tslibs/np_datetime.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ cdef int string_to_dts(
8989
int* out_local,
9090
int* out_tzoffset,
9191
bint want_exc,
92-
format: str | None = *,
92+
str format = *,
9393
bint exact = *
9494
) except? -1
9595

pandas/_libs/tslibs/np_datetime.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ cdef int string_to_dts(
331331
int* out_local,
332332
int* out_tzoffset,
333333
bint want_exc,
334-
format: str | None=None,
334+
str format=None,
335335
bint exact=True,
336336
) except? -1:
337337
cdef:

pandas/_libs/tslibs/offsets.pyx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,6 +3582,11 @@ cdef class WeekOfMonth(WeekOfMonthMixin):
35823582
"""
35833583
Describes monthly dates like "the Tuesday of the 2nd week of each month".
35843584
3585+
This offset allows for generating or adjusting dates by specifying
3586+
a particular week and weekday within a month. The week is zero-indexed,
3587+
where 0 corresponds to the first week of the month, and weekday follows
3588+
a Monday=0 convention.
3589+
35853590
Attributes
35863591
----------
35873592
n : int, default 1
@@ -3602,6 +3607,12 @@ cdef class WeekOfMonth(WeekOfMonthMixin):
36023607
- 5 is Saturday
36033608
- 6 is Sunday.
36043609
3610+
See Also
3611+
--------
3612+
offsets.Week : Describes weekly frequency adjustments.
3613+
offsets.MonthEnd : Describes month-end frequency adjustments.
3614+
date_range : Generates a range of dates based on a specific frequency.
3615+
36053616
Examples
36063617
--------
36073618
>>> ts = pd.Timestamp(2022, 1, 1)

0 commit comments

Comments
 (0)