title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
fix SA01 error for pandas.ArrowDtype | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 47a2cf93a4f89..7f5f2f2d406fc 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -2152,7 +2152,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (SA01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstri... | All SA01 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.ArrowDtype
- [x] xref https://github.com/pandas-dev/pandas/issues/57417
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-... | https://api.github.com/repos/pandas-dev/pandas/pulls/57613 | 2024-02-25T08:46:35Z | 2024-02-26T18:11:03Z | 2024-02-26T18:11:03Z | 2024-02-26T18:23:47Z |
Doc: Fix PR07 errors for pandas.DataFrame.align | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 47a2cf93a4f89..bbfe67e2ae94c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -1766,7 +1766,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR07)' ; echo $MSG
$BASE_DIR/scripts/validate_docstri... | All PR07 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DataFrame.align
- [x] xref https://github.com/pandas-dev/pandas/issues/57420
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#wri... | https://api.github.com/repos/pandas-dev/pandas/pulls/57612 | 2024-02-25T08:14:36Z | 2024-02-26T18:14:28Z | 2024-02-26T18:14:28Z | 2024-02-26T18:24:32Z |
Doc: fix PR01 docstring errors for pandas.CategoricalIndex.equals and pandas.CategoricalIndex.map | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 6de0a8c2ca325..e8e5056694f88 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -415,8 +415,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstring... | All PR01 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.CategoricalIndex.equals
2. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.CategoricalIndex.map
- [x] xref https://github.com/pandas-dev/pandas/issues/57438
- [x] [Tests ... | https://api.github.com/repos/pandas-dev/pandas/pulls/57611 | 2024-02-25T07:50:42Z | 2024-02-26T23:05:32Z | 2024-02-26T23:05:32Z | 2024-03-11T00:19:59Z |
Doc: resolve GL08 for pandas.core.groupby.SeriesGroupBy.value_counts | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 6de0a8c2ca325..22c3a71812de7 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -178,7 +178,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timestamp.tzinfo\
pandas.Timestamp.value\
pandas.Timestamp.year\
- ... | All GL08 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.core.groupby.SeriesGroupBy.value_counts
- [x] xref https://github.com/pandas-dev/pandas/issues/57443
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contri... | https://api.github.com/repos/pandas-dev/pandas/pulls/57609 | 2024-02-25T06:31:48Z | 2024-02-26T22:34:41Z | 2024-02-26T22:34:41Z | 2024-02-26T22:34:49Z |
TYP: misc annotations | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3253f9ab87363..e683fc50c1c5d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -127,7 +127,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.... | to pass more of the pandas-stubs tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/57606 | 2024-02-25T01:44:07Z | 2024-02-26T18:28:44Z | 2024-02-26T18:28:44Z | 2024-04-07T10:59:14Z |
DOC: fix RT03 for CategoricalIndex.set_categories, DataFrame.astype, DataFrame.at_time and DataFrame.ewm | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 47a2cf93a4f89..e60e6cec9d89a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -1882,10 +1882,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (RT03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstr... | Resolve all RT03 errors for the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.CategoricalIndex.set_categories (already valid)
2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.astype
3. scripts/validate_docstrings.py --format=actions --erro... | https://api.github.com/repos/pandas-dev/pandas/pulls/57605 | 2024-02-24T23:49:36Z | 2024-02-26T18:29:43Z | 2024-02-26T18:29:43Z | 2024-02-26T18:29:49Z |
DOC: fix RT03 for pandas.Index.to_numpy and pandas.Categorial.set_categories | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f1e7f6d477906..47a2cf93a4f89 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -1882,8 +1882,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (RT03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstri... | Resolve all errors for the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.Index.to_numpy
2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.Categorical.set_categories
Also fixes typos and wrong default value in docstring of pandas.Categorical.set_cat... | https://api.github.com/repos/pandas-dev/pandas/pulls/57603 | 2024-02-24T16:48:03Z | 2024-02-24T18:34:28Z | 2024-02-24T18:34:28Z | 2024-02-24T23:16:57Z |
DOC: Fixing GL08 errors for pandas.ExcelFile.sheet_names and pandas.MultiIndex.codes | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 875e328110aaf..4a9e18fb33eaa 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -145,7 +145,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (GL08)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.... | Resolved GL08 errors for the following:
1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.ExcelFile.sheet_names
2. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.MultiIndex.codes
Ref: #57443
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tes... | https://api.github.com/repos/pandas-dev/pandas/pulls/57601 | 2024-02-24T14:19:18Z | 2024-02-27T22:10:03Z | 2024-02-27T22:10:03Z | 2024-02-28T03:45:10Z |
DOC: Whatsnew notable bugfix on groupby behavior with unobserved groups | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 1f9f5e85a6c4b..da03c8f50086a 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -43,10 +43,63 @@ Notable bug fixes
These are bug fixes that might have notable behavior changes.
-.. _whatsnew_300.nota... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57600 | 2024-02-24T13:02:58Z | 2024-02-26T18:31:47Z | 2024-02-26T18:31:47Z | 2024-02-27T08:43:05Z |
REF: Move compute to BinGrouper.result_index_and_ids | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 46ef0f38706bc..738b4970b0924 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -1113,23 +1113,7 @@ def indices(self):
@cache_readonly
def group_info(self) -> tuple[npt.NDArray[np.intp], int]:
- ngroup... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57599 | 2024-02-24T11:59:24Z | 2024-02-24T18:29:05Z | 2024-02-24T18:29:05Z | 2024-02-24T20:45:53Z |
CLN: Use group_info less | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index c90ae4d590b45..3011fa235b22d 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -813,7 +813,7 @@ def value_counts(
from pandas.core.reshape.merge import get_join_indexers
from pandas.cor... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57598 | 2024-02-24T11:47:58Z | 2024-02-24T18:27:37Z | 2024-02-24T18:27:37Z | 2024-02-24T20:46:08Z |
PERF: groupby(...).__len__ | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index d44824183f05f..35c88d544c985 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -178,6 +178,7 @@ Performance improvements
- Performance improvement in :meth:`RangeIndex.take` returning a :class:`RangeInd... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57595 | 2024-02-23T23:21:07Z | 2024-02-24T00:10:17Z | 2024-02-24T00:10:17Z | 2024-02-24T00:24:42Z |
PERF: Return a RangeIndex from __getitem__ with a bool mask when possible | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index d6e3ac1ea48cc..d07f4f9f05708 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -167,6 +167,7 @@ Removal of prior version deprecations/changes
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- :met... | Discovered in https://github.com/pandas-dev/pandas/pull/57441
| https://api.github.com/repos/pandas-dev/pandas/pulls/57588 | 2024-02-23T20:08:34Z | 2024-03-02T02:24:32Z | 2024-03-02T02:24:32Z | 2024-03-02T02:24:35Z |
DOC-#57585: Add `Use Modin` section on `Scaling to large datasets` page | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index b262de5d71439..080f8484ce969 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -374,5 +374,33 @@ datasets.
You see more dask examples at https://examples.dask.org.
+Use Modin
+---------
+
+Modin... | - [x] closes #57585 (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/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/57586 | 2024-02-23T14:55:27Z | 2024-03-07T17:17:03Z | 2024-03-07T17:17:03Z | 2024-03-07T17:17:43Z |
Backport PR #57582 on branch 2.2.x (DOC: Add contributors for 2.2.1) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d9ab0452c8334..e015afb17dce5 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -946,4 +946,4 @@ Other
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.1.4..v2.2.0|HEAD
+.. contributors:: v2.1.4..v2.2.... | Backport PR #57582: DOC: Add contributors for 2.2.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/57583 | 2024-02-23T14:21:06Z | 2024-02-23T14:48:32Z | 2024-02-23T14:48:32Z | 2024-02-23T14:48:32Z |
DOC: Add contributors for 2.2.1 | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9d29044c27833..329ef2859f56f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -948,4 +948,4 @@ Other
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.1.4..v2.2.0|HEAD
+.. contributors:: v2.1.4..v2.2.... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57582 | 2024-02-23T13:48:36Z | 2024-02-23T14:20:56Z | 2024-02-23T14:20:56Z | 2024-02-23T14:20:57Z |
Updating timeseries.offset_aliases links to use :ref: format | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 668672ed05f72..0880e6730fd93 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8569,8 +8569,8 @@ def asfreq(
Notes
-----
- To learn more about the frequency strings, please see `this link
- <https://p... | During code review on https://github.com/pandas-dev/pandas/pull/57562 it was suggested to update the links from this format
`this link <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
to this format
:ref:`this link<timeseries.offset_aliases>`
I found several plac... | https://api.github.com/repos/pandas-dev/pandas/pulls/57581 | 2024-02-23T07:47:20Z | 2024-02-23T09:55:27Z | 2024-02-23T09:55:27Z | 2024-02-23T17:04:21Z |
Backport PR #57576 on branch 2.2.x (DOC: Add release date for 2.2.1) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index fa5304c1c3b56..f4ed594613349 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -1,6 +1,6 @@
.. _whatsnew_221:
-What's new in 2.2.1 (February XX, 2024)
+What's new in 2.2.1 (February 22, 2024)
-------... | Backport PR #57576: DOC: Add release date for 2.2.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/57579 | 2024-02-23T03:34:03Z | 2024-02-23T04:47:35Z | 2024-02-23T04:47:35Z | 2024-02-23T04:47:35Z |
DOC: Add release date for 2.2.1 | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index fa5304c1c3b56..f4ed594613349 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -1,6 +1,6 @@
.. _whatsnew_221:
-What's new in 2.2.1 (February XX, 2024)
+What's new in 2.2.1 (February 22, 2024)
-------... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57576 | 2024-02-23T02:51:14Z | 2024-02-23T03:33:51Z | 2024-02-23T03:33:51Z | 2024-02-23T03:33:51Z |
CLN: Assorted khash-python cleanups | diff --git a/pandas/_libs/include/pandas/vendored/klib/khash_python.h b/pandas/_libs/include/pandas/vendored/klib/khash_python.h
index 5a933b45d9e21..8bb3f84369b0b 100644
--- a/pandas/_libs/include/pandas/vendored/klib/khash_python.h
+++ b/pandas/_libs/include/pandas/vendored/klib/khash_python.h
@@ -1,6 +1,9 @@
// Lic... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57575 | 2024-02-23T02:41:25Z | 2024-02-23T17:09:33Z | 2024-02-23T17:09:33Z | 2024-02-23T17:20:54Z |
Backport PR #57314 on branch 2.2.x (BUG: Fix near-minimum timestamp handling) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 35d64c99f2002..fa5304c1c3b56 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -21,6 +21,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed memory leak in :func:`read_csv` (:issue:`57039`)
- Fixed perfo... | Backport PR #57314: BUG: Fix near-minimum timestamp handling | https://api.github.com/repos/pandas-dev/pandas/pulls/57573 | 2024-02-22T23:53:48Z | 2024-02-23T00:38:10Z | 2024-02-23T00:38:10Z | 2024-02-23T00:38:10Z |
TST: Clean contexts | diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst
index 62559c4232b51..39e279fd5c917 100644
--- a/doc/source/development/contributing_codebase.rst
+++ b/doc/source/development/contributing_codebase.rst
@@ -596,14 +596,15 @@ with the specific exception subcl... | * Replaced only use of `use_numexpr`
* Created pytest native `temp_file` fixture for use over `tm.ensure_clean`
| https://api.github.com/repos/pandas-dev/pandas/pulls/57571 | 2024-02-22T20:25:42Z | 2024-02-24T18:36:06Z | 2024-02-24T18:36:05Z | 2024-02-24T18:36:09Z |
BUG: Interchange object data buffer has the wrong dtype / from_dataframe incorrect | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 375c74f29e63a..3253f9ab87363 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,13 +53,11 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- - id: check-ast
- id: check... | - [ ] closes #54781 (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/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/57570 | 2024-02-22T18:30:43Z | 2024-02-23T17:12:43Z | 2024-02-23T17:12:43Z | 2024-02-23T17:12:56Z |
Backport PR #57556 on branch 2.2.x (Remove PyArrow deprecation warning) | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 4c7aa1e1e49ee..8736674bbf965 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -92,10 +92,7 @@ jobs:
- name: "Numpy Dev"
env_file: actions-311-numpydev.yaml
p... | #57556 | https://api.github.com/repos/pandas-dev/pandas/pulls/57568 | 2024-02-22T17:45:49Z | 2024-02-22T18:45:36Z | 2024-02-22T18:45:36Z | 2024-02-22T18:45:40Z |
DOC: fix ES01 for pandas.Flags | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 04c3ff3a42971..6469f39e7c332 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -521,7 +521,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DatetimeIndex.year\
pandas.DatetimeTZDtype.tz\
pandas.DatetimeTZDtype.... | All ES01 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.Flags
- [x] xref https://github.com/pandas-dev/pandas/issues/57440
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests... | https://api.github.com/repos/pandas-dev/pandas/pulls/57563 | 2024-02-22T07:45:14Z | 2024-02-22T17:00:31Z | 2024-02-22T17:00:31Z | 2024-02-23T02:36:10Z |
DOC: fixing GL08 errors for pandas.DatetimeIndex.as_unit and pandas.DatetimeIndex.freq | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 47a2cf93a4f89..d89c64700ffbb 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -71,6 +71,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR02)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.... | All GL08 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.DatetimeIndex.as_unit
2. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.DatetimeIndex.freq
_Note: [6232a2e](https://github.com/pandas-dev/pandas/pull/57562/commits/6232a2... | https://api.github.com/repos/pandas-dev/pandas/pulls/57562 | 2024-02-22T06:32:35Z | 2024-02-26T18:12:56Z | 2024-02-26T18:12:56Z | 2024-02-26T18:24:00Z |
DOC: fixing PR01 errors for pandas.Categorical and pandas.Categorical.__array__ | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 6469f39e7c332..f1e7f6d477906 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -1458,8 +1458,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstri... | All PR01 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.Categorical
2. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.Categorical.__array__
- [x] xref https://github.com/pandas-dev/pandas/issues/57438
- [x] [Tests added and p... | https://api.github.com/repos/pandas-dev/pandas/pulls/57561 | 2024-02-22T05:43:38Z | 2024-02-23T17:13:26Z | 2024-02-23T17:13:26Z | 2024-02-23T17:14:24Z |
PERF: Switch conditions in RangeIndex._shallow_copy | diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py
index 8552839b12d18..8a2e3fbf500a4 100644
--- a/pandas/core/indexes/range.py
+++ b/pandas/core/indexes/range.py
@@ -474,8 +474,9 @@ def _shallow_copy(self, values, name: Hashable = no_default):
diff = values[1] - values[0]
... | xref https://github.com/pandas-dev/pandas/pull/57534#issuecomment-1957832841
`is_range_indexer` lets us short circuit unlike checking the remainder
```python
In [1]: from pandas import *; import numpy as np
...: np.random.seed(123)
...: size = 1_000_000
...: ngroups = 1000
...: data = Series(np.r... | https://api.github.com/repos/pandas-dev/pandas/pulls/57560 | 2024-02-21T23:28:26Z | 2024-02-22T14:39:55Z | 2024-02-22T14:39:55Z | 2024-02-22T16:35:31Z |
CLN: correct file names in a comment in _optional.py | diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py
index ddd9b591d3e83..26beca6a0e4b6 100644
--- a/pandas/compat/_optional.py
+++ b/pandas/compat/_optional.py
@@ -16,7 +16,8 @@
if TYPE_CHECKING:
import types
-# Update install.rst & setup.cfg when updating versions!
+# Update install.rst, actio... | corrected file names in a comment in `pandas/compat/_optional.py` | https://api.github.com/repos/pandas-dev/pandas/pulls/57558 | 2024-02-21T22:49:11Z | 2024-02-21T23:50:56Z | 2024-02-21T23:50:56Z | 2024-02-21T23:51:02Z |
Backport PR #57551: BLD: Add pyarrow extra for pip installation | diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml
index d59ddf272f705..7c1da5678a2aa 100644
--- a/.github/workflows/package-checks.yml
+++ b/.github/workflows/package-checks.yml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
- extra: ["test... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57557 | 2024-02-21T22:28:47Z | 2024-02-21T23:49:28Z | 2024-02-21T23:49:28Z | 2024-02-21T23:49:31Z |
Remove PyArrow deprecation warning | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 533b81013a264..855973a22886a 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -64,10 +64,7 @@ jobs:
- name: "Numpy Dev"
env_file: actions-311-numpydev.yaml
p... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57556 | 2024-02-21T22:21:14Z | 2024-02-22T17:43:15Z | 2024-02-22T17:43:15Z | 2024-02-22T17:48:22Z |
CLN: Remove pickle support pre-pandas 1.0 | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 3fdb4af52a8c0..575113434b531 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -94,7 +94,7 @@ Other API changes
- Made ``dtype`` a required argument in :meth:`ExtensionArray._from_sequence_of_strings` (... | For a major pandas 3.0 release, I think it's reasonable that pickle support for pre-pandas 1.0 can be removed by now.
Retry at https://github.com/pandas-dev/pandas/pull/57155
| https://api.github.com/repos/pandas-dev/pandas/pulls/57555 | 2024-02-21T21:09:59Z | 2024-02-22T22:43:58Z | 2024-02-22T22:43:58Z | 2024-02-22T22:44:01Z |
Roadmap: remove ArrayManager | diff --git a/web/pandas/about/roadmap.md b/web/pandas/about/roadmap.md
index 4c12e3e786a32..aba95ec2c03fc 100644
--- a/web/pandas/about/roadmap.md
+++ b/web/pandas/about/roadmap.md
@@ -90,33 +90,6 @@ data types within pandas. This will let us take advantage of its I/O
capabilities and provide for better interoperabili... | - [ ] 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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57554 | 2024-02-21T20:29:46Z | 2024-02-21T21:13:55Z | 2024-02-21T21:13:55Z | 2024-02-21T22:20:48Z |
API: avoid passing Manager to subclass __init__ | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8fd0cd8c66e3c..1be72c60783ec 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -651,25 +651,36 @@ def _constructor(self) -> type[DataFrame]:
return DataFrame
def _constructor_from_mgr(self, mgr, axes) -> DataFrame:
- if ... | - [x] closes #57032 (Replace xxxx with the GitHub issue number)
- [x] [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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/57553 | 2024-02-21T20:21:57Z | 2024-03-26T01:40:18Z | 2024-03-26T01:40:18Z | 2024-04-10T12:08:36Z |
Backport PR #57439 on branch 2.2.x (BUG: read_json returning Index instead of RangeIndex) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ab62a7c7598d5..d81032fafa730 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`concat` changing long-standing behavior that always sorted th... | Backport PR #57439: BUG: read_json returning Index instead of RangeIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/57552 | 2024-02-21T19:41:37Z | 2024-02-21T20:46:10Z | 2024-02-21T20:46:10Z | 2024-02-21T20:46:10Z |
BLD: Add pyarrow extra for pip installation | diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml
index 28c56ec7ff03b..2de1649d42dfd 100644
--- a/.github/workflows/package-checks.yml
+++ b/.github/workflows/package-checks.yml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
- extra: ["test... | Partial feedback from #54466 | https://api.github.com/repos/pandas-dev/pandas/pulls/57551 | 2024-02-21T18:15:16Z | 2024-02-21T20:13:44Z | 2024-02-21T20:13:44Z | 2024-02-21T22:29:11Z |
REF: IntervalIndex.equals defer to IntervalArray.equals | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 4d13a18c8ef0b..95a003efbe1d0 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -8,7 +8,9 @@
from pandas.util._decorators import cache_readonly, doc
from pandas.util._validators import validate_fillna_kwarg... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Small behavior change in that `interval_index.equals(series[interval])` will now return False, matching other Index subclasses. | https://api.github.com/repos/pandas-dev/pandas/pulls/36871 | 2020-10-04T23:34:49Z | 2020-10-06T22:52:57Z | 2020-10-06T22:52:57Z | 2020-10-06T23:10:30Z |
TST: xfailed arithmetic tests | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index a269580bc4453..f0840ac3d2aea 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -333,6 +333,7 @@ Numeric
- Bug in :class:`Series` where two :class:`Series` each have a :class:`DatetimeIndex` with differe... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36870 | 2020-10-04T22:56:03Z | 2020-10-06T22:06:03Z | 2020-10-06T22:06:03Z | 2020-10-06T22:07:35Z |
DOC: Distinguish between different types of boolean indexing #10492 | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 530fdfba7d12c..2bc7e13e39ec4 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -933,6 +933,24 @@ and :ref:`Advanced Indexing <advanced>` you may select along more than one axis
df2.... | - [x] closes #10492
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/36869 | 2020-10-04T21:00:55Z | 2020-10-08T01:23:14Z | 2020-10-08T01:23:14Z | 2020-10-15T06:09:22Z |
BUG: df.replace over pd.Period columns (#34871) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 28f7df98cb86b..d56f3c978384c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -562,6 +562,8 @@ Strings
Interval
^^^^^^^^
+
+- Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` where :class... | - [x] closes #34871
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This commit ensures that PeriodArrays return False for _can_hold_element for any element that is not a pd.Period. This prevents upstream code from c... | https://api.github.com/repos/pandas-dev/pandas/pulls/36867 | 2020-10-04T19:01:03Z | 2020-11-17T01:17:29Z | 2020-11-17T01:17:29Z | 2020-11-17T01:31:42Z |
TST: insert 'match' to bare pytest raises in pandas/tests/tseries/off… | diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py
index 35fef0637dc76..6a87c05384689 100644
--- a/pandas/tests/tseries/offsets/test_offsets.py
+++ b/pandas/tests/tseries/offsets/test_offsets.py
@@ -266,9 +266,10 @@ class TestCommon(Base):
def test_immutable(se... | …sets/test_offsets.py
- [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36865 | 2020-10-04T18:27:10Z | 2020-10-11T19:21:27Z | 2020-10-11T19:21:27Z | 2020-10-11T19:21:32Z |
CI: Update error message for np_dev | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 1fafdf00393e1..fbdac2bb2d8e8 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -367,14 +367,17 @@ def test_2d_to_1d_assignment_raises():
x... | https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=44153&view=logs&jobId=eab14f69-13b6-5db7-daeb-7b778629410b&j=eab14f69-13b6-5db7-daeb-7b778629410b&t=ce687173-08c6-5301-838d-71b2dda24510 | https://api.github.com/repos/pandas-dev/pandas/pulls/36864 | 2020-10-04T18:20:23Z | 2020-10-04T22:41:02Z | 2020-10-04T22:41:02Z | 2020-10-05T10:47:02Z |
CI: Show ipython directive errors | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 149acef72db26..46de8d466dd11 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -125,7 +125,7 @@ jobs:
# This can be removed when the ipython directive fails when there are errors,
# including the `tee sphinx.log` in t... | Current output of ipython directive errors in CI is essentially a blank line, so adding a bit more to try to show what error is happening.
```
(pandas-dev) ➜ ~ grep -B1 "^<<<-------------------------------------------------------------------------$" sphinx.log
<<<--------------------------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/36863 | 2020-10-04T17:29:04Z | 2020-10-06T00:06:59Z | 2020-10-06T00:06:59Z | 2020-10-06T00:07:04Z |
DOC: make return type documentation of series methods consistent #35409 | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 1a8861af10ed1..8dc5e6c0ff2aa 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -723,8 +723,8 @@ def as_ordered(self, inplace=False):
Returns
-------
- Categorical
-... | - [x] closes #35409
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/36862 | 2020-10-04T16:49:03Z | 2020-10-10T19:41:57Z | 2020-10-10T19:41:57Z | 2020-10-15T06:09:08Z |
REF/CLN: pandas/io/pytables.py | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index a3d6975c00a95..3e3330fa4378f 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2,12 +2,24 @@
High level interface to PyTables for reading and writing pandas data structures
to disk
"""
+from contextlib import suppress
import copy
fro... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Clean-up and minor refactor of ``pandas/io/pytables.py``.
- Extract method ``_identify_group``
- Clean-up some docstrings (spacing)
- Use suppress... | https://api.github.com/repos/pandas-dev/pandas/pulls/36859 | 2020-10-04T16:17:03Z | 2020-10-06T22:44:23Z | 2020-10-06T22:44:23Z | 2020-10-07T09:44:10Z |
DOC: doc/source/whatsnew | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index 443250592a4a7..aa2749c85a232 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -49,8 +49,8 @@ talking about:
:okwarning:
import pandas as pd
- df = pd.DataFrame(np.random.randn(6, 4),
- ... | - [x] xref #36777
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36857 | 2020-10-04T10:13:38Z | 2020-10-05T12:58:10Z | 2020-10-05T12:58:10Z | 2020-10-06T08:15:18Z |
DOC: blacken-docs doc/source/ecosystem.rst | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index ed6ce7e9759b6..4086f64817568 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -170,7 +170,9 @@ invoked with the following command
.. code:: python
- import dtale; dtale.show(df)
+ import dtale
+
+ dtale.show(df)
... | - [x] xref #36777
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36856 | 2020-10-04T09:41:10Z | 2020-10-04T11:45:43Z | 2020-10-04T11:45:43Z | 2020-10-04T11:45:52Z |
TYP: update setup.cfg | diff --git a/setup.cfg b/setup.cfg
index 73986f692b6cd..48948e0d754c9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -207,9 +207,6 @@ check_untyped_defs=False
[mypy-pandas.core.indexes.multi]
check_untyped_defs=False
-[mypy-pandas.core.indexes.period]
-check_untyped_defs=False
-
[mypy-pandas.core.indexes.range]
check_... | https://api.github.com/repos/pandas-dev/pandas/pulls/36854 | 2020-10-04T08:35:04Z | 2020-10-04T22:39:46Z | 2020-10-04T22:39:46Z | 2020-10-05T09:36:00Z | |
REF/CLN: pandas/io/parsers.py | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 63c3f9899d915..866854ff1fe33 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -606,7 +606,7 @@ def read_csv(
del kwds["filepath_or_buffer"]
del kwds["sep"]
- kwds_defaults = _check_defaults_read(
+ kwds_defaults = _refine_de... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Refactor/cleanup ``pandas/io/parsers.py``
- Extract method _refresh_kwargs_based_on_dialect
- Extract method _validate_skipfooter
- Drop local var... | https://api.github.com/repos/pandas-dev/pandas/pulls/36852 | 2020-10-04T07:17:43Z | 2020-10-14T17:54:46Z | 2020-10-14T17:54:46Z | 2020-10-22T07:31:10Z |
DOC: black enhancingperf.rst and 10min.rst code style | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 673f8689736f1..8270b2ee49bd8 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -34,9 +34,9 @@ and labeled columns:
.. ipython:: python
- dates = pd.date_range('20130101', periods=6)
+ dates ... | ref #36777 | https://api.github.com/repos/pandas-dev/pandas/pulls/36849 | 2020-10-04T04:38:34Z | 2020-10-04T17:39:24Z | 2020-10-04T17:39:24Z | 2020-10-05T05:57:39Z |
REF: IndexOpsMixin wrapping | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 24bbd28ddc421..1063e742e38c8 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -4,7 +4,7 @@
import builtins
import textwrap
-from typing import Any, Callable, Dict, FrozenSet, List, Optional, Union, cast
+from typing import Any, Callable, Dict... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36848 | 2020-10-04T02:54:10Z | 2020-10-08T20:46:38Z | 2020-10-08T20:46:38Z | 2020-10-08T21:19:55Z |
CI: pin pymysql #36465 | diff --git a/ci/deps/travis-37-cov.yaml b/ci/deps/travis-37-cov.yaml
index 7d5104a58ce83..c89b42ef06a2e 100644
--- a/ci/deps/travis-37-cov.yaml
+++ b/ci/deps/travis-37-cov.yaml
@@ -32,7 +32,7 @@ dependencies:
- google-cloud-bigquery>=1.27.2 # GH 36436
- psycopg2
- pyarrow>=0.15.0
- - pymysql=0.7.11
+ - pymys... | Part of #36465
| https://api.github.com/repos/pandas-dev/pandas/pulls/36847 | 2020-10-04T02:51:52Z | 2020-10-10T16:24:07Z | 2020-10-10T16:24:06Z | 2020-10-10T21:32:25Z |
DOC: normalize usage of word "pandas" | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 387f65ea583a0..5aa1c1099d6e0 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -9,7 +9,7 @@ pandas code style guide
.. contents:: Table of contents:
:local:
-*pandas* f... | changes references to the library, pandas, to match the standard lowercase spelling. This changes applicable `.rst` files under the `doc/source` path.
References such as Pandas, **pandas**, *pandas*, and ``pandas`` have been replaced with pandas.
- [x] closes #32316
- [x] tests added / passed
- [x] passes `bla... | https://api.github.com/repos/pandas-dev/pandas/pulls/36845 | 2020-10-04T00:34:52Z | 2020-10-04T20:13:32Z | 2020-10-04T20:13:32Z | 2020-10-04T23:16:35Z |
DOC: Typo fix | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 77a1fef28f373..12dd72f761408 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -793,7 +793,7 @@
"source": [
"The next option you have are \"table styles\".\n",
"These are styles... | Noticed a minor typo when using the docs
| https://api.github.com/repos/pandas-dev/pandas/pulls/36844 | 2020-10-04T00:09:36Z | 2020-10-04T03:27:50Z | 2020-10-04T03:27:50Z | 2020-10-04T03:27:58Z |
REF: separate flex from non-flex DataFrame ops | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 2f462b16ddf78..ae84ad08270f6 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -362,6 +362,7 @@ Numeric
- Bug in :class:`Series` flex arithmetic methods where the result when operating with a ``list``, ... | - [x] closes #36796
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Unless supporting this is intentional, in which case we should deprecate and explicitly implement flex-bool operations.
If/when this is done, we ... | https://api.github.com/repos/pandas-dev/pandas/pulls/36843 | 2020-10-03T23:42:40Z | 2020-10-10T22:27:19Z | 2020-10-10T22:27:19Z | 2020-10-10T22:45:58Z |
BUG: Groupy dropped nan groups from result when grouping over single column | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7c850ffedfcab..1cb8710799d30 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -519,6 +519,7 @@ Groupby/resample/rolling
- Using :meth:`Rolling.var()` instead of :meth:`Rolling.std()` avoids numerical i... | - [x] closes #35646
- [x] closes #35542
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
When grouping over 2 columns with only ``nans`` this raised an error previously. Realised this, when running tests for my fix, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/36842 | 2020-10-03T23:31:55Z | 2020-11-04T02:59:03Z | 2020-11-04T02:59:03Z | 2020-11-04T21:12:38Z |
TST: Verify parsing of data with encoded special characters (16218) | diff --git a/pandas/tests/io/parser/test_encoding.py b/pandas/tests/io/parser/test_encoding.py
index f23b498c7388a..876696ecdad9c 100644
--- a/pandas/tests/io/parser/test_encoding.py
+++ b/pandas/tests/io/parser/test_encoding.py
@@ -10,7 +10,7 @@
import numpy as np
import pytest
-from pandas import DataFrame
+from ... |
- [x] closes #16218
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36841 | 2020-10-03T22:23:18Z | 2020-10-12T06:38:30Z | 2020-10-12T06:38:30Z | 2020-10-12T06:38:38Z |
PERF: Index._shallow_copy shares _cache with copies of self | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 47ebd962b367c..81e310a2c44f1 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -285,6 +285,8 @@ Performance improvements
- ``Styler`` uuid method altered to compress data transmission over web whilst ma... | #32640 copied the cache when copying indexes. Indexes are immutable, so some refactoring allows us to __share__ the cache instead. This means potentially fewer expensive index ops.
```python
>>> idx = pd.CategoricalIndex(np.arange(100_000))
>>> copied = idx.copy()
>>> copied._cache
{}
>>> idx.get_loc(99_999)
>... | https://api.github.com/repos/pandas-dev/pandas/pulls/36840 | 2020-10-03T22:20:37Z | 2020-10-06T15:33:14Z | 2020-10-06T15:33:14Z | 2020-11-28T18:25:04Z |
PERF: Add asv benchmarks for select_dtypes (14588) | diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py
index bd17b710b108d..a5ed5c389fee4 100644
--- a/asv_bench/benchmarks/dtypes.py
+++ b/asv_bench/benchmarks/dtypes.py
@@ -1,5 +1,9 @@
+import string
+
import numpy as np
+from pandas import DataFrame
+import pandas._testing as tm
from pandas... | - [x] closes #14588
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36839 | 2020-10-03T20:31:48Z | 2020-10-05T17:41:30Z | 2020-10-05T17:41:30Z | 2020-10-05T17:41:34Z |
DEPR: Deprecate use of strings denoting units with 'M', 'Y' or 'y' in pd.to_timedelta (36666) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index d10cb28a3f588..4e0c1ae01fdf3 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -336,6 +336,7 @@ Deprecations
- :meth:`Rolling.count` with ``min_periods=None`` will default to the size of the window in a... | - [x] closes #36666
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36838 | 2020-10-03T17:35:09Z | 2020-10-31T18:52:07Z | 2020-10-31T18:52:07Z | 2020-10-31T18:52:13Z |
DOC: Update docs on estimated time of running full asv suite (36344) | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index d6955c5d4b8d2..e96da41918259 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -1362,16 +1362,16 @@ environments. If you want to use virtualenv instead, write::
The `... | - [x] closes #36344
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36836 | 2020-10-03T15:32:45Z | 2020-10-08T00:59:25Z | 2020-10-08T00:59:25Z | 2020-10-08T00:59:47Z |
DOC: reformat doc groupby.rst | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 9696f14f03b56..ec64442319a84 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -677,7 +677,7 @@ and unpack the keyword arguments
animals.groupby("kind").agg(
**{
- "to... | ref #36777
| https://api.github.com/repos/pandas-dev/pandas/pulls/36831 | 2020-10-03T11:12:18Z | 2020-10-03T18:09:22Z | 2020-10-03T18:09:22Z | 2020-10-04T22:33:14Z |
CI add end-of-file-fixer | diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
index 7dd2e04249492..87a5b7905fc6d 100644
--- a/.github/CODE_OF_CONDUCT.md
+++ b/.github/CODE_OF_CONDUCT.md
@@ -60,4 +60,3 @@ and the [Swift Code of Conduct][swift].
[homepage]: https://www.contributor-covenant.org
[version]: https://www.contributor... | xref https://github.com/pandas-dev/pandas/pull/36600#issuecomment-702976850
> ok if you'd fix the EOF issue can merge (and yes good idea to add to the pre-commit hook / separate PR pls)
Note: in addition to adding the end-of-file-fixer pre-commit hook, I applied the following
```diff
diff --git a/scripts/gene... | https://api.github.com/repos/pandas-dev/pandas/pulls/36826 | 2020-10-03T06:43:25Z | 2020-10-06T22:54:42Z | 2020-10-06T22:54:42Z | 2020-10-07T07:26:31Z |
DOC: use black to fix code style in doc pandas-dev#36777 | diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst
index c708ebb361ed1..6fabffc314fe5 100644
--- a/doc/source/development/extending.rst
+++ b/doc/source/development/extending.rst
@@ -34,7 +34,7 @@ decorate a class, providing the name of attribute to add. The class's
@static... | Partially addresses #36777.
Fixed the following files:
- `doc/source/development/extending.rst`
- `doc/source/user_guide/duplicates.rst`
- `doc/source/user_guide/gotchas.rst`
- `doc/source/user_guide/scale.rst` | https://api.github.com/repos/pandas-dev/pandas/pulls/36824 | 2020-10-03T04:34:51Z | 2020-10-03T14:35:03Z | 2020-10-03T14:35:03Z | 2020-10-06T12:21:29Z |
DOC: update code style for user guide for #36777 | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 52342de98de79..9696f14f03b56 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -68,19 +68,23 @@ object (more on what the GroupBy object is later), you may do the following:
.. ipython:: py... | Addresses part of #36777
Ran blacken-tools and checked for warnings from flake8-rst for 5 additional doc files. | https://api.github.com/repos/pandas-dev/pandas/pulls/36823 | 2020-10-03T00:03:01Z | 2020-10-03T14:30:49Z | 2020-10-03T14:30:49Z | 2020-10-03T15:00:39Z |
BUG: Raise ValueError with nan in timeaware windows | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index d9d1ce797dd62..339cda4db48fb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -460,6 +460,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.ffill` and :meth:`DataFrameGroupBy.bfill` where ... | - [x] closes #34617
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Raising a ValueError when NaN is in timeaware window.
cc @mroeschke | https://api.github.com/repos/pandas-dev/pandas/pulls/36822 | 2020-10-02T23:47:22Z | 2020-10-15T00:28:32Z | 2020-10-15T00:28:31Z | 2020-10-15T18:54:02Z |
DOC: update code style for development doc and user guide #36777 | diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst
index c708ebb361ed1..46960140d3a8c 100644
--- a/doc/source/development/extending.rst
+++ b/doc/source/development/extending.rst
@@ -34,7 +34,7 @@ decorate a class, providing the name of attribute to add. The class's
@static... | Addresses part of #36777
Ran blacken-tools and checked for warnings from flake8-rst for 4 additional doc files. | https://api.github.com/repos/pandas-dev/pandas/pulls/36821 | 2020-10-02T23:39:23Z | 2020-10-03T14:25:29Z | 2020-10-03T14:25:29Z | 2020-10-03T15:00:04Z |
Backport PR #36675 on branch 1.1.x (REGR: Series.loc with a MultiIndex containing Timestamp raises InvalidIndexError) | diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst
index 15777abcb8084..acf1dafc59885 100644
--- a/doc/source/whatsnew/v1.1.3.rst
+++ b/doc/source/whatsnew/v1.1.3.rst
@@ -37,6 +37,7 @@ Fixed regressions
- Fixed regression in modulo of :class:`Index`, :class:`Series` and :class:`DataFrame` usi... | Backport PR #36675: REGR: Series.loc with a MultiIndex containing Timestamp raises InvalidIndexError | https://api.github.com/repos/pandas-dev/pandas/pulls/36818 | 2020-10-02T23:02:59Z | 2020-10-03T11:50:23Z | 2020-10-03T11:50:23Z | 2020-10-03T11:50:24Z |
DOC: update code style for remaining intro tutorial docs for #36777 | diff --git a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst b/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
index dc9bec2284aab..e8e0fef271a74 100644
--- a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
+++ b/doc/source/getting_started/intro_tutorials/01_table_orie... | Addresses part of #36777
Ran blacken-tools and checked for warnings from flake8-rst for the remaining 5 intro tutorials. Note that tutorial 3 met the formatting requirements as is, so there is no change there. | https://api.github.com/repos/pandas-dev/pandas/pulls/36817 | 2020-10-02T20:28:20Z | 2020-10-02T21:58:11Z | 2020-10-02T21:58:11Z | 2020-10-02T22:39:47Z |
DOC: uses black to fix formatting #36777 | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index aee56a2565310..8dbfc261e6fa8 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -7,6 +7,7 @@
from matplotlib import pyplot as plt
import pandas.util._doctools as doctools
+
p = d... | Fixes /docs/source/user_guide/merging.rst formatting. Passes flake8-rst test.
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
ref https://github.com/pandas-dev/pandas/issues/36777 | https://api.github.com/repos/pandas-dev/pandas/pulls/36815 | 2020-10-02T19:29:14Z | 2020-10-02T22:05:24Z | 2020-10-02T22:05:24Z | 2020-10-02T22:05:30Z |
DOC: add example & prose of slicing with labels when index has duplicate labels | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 530fdfba7d12c..44e2d8daa4de0 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -422,6 +422,17 @@ above example, ``s.loc[1:6]`` would raise ``KeyError``.
For the rationale behind this beh... | - [x] closes #36251 | https://api.github.com/repos/pandas-dev/pandas/pulls/36814 | 2020-10-02T19:25:58Z | 2020-11-05T01:22:25Z | 2020-11-05T01:22:24Z | 2020-11-06T06:13:08Z |
DOC: use black to fix code style in doc pandas-dev#36777 | diff --git a/doc/source/getting_started/comparison/comparison_with_r.rst b/doc/source/getting_started/comparison/comparison_with_r.rst
index e1a4cfe49b7d1..358bb6ad951f0 100644
--- a/doc/source/getting_started/comparison/comparison_with_r.rst
+++ b/doc/source/getting_started/comparison/comparison_with_r.rst
@@ -122,16 ... | Partially addresses #36777. Ran black on all the files under `doc/source/getting_started/comparison`. | https://api.github.com/repos/pandas-dev/pandas/pulls/36813 | 2020-10-02T19:19:27Z | 2020-10-02T21:03:51Z | 2020-10-02T21:03:51Z | 2020-10-05T19:18:15Z |
DOC: use blacken to fix code style in documentation #36777 | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index e33e85d3d2224..0a30d865f3c23 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -33,9 +33,9 @@ These are some neat pandas ``idioms``
.. ipython:: python
- df = pd.DataFrame({'AAA': ... | Addresses part of #36777
Ran blacken-tools on cookbook.rst and checked for warnings from flake8-rst | https://api.github.com/repos/pandas-dev/pandas/pulls/36811 | 2020-10-02T17:42:06Z | 2020-10-02T19:15:08Z | 2020-10-02T19:15:08Z | 2020-10-02T20:15:07Z |
CLN: test_moments_consistency_*.py | diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py
index 7e0be331ec8d5..7c8c9de40f7c5 100644
--- a/pandas/tests/window/common.py
+++ b/pandas/tests/window/common.py
@@ -4,49 +4,6 @@
import pandas._testing as tm
-def check_pairwise_moment(frame, dispatch, name, **kwargs):
- def get_result... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
In-lining some common functions to make it easier to follow test failure tracebacks | https://api.github.com/repos/pandas-dev/pandas/pulls/36810 | 2020-10-02T17:34:42Z | 2020-10-02T21:39:27Z | 2020-10-02T21:39:27Z | 2020-10-02T21:42:16Z |
TST: insert 'match' to bare pytest raises in pandas/tests/indexing/te… | diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py
index 7d5fea232817d..fd83f9ab29407 100644
--- a/pandas/tests/indexing/test_indexing.py
+++ b/pandas/tests/indexing/test_indexing.py
@@ -31,7 +31,11 @@ def test_setitem_ndarray_1d(self):
df["bar"] = np.zeros(10, dtype=c... | …st_indexing.py
- [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36809 | 2020-10-02T17:11:04Z | 2020-10-02T18:08:58Z | 2020-10-02T18:08:58Z | 2020-10-02T18:09:06Z |
Fix select_dtypes(include='int') for Windows. | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 17d8c79994dbe..2deb3295d3c68 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -304,6 +304,7 @@ Numeric
- Bug in :meth:`DataFrame.mode` and :meth:`Series.mode` not keeping consistent integer :class:`Ind... | - [x] closes #36596
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36808 | 2020-10-02T15:51:32Z | 2021-02-07T17:06:43Z | 2021-02-07T17:06:43Z | 2021-02-07T17:06:47Z |
DOC: ran blacken docs tool and checked output to improve formatting #36777 | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 673f8689736f1..08f83a4674ada 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -34,9 +34,9 @@ and labeled columns:
.. ipython:: python
- dates = pd.date_range('20130101', periods=6)
+ dates ... | For task #36777
Ran blacken-tools on user_guide/10min.rst, user_guide/advanced.rst, basics.rst
| https://api.github.com/repos/pandas-dev/pandas/pulls/36802 | 2020-10-02T06:09:05Z | 2020-10-05T02:07:28Z | 2020-10-05T02:07:28Z | 2020-10-06T08:15:40Z |
CLN: Use more pytest idioms in test_momemts_ewm.py | diff --git a/pandas/tests/window/moments/test_moments_ewm.py b/pandas/tests/window/moments/test_moments_ewm.py
index a83bfabc4a048..287cd7ebba536 100644
--- a/pandas/tests/window/moments/test_moments_ewm.py
+++ b/pandas/tests/window/moments/test_moments_ewm.py
@@ -7,21 +7,19 @@
import pandas._testing as tm
-def ch... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Use `pytest.mark.parameterize` and unnest helper test functions | https://api.github.com/repos/pandas-dev/pandas/pulls/36801 | 2020-10-02T02:34:31Z | 2020-10-02T20:24:07Z | 2020-10-02T20:24:07Z | 2020-10-02T20:27:26Z |
BUG: Fix FloatingArray output formatting | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 539275c7ff617..c1ddf2c29c5ae 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2656,7 +2656,7 @@ def memory_usage(self, index=True, deep=False) -> Series:
Examples
--------
>>> dtypes = ['int64', 'float64', 'complex... | - [x] closes #36775
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/36800 | 2020-10-02T01:38:28Z | 2020-10-16T01:46:54Z | 2020-10-16T01:46:54Z | 2020-10-16T06:17:06Z |
BUG/CLN: Clean float / complex string formatting | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 2b4b10c39602a..2805bd9ac2db3 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -424,6 +424,7 @@ I/O
- Bug in :func:`read_table` and :func:`read_csv` when ``delim_whitespace=True`` and ``sep=default`` (:... | Noticed while working on another bug. The _is_number helper here is wrong and can cause incorrect results given that this code path is hit by arbitrary strings (e.g., it thinks "foo" is a number). Also the _trim_zeros_complex helper apparently does nothing:
```python
[ins] In [3]: _trim_zeros_float(["0.00000"])
Out[... | https://api.github.com/repos/pandas-dev/pandas/pulls/36799 | 2020-10-02T01:24:54Z | 2020-10-14T12:51:53Z | 2020-10-14T12:51:53Z | 2020-10-14T15:06:37Z |
DOC: remove outdated doc closes #31487 | diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst
index 0e6767e88edc2..c27c73d439a0c 100644
--- a/doc/source/user_guide/dsintro.rst
+++ b/doc/source/user_guide/dsintro.rst
@@ -663,31 +663,6 @@ row-wise. For example:
df - df.iloc[0]
-In the special case of working with time serie... | - [x] closes #31487
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36797 | 2020-10-01T23:45:15Z | 2020-10-02T22:39:17Z | 2020-10-02T22:39:17Z | 2020-10-02T23:00:15Z |
DEPR: automatic alignment on frame.__cmp__(series) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8688b2ae81302..9d6b7fadd2e80 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -265,6 +265,7 @@ Deprecations
- Deprecated indexing :class:`DataFrame` rows with datetime-like strings ``df[string]``, use ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #28759, may close it depending on if we want to do anything else on that front | https://api.github.com/repos/pandas-dev/pandas/pulls/36795 | 2020-10-01T23:14:45Z | 2020-10-03T00:55:37Z | 2020-10-03T00:55:37Z | 2020-10-03T01:16:39Z |
API: make DataFrame.__boolop__ default_axis match DataFrame.__arithop__ default_axis | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 2dc97a3583dfb..7827efbd34207 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -146,31 +146,6 @@ def _maybe_match_name(a, b):
# -----------------------------------------------------------------------------
-def... | - [x] closes #36788
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix a test warning generated by an ipython test, unrelated | https://api.github.com/repos/pandas-dev/pandas/pulls/36793 | 2020-10-01T22:39:18Z | 2020-10-02T21:41:08Z | 2020-10-02T21:41:07Z | 2020-10-02T21:48:05Z |
ERR: error handling in DataFrame.__rmatmul__ | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 016e8d90e7d21..2804b410cfc0e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -326,7 +326,7 @@ Numeric
- Bug in :meth:`Series.equals` where a ``ValueError`` was raised when numpy arrays were compared t... | - [x] closes #21581
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36792 | 2020-10-01T22:19:02Z | 2020-10-02T21:12:36Z | 2020-10-02T21:12:36Z | 2020-10-02T21:54:06Z |
BUG: GroupBy.ffill()/bfill() do not return NaN values for NaN groups | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 1336fd7d83f7e..b422344f1cd6d 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -443,6 +443,7 @@ Groupby/resample/rolling
- Bug in :meth:`Rolling.sum()` returned wrong values when dtypes where mixed betw... | - [x] closes #34725
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
See #34725 for a good description of the problem.
This fixes the issue in the tidiest way I could find.
One test is added that covers all re... | https://api.github.com/repos/pandas-dev/pandas/pulls/36790 | 2020-10-01T21:45:55Z | 2020-10-10T22:32:29Z | 2020-10-10T22:32:29Z | 2020-10-10T22:32:35Z |
TST: Add test for 32724 | diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py
index 9ac4871ad24a1..10527649b728f 100644
--- a/pandas/tests/window/test_rolling.py
+++ b/pandas/tests/window/test_rolling.py
@@ -824,3 +824,14 @@ def test_rolling_axis_1_non_numeric_dtypes(value):
result = df.rolling(window=2, ... | - [x] closes #32724
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Was fixed in the past. | https://api.github.com/repos/pandas-dev/pandas/pulls/36789 | 2020-10-01T21:43:02Z | 2020-10-02T18:31:09Z | 2020-10-02T18:31:09Z | 2020-10-02T18:35:37Z |
CLN: Remove param _set_identity from MultiIndex | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 1628b44be4096..a157fdfdde447 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -278,7 +278,6 @@ def __new__(
copy=False,
name=None,
verify_integrity: bool = True,
- _set_identit... | I don't see how `_set_identity`can be needed and other index classes don'r have this parameter, so best to just remove it.
Other index classes always end by calling `_reset_identity`, so I just do that here also. I'm not sure that's really needed, but that's for another day. | https://api.github.com/repos/pandas-dev/pandas/pulls/36786 | 2020-10-01T20:57:18Z | 2020-10-02T21:13:22Z | 2020-10-02T21:13:22Z | 2020-10-02T21:56:57Z |
CLN: test_moments_rolling.py for quantile/kurt/skew | diff --git a/pandas/tests/window/moments/test_moments_rolling.py b/pandas/tests/window/moments/test_moments_rolling.py
index 880316ec6111a..488306d0585c5 100644
--- a/pandas/tests/window/moments/test_moments_rolling.py
+++ b/pandas/tests/window/moments/test_moments_rolling.py
@@ -1,187 +1,12 @@
import numpy as np
-fro... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/36784 | 2020-10-01T20:49:33Z | 2020-10-02T20:36:16Z | 2020-10-02T20:36:16Z | 2020-10-02T21:01:39Z |
Test that nan value counts are included when dropna=False. GH#31944 | diff --git a/pandas/tests/base/test_value_counts.py b/pandas/tests/base/test_value_counts.py
index de04c30432e6f..73a41e7010c5f 100644
--- a/pandas/tests/base/test_value_counts.py
+++ b/pandas/tests/base/test_value_counts.py
@@ -274,3 +274,17 @@ def test_value_counts_datetime64(index_or_series):
td2 = klass(td2, n... | - [x] closes #31944
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added test per @Dr-Irv request.
| https://api.github.com/repos/pandas-dev/pandas/pulls/36783 | 2020-10-01T19:38:27Z | 2020-10-06T22:43:17Z | 2020-10-06T22:43:17Z | 2020-10-06T22:43:21Z |
Revert "Update README.md" | diff --git a/README.md b/README.md
index da8487d76f4a1..a2f2f1c04442a 100644
--- a/README.md
+++ b/README.md
@@ -32,32 +32,32 @@ its way towards this goal.
Here are just a few of the things that pandas does well:
- Easy handling of [**missing data**][missing-data] (represented as
- `NaN`, `NA`, or `NaT`) in fl... | Reverts pandas-dev/pandas#36772 | https://api.github.com/repos/pandas-dev/pandas/pulls/36781 | 2020-10-01T17:22:24Z | 2020-10-01T17:22:58Z | 2020-10-01T17:22:58Z | 2020-10-01T17:23:08Z |
DOC: Fix code style in documentation | diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
index bd85160d2622a..7e919777fdf03 100644
--- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
+++ b/doc/source/getting_started/intro_tutor... | ref #36777
| https://api.github.com/repos/pandas-dev/pandas/pulls/36780 | 2020-10-01T17:05:57Z | 2020-10-02T14:33:45Z | 2020-10-02T14:33:45Z | 2020-10-02T14:34:07Z |
ENH: Implement FloatingArray reductions | diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py
index c3710196a8611..a230760ca1abe 100644
--- a/pandas/core/arrays/floating.py
+++ b/pandas/core/arrays/floating.py
@@ -25,8 +25,7 @@
from pandas.core.dtypes.dtypes import register_extension_dtype
from pandas.core.dtypes.missing import isna
... | Mostly copy / paste from https://github.com/pandas-dev/pandas/pull/36761
@jorisvandenbossche Would this require a whatsnew note? Seems the current v1.2.0 note is fairly high level and doesn't talk about specific methods that are supported. Should we talk about this or leave as-is? | https://api.github.com/repos/pandas-dev/pandas/pulls/36778 | 2020-10-01T15:28:36Z | 2020-10-03T00:58:29Z | 2020-10-03T00:58:29Z | 2020-10-03T05:18:31Z |
DOC: Fix code block line length | diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
index 7e919777fdf03..6ce98ba5dbd1b 100644
--- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
+++ b/doc/source/getting_started/intro_tutor... | https://github.com/pandas-dev/pandas/pull/36734#discussion_r498058234 | https://api.github.com/repos/pandas-dev/pandas/pulls/36773 | 2020-10-01T13:26:00Z | 2020-10-07T02:40:48Z | 2020-10-07T02:40:48Z | 2020-10-07T02:46:43Z |
Update README.md | diff --git a/README.md b/README.md
index a2f2f1c04442a..da8487d76f4a1 100644
--- a/README.md
+++ b/README.md
@@ -32,32 +32,32 @@ its way towards this goal.
Here are just a few of the things that pandas does well:
- Easy handling of [**missing data**][missing-data] (represented as
- `NaN`, `NA`, or `NaT`) in fl... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36772 | 2020-10-01T12:49:56Z | 2020-10-01T14:29:47Z | 2020-10-01T14:29:47Z | 2020-10-01T14:40:05Z |
BUG: Timedelta drops decimals if precision is greater than nanoseconds | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index f751a91cecf19..fea647b919e30 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -410,6 +410,7 @@ Timedelta
- Bug in :class:`TimedeltaIndex`, :class:`Series`, and :class:`DataFrame` floor-division with ``... | - [x] closes #36738
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I am not quite sure, if we should round to nanoseconds or cut if off after the 9th decimal. I implemented a simple cut off, but would be happy to ch... | https://api.github.com/repos/pandas-dev/pandas/pulls/36771 | 2020-10-01T12:09:11Z | 2020-11-15T17:31:47Z | 2020-11-15T17:31:47Z | 2020-11-15T17:32:28Z |
CI: troubleshoot travis ci on 1.1.x | diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml
index c380423c55f19..8c8db106af05c 100644
--- a/ci/deps/travis-36-cov.yaml
+++ b/ci/deps/travis-36-cov.yaml
@@ -15,7 +15,6 @@ dependencies:
# pandas dependencies
- beautifulsoup4
- botocore>=1.11
- - cython>=0.29.16
- dask
- fastparque... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36770 | 2020-10-01T12:07:02Z | 2020-10-01T19:19:16Z | 2020-10-01T19:19:16Z | 2020-10-01T19:19:23Z |
BUG: Index sortlevel ascending add type checking #32334 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index e810fc0239b40..bfe7a0489b10a 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -352,7 +352,7 @@ Indexing
- Bug in :meth:`PeriodIndex.get_loc` incorrectly raising ``ValueError`` on non-datelike strings i... | - [x] closes #32334
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Add the check of ascending parameter in the sortlevel method, only allow bool value and single bool value list
cc @Dr-Irv
| https://api.github.com/repos/pandas-dev/pandas/pulls/36767 | 2020-10-01T09:22:49Z | 2020-10-01T18:32:25Z | 2020-10-01T18:32:25Z | 2020-10-05T05:57:39Z |
BUG: fix inconsistent col spacing in info | diff --git a/pandas/io/formats/info.py b/pandas/io/formats/info.py
index e8e41d4325103..9812ca39e2656 100644
--- a/pandas/io/formats/info.py
+++ b/pandas/io/formats/info.py
@@ -288,7 +288,11 @@ def _verbose_repr(
len_column = len(pprint_thing(column_head))
space = max(max_col, len_column) + col_space
... | - [x] closes #36765
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/36766 | 2020-10-01T07:52:29Z | 2020-10-07T15:08:18Z | 2020-10-07T15:08:18Z | 2020-10-07T15:08:18Z |
DOC: Fix PR09 errors in several files | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 630606b4d8111..913f135b449f3 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -212,7 +212,8 @@ def eval(
truediv : bool, optional
Whether to use true division, like in Python >= 3.
-... | - [x] closes #36764
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
As far as I can see, there are some PR09 pandas docstring errors. So with this PR I will resolve them. There are more commits soon.
```
PR09
Para... | https://api.github.com/repos/pandas-dev/pandas/pulls/36763 | 2020-10-01T06:13:25Z | 2020-10-02T17:34:28Z | 2020-10-02T17:34:27Z | 2020-10-03T01:43:39Z |
TST: insert 'match' to bare pytest raises in pandas/tests/indexing/te… | diff --git a/pandas/tests/indexing/test_chaining_and_caching.py b/pandas/tests/indexing/test_chaining_and_caching.py
index 1254f1f217a2e..1241d394d7936 100644
--- a/pandas/tests/indexing/test_chaining_and_caching.py
+++ b/pandas/tests/indexing/test_chaining_and_caching.py
@@ -155,10 +155,11 @@ def test_detect_chained_a... | …st_chaining_and_caching.py
- [ ] ref https://github.com/pandas-dev/pandas/issues/30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/36762 | 2020-10-01T05:47:52Z | 2020-10-01T10:54:27Z | 2020-10-01T10:54:26Z | 2020-10-01T10:54:48Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.