Skip to content

Commit 2c84ef7

Browse files
authored
Merge branch 'master' into single_level
2 parents 350be02 + dc6bdab commit 2c84ef7

File tree

253 files changed

+10416
-7055
lines changed

Some content is hidden

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

253 files changed

+10416
-7055
lines changed

.github/workflows/stale-pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Stale PRs"
22
on:
33
schedule:
44
# * is a special character in YAML so you have to quote this string
5-
- cron: "0 */6 * * *"
5+
- cron: "0 0 * * *"
66

77
jobs:
88
stale:
@@ -11,8 +11,8 @@ jobs:
1111
- uses: actions/stale@v3
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
14-
stale-pr-message: "This pull request is stale because it has been open for thirty days with no activity."
15-
skip-stale-pr-message: true
14+
stale-pr-message: "This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this."
15+
skip-stale-pr-message: false
1616
stale-pr-label: "Stale"
1717
exempt-pr-labels: "Needs Review,Blocked,Needs Discussion"
1818
days-before-stale: 30

.pre-commit-config.yaml

+9-31
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,12 @@ repos:
3434
rev: v1.6.0
3535
hooks:
3636
- id: rst-backticks
37-
# these exclusions should be removed and the files fixed
38-
exclude: (?x)(
39-
text\.rst|
40-
timeseries\.rst|
41-
visualization\.rst|
42-
missing_data\.rst|
43-
options\.rst|
44-
reshaping\.rst|
45-
scale\.rst|
46-
merging\.rst|
47-
cookbook\.rst|
48-
enhancingperf\.rst|
49-
groupby\.rst|
50-
io\.rst|
51-
overview\.rst|
52-
panel\.rst|
53-
plotting\.rst|
54-
10min\.rst|
55-
basics\.rst|
56-
categorical\.rst|
57-
contributing\.rst|
58-
contributing_docstring\.rst|
59-
extending\.rst|
60-
ecosystem\.rst|
61-
comparison_with_sql\.rst|
62-
install\.rst|
63-
calculate_statistics\.rst|
64-
combine_dataframes\.rst|
65-
v0\.|
66-
v1\.0\.|
67-
v1\.1\.[012])
37+
- repo: local
38+
hooks:
39+
- id: pip_to_conda
40+
name: Generate pip dependency from conda
41+
description: This hook checks if the conda environment.yml and requirements-dev.txt are equal
42+
language: system
43+
entry: python -m scripts.generate_pip_deps_from_conda
44+
files: ^(environment.yml|requirements-dev.txt)$
45+
pass_filenames: false

.travis.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ matrix:
4646
- env:
4747
- JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="(not slow and not network and not clipboard)"
4848

49-
- arch: arm64
50-
env:
51-
- JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard and not arm_slow)"
52-
5349
- env:
5450
- JOB="3.7, locale" ENV_FILE="ci/deps/travis-37-locale.yaml" PATTERN="((not slow and not network and not clipboard) or (single and db))" LOCALE_OVERRIDE="zh_CN.UTF-8" SQL="1"
5551
services:
5652
- mysql
5753
- postgresql
5854

55+
- arch: arm64
56+
env:
57+
- JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard and not arm_slow)"
58+
5959
- env:
6060
# Enabling Deprecations when running tests
6161
# PANDAS_TESTING_MODE="deprecate" causes DeprecationWarning messages to be displayed in the logs
@@ -65,6 +65,12 @@ matrix:
6565
- mysql
6666
- postgresql
6767

68+
allow_failures:
69+
# Moved to allowed_failures 2020-09-29 due to timeouts https://github.com/pandas-dev/pandas/issues/36719
70+
- arch: arm64
71+
env:
72+
- JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard and not arm_slow)"
73+
6874

6975
before_install:
7076
- echo "before_install"

ci/code_checks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
335335
RET=$(($RET + $?)) ; echo $MSG "DONE"
336336

337337
MSG='Doctests strings.py' ; echo $MSG
338-
pytest -q --doctest-modules pandas/core/strings.py
338+
pytest -q --doctest-modules pandas/core/strings/
339339
RET=$(($RET + $?)) ; echo $MSG "DONE"
340340

341341
# Directories

ci/deps/azure-37-minimum_versions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
- numexpr=2.6.8
2121
- numpy=1.16.5
2222
- openpyxl=2.6.0
23-
- pytables=3.4.4
23+
- pytables=3.5.1
2424
- python-dateutil=2.7.3
2525
- pytz=2017.3
2626
- pyarrow=0.15

ci/deps/travis-37-locale.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313

1414
# pandas dependencies
1515
- beautifulsoup4
16-
- blosc=1.14.3
16+
- blosc=1.15.0
1717
- python-blosc
1818
- fastparquet=0.3.2
1919
- html5lib
@@ -30,7 +30,7 @@ dependencies:
3030
- pyarrow>=0.17
3131
- psycopg2=2.7
3232
- pymysql=0.7.11
33-
- pytables
33+
- pytables>=3.5.1
3434
- python-dateutil
3535
- pytz
3636
- scipy

