Skip to content

Commit 525a781

Browse files
authored
Merge branch 'main' into read-csv-from-directory
2 parents 152de4d + 499c5d4 commit 525a781

File tree

265 files changed

+3638
-2089
lines changed

Some content is hidden

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

265 files changed

+3638
-2089
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))
4646
runs-on: ubuntu-24.04
4747
env:
48-
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
4948
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
5049
outputs:
5150
sdist_file: ${{ steps.save-path.outputs.sdist_name }}
@@ -118,7 +117,6 @@ jobs:
118117
python: ["cp313t", "3.13"]
119118

120119
env:
121-
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
122120
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
123121
steps:
124122
- name: Checkout pandas
@@ -204,21 +202,11 @@ jobs:
204202
path: ./wheelhouse/*.whl
205203

206204
- name: Upload wheels & sdist
207-
if: ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
208-
shell: bash -el {0}
209-
env:
210-
PANDAS_STAGING_UPLOAD_TOKEN: ${{ secrets.PANDAS_STAGING_UPLOAD_TOKEN }}
211-
PANDAS_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN }}
212-
# trigger an upload to
213-
# https://anaconda.org/scientific-python-nightly-wheels/pandas
214-
# for cron jobs or "Run workflow" (restricted to main branch).
215-
# Tags will upload to
216-
# https://anaconda.org/multibuild-wheels-staging/pandas
217-
# The tokens were originally generated at anaconda.org
218-
run: |
219-
source ci/upload_wheels.sh
220-
set_upload_vars
221-
upload_wheels
205+
if: ${{ success() && env.IS_SCHEDULE_DISPATCH == 'true' }}
206+
uses: scientific-python/upload-nightly-action@0.6.2
207+
with:
208+
artifacts_path: dist
209+
anaconda_nightly_upload_token: ${{secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN}}
222210

223211
publish:
224212
if: >

.pre-commit-config.yaml

Lines changed: 4 additions & 4 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.14.3
22+
rev: v0.14.7
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -71,7 +71,7 @@ repos:
7171
hooks:
7272
- id: isort
7373
- repo: https://github.com/asottile/pyupgrade
74-
rev: v3.21.0
74+
rev: v3.21.2
7575
hooks:
7676
- id: pyupgrade
7777
args: [--py311-plus]
@@ -87,12 +87,12 @@ repos:
8787
types: [text] # overwrite types: [rst]
8888
types_or: [python, rst]
8989
- repo: https://github.com/sphinx-contrib/sphinx-lint
90-
rev: v1.0.1
90+
rev: v1.0.2
9191
hooks:
9292
- id: sphinx-lint
9393
args: ["--enable", "all", "--disable", "line-too-long"]
9494
- repo: https://github.com/pre-commit/mirrors-clang-format
95-
rev: v21.1.2
95+
rev: v21.1.6
9696
hooks:
9797
- id: clang-format
9898
files: ^pandas/_libs/src|^pandas/_libs/include

ci/code_checks.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
6969
"$BASE_DIR"/scripts/validate_docstrings.py \
7070
--format=actions \
7171
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
72+
-i "pandas.DataFrame.from_arrow SA01,EX01" \
7273
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
7374
-i "pandas.Period.freq GL08" \
7475
-i "pandas.Period.ordinal GL08" \
76+
-i "pandas.errors.ChainedAssignmentError SA01" \
7577
-i "pandas.errors.IncompatibleFrequency SA01,SS06,EX01" \
7678
-i "pandas.api.extensions.ExtensionArray.value_counts EX01,RT03,SA01" \
7779
-i "pandas.api.typing.DataFrameGroupBy.plot PR02" \
@@ -164,6 +166,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
164166
-i "pandas.tseries.offsets.DateOffset.is_on_offset GL08" \
165167
-i "pandas.tseries.offsets.DateOffset.n GL08" \
166168
-i "pandas.tseries.offsets.DateOffset.normalize GL08" \
169+
-i "pandas.tseries.offsets.DateOffset.rollback SA01,EX01" \
170+
-i "pandas.tseries.offsets.DateOffset.rollforward SA01,EX01" \
167171
-i "pandas.tseries.offsets.Day.freqstr SA01" \
168172
-i "pandas.tseries.offsets.Day.is_on_offset GL08" \
169173
-i "pandas.tseries.offsets.Day.n GL08" \

ci/upload_wheels.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

doc/source/development/maintaining.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,6 @@ which will be triggered when the tag is pushed.
433433
3. Download the source distribution and wheels from the `wheel staging area <https://anaconda.org/scientific-python-nightly-wheels/pandas>`_.
434434
Be careful to make sure that no wheels are missing (e.g. due to failed builds).
435435

436-
Running scripts/download_wheels.sh with the version that you want to download wheels/the sdist for should do the trick.
437-
This script will make a ``dist`` folder inside your clone of pandas and put the downloaded wheels and sdist there::
438-
439-
scripts/download_wheels.sh <VERSION>
440-
441-
ATTENTION: this is currently not downloading *all* wheels, and you have to
442-
manually download the remainings wheels and sdist!
443-
444436
4. Create a `new GitHub release <https://github.com/pandas-dev/pandas/releases/new>`_:
445437

446438
- Tag: ``<version>``

doc/source/reference/frame.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ Serialization / IO / conversion
360360
.. autosummary::
361361
:toctree: api/
362362

363+
DataFrame.from_arrow
363364
DataFrame.from_dict
364365
DataFrame.from_records
365366
DataFrame.to_orc

doc/source/reference/indexing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ Categorical components
189189
.. autosummary::
190190
:toctree: api/
191191

192+
CategoricalIndex.append
192193
CategoricalIndex.codes
193194
CategoricalIndex.categories
194195
CategoricalIndex.ordered

doc/source/reference/offset_frequency.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Methods
4040
DateOffset.is_quarter_end
4141
DateOffset.is_year_start
4242
DateOffset.is_year_end
43+
DateOffset.rollback
44+
DateOffset.rollforward
4345

4446
BusinessDay
4547
-----------

doc/source/reference/series.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ strings and apply several methods to it. These can be accessed like
424424
Series.str.fullmatch
425425
Series.str.get
426426
Series.str.index
427+
Series.str.isascii
427428
Series.str.join
428429
Series.str.len
429430
Series.str.ljust

doc/source/user_guide/copy_on_write.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ two subsequent indexing operations, e.g.
249249
In [3]: df
250250
Out[3]:
251251
foo bar
252-
0 100 4
252+
0 1 4
253253
1 2 5
254-
2 3 6
254+
2 100 6
255255
256256
The column ``foo`` was updated where the column ``bar`` is greater than 5.
257257
This violated the CoW principles though, because it would have to modify the

0 commit comments

Comments
 (0)