Skip to content

Commit 97c8e56

Browse files
authored
Merge branch 'main' into BUG-56994/pyarrow-assignment-unexpected-dtypes
2 parents 4e03be0 + f1bdd0f commit 97c8e56

File tree

224 files changed

+3495
-1963
lines changed

Some content is hidden

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

224 files changed

+3495
-1963
lines changed

.circleci/config.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ jobs:
9292
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
9393
command: |
9494
pip3 install cibuildwheel==2.20.0
95-
cibuildwheel --output-dir wheelhouse
95+
if [[ $CIBW_BUILD == cp313t* ]]; then
96+
# TODO: temporarily run 3.13 free threaded builds without build isolation
97+
# since we need pre-release cython
98+
CIBW_BUILD_FRONTEND="pip; args: --no-build-isolation" cibuildwheel --output-dir wheelhouse
99+
else
100+
cibuildwheel --output-dir wheelhouse
101+
fi
96102
97103
environment:
98104
CIBW_BUILD: << parameters.cibw-build >>
@@ -141,6 +147,10 @@ workflows:
141147
cibw-build: ["cp310-manylinux_aarch64",
142148
"cp311-manylinux_aarch64",
143149
"cp312-manylinux_aarch64",
150+
"cp313-manylinux_aarch64",
151+
"cp313t-manylinux_aarch64",
144152
"cp310-musllinux_aarch64",
145153
"cp311-musllinux_aarch64",
146-
"cp312-musllinux_aarch64",]
154+
"cp312-musllinux_aarch64",
155+
"cp313-musllinux_aarch64",
156+
"cp313t-musllinux_aarch64"]

.github/actions/setup-conda/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ runs:
99
- name: Install ${{ inputs.environment-file }}
1010
uses: mamba-org/setup-micromamba@v1
1111
with:
12+
# Pinning to avoid 2.0 failures
13+
micromamba-version: '1.5.10-0'
1214
environment-file: ${{ inputs.environment-file }}
1315
environment-name: test
1416
condarc-file: ci/.condarc

.github/workflows/code-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212

1313
env:
1414
ENV_FILE: environment.yml

.github/workflows/docbuild-and-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
tags:
99
- '*'
1010
pull_request:
1111
branches:
1212
- main
13-
- 2.2.x
13+
- 2.3.x
1414

1515
env:
1616
ENV_FILE: environment.yml

.github/workflows/package-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212
types: [ labeled, opened, synchronize, reopened ]
1313

1414
permissions:
@@ -67,7 +67,7 @@ jobs:
6767
fetch-depth: 0
6868

6969
- name: Set up Python
70-
uses: mamba-org/setup-micromamba@v1
70+
uses: mamba-org/setup-micromamba@v2
7171
with:
7272
environment-name: recipe-test
7373
create-args: >-

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212
paths-ignore:
1313
- "doc/**"
1414
- "web/**"

.github/workflows/wheels.yml

Lines changed: 3 additions & 7 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
@@ -158,7 +156,7 @@ jobs:
158156
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
159157

