Skip to content

Commit d381b6f

Browse files
committed
Change to len(_values)
2 parents 26fc884 + eb23512 commit d381b6f

File tree

409 files changed

+7107
-7596
lines changed

Some content is hidden

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

409 files changed

+7107
-7596
lines changed

.devcontainer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
// You can edit these settings after create using File > Preferences > Settings > Remote.
1010
"settings": {
1111
"terminal.integrated.shell.linux": "/bin/bash",
12-
"python.condaPath": "/opt/conda/bin/conda",
13-
"python.pythonPath": "/opt/conda/bin/python",
12+
"python.pythonPath": "/usr/local/bin/python",
1413
"python.formatting.provider": "black",
1514
"python.linting.enabled": true,
1615
"python.linting.flake8Enabled": true,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
- name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }}
1919
run: |
2020
grep -q ' - pyarrow' ${{ inputs.environment-file }}
21-
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
21+
sed -i"" -e "s/ - pyarrow<10/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
2222
cat ${{ inputs.environment-file }}
2323
shell: bash
2424
if: ${{ inputs.pyarrow-version }}

.github/workflows/32-bit-linux.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
pytest:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v3
@@ -38,7 +38,8 @@ jobs:
3838
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
3939
. ~/virtualenvs/pandas-dev/bin/activate && \
4040
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \
41-
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
41+
python -m pip install versioneer[toml] && \
42+
python -m pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
4243
python setup.py build_ext -q -j1 && \
4344
python -m pip install --no-build-isolation --no-use-pep517 -e . && \
4445
python -m pip list && \

.github/workflows/assign.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
issues: write
1313
pull-requests: write
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- if: github.event.comment.body == 'take'
1717
run: |

.github/workflows/asv-bot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: "Run benchmarks"
2222
# TODO: Support more benchmarking options later, against different branches, against self, etc
2323
if: startsWith(github.event.comment.body, '@github-actions benchmark')
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-22.04
2525
defaults:
2626
run:
2727
shell: bash -el {0}

.github/workflows/autoupdate-pre-commit-config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
pull-requests: write # for technote-space/create-pr-action to create a PR
1616
if: github.repository_owner == 'pandas-dev'
1717
name: Autoupdate pre-commit config
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: Set up Python
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
- name: Cache multiple paths
2323
uses: actions/cache@v3
2424
with:

.github/workflows/code-checks.yml

+18-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
jobs:
2121
pre_commit:
2222
name: pre-commit
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-22.04
2424
concurrency:
2525
# https://github.community/t/concurrecy-not-work-for-push/183068/7
2626
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-pre-commit
@@ -30,16 +30,18 @@ jobs:
3030
uses: actions/checkout@v3
3131

3232
- name: Install Python
33-
uses: actions/setup-python@v3
33+
uses: actions/setup-python@v4
3434
with:
35-
python-version: '3.9.7'
35+
python-version: '3.9'
3636

3737
- name: Run pre-commit
3838
uses: pre-commit/[email protected]
39+
with:
40+
extra_args: --verbose --all-files
3941

40-
typing_and_docstring_validation:
41-
name: Docstring and typing validation
42-
runs-on: ubuntu-latest
42+
docstring_typing_pylint:
43+
name: Docstring validation, typing, and pylint
44+
runs-on: ubuntu-22.04
4345
defaults:
4446
run:
4547
shell: bash -el {0}
@@ -79,6 +81,10 @@ jobs:
7981
run: ci/code_checks.sh docstrings
8082
if: ${{ steps.build.outcome == 'success' && always() }}
8183

84+
- name: Run check of documentation notebooks
85+
run: ci/code_checks.sh notebooks
86+
if: ${{ steps.build.outcome == 'success' && always() }}
87+
8288
- name: Use existing environment for type checking
8389
run: |
8490
echo $PATH >> $GITHUB_PATH
@@ -89,7 +95,7 @@ jobs:
8995
- name: Typing + pylint
9096
uses: pre-commit/[email protected]
9197
with:
92-
extra_args: --hook-stage manual --all-files
98+
extra_args: --verbose --hook-stage manual --all-files
9399
if: ${{ steps.build.outcome == 'success' && always() }}
94100