doc/source/development/code_style.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,6 @@ Reading from a url
172172
.. code-block:: python
173173
174174
from pandas.io.common import urlopen
175-
with urlopen('http://www.google.com') as url:
175+
176+
with urlopen("http://www.google.com") as url:
176177
raw_text = url.read()

doc/source/development/contributing.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ comment letting others know they are working on an issue. While this is ok, you
3131
check each issue individually, and it's not possible to find the unassigned ones.
3232

3333
For this reason, we implemented a workaround consisting of adding a comment with the exact
34-
text `take`. When you do it, a GitHub action will automatically assign you the issue
34+
text ``take``. When you do it, a GitHub action will automatically assign you the issue
3535
(this will take seconds, and may require refreshing the page to see it).
3636
By doing this, it's possible to filter the list of issues and find only the unassigned ones.
3737

3838
So, a good way to find an issue to start contributing to pandas is to check the list of
3939
`unassigned good first issues <https://github.com/pandas-dev/pandas/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+no%3Aassignee>`_
40-
and assign yourself one you like by writing a comment with the exact text `take`.
40+
and assign yourself one you like by writing a comment with the exact text ``take``.
4141

4242
If for whatever reason you are not able to continue working with the issue, please try to
4343
unassign it, so other people know it's available again. You can check the list of
@@ -133,7 +133,7 @@ want to clone your fork to your machine::
133133
cd pandas-yourname
134134
git remote add upstream https://github.com/pandas-dev/pandas.git
135135

136-
This creates the directory `pandas-yourname` and connects your repository to
136+
This creates the directory ``pandas-yourname`` and connects your repository to
137137
the upstream (main project) *pandas* repository.
138138

139139
Note that performing a shallow clone (with ``--depth==N``, for some ``N`` greater
@@ -155,12 +155,12 @@ Using a Docker container
155155

156156
Instead of manually setting up a development environment, you can use `Docker
157157
<https://docs.docker.com/get-docker/>`_ to automatically create the environment with just several
158-
commands. Pandas provides a `DockerFile` in the root directory to build a Docker image
158+
commands. Pandas provides a ``DockerFile`` in the root directory to build a Docker image
159159
with a full pandas development environment.
160160

161161
**Docker Commands**
162162

163-
Pass your GitHub username in the `DockerFile` to use your own fork::
163+
Pass your GitHub username in the ``DockerFile`` to use your own fork::
164164

165165
# Build the image pandas-yourname-env
166166
docker build --tag pandas-yourname-env .
@@ -172,7 +172,7 @@ Even easier, you can integrate Docker with the following IDEs:
172172
**Visual Studio Code**
173173

174174
You can use the DockerFile to launch a remote session with Visual Studio Code,
175-
a popular free IDE, using the `.devcontainer.json` file.
175+
a popular free IDE, using the ``.devcontainer.json`` file.
176176
See https://code.visualstudio.com/docs/remote/containers for details.
177177

178178
**PyCharm (Professional)**
@@ -782,7 +782,7 @@ As part of :ref:`Continuous Integration <contributing.ci>` checks we run::
782782

783783
isort --check-only pandas
784784

785-
to check that imports are correctly formatted as per the `setup.cfg`.
785+
to check that imports are correctly formatted as per the ``setup.cfg``.
786786

787787
If you see output like the below in :ref:`Continuous Integration <contributing.ci>` checks:
788788

@@ -979,7 +979,7 @@ For example, quite a few functions in pandas accept a ``dtype`` argument. This c
979979
def as_type(dtype: Dtype) -> ...:
980980
...
981981
982-
This module will ultimately house types for repeatedly used concepts like "path-like", "array-like", "numeric", etc... and can also hold aliases for commonly appearing parameters like `axis`. Development of this module is active so be sure to refer to the source for the most up to date list of available types.
982+
This module will ultimately house types for repeatedly used concepts like "path-like", "array-like", "numeric", etc... and can also hold aliases for commonly appearing parameters like ``axis``. Development of this module is active so be sure to refer to the source for the most up to date list of available types.
983983

984984
Validating type hints
985985
~~~~~~~~~~~~~~~~~~~~~
@@ -1302,7 +1302,7 @@ Or with one of the following constructs::
13021302

13031303
Using `pytest-xdist <https://pypi.org/project/pytest-xdist>`_, one can
13041304
speed up local testing on multicore machines. To use this feature, you will
1305-
need to install `pytest-xdist` via::
1305+
need to install ``pytest-xdist`` via::
13061306

13071307
pip install pytest-xdist
13081308

@@ -1465,7 +1465,7 @@ The following defines how a commit message should be structured. Please referen
14651465
relevant GitHub issues in your commit message using GH1234 or #1234. Either style
14661466
is fine, but the former is generally preferred:
14671467

1468-
* a subject line with `< 80` chars.
1468+
* a subject line with ``< 80`` chars.
14691469
* One blank line.
14701470
* Optionally, a commit message body.
14711471

0 commit comments

Comments
 (0)