160158
- name: Build wheels
161-
uses: pypa/cibuildwheel@v2.20.0
159+
uses: pypa/cibuildwheel@v2.21.0
162160
with:
163161
package-dir: ./dist/${{ startsWith(matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
164162
env:
@@ -167,7 +165,7 @@ jobs:
167165
CIBW_PLATFORM: ${{ matrix.buildplat[1] == 'pyodide_wasm32' && 'pyodide' || 'auto' }}
168166

169167
- name: Set up Python
170-
uses: mamba-org/setup-micromamba@v1
168+
uses: mamba-org/setup-micromamba@v2
171169
with:
172170
environment-name: wheel-env
173171
# Use a fixed Python, since we might have an unreleased Python not
@@ -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
"@

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.5.0
22+
rev: v0.6.9
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -34,7 +34,7 @@ repos:
3434
- id: ruff-format
3535
exclude: ^scripts|^pandas/tests/frame/test_query_eval.py
3636
- repo: https://github.com/jendrikseipp/vulture
37-
rev: 'v2.11'
37+
rev: 'v2.13'
3838
hooks:
3939
- id: vulture
4040
entry: python scripts/run_vulture.py
@@ -52,7 +52,7 @@ repos:
5252
- id: cython-lint
5353
- id: double-quote-cython-strings
5454
- repo: https://github.com/pre-commit/pre-commit-hooks
55-
rev: v4.6.0
55+
rev: v5.0.0
5656
hooks:
5757
- id: check-case-conflict
5858
- id: check-toml
@@ -74,7 +74,7 @@ repos:
7474
hooks:
7575
- id: isort
7676
- repo: https://github.com/asottile/pyupgrade
77-
rev: v3.16.0
77+
rev: v3.17.0
7878
hooks:
7979
- id: pyupgrade
8080
args: [--py310-plus]
@@ -90,12 +90,12 @@ repos:
9090
types: [text] # overwrite types: [rst]
9191
types_or: [python, rst]
9292
- repo: https://github.com/sphinx-contrib/sphinx-lint
93-
rev: v0.9.1
93+
rev: v1.0.0
9494
hooks:
9595
- id: sphinx-lint
9696
args: ["--enable", "all", "--disable", "line-too-long"]
9797
- repo: https://github.com/pre-commit/mirrors-clang-format
98-
rev: v18.1.8
98+
rev: v19.1.1
9999
hooks:
100100
- id: clang-format
101101
files: ^pandas/_libs/src|^pandas/_libs/include
@@ -112,7 +112,7 @@ repos:
112112
types: [python]
113113
stages: [manual]
114114
additional_dependencies: &pyright_dependencies
115-
115+
116116
- id: pyright
117117
# note: assumes python env is setup and activated
118118
name: pyright reportGeneralTypeIssues

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 & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -70,115 +70,54 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7070
--format=actions \
7171
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
7272
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
73-
-i "pandas.NA SA01" \
7473
-i "pandas.Period.freq GL08" \
7574
-i "pandas.Period.ordinal GL08" \
76-
-i "pandas.PeriodDtype.freq SA01" \
7775
-i "pandas.RangeIndex.from_range PR01,SA01" \
78-
-i "pandas.RangeIndex.step SA01" \
79-
-i "pandas.Series.cat.add_categories PR01,PR02" \
80-
-i "pandas.Series.cat.as_ordered PR01" \
81-
-i "pandas.Series.cat.as_unordered PR01" \
82-
-i "pandas.Series.cat.remove_categories PR01,PR02" \
83-
-i "pandas.Series.cat.remove_unused_categories PR01" \
84-
-i "pandas.Series.cat.rename_categories PR01,PR02" \
85-
-i "pandas.Series.cat.reorder_categories PR01,PR02" \
86-
-i "pandas.Series.cat.set_categories PR01,PR02" \
87-
-i "pandas.Series.dt.as_unit PR01,PR02" \
88-
-i "pandas.Series.dt.ceil PR01,PR02" \
89-
-i "pandas.Series.dt.day_name PR01,PR02" \
90-
-i "pandas.Series.dt.floor PR01,PR02" \
9176
-i "pandas.Series.dt.freq GL08" \
92-
-i "pandas.Series.dt.month_name PR01,PR02" \
93-
-i "pandas.Series.dt.normalize PR01" \
94-
-i "pandas.Series.dt.round PR01,PR02" \
95-
-i "pandas.Series.dt.strftime PR01,PR02" \
96-
-i "pandas.Series.dt.to_period PR01,PR02" \
97-
-i "pandas.Series.dt.total_seconds PR01" \
98-
-i "pandas.Series.dt.tz_convert PR01,PR02" \
99-
-i "pandas.Series.dt.tz_localize PR01,PR02" \
10077
-i "pandas.Series.dt.unit GL08" \
10178
-i "pandas.Series.pad PR01,SA01" \
102-
-i "pandas.Series.sparse.fill_value SA01" \
103-
-i "pandas.Series.sparse.from_coo PR07,SA01" \
104-
-i "pandas.Series.sparse.npoints SA01" \
105-
-i "pandas.Series.sparse.sp_values SA01" \
106-
-i "pandas.Timedelta.components SA01" \
10779
-i "pandas.Timedelta.max PR02" \
10880
-i "pandas.Timedelta.min PR02" \
10981
-i "pandas.Timedelta.resolution PR02" \
110-
-i "pandas.Timedelta.to_timedelta64 SA01" \
111-
-i "pandas.Timedelta.total_seconds SA01" \
112-
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
11382
-i "pandas.Timestamp.max PR02" \
11483
-i "pandas.Timestamp.min PR02" \
11584
-i "pandas.Timestamp.nanosecond GL08" \
11685
-i "pandas.Timestamp.resolution PR02" \
11786
-i "pandas.Timestamp.tzinfo GL08" \
11887
-i "pandas.Timestamp.year GL08" \
119-
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
120-
-i "pandas.api.types.is_dict_like PR07,SA01" \
121-
-i "pandas.api.types.is_extension_array_dtype SA01" \
122-
-i "pandas.api.types.is_file_like PR07,SA01" \
123-
-i "pandas.api.types.is_float PR01,SA01" \
124-
-i "pandas.api.types.is_float_dtype SA01" \
125-
-i "pandas.api.types.is_hashable PR01,RT03,SA01" \
126-
-i "pandas.api.types.is_int64_dtype SA01" \
12788
-i "pandas.api.types.is_integer PR01,SA01" \
128-
-i "pandas.api.types.is_integer_dtype SA01" \
129-
-i "pandas.api.types.is_interval_dtype SA01" \
13089
-i "pandas.api.types.is_iterator PR07,SA01" \
131-
-i "pandas.api.types.is_list_like SA01" \
132-
-i "pandas.api.types.is_named_tuple PR07,SA01" \
133-
-i "pandas.api.types.is_object_dtype SA01" \
134-
-i "pandas.api.types.is_re PR07,SA01" \
13590
-i "pandas.api.types.is_re_compilable PR07,SA01" \
13691
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
13792
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
138-
-i "pandas.arrays.BooleanArray SA01" \
139-
-i "pandas.arrays.DatetimeArray SA01" \
140-
-i "pandas.arrays.FloatingArray SA01" \
14193
-i "pandas.arrays.IntegerArray SA01" \
14294
-i "pandas.arrays.IntervalArray.left SA01" \
14395
-i "pandas.arrays.IntervalArray.length SA01" \
144-
-i "pandas.arrays.IntervalArray.mid SA01" \
14596
-i "pandas.arrays.IntervalArray.right SA01" \
14697
-i "pandas.arrays.NumpyExtensionArray SA01" \
14798
-i "pandas.arrays.SparseArray PR07,SA01" \
14899
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
149100
-i "pandas.core.groupby.DataFrameGroupBy.__iter__ RT03,SA01" \
150-
-i "pandas.core.groupby.DataFrameGroupBy.agg RT03" \
151-
-i "pandas.core.groupby.DataFrameGroupBy.aggregate RT03" \
152101
-i "pandas.core.groupby.DataFrameGroupBy.boxplot PR07,RT03,SA01" \
153102
-i "pandas.core.groupby.DataFrameGroupBy.get_group RT03,SA01" \
154103
-i "pandas.core.groupby.DataFrameGroupBy.groups SA01" \
155-
-i "pandas.core.groupby.DataFrameGroupBy.hist RT03" \
156104
-i "pandas.core.groupby.DataFrameGroupBy.indices SA01" \
157-
-i "pandas.core.groupby.DataFrameGroupBy.max SA01" \
158-
-i "pandas.core.groupby.DataFrameGroupBy.min SA01" \
159105
-i "pandas.core.groupby.DataFrameGroupBy.nth PR02" \
160106
-i "pandas.core.groupby.DataFrameGroupBy.nunique SA01" \
161107
-i "pandas.core.groupby.DataFrameGroupBy.ohlc SA01" \
162108
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
163109
-i "pandas.core.groupby.DataFrameGroupBy.sem SA01" \
164-
-i "pandas.core.groupby.DataFrameGroupBy.sum SA01" \
165110
-i "pandas.core.groupby.SeriesGroupBy.__iter__ RT03,SA01" \
166-
-i "pandas.core.groupby.SeriesGroupBy.agg RT03" \
167-
-i "pandas.core.groupby.SeriesGroupBy.aggregate RT03" \
168111
-i "pandas.core.groupby.SeriesGroupBy.get_group RT03,SA01" \
169112
-i "pandas.core.groupby.SeriesGroupBy.groups SA01" \
170113
-i "pandas.core.groupby.SeriesGroupBy.indices SA01" \
171114
-i "pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing SA01" \
172115
-i "pandas.core.groupby.SeriesGroupBy.is_monotonic_increasing SA01" \
173-
-i "pandas.core.groupby.SeriesGroupBy.max SA01" \
174-
-i "pandas.core.groupby.SeriesGroupBy.min SA01" \
175116
-i "pandas.core.groupby.SeriesGroupBy.nth PR02" \
176117
-i "pandas.core.groupby.SeriesGroupBy.ohlc SA01" \
177118
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
178119
-i "pandas.core.groupby.SeriesGroupBy.sem SA01" \
179-
-i "pandas.core.groupby.SeriesGroupBy.sum SA01" \
180120
-i "pandas.core.resample.Resampler.__iter__ RT03,SA01" \
181-
-i "pandas.core.resample.Resampler.ffill RT03" \
182121
-i "pandas.core.resample.Resampler.get_group RT03,SA01" \
183122
-i "pandas.core.resample.Resampler.groups SA01" \
184123
-i "pandas.core.resample.Resampler.indices SA01" \
@@ -193,46 +132,32 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
193132
-i "pandas.core.resample.Resampler.sum SA01" \
194133
-i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
195134
-i "pandas.core.resample.Resampler.var SA01" \
196-
-i "pandas.date_range RT03" \
197135
-i "pandas.errors.AttributeConflictWarning SA01" \
198136
-i "pandas.errors.CSSWarning SA01" \
199-
-i "pandas.errors.CategoricalConversionWarning SA01" \
200137
-i "pandas.errors.ChainedAssignmentError SA01" \
201-
-i "pandas.errors.ClosedFileError SA01" \
202138
-i "pandas.errors.DataError SA01" \
203139
-i "pandas.errors.DuplicateLabelError SA01" \
204-
-i "pandas.errors.EmptyDataError SA01" \
205140
-i "pandas.errors.IntCastingNaNError SA01" \
206141
-i "pandas.errors.InvalidIndexError SA01" \
207-
-i "pandas.errors.InvalidVersion SA01" \
208-
-i "pandas.errors.MergeError SA01" \
209142
-i "pandas.errors.NullFrequencyError SA01" \
210143
-i "pandas.errors.NumExprClobberingError SA01" \
211144
-i "pandas.errors.NumbaUtilError SA01" \
212145
-i "pandas.errors.OptionError SA01" \
213-
-i "pandas.errors.OutOfBoundsDatetime SA01" \
214146
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
215147
-i "pandas.errors.PerformanceWarning SA01" \
216148
-i "pandas.errors.PossibleDataLossError SA01" \
217149
-i "pandas.errors.PossiblePrecisionLoss SA01" \
218-
-i "pandas.errors.SpecificationError SA01" \
219150
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
220151
-i "pandas.errors.UnsortedIndexError SA01" \
221152
-i "pandas.errors.UnsupportedFunctionCall SA01" \
222153
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
223154
-i "pandas.infer_freq SA01" \
224155
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
225-
-i "pandas.io.stata.StataReader.data_label SA01" \
226-
-i "pandas.io.stata.StataReader.value_labels RT03,SA01" \
227-
-i "pandas.io.stata.StataReader.variable_labels RT03,SA01" \
228156
-i "pandas.io.stata.StataWriter.write_file SA01" \
229157
-i "pandas.json_normalize RT03,SA01" \
230-
-i "pandas.period_range RT03,SA01" \
231158
-i "pandas.plotting.andrews_curves RT03,SA01" \
232-
-i "pandas.plotting.lag_plot RT03,SA01" \
233159
-i "pandas.plotting.scatter_matrix PR07,SA01" \
234160
-i "pandas.set_eng_float_format RT03,SA01" \
235-
-i "pandas.testing.assert_extension_array_equal SA01" \
236161
-i "pandas.tseries.offsets.BDay PR02,SA01" \
237162
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
238163
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \
@@ -384,7 +309,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
384309
-i "pandas.tseries.offsets.SemiMonthBegin.n GL08" \
385310
-i "pandas.tseries.offsets.SemiMonthBegin.normalize GL08" \
386311
-i "pandas.tseries.offsets.SemiMonthBegin.rule_code GL08" \
387-
-i "pandas.tseries.offsets.SemiMonthEnd SA01" \
388312
-i "pandas.tseries.offsets.SemiMonthEnd.day_of_month GL08" \
389313
-i "pandas.tseries.offsets.SemiMonthEnd.is_on_offset GL08" \
390314
-i "pandas.tseries.offsets.SemiMonthEnd.n GL08" \
@@ -398,7 +322,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
398322
-i "pandas.tseries.offsets.Week.n GL08" \
399323
-i "pandas.tseries.offsets.Week.normalize GL08" \
400324
-i "pandas.tseries.offsets.Week.weekday GL08" \
401-
-i "pandas.tseries.offsets.WeekOfMonth SA01" \
402325
-i "pandas.tseries.offsets.WeekOfMonth.is_on_offset GL08" \
403326
-i "pandas.tseries.offsets.WeekOfMonth.n GL08" \
404327
-i "pandas.tseries.offsets.WeekOfMonth.normalize GL08" \

0 commit comments

Comments
 (0)