95101
- name: Run docstring validation script tests
@@ -98,7 +104,7 @@ jobs:
98104

99105
asv-benchmarks:
100106
name: ASV Benchmarks
101-
runs-on: ubuntu-latest
107+
runs-on: ubuntu-22.04
102108
defaults:
103109
run:
104110
shell: bash -el {0}
@@ -129,7 +135,7 @@ jobs:
129135
130136
build_docker_dev_environment:
131137
name: Build Docker Dev Environment
132-
runs-on: ubuntu-latest
138+
runs-on: ubuntu-22.04
133139
defaults:
134140
run:
135141
shell: bash -el {0}
@@ -152,11 +158,11 @@ jobs:
152158
run: docker build --pull --no-cache --tag pandas-dev-env .
153159

154160
- name: Show environment
155-
run: docker run -w /home/pandas pandas-dev-env mamba run -n pandas-dev python -c "import pandas as pd; print(pd.show_versions())"
161+
run: docker run --rm pandas-dev-env python -c "import pandas as pd; print(pd.show_versions())"
156162

157163
requirements-dev-text-installable:
158164
name: Test install requirements-dev.txt
159-
runs-on: ubuntu-latest
165+
runs-on: ubuntu-22.04
160166

161167
concurrency:
162168
# https://github.community/t/concurrecy-not-work-for-push/183068/7
@@ -171,7 +177,7 @@ jobs:
171177

172178
- name: Setup Python
173179
id: setup_python
174-
uses: actions/setup-python@v3
180+
uses: actions/setup-python@v4
175181
with:
176182
python-version: '3.8'
177183
cache: 'pip'

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010

1111
jobs:
1212
analyze:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
permissions:
1515
actions: read
1616
contents: read

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
web_and_docs:
2424
name: Doc Build and Upload
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-22.04
2626

2727
concurrency:
2828
# https://github.community/t/concurrecy-not-work-for-push/183068/7
@@ -54,11 +54,6 @@ jobs:
5454
- name: Build documentation zip
5555
run: doc/make.py zip_html
5656

57-
- name: Build the interactive terminal
58-
run: |
59-
cd web/interactive_terminal
60-
jupyter lite build
61-
6257
- name: Install ssh key
6358
run: |
6459
mkdir -m 700 -p ~/.ssh

.github/workflows/package-checks.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ on:
99
branches:
1010
- main
1111
- 1.5.x
12+
types: [ labeled, opened, synchronize, reopened ]
1213

1314
permissions:
1415
contents: read
1516

1617
jobs:
1718
pip:
18-
runs-on: ubuntu-latest
19+
if: ${{ github.event.label.name == 'Build' || contains(github.event.pull_request.labels.*.name, 'Build') || github.event_name == 'push'}}
20+
runs-on: ubuntu-22.04
1921
strategy:
2022
matrix:
2123
extra: ["test", "performance", "timezone", "computation", "fss", "aws", "gcp", "excel", "parquet", "feather", "hdf5", "spss", "postgresql", "mysql", "sql-other", "html", "xml", "plot", "output_formatting", "clipboard", "compression", "all"]
@@ -34,20 +36,14 @@ jobs:
3436

3537
- name: Setup Python
3638
id: setup_python
37-
uses: actions/setup-python@v3
39+
uses: actions/setup-python@v4
3840
with:
3941
python-version: '3.8'
4042

41-
# Hacky patch to disable building cython extensions.
42-
# This job should only check that the extras successfully install.
43-
- name: Disable building ext_modules
44-
run: |
45-
sed -i '/ext_modules=/d' setup.py
46-
shell: bash -el {0}
47-
4843
- name: Install required dependencies
4944
run: |
5045
python -m pip install --upgrade pip setuptools wheel python-dateutil pytz numpy cython
46+
python -m pip install versioneer[toml]
5147
shell: bash -el {0}
5248

5349
- name: Pip install with extra

.github/workflows/python-dev.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
fail-fast: false
5151
matrix:
52-
os: [ubuntu-latest, macOS-latest, windows-latest]
52+
os: [ubuntu-22.04, macOS-latest, windows-latest]
5353

5454
name: actions-311-dev
5555
timeout-minutes: 120
@@ -75,6 +75,7 @@ jobs:
7575
python -m pip install --upgrade pip setuptools wheel
7676
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
7777
python -m pip install git+https://github.com/nedbat/coveragepy.git
78+
python -m pip install versioneer[toml]
7879
python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 pytest-xdist pytest-cov pytest-asyncio>=0.17
7980
python -m pip list
8081

.github/workflows/scorecards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions: read-all
1313
jobs:
1414
analysis:
1515
name: Scorecards analysis
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
permissions:
1818
# Needed to upload the results to code-scanning dashboard.
1919
security-events: write

.github/workflows/sdist.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
build:
2121
if: ${{ github.event.label.name == 'Build' || contains(github.event.pull_request.labels.*.name, 'Build') || github.event_name == 'push'}}
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-22.04
2323
timeout-minutes: 60
2424
defaults:
2525
run:
@@ -47,6 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip setuptools wheel
50+
python -m pip install versioneer[toml]
5051
5152
# GH 39416
5253
pip install numpy

.github/workflows/stale-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
stale:
1212
permissions:
1313
pull-requests: write
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/stale@v4
1717
with:

.github/workflows/ubuntu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020

2121
jobs:
2222
pytest:
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-22.04
2424
defaults:
2525
run:
2626
shell: bash -el {0}

.github/workflows/wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
(github.event_name == 'pull_request' &&
128128
contains(github.event.pull_request.labels.*.name, 'Build')) ||
129129
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))
130-
runs-on: ubuntu-latest
130+
runs-on: ubuntu-22.04
131131
env:
132132
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
133133
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

.gitpod.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Building pandas on init
2+
# Might delegate this later to prebuild with Q2 improvements on gitpod
3+
# https://www.gitpod.io/docs/config-start-tasks/#configuring-the-terminal
4+
# -------------------------------------------------------------------------
5+
6+
# assuming we use dockerhub: name of the docker user, docker image, tag, e.g. https://hub.docker.com/r/pandas/pandas-gitpod/tags
7+
image: pythonpandas/pandas-gitpod:latest
8+
tasks:
9+
- name: Prepare development environment
10+
init: |
11+
mkdir -p .vscode
12+
cp gitpod/settings.json .vscode/settings.json
13+
conda activate pandas-dev
14+
git pull --unshallow # need to force this else the prebuild fails
15+
git fetch --tags
16+
python setup.py build_ext -j 4
17+
python -m pip install -e . --no-build-isolation
18+
echo "🛠 Completed rebuilding Pandas!! 🛠 "
19+
echo "✨ Pre-build complete! You can close this terminal ✨ "
20+
21+
# --------------------------------------------------------
22+
# exposing ports for liveserve
23+
ports:
24+
- port: 5500
25+
onOpen: notify
26+
27+
# --------------------------------------------------------
28+
# some useful extensions to have
29+
vscode:
30+
extensions:
31+
- ms-python.python
32+
- yzhang.markdown-all-in-one
33+
- eamodio.gitlens
34+
- lextudio.restructuredtext
35+
- ritwickdey.liveserver
36+
# add or remove what you think is generally useful to most contributors
37+
# avoid adding too many. they each open a pop-up window
38+
39+
# --------------------------------------------------------
40+
# using prebuilds for the container
41+
# With this configuration the prebuild will happen on push to main
42+
github:
43+
prebuilds:
44+
# enable for main/default branch
45+
main: true
46+
# enable for other branches (defaults to false)
47+
branches: false
48+
# enable for pull requests coming from this repo (defaults to true)
49+
pullRequests: false
50+
# enable for pull requests coming from forks (defaults to false)
51+
pullRequestsFromForks: false
52+
# add a check to pull requests (defaults to true)
53+
addCheck: false
54+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
55+
addComment: false
56+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
57+
addBadge: false
58+
# add a label once the prebuild is ready to pull requests (defaults to false)
59+
addLabel: false

0 commit comments

Comments
 (0)