Skip to content

Commit 5b9edec

Browse files
committed
Merge remote-tracking branch 'upstream/main' into non-numeric-ea-reductions
2 parents 1ad7baa + 2a9855b commit 5b9edec

File tree

6 files changed

+27
-3
lines changed

6 files changed

+27
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ jobs:
391391
env:
392392
PYTHON_GIL: 0
393393

394+
# NOTE: this job must be kept in sync with the Pyodide build job in wheels.yml
394395
emscripten:
395396
# Note: the Python version, Emscripten toolchain version are determined
396397
# by the Pyodide version. The appropriate versions can be found in the

.github/workflows/wheels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ jobs:
100100
- [windows-2022, win_amd64]
101101
# TODO: support PyPy?
102102
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
103+
104+
# Build Pyodide wheels and upload them to Anaconda.org
105+
# NOTE: this job is similar to the one in unit-tests.yml except for the fact
106+
# that it uses cibuildwheel instead of a standard Pyodide xbuildenv setup.
107+
include:
108+
- buildplat: [ubuntu-22.04, pyodide_wasm32]
109+
python: ["cp312", "3.12"]
103110
env:
104111
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
105112
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
@@ -146,6 +153,7 @@ jobs:
146153
env:
147154
CIBW_PRERELEASE_PYTHONS: True
148155
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
156+
CIBW_PLATFORM: ${{ matrix.buildplat[1] == 'pyodide_wasm32' && 'pyodide' || 'auto' }}
149157

150158
- name: Set up Python
151159
uses: mamba-org/setup-micromamba@v1

doc/source/getting_started/intro_tutorials/04_plotting.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ How do I create plots in pandas?
3232
air_quality.head()
3333
3434
.. note::
35-
The usage of the ``index_col`` and ``parse_dates`` parameters of the ``read_csv`` function to define the first (0th) column as
36-
index of the resulting ``DataFrame`` and convert the dates in the column to :class:`Timestamp` objects, respectively.
35+
The ``index_col=0`` and ``parse_dates=True`` parameters passed to the ``read_csv`` function define
36+
the first (0th) column as index of the resulting ``DataFrame`` and convert the dates in the column
37+
to :class:`Timestamp` objects, respectively.
38+
3739

3840
.. raw:: html
3941

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4473,7 +4473,7 @@ def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | No
44734473
or punctuations (besides underscores) or starting with digits must be
44744474
surrounded by backticks. (For example, a column named "Area (cm^2)" would
44754475
be referenced as ```Area (cm^2)```). Column names which are Python keywords
4476-
(like "list", "for", "import", etc) cannot be used.
4476+
(like "if", "for", "import", etc) cannot be used.
44774477
44784478
For example, if one of your columns is called ``a a`` and you want
44794479
to sum it with ``b``, your query should be ```a a` + b``.

pandas/tests/test_common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import numpy as np
88
import pytest
99

10+
from pandas.compat import WASM
11+
1012
import pandas as pd
1113
from pandas import Series
1214
import pandas._testing as tm
@@ -233,6 +235,7 @@ def test_temp_setattr(with_exception):
233235
assert ser.name == "first"
234236

235237

238+
@pytest.mark.skipif(WASM, reason="Can't start subprocesses in WASM")
236239
@pytest.mark.single_cpu
237240
def test_str_size():
238241
# GH#21758

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,16 @@ test-command = ""
177177
select = "*-macosx*"
178178
environment = {CFLAGS="-g0"}
179179

180+
[[tool.cibuildwheel.overrides]]
181+
select = "*pyodide*"
182+
test-requires = "pytest>=7.3.2 hypothesis>=6.46.1"
183+
# Pyodide repairs wheels on its own, using auditwheel-emscripten
184+
repair-wheel-command = ""
185+
test-command = """
186+
PANDAS_CI='1' python -c 'import pandas as pd; \
187+
pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
188+
"""
189+
180190
[tool.ruff]
181191
line-length = 88
182192
target-version = "py310"

0 commit comments

Comments
 (0)