Skip to content

Commit 90af576

Browse files
committed
Merge branch 'master' into 42916
2 parents d93c0ac + 7d27588 commit 90af576

File tree

366 files changed

+7545
-3257
lines changed

Some content is hidden

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

366 files changed

+7545
-3257
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Bug Report
2+
description: Report incorrect behavior in the pandas library
3+
title: "BUG: "
4+
labels: [Bug, Needs Triage]
5+
6+
body:
7+
- type: checkboxes
8+
id: checks
9+
attributes:
10+
options:
11+
- label: >
12+
I have checked that this issue has not already been reported.
13+
required: true
14+
- label: >
15+
I have confirmed this bug exists on the
16+
[latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
17+
required: true
18+
- label: >
19+
I have confirmed this bug exists on the master branch of pandas.
20+
- type: textarea
21+
id: example
22+
attributes:
23+
label: Reproducible Example
24+
description: >
25+
Please follow [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) on how to
26+
provide a minimal, copy-pastable example.
27+
placeholder: >
28+
import pandas as pd
29+
30+
df = pd.DataFrame(range(5))
31+
32+
...
33+
render: python
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: problem
38+
attributes:
39+
label: Issue Description
40+
description: >
41+
Please provide a description of the issue shown in the reproducible example.
42+
validations:
43+
required: true
44+
- type: textarea
45+
id: expected-behavior
46+
attributes:
47+
label: Expected Behavior
48+
description: >
49+
Please describe or show a code example of the expected behavior.
50+
validations:
51+
required: true
52+
- type: textarea
53+
id: version
54+
attributes:
55+
label: Installed Versions
56+
description: >
57+
Please paste the output of ``pd.show_versions()``
58+
value: >
59+
<details>
60+
61+
62+
Replace this line with the output of pd.show_versions()
63+
64+
65+
</details>
66+
validations:
67+
required: true

.github/ISSUE_TEMPLATE/documentation_improvement.md

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Documentation Improvement
2+
description: Report wrong or missing documentation
3+
title: "DOC: "
4+
labels: [Docs, Needs Triage]
5+
6+
body:
7+
- type: checkboxes
8+
attributes:
9+
options:
10+
- label: >
11+
I have checked that the issue still exists on the latest versions of the docs
12+
on `master` [here](https://pandas.pydata.org/docs/dev/)
13+
required: true
14+
- type: textarea
15+
id: location
16+
attributes:
17+
label: Location of the documentation
18+
description: >
19+
Please provide the location of the documentation, e.g. "pandas.read_csv" or the
20+
URL of the documentation, e.g.
21+
"https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html"
22+
placeholder: https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: problem
27+
attributes:
28+
label: Documentation problem
29+
description: >
30+
Please provide a description of what documentation you believe needs to be fixed/improved
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: suggested-fix
35+
attributes:
36+
label: Suggested fix for documentation
37+
description: >
38+
Please explain the suggested fix and **why** it's better than the existing documentation
39+
validations:
40+
required: true
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Installation Issue
2+
description: Report issues installing the pandas library on your system
3+
title: "BUILD: "
4+
labels: [Build, Needs Triage]
5+
6+
body:
7+
- type: checkboxes
8+
id: checks
9+
attributes:
10+
options:
11+
- label: >
12+
I have read the [installation guide](https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html#installing-pandas).
13+
required: true
14+
- type: input
15+
id: platform
16+
attributes:
17+
label: Platform
18+
description: >
19+
Please provide the output of ``import platform; print(platform.platform())``
20+
validations:
21+
required: true
22+
- type: dropdown
23+
id: method
24+
attributes:
25+
label: Installation Method
26+
description: >
27+
Please provide how you tried to install pandas from a clean environment.
28+
options:
29+
- pip install
30+
- conda install
31+
- apt-get install
32+
- Built from source
33+
- Other
34+
validations:
35+
required: true
36+
- type: input
37+
id: pandas
38+
attributes:
39+
label: pandas Version
40+
description: >
41+
Please provide the version of pandas you are trying to install.
42+
validations:
43+
required: true
44+
- type: input
45+
id: python
46+
attributes:
47+
label: Python Version
48+
description: >
49+
Please provide the installed version of Python.
50+
validations:
51+
required: true
52+
- type: textarea
53+
id: logs
54+
attributes:
55+
label: Installation Logs
56+
description: >
57+
If possible, please copy and paste the installation logs when attempting to install pandas.
58+
value: >
59+
<details>
60+
61+
62+
Replace this line with the installation logs.
63+
64+
65+
</details>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Performance Issue
2+
description: Report slow performance or memory issues when running pandas code
3+
title: "PERF: "
4+
labels: [Performance, Needs Triage]
5+
6+
body:
7+
- type: checkboxes
8+
id: checks
9+
attributes:
10+
options:
11+
- label: >
12+
I have checked that this issue has not already been reported.
13+
required: true
14+
- label: >
15+
I have confirmed this issue exists on the
16+
[latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
17+
required: true
18+
- label: >
19+
I have confirmed this issue exists on the master branch of pandas.
20+
- type: textarea
21+
id: example
22+
attributes:
23+
label: Reproducible Example
24+
description: >
25+
Please provide a minimal, copy-pastable example that quantifies
26+
[slow runtime](https://docs.python.org/3/library/timeit.html) or
27+
[memory](https://pypi.org/project/memory-profiler/) issues.
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: version
32+
attributes:
33+
label: Installed Versions
34+
description: >
35+
Please paste the output of ``pd.show_versions()``
36+
value: >
37+
<details>
38+
39+
40+
Replace this line with the output of pd.show_versions()
41+
42+
43+
</details>
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: prior-performance
48+
attributes:
49+
label: Prior Performance
50+
description: >
51+
If applicable, please provide the prior version of pandas and output
52+
of the same reproducible example where the performance issue did not exist.

.github/workflows/asv-bot.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: "ASV Bot"
2+
3+
on:
4+
issue_comment: # Pull requests are issues
5+
types:
6+
- created
7+
8+
env:
9+
ENV_FILE: environment.yml
10+
COMMENT: ${{github.event.comment.body}}
11+
12+
jobs:
13+
autotune:
14+
name: "Run benchmarks"
15+
# TODO: Support more benchmarking options later, against different branches, against self, etc
16+
if: startsWith(github.event.comment.body, '@github-actions benchmark')
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
shell: bash -l {0}
21+
22+
concurrency:
23+
# Set concurrency to prevent abuse(full runs are ~5.5 hours !!!)
24+
# each user can only run one concurrent benchmark bot at a time
25+
# We don't cancel in progress jobs, but if you want to benchmark multiple PRs, you're gonna have
26+
# to wait
27+
group: ${{ github.actor }}-asv
28+
cancel-in-progress: false
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Cache conda
37+
uses: actions/cache@v2
38+
with:
39+
path: ~/conda_pkgs_dir
40+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
41+
42+
# Although asv sets up its own env, deps are still needed
43+
# during discovery process
44+
- uses: conda-incubator/setup-miniconda@v2
45+
with:
46+
activate-environment: pandas-dev
47+
channel-priority: strict
48+
environment-file: ${{ env.ENV_FILE }}
49+
use-only-tar-bz2: true
50+
51+
- name: Run benchmarks
52+
id: bench
53+
continue-on-error: true # This is a fake failure, asv will exit code 1 for regressions
54+
run: |
55+
# extracting the regex, see https://stackoverflow.com/a/36798723
56+
REGEX=$(echo "$COMMENT" | sed -n "s/^.*-b\s*\(\S*\).*$/\1/p")
57+
cd asv_bench
58+
asv check -E existing
59+
git remote add upstream https://github.com/pandas-dev/pandas.git
60+
git fetch upstream
61+
asv machine --yes
62+
asv continuous -f 1.1 -b $REGEX upstream/master HEAD
63+
echo 'BENCH_OUTPUT<<EOF' >> $GITHUB_ENV
64+
asv compare -f 1.1 upstream/master HEAD >> $GITHUB_ENV
65+
echo 'EOF' >> $GITHUB_ENV
66+
echo "REGEX=$REGEX" >> $GITHUB_ENV
67+
68+
- uses: actions/github-script@v4
69+
env:
70+
BENCH_OUTPUT: ${{env.BENCH_OUTPUT}}
71+
REGEX: ${{env.REGEX}}
72+
with:
73+
script: |
74+
const ENV_VARS = process.env
75+
const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
76+
github.issues.createComment({
77+
issue_number: context.issue.number,
78+
owner: context.repo.owner,
79+
repo: context.repo.repo,
80+
body: '\nBenchmarks completed. View runner logs here.' + run_url + '\nRegex used: '+ 'regex ' + ENV_VARS["REGEX"] + '\n' + ENV_VARS["BENCH_OUTPUT"]
81+
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Update pre-commit config"
22

33
on:
44
schedule:
5-
- cron: "0 7 * * 1" # At 07:00 on each Monday.
5+
- cron: "0 7 1 * *" # At 07:00 on 1st of every month.
66
workflow_dispatch:
77

88
jobs:

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,8 @@ repos:
164164
entry: python scripts/no_bool_in_generic.py
165165
language: python
166166
files: ^pandas/core/generic\.py$
167+
- id: pandas-errors-documented
168+
name: Ensure pandas errors are documented in doc/source/reference/general_utility_functions.rst
169+
entry: python scripts/pandas_errors_documented.py
170+
language: python
171+
files: ^pandas/errors/__init__.py$

0 commit comments

Comments
 (0)