forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/pandas-dev/pandas into perf-p…
…andas-devgh-46470-slow-performance-of-to-dict
- Loading branch information
Showing
604 changed files
with
20,139 additions
and
7,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
- [ ] closes #xxxx (Replace xxxx with the Github issue number) | ||
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature | ||
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). | ||
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. | ||
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Run tests and report results | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Test | ||
run: ci/run_tests.sh | ||
shell: bash -el {0} | ||
|
||
- name: Publish test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Test results | ||
path: test-data.xml | ||
if: failure() | ||
|
||
- name: Report Coverage | ||
run: coverage report -m | ||
shell: bash -el {0} | ||
if: failure() | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
flags: unittests | ||
name: codecov-pandas | ||
fail_ci_if_error: false | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Set up Conda environment | ||
inputs: | ||
environment-file: | ||
description: Conda environment file to use. | ||
default: environment.yml | ||
environment-name: | ||
description: Name to use for the Conda environment | ||
default: test | ||
python-version: | ||
description: Python version to install | ||
required: false | ||
pyarrow-version: | ||
description: If set, overrides the PyArrow version in the Conda environment to the given string. | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }} | ||
run: | | ||
grep -q ' - pyarrow' ${{ inputs.environment-file }} | ||
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }} | ||
cat ${{ inputs.environment-file }} | ||
shell: bash | ||
if: ${{ inputs.pyarrow-version }} | ||
|
||
- name: Install ${{ inputs.environment-file }} | ||
uses: conda-incubator/setup-miniconda@v2.1.1 | ||
with: | ||
environment-file: ${{ inputs.environment-file }} | ||
activate-environment: ${{ inputs.environment-name }} | ||
python-version: ${{ inputs.python-version }} | ||
channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }} | ||
channels: conda-forge | ||
mamba-version: "0.24" | ||
use-mamba: true | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: 32 Bit Linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 1.4.x | ||
pull_request: | ||
branches: | ||
- main | ||
- 1.4.x | ||
paths-ignore: | ||
- "doc/**" | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run 32-bit manylinux2014 Docker Build / Tests | ||
run: | | ||
# Without this (line 34), versioneer will not be able to determine the pandas version. | ||
# This is because of a security update to git that blocks it from reading the config folder if | ||
# it is not owned by the current user. We hit this since the "mounted" folder is not hit by the | ||
# Docker container. | ||
# xref https://github.com/pypa/manylinux/issues/1309 | ||
docker pull quay.io/pypa/manylinux2014_i686 | ||
docker run --platform linux/386 -v $(pwd):/pandas quay.io/pypa/manylinux2014_i686 \ | ||
/bin/bash -xc "cd pandas && \ | ||
git config --global --add safe.directory /pandas && \ | ||
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \ | ||
. ~/virtualenvs/pandas-dev/bin/activate && \ | ||
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \ | ||
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \ | ||
python setup.py build_ext -q -j2 && \ | ||
python -m pip install --no-build-isolation --no-use-pep517 -e . && \ | ||
export PANDAS_CI=1 && \ | ||
pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml" | ||
- name: Publish test results for Python 3.8-32 bit full Linux | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Test results | ||
path: test-data.xml | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.