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 |
|---|---|---|---|---|---|---|---|
Remove use_nullable_dtypes from read_parquet | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index aa378faac2a00..9d98ddd624b34 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -121,6 +121,7 @@ Removal of prior version deprecations/changes
- Removed ``pandas.io.sql.execute`` (:issue:`50185`)
- Remo... | - [ ] 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/57370 | 2024-02-11T21:39:16Z | 2024-02-12T17:13:13Z | 2024-02-12T17:13:13Z | 2024-02-12T17:15:23Z |
Remove convert_dtype from Series.apply | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index aa378faac2a00..d70741031cfc2 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -117,6 +117,7 @@ Removal of prior version deprecations/changes
- Removed ``Series.view`` (:issue:`56054`)
- Removed ``axis... | - [ ] 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/57369 | 2024-02-11T21:33:40Z | 2024-02-12T17:56:55Z | 2024-02-12T17:56:55Z | 2024-02-12T17:57:44Z |
CoW: Remove more using_copy_on_write fixtures | diff --git a/pandas/tests/copy_view/index/test_datetimeindex.py b/pandas/tests/copy_view/index/test_datetimeindex.py
index 5dd1f45a94ff3..6194ea8b122c9 100644
--- a/pandas/tests/copy_view/index/test_datetimeindex.py
+++ b/pandas/tests/copy_view/index/test_datetimeindex.py
@@ -14,50 +14,43 @@
@pytest.mark.parametri... | - [ ] 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/57368 | 2024-02-11T19:27:36Z | 2024-02-12T17:19:43Z | 2024-02-12T17:19:42Z | 2024-02-12T17:20:19Z |
CoW: Remove Copy-on-Write fixtures from more tests | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index 531045b16fee0..2dd7f9902c78d 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1487,7 +1487,7 @@ def test_apply_dtype(col):
tm.assert_series_equal(result, expected)
... | - [ ] 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/57367 | 2024-02-11T18:59:29Z | 2024-02-12T17:20:54Z | 2024-02-12T17:20:53Z | 2024-02-12T17:21:16Z |
Update Styler documentation for escaping HTML | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 2d4b0f6a7545e..f831723f44931 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1621,7 +1621,9 @@
"source": [
"### HTML Escaping\n",
"\n",
- "Suppose you have to display HTML... | Adds a note to the docs about `Styler` and `escape` on untrusted HTML input. | https://api.github.com/repos/pandas-dev/pandas/pulls/57365 | 2024-02-11T16:38:59Z | 2024-02-21T17:59:55Z | 2024-02-21T17:59:55Z | 2024-02-21T18:00:02Z |
CoW: Remove item_cache benchmarks | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index eead38dffaff4..ce31d63f0b70f 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -159,12 +159,6 @@ def setup(self):
def time_items(self):
# (monitor no-copying b... | Those don't make sense anymore | https://api.github.com/repos/pandas-dev/pandas/pulls/57364 | 2024-02-11T16:05:32Z | 2024-02-12T17:21:50Z | 2024-02-12T17:21:50Z | 2024-02-12T17:23:29Z |
Remove DataFrame.swapaxes | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 8c46cb520cc95..05fe17868b261 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -481,7 +481,6 @@ generated/pandas.DataFrame.style,../reference/api/pandas.DataFrame.style
generated/pandas.DataFrame.sub,../reference/api/pandas.DataFrame.sub
generated/panda... | - [ ] 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/57363 | 2024-02-11T14:04:32Z | 2024-02-12T17:23:39Z | 2024-02-12T17:23:39Z | 2024-03-07T15:35:24Z |
Remove support for errors="ignore" in to_datetime, to_timedelta and to_numeric | diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py
index d5c58033c1157..30cab00e4d3f9 100644
--- a/asv_bench/benchmarks/inference.py
+++ b/asv_bench/benchmarks/inference.py
@@ -22,23 +22,20 @@
class ToNumeric:
- params = ["ignore", "coerce"]
- param_names = ["errors"]
-
- d... |
- [ ] closes #55734 (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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/57361 | 2024-02-11T13:45:38Z | 2024-02-12T17:29:17Z | 2024-02-12T17:29:17Z | 2024-02-12T17:29:43Z |
CI/DOC: Enforce GL08 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 20ced8a51395f..f3666647f47e1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,279 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, plea... | Enforce GL08 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=GL08`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57360 | 2024-02-11T11:41:16Z | 2024-02-15T21:20:22Z | 2024-02-15T21:20:22Z | 2024-02-15T21:28:01Z |
CI/DOC: Enforce ES01 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 35383ca526269..20ced8a51395f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,1049 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, ple... | Enforce ES01 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=ES01`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57359 | 2024-02-11T11:24:03Z | 2024-02-15T19:50:30Z | 2024-02-15T19:50:30Z | 2024-02-15T19:59:13Z |
CI/DOC: Enforce PR01 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index df545e35fc7ff..54e12496cf9c5 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,331 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, plea... | Enforce PR01 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=PR01`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57358 | 2024-02-11T11:12:27Z | 2024-02-14T19:43:21Z | 2024-02-14T19:43:21Z | 2024-02-14T22:02:02Z |
CI/DOC: Enforce PR07 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 51257e6ef4258..a3b0a8b322f44 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,122 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, plea... | Enforce PR07 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=PR07`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57357 | 2024-02-11T10:54:30Z | 2024-02-14T15:04:47Z | 2024-02-14T15:04:47Z | 2024-02-14T17:26:33Z |
CI/DOC: Enforce RT03 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index bebe3b54d9457..520f24b067272 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,278 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, plea... | Enforce RT03 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=RT03`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57356 | 2024-02-11T10:38:10Z | 2024-02-14T02:14:17Z | 2024-02-14T02:14:17Z | 2024-02-14T03:00:25Z |
CI/DOC: Enforce SA01 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 39ccf904858d5..5ce505731ad7b 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -141,6 +141,1018 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, ple... | Enforce SA01 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=SA01`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57354 | 2024-02-11T09:50:59Z | 2024-02-13T19:57:48Z | 2024-02-13T19:57:48Z | 2024-02-13T20:05:13Z |
DOC: Add missing doc `Index.array` and `Index.to_numpy` | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index 8c8e4e42c35e9..7a4bc0f467f9a 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -41,6 +41,7 @@ Properties
Index.empty
Index.T
Index.memory_usage
+ Index.array
Modifying and co... | - [ ] 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/57353 | 2024-02-11T09:39:01Z | 2024-02-11T13:06:46Z | 2024-02-11T13:06:46Z | 2024-02-12T08:46:24Z |
CI/DOC: Enforce SA05 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9c9cd2cc6650e..bc3c5297ec4c4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -144,6 +144,69 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, pleas... | Enforce SA05 in CI so that it can be fixed and enforced in chunks like other docstring errors.
The added functions come from the result of running `scripts/validate_docstrings.py --format=actions --errors=SA05`
Part of our ongoing work to continue enforcing numpydoc validations: https://numpydoc.readthedocs.io/en... | https://api.github.com/repos/pandas-dev/pandas/pulls/57352 | 2024-02-11T08:43:46Z | 2024-02-12T18:33:29Z | 2024-02-12T18:33:29Z | 2024-02-12T18:34:55Z |
DOC: fix PR02 errors in docstring for pandas.tseries.offsets.DateOffset | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 75fb82b1e285f..52eb9cecdccea 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -88,7 +88,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.cat.set_categories\
pandas.Series.plot\
pandas.DataFrame.plot\
- ... | All PR02 errors resolved for the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.tseries.offsets.DateOffset
- [x] xref https://github.com/pandas-dev/pandas/issues/57111
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_code... | https://api.github.com/repos/pandas-dev/pandas/pulls/57350 | 2024-02-11T01:09:12Z | 2024-02-13T02:41:44Z | null | 2024-02-13T02:41:48Z |
Remove fillna from Resampler | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 8c46cb520cc95..64612c81d7bff 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -238,7 +238,6 @@ generated/pandas.core.resample.Resampler.backfill,../reference/api/pandas.core.r
generated/pandas.core.resample.Resampler.bfill,../reference/api/pandas.core.r... | - [ ] 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/57348 | 2024-02-11T00:38:49Z | 2024-02-12T17:40:05Z | 2024-02-12T17:40:05Z | 2024-02-12T17:40:08Z |
CoW: Deprecate copy keyword from first set of methods | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 77c80dcfe7c7e..3ff24a8a2c243 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -100,6 +100,29 @@ Other API changes
Deprecations
~~~~~~~~~~~~
+
+Copy keyword
+^^^^^^^^^^^^
+
+The ``copy`` keyword argu... | - [ ] 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/57347 | 2024-02-11T00:26:01Z | 2024-02-24T18:31:58Z | 2024-02-24T18:31:58Z | 2024-02-24T19:12:38Z |
CoW: Remove a few copy=False statements | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 6265faade2281..8bc1392f3c850 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1361,7 +1361,7 @@ def infer_to_same_shape(self, results: ResType, res_index: Index) -> DataFrame:
result.index = res_index
# infer dtypes
- ... | - [ ] 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/57346 | 2024-02-10T23:45:47Z | 2024-02-12T17:03:38Z | 2024-02-12T17:03:38Z | 2024-02-12T17:08:31Z |
Remove DataFrame.applymap and Styler.applymap | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 5d351680ec03a..8c46cb520cc95 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -311,7 +311,6 @@ generated/pandas.DataFrame.align,../reference/api/pandas.DataFrame.align
generated/pandas.DataFrame.all,../reference/api/pandas.DataFrame.all
generated/panda... | - [ ] closes #52364 (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/57345 | 2024-02-10T23:10:23Z | 2024-02-11T12:56:28Z | 2024-02-11T12:56:28Z | 2024-02-11T12:56:30Z |
Remove limit, fill_axis, broadcast_axis and method parameters from align | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 915b7744302c0..48cb87cc400c4 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -121,6 +121,7 @@ Removal of prior version deprecations/changes
- Removed ``axis`` argument from :meth:`DataFrame.groupby`, ... | - [ ] closes #51968 (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/57344 | 2024-02-10T23:00:23Z | 2024-02-13T17:29:37Z | 2024-02-13T17:29:37Z | 2024-02-13T17:34:27Z |
Remove support for slices in take | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 915b7744302c0..b9f2152761766 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -129,6 +129,7 @@ Removal of prior version deprecations/changes
- Removed deprecated argument ``obj`` in :meth:`.DataFrameGr... | - [ ] 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/57343 | 2024-02-10T22:47:19Z | 2024-02-13T17:44:02Z | 2024-02-13T17:44:02Z | 2024-02-13T17:44:27Z |
Remove support for DataFrames from df.from_records | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 915b7744302c0..234877c834ae3 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -128,6 +128,7 @@ Removal of prior version deprecations/changes
- Removed ``use_nullable_dtypes`` from :func:`read_parquet` ... | - [ ] closes #51697 (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/57342 | 2024-02-10T22:43:03Z | 2024-02-13T17:30:46Z | 2024-02-13T17:30:46Z | 2024-02-13T17:33:00Z |
REGR: assert_series_equal defaulting to check_exact=True for Index | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index eb6e50c1be160..47ca96c6eef44 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed performance regression in :meth:`Series.combine_first` (:issue:`55845`)
- Fixed r... | - [ ] closes #57067 (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/57341 | 2024-02-10T21:57:53Z | 2024-02-12T18:23:20Z | 2024-02-12T18:23:20Z | 2024-02-12T21:58:20Z |
REGR: shift raising for axis=1 and empty df | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index eb6e50c1be160..434a8fd3ea6b4 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.groupby` raising ``ValueError`` when grouping by a ... | - [ ] 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/57340 | 2024-02-10T21:41:44Z | 2024-02-12T18:25:28Z | 2024-02-12T18:25:28Z | 2024-02-12T18:29:39Z |
Backport PR #57323 on branch 2.2.x (REGR: Fix regression when grouping over a Series) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index b342eef850459..eb6e50c1be160 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`.DataFrameGroupBy.idxmin`, :meth:`.DataFrameGroupBy.idxmax`, ... | Backport PR #57323: REGR: Fix regression when grouping over a Series | https://api.github.com/repos/pandas-dev/pandas/pulls/57339 | 2024-02-10T21:10:48Z | 2024-02-10T21:58:10Z | 2024-02-10T21:58:09Z | 2024-02-10T21:58:10Z |
Backport PR #57333 on branch 2.2.x (REGR: merge with 3rd party EA's can sometimes raise ValueError) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 335dada439029..b342eef850459 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :meth:`.DataFrameGroupBy.idxmin`, :meth:`.DataFrameGroupBy.idxmax`, ... | #57333 | https://api.github.com/repos/pandas-dev/pandas/pulls/57337 | 2024-02-10T18:58:54Z | 2024-02-10T21:09:36Z | 2024-02-10T21:09:36Z | 2024-02-10T21:09:36Z |
Backport PR #57329 on branch 2.2.x (REGR: CategoricalIndex.difference with null values) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 69e14a9028dd3..335dada439029 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in :func:`wide_to_long` raising an ``AttributeError`` for string column... | Backport PR #57329: REGR: CategoricalIndex.difference with null values | https://api.github.com/repos/pandas-dev/pandas/pulls/57336 | 2024-02-10T11:38:13Z | 2024-02-10T15:06:36Z | 2024-02-10T15:06:36Z | 2024-02-10T15:06:36Z |
DOC: fix PR02 errors in docstring for pandas.core.groupby.DataFrameGroupBy.rolling and pandas.core.groupby.SeriesGroupBy.rolling | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9c9cd2cc6650e..f48a9e11dc9e1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -137,9 +137,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Interval\
pandas.Grouper\
pandas.core.groupby.DataFrameGroupBy.nth\
- ... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.DataFrameGroupBy.rolling
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.SeriesGroupBy.rolling
- [x] xref https://github.com/pandas-dev/pandas... | https://api.github.com/repos/pandas-dev/pandas/pulls/57334 | 2024-02-10T08:12:44Z | 2024-02-12T18:30:55Z | 2024-02-12T18:30:55Z | 2024-02-12T18:32:45Z |
REGR: merge with 3rd party EA's can sometimes raise ValueError | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 69e14a9028dd3..1525975d6691e 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`.DataFrameGroupBy.idxmin`, :meth:`.DataFrameGroupBy.idxmax`, ... | - [x] closes #57316
- [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/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/57333 | 2024-02-10T02:56:36Z | 2024-02-10T16:18:45Z | 2024-02-10T16:18:45Z | 2024-02-10T21:09:22Z |
CLN: Enforce deprecation of Series.agg using Series.apply | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 17120f30c21f2..2335c48632252 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -119,6 +119,7 @@ Removal of prior version deprecations/changes
- Removed ``pandas.value_counts``, use :meth:`Series.value_c... | - [ ] 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/57332 | 2024-02-10T01:58:51Z | 2024-02-10T11:39:39Z | 2024-02-10T11:39:39Z | 2024-02-10T12:41:16Z |
Backport PR #57322 on branch 2.2.x (REGR: Fix astype conversion of ea int to td/dt with missing values) | diff --git a/pandas/core/arrays/_utils.py b/pandas/core/arrays/_utils.py
index 88091a88a4e12..6b46396d5efdf 100644
--- a/pandas/core/arrays/_utils.py
+++ b/pandas/core/arrays/_utils.py
@@ -39,14 +39,21 @@ def to_numpy_dtype_inference(
dtype = arr.dtype.numpy_dtype # type: ignore[union-attr]
elif dtyp... | Backport PR #57322: REGR: Fix astype conversion of ea int to td/dt with missing values | https://api.github.com/repos/pandas-dev/pandas/pulls/57331 | 2024-02-10T01:46:57Z | 2024-02-10T11:25:24Z | 2024-02-10T11:25:24Z | 2024-02-10T11:25:24Z |
CLN: Enforce change in default value of observed | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 17120f30c21f2..748fc53f4ad2e 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -104,6 +104,7 @@ Deprecations
Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... | - [ ] 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/57330 | 2024-02-10T01:10:48Z | 2024-02-10T11:39:05Z | 2024-02-10T11:39:05Z | 2024-02-10T12:41:24Z |
REGR: CategoricalIndex.difference with null values | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 69e14a9028dd3..335dada439029 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in :func:`wide_to_long` raising an ``AttributeError`` for string column... | - [x] closes #57318
- [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/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/57329 | 2024-02-10T01:05:52Z | 2024-02-10T11:38:06Z | 2024-02-10T11:38:06Z | 2024-02-10T11:38:09Z |
Enforce silent downcasting deprecation | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 9cd9d6a157aee..31a1c6008bce8 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -206,7 +206,6 @@ Missing data handling
.. autosummary::
:toctree: api/
- DataFrame.backfill
DataFrame.bfill
... | - [ ] 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/57328 | 2024-02-09T23:55:34Z | 2024-02-13T17:39:16Z | 2024-02-13T17:39:16Z | 2024-02-28T18:01:00Z |
CoW: Remove copy-keywords as far as possible | diff --git a/pandas/core/base.py b/pandas/core/base.py
index a1484d9ad032b..cb8848db9af60 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -218,7 +218,7 @@ def _obj_with_exclusions(self):
return self.obj
if self._selection is not None:
- return self.obj._getitem_nocopy(se... | - [ ] 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/57327 | 2024-02-09T22:46:39Z | 2024-02-10T01:45:59Z | 2024-02-10T01:45:59Z | 2024-02-10T11:25:46Z |
Backport PR #57250 on branch 2.2.x (REGR/DOC: pd.concat should special case DatetimeIndex to sort even when sort=False) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 883627bd4b19b..c0bd281198719 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -15,6 +15,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed memory leak in :func:`read_csv` (:issue:`57039`)
- Fixed perfo... | Backport PR #57250: REGR/DOC: pd.concat should special case DatetimeIndex to sort even when sort=False | https://api.github.com/repos/pandas-dev/pandas/pulls/57326 | 2024-02-09T22:07:08Z | 2024-02-09T23:30:08Z | 2024-02-09T23:30:08Z | 2024-02-09T23:30:09Z |
Backport PR #57121 on branch 2.2.x (REGR: Fix to_numpy for masked array with non-numeric dtype) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 883627bd4b19b..009d4794dbd1d 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -17,12 +17,15 @@ Fixed regressions
- Fixed performance regression in :meth:`Series.combine_first` (:issue:`55845`)
- Fixed... | Backport PR #57121: REGR: Fix to_numpy for masked array with non-numeric dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/57325 | 2024-02-09T22:05:25Z | 2024-02-09T23:29:56Z | 2024-02-09T23:29:56Z | 2024-02-09T23:29:56Z |
CoW: Remove remaining occurrences from CoW | diff --git a/pandas/core/base.py b/pandas/core/base.py
index cb8848db9af60..ace900cc32db5 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -18,8 +18,6 @@
import numpy as np
-from pandas._config import using_copy_on_write
-
from pandas._libs import lib
from pandas._typing import (
AxisInt,
@@ -6... | - [ ] 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/57324 | 2024-02-09T21:54:50Z | 2024-02-12T18:27:38Z | 2024-02-12T18:27:38Z | 2024-02-12T18:29:28Z |
REGR: Fix regression when grouping over a Series | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index b342eef850459..eb6e50c1be160 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`.DataFrameGroupBy.idxmin`, :meth:`.DataFrameGroupBy.idxmax`, ... | - [ ] closes #57276 (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/57323 | 2024-02-09T21:40:47Z | 2024-02-10T21:10:22Z | 2024-02-10T21:10:22Z | 2024-02-10T21:10:25Z |
REGR: Fix astype conversion of ea int to td/dt with missing values | diff --git a/pandas/core/arrays/_utils.py b/pandas/core/arrays/_utils.py
index 88091a88a4e12..6b46396d5efdf 100644
--- a/pandas/core/arrays/_utils.py
+++ b/pandas/core/arrays/_utils.py
@@ -39,14 +39,21 @@ def to_numpy_dtype_inference(
dtype = arr.dtype.numpy_dtype # type: ignore[union-attr]
elif dtyp... | - [ ] 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/57322 | 2024-02-09T21:28:05Z | 2024-02-10T01:46:50Z | 2024-02-10T01:46:49Z | 2024-02-10T11:25:20Z |
DOC: fix PR02 errors in docstring for pandas.Series.str.wrap | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 75fb82b1e285f..39ccf904858d5 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -80,7 +80,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.dt.ceil\
pandas.Series.dt.month_name\
pandas.Series.dt.day_name\
... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.Series.str.wrap
- [x] xref https://github.com/pandas-dev/pandas/issues/57111
- [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/57321 | 2024-02-09T21:13:11Z | 2024-02-13T16:58:43Z | 2024-02-13T16:58:43Z | 2024-02-13T16:58:52Z |
CLN: Remove Series.view/ravel, fastpath | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 46d69f8909e8a..8b6d4dae94316 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -1114,7 +1114,6 @@ generated/pandas.Series.ptp,../reference/api/pandas.Series.ptp
generated/pandas.Series.quantile,../reference/api/pandas.Series.quantile
generated/pandas.Se... | ref https://github.com/pandas-dev/pandas/pull/56053, https://github.com/pandas-dev/pandas/pull/56054, https://github.com/pandas-dev/pandas/pull/55466 | https://api.github.com/repos/pandas-dev/pandas/pulls/57319 | 2024-02-09T18:50:34Z | 2024-02-09T20:51:33Z | 2024-02-09T20:51:33Z | 2024-02-09T20:52:45Z |
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 e381f9df16383..8be235e7810ae 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... | - [x] closes #57150
- [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/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/57314 | 2024-02-09T09:45:39Z | 2024-02-22T23:53:20Z | 2024-02-22T23:53:20Z | 2024-02-23T06:55:08Z |
Fixing multi method for to_sql for non-oracle databases | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 5e814ec2a1b92..ca4fef4f57fb6 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -31,6 +31,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.sort_index` not producing a stable sort for a index... | - [ ] closes #57310
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/57311 | 2024-02-09T02:44:08Z | 2024-02-17T01:09:58Z | 2024-02-17T01:09:58Z | 2024-02-17T01:10:06Z |
DOC: fix reference to api.typing.NaTType (from api.types.NaTType) | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 7ee77b7648486..aea7688c062b8 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -21,7 +21,7 @@ is that the original data type will be coerced to ``np.float64`` or ``object`... | Effectively, the `NaTType` definition lives under `api.typing` and not `api.types`
| https://api.github.com/repos/pandas-dev/pandas/pulls/57309 | 2024-02-09T00:21:41Z | 2024-02-09T21:03:03Z | 2024-02-09T21:03:03Z | 2024-02-11T10:44:17Z |
CLN: Remove .bool(), __init__, __float__ from DataFrame/Series | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0c11e0d469155..876d86a68f0db 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -298,11 +298,6 @@ repos:
files: ^pandas/core/
exclude: ^pandas/core/api\.py$
types: [python]
- - id: no-bool-in-core-gen... | xref https://github.com/pandas-dev/pandas/pull/51756, https://github.com/pandas-dev/pandas/pull/51131 | https://api.github.com/repos/pandas-dev/pandas/pulls/57308 | 2024-02-08T23:24:05Z | 2024-02-09T21:13:48Z | 2024-02-09T21:13:48Z | 2024-02-09T21:31:06Z |
CLN: Remove literal string/bytes support in IO readers | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 80572de91e0c7..a08315818366f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3247,7 +3247,7 @@ output (as shown below for demonstration) for easier parse into ``DataFrame``:
</row>
</response>"""
... | xref https://github.com/pandas-dev/pandas/issues/53767
| https://api.github.com/repos/pandas-dev/pandas/pulls/57307 | 2024-02-08T22:11:55Z | 2024-02-10T11:42:20Z | 2024-02-10T11:42:20Z | 2024-02-12T17:02:28Z |
TST: adds a test to check signedness preservation after sum | diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py
index 20749c7ed90e8..efecd43625eed 100644
--- a/pandas/tests/reductions/test_reductions.py
+++ b/pandas/tests/reductions/test_reductions.py
@@ -1259,6 +1259,12 @@ def test_sum_uint64(self):
expected = np.uint64... | - [x] closes #37491
- [x] Tests added and passed
- [x] All code checks passed
Adds a test to make sure the result of sum does not alter the signedness of the input. | https://api.github.com/repos/pandas-dev/pandas/pulls/57306 | 2024-02-08T19:34:21Z | 2024-02-08T23:26:32Z | 2024-02-08T23:26:32Z | 2024-02-08T23:39:29Z |
DOC: fix PR02 errors in docstring for pandas.core.groupby.DataFrameGroupBy.hist | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a9280fc48af1a..9c9cd2cc6650e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -140,7 +140,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.DataFrameGroupBy.rolling\
pandas.core.groupby.SeriesGroupBy.nth\
... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.DataFrameGroupBy.hist
- [x] xref https://github.com/pandas-dev/pandas/issues/57111
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributin... | https://api.github.com/repos/pandas-dev/pandas/pulls/57304 | 2024-02-08T17:59:41Z | 2024-02-09T20:52:25Z | 2024-02-09T20:52:25Z | 2024-02-09T21:06:16Z |
DEPR: Enforce deprecation of previous implementation of DataFrame.stack | diff --git a/doc/source/getting_started/comparison/comparison_with_r.rst b/doc/source/getting_started/comparison/comparison_with_r.rst
index a6cfcd4614984..25ba237e8caf3 100644
--- a/doc/source/getting_started/comparison/comparison_with_r.rst
+++ b/doc/source/getting_started/comparison/comparison_with_r.rst
@@ -438,7 +... | - [ ] 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/57302 | 2024-02-08T04:09:49Z | 2024-02-14T02:14:57Z | 2024-02-14T02:14:57Z | 2024-02-14T03:02:06Z |
CLN: remove from PeriodIndex.asfreq unnecessary raising ValueError for invalid period freq | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 2a36c0f1ef549..63ea60fe2763b 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -2773,11 +2773,6 @@ def asfreq(
if isinstance(freq, BaseOffset):
if hasattr(freq, "_period_dtype_code"):
freq = f... | xref #56945
removed from `PeriodIndex.asfreq` unnecessary raising ValueError for invalid period freq. Now we raise this ValueError for invalid period freq in `to_offset`. | https://api.github.com/repos/pandas-dev/pandas/pulls/57300 | 2024-02-07T22:00:03Z | 2024-02-08T09:02:55Z | 2024-02-08T09:02:55Z | 2024-02-08T09:02:55Z |
BUG: sort_index(1, ignore_index=True, ascending=False) | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 2c39318fa28b3..503da28684d60 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -241,9 +241,9 @@ Styler
Other
^^^^^
+- Bug in :meth:`DataFrame.sort_index` when passing ``axis="columns"`` and ``ignore_... | - [ ] closes #57293 (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/57297 | 2024-02-07T19:40:44Z | 2024-02-09T20:59:11Z | 2024-02-09T20:59:11Z | 2024-02-09T20:59:58Z |
CLN: Remove pandas.value_counts, Index.format, is_interval, is_period | diff --git a/asv_bench/benchmarks/strftime.py b/asv_bench/benchmarks/strftime.py
index 47f25b331ab9b..5f2832e361eb5 100644
--- a/asv_bench/benchmarks/strftime.py
+++ b/asv_bench/benchmarks/strftime.py
@@ -79,12 +79,6 @@ def time_frame_period_formatting_default(self, nobs, freq):
def time_frame_period_formatting_de... | https://github.com/pandas-dev/pandas/pull/56038
https://github.com/pandas-dev/pandas/pull/55439
https://github.com/pandas-dev/pandas/pull/53493 | https://api.github.com/repos/pandas-dev/pandas/pulls/57296 | 2024-02-07T19:00:04Z | 2024-02-09T22:07:53Z | 2024-02-09T22:07:53Z | 2024-02-09T22:08:59Z |
BUG: Updated _pprint_seq to use enumerate instead of next | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 2c39318fa28b3..8e1c285cb123a 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -137,6 +137,7 @@ Performance improvements
Bug fixes
~~~~~~~~~
- Fixed bug in :meth:`DataFrame.join` inconsistently settin... | This PR closes an edge-case [bug](https://github.com/pandas-dev/pandas/issues/16098) that has been around for almost 7 years.
To print a DataFrame, the function `_pprint_seq()` constructs a string representation of an iterable object (called `seq`) by creating an iterator over it, and truncating it if `len(seq) > ma... | https://api.github.com/repos/pandas-dev/pandas/pulls/57295 | 2024-02-07T17:35:52Z | 2024-02-09T21:04:26Z | 2024-02-09T21:04:26Z | 2024-02-09T21:04:31Z |
Backport PR #57233 on branch 2.2.x (REGR: Fix to_numpy conversion for arrow ea with float dtype given) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 3f70c72a55a4c..883627bd4b19b 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -25,6 +25,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.idxmin`, :meth:`DataFrameGroupBy.idxmax`, :m... | Backport PR #57233: REGR: Fix to_numpy conversion for arrow ea with float dtype given | https://api.github.com/repos/pandas-dev/pandas/pulls/57294 | 2024-02-07T16:52:36Z | 2024-02-07T18:02:06Z | 2024-02-07T18:02:06Z | 2024-02-07T18:02:07Z |
Backport PR #56945 on branch 2.2.x (ENH: raise ValueError if invalid period freq pass to asfreq when the index of df is a PeriodIndex) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 3cc11974b14e5..3f70c72a55a4c 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -35,6 +35,7 @@ Bug fixes
- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which was raising for empty inputs (:... | (cherry picked from commit cb97ce6e496e7d1df76f06550c0fe8c4590ff3ce)
- [ ] 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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/57292 | 2024-02-07T14:00:55Z | 2024-02-07T15:12:00Z | 2024-02-07T15:12:00Z | 2024-02-07T15:12:00Z |
DOC: fix typo: "two solution" | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index a083297925007..15537fd2ce566 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -295,7 +295,7 @@ This array is read-only, which means that it can't be modified inplace:... | > There are two potential solution to this:
fixed to:
> There are two potential solutions to this:
| https://api.github.com/repos/pandas-dev/pandas/pulls/57289 | 2024-02-07T07:13:51Z | 2024-02-07T18:02:24Z | 2024-02-07T18:02:24Z | 2024-02-07T18:05:21Z |
DOC: fix PR02 errors in docstring for pandas.core.groupby.SeriesGroupBy.apply | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d71aa5ea30e0e..a9280fc48af1a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -136,7 +136,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timedelta.resolution\
pandas.Interval\
pandas.Grouper\
- pandas... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.SeriesGroupBy.apply
- [x] xref https://github.com/pandas-dev/pandas/issues/57111
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_... | https://api.github.com/repos/pandas-dev/pandas/pulls/57288 | 2024-02-07T06:53:50Z | 2024-02-08T22:21:12Z | 2024-02-08T22:21:12Z | 2024-02-08T22:21:23Z |
Fixed BUG: Using NamedTuples with .iloc fails #48188 | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ab06dd3ea5af0..669c18341c97d 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1162,7 +1162,8 @@ def _check_deprecated_callable_usage(self, key: Any, maybe_callable: T) -> T:
@final
def __getitem__(self, key):
c... | - [ ] closes #48188 (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/57287 | 2024-02-07T06:03:15Z | 2024-02-07T18:03:18Z | null | 2024-02-07T18:03:19Z |
TYP: misc return types | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 8646b7425894d..645faea995184 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -46,7 +46,12 @@
from pandas.core.dtypes.dtypes import ExtensionDtype
- from pandas import Interval
+ from pandas import (
+ DatetimeIndex,
+ Interv... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57285 | 2024-02-07T01:45:34Z | 2024-02-07T04:55:26Z | 2024-02-07T04:55:26Z | 2024-02-10T20:34:26Z |
Added `pyarrow` extra for instructions on silencing the `DeprecationWarning` | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 535522253c415..7260b34630997 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -212,6 +212,7 @@
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the A... | Changes requested in https://github.com/pandas-dev/pandas/issues/54466#issuecomment-1930675430 | https://api.github.com/repos/pandas-dev/pandas/pulls/57284 | 2024-02-06T23:03:27Z | 2024-02-22T18:11:53Z | null | 2024-02-22T19:00:15Z |
Translate more banned import config to ruff | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 876d86a68f0db..91ca35ce33c49 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -208,39 +208,22 @@ repos:
language: pygrep
entry: |
(?x)
- # pytest.xfail instead of pytest.mark.xfail
- ... | Translate some config in `unwanted-patterns-in-tests` to `ruff`. I think the main selling point of `ruff` here is just the ease of implementing new rules, like the currently unenabled `pytest.warns` one.
The major difference is that `unwanted-patterns-in-tests` is currently only enabled in `pandas/tests` while with ... | https://api.github.com/repos/pandas-dev/pandas/pulls/57283 | 2024-02-06T22:27:24Z | 2024-02-13T17:04:00Z | 2024-02-13T17:04:00Z | 2024-03-17T07:53:21Z |
Use ruff to enforce import alias | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e683fc50c1c5d..201820c6a8b28 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,6 +30,12 @@ repos:
files: ^pandas
exclude: ^pandas/tests
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-f... | I replaced the hook `use-pd_array-in-core` with `ruff`'s [`unconventional-import-alias`](https://docs.astral.sh/ruff/rules/unconventional-import-alias/)
The `pre-commit` job will fail to show that the check works. It will pass after I enable `exclude: ^pandas/core/api\.py$`.
If this change is accepted, I can cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/57282 | 2024-02-06T21:31:14Z | 2024-03-05T00:49:52Z | 2024-03-05T00:49:52Z | 2024-03-17T07:53:33Z |
CLN: Make first argument in IO writers keyword only; remove gbq | diff --git a/asv_bench/benchmarks/io/hdf.py b/asv_bench/benchmarks/io/hdf.py
index acf0ec4b9d359..2eb4c8c7f674b 100644
--- a/asv_bench/benchmarks/io/hdf.py
+++ b/asv_bench/benchmarks/io/hdf.py
@@ -123,12 +123,12 @@ def setup(self, format):
index=date_range("20000101", periods=N, freq="h"),
)
... | xref https://github.com/pandas-dev/pandas/issues/54229, https://github.com/pandas-dev/pandas/pull/55868 | https://api.github.com/repos/pandas-dev/pandas/pulls/57279 | 2024-02-06T18:43:36Z | 2024-02-07T04:09:13Z | 2024-02-07T04:09:13Z | 2024-02-07T04:50:00Z |
Remove codecov CI output | diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml
index b4778b74df335..4a9fe04a8f5f9 100644
--- a/.github/actions/run-tests/action.yml
+++ b/.github/actions/run-tests/action.yml
@@ -20,11 +20,6 @@ runs:
path: test-data.xml
if: failure()
- - name: Report Covera... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57278 | 2024-02-06T18:18:54Z | 2024-02-06T19:48:01Z | 2024-02-06T19:48:01Z | 2024-02-06T20:11:27Z |
DEPR: disallow parsing datetimes with mixed time zones unless `utc=True` | diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py
index 30cab00e4d3f9..ce3935d2cd0ac 100644
--- a/asv_bench/benchmarks/inference.py
+++ b/asv_bench/benchmarks/inference.py
@@ -200,7 +200,7 @@ def time_same_offset(self):
to_datetime(self.same_offset)
def time_different_of... | xref #54014
enforced deprecation disallowing parsing datetimes with mixed time zones unless user passes `utc=True` to `to_datetime` | https://api.github.com/repos/pandas-dev/pandas/pulls/57275 | 2024-02-06T10:35:39Z | 2024-02-19T23:00:35Z | 2024-02-19T23:00:35Z | 2024-02-19T23:00:35Z |
DOC: Add notice and example for `CategoricalDtype` with different ``categories_dtype`` | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index 8fb991dca02db..7b2fd32303845 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -245,7 +245,8 @@ Equality semantics
Two instances of :class:`~pandas.api.types.CategoricalDty... | - [x] closes #57259 (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/57273 | 2024-02-06T04:07:32Z | 2024-02-17T12:25:57Z | 2024-02-17T12:25:57Z | 2024-02-17T14:44:04Z |
PERF: reindex default fill_value dtype | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 81c3f88f7e8ad..53d2025448640 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -161,7 +161,7 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :meth:`Series.astype` might modify read-only array inplace when c... | - [ ] closes #45857 (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/57272 | 2024-02-06T02:45:31Z | 2024-02-09T21:06:00Z | 2024-02-09T21:06:00Z | 2024-02-09T21:07:25Z |
Backport PR #57265 on branch 2.2.x (COMPAT: Numpy 2.0 casting compat) | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 259e83a5936d7..690af6b0ebdc7 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1682,6 +1682,7 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n
arr = np.asarray(arr)
if np.... | Backport PR #57265: COMPAT: Numpy 2.0 casting compat | https://api.github.com/repos/pandas-dev/pandas/pulls/57271 | 2024-02-05T23:31:53Z | 2024-02-06T02:28:17Z | 2024-02-06T02:28:17Z | 2024-02-06T02:28:17Z |
CoW: Remove cow branches from more tests | diff --git a/pandas/tests/indexing/multiindex/test_chaining_and_caching.py b/pandas/tests/indexing/multiindex/test_chaining_and_caching.py
index c70c0ee10afd6..43aec12055cd2 100644
--- a/pandas/tests/indexing/multiindex/test_chaining_and_caching.py
+++ b/pandas/tests/indexing/multiindex/test_chaining_and_caching.py
@@ ... | - [ ] 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/57270 | 2024-02-05T23:28:32Z | 2024-02-06T02:29:12Z | 2024-02-06T02:29:12Z | 2024-02-06T10:15:28Z |
CoW: Finish deprecation enforcal on block level | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bbe499aad695f..afe862547a1fe 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6643,7 +6643,7 @@ def infer_objects(self, copy: bool_t | None = None) -> Self:
A int64
dtype: object
"""
- new_mgr = s... | - [ ] 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/57269 | 2024-02-05T23:27:50Z | 2024-02-09T22:07:10Z | 2024-02-09T22:07:10Z | 2024-02-09T22:07:17Z |
DOC: fix pr02 errors in docstrings - plot.bar, plot.barh, plot.line, plot.pie | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0645918354c29..d71aa5ea30e0e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -87,15 +87,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.cat.remove_categories\
pandas.Series.cat.set_categories\
pandas.... | Methods for `pandas.Series.plot.bar` and `pandas.DataFrame.plot.bar` have the same underlying usage of `PlotAccessor`.
### validate_docstrings script output
1a. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.Series.plot.bar
```
##############################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/57266 | 2024-02-05T19:55:15Z | 2024-02-07T18:12:33Z | 2024-02-07T18:12:33Z | 2024-02-07T18:12:40Z |
COMPAT: Numpy 2.0 casting compat | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 4d76ce5799e7b..dfe12872c3916 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1683,6 +1683,7 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n
arr = np.asarray(arr)
if np.... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57265 | 2024-02-05T18:24:56Z | 2024-02-05T23:31:27Z | 2024-02-05T23:31:27Z | 2024-02-06T02:26:36Z |
[pre-commit.ci] pre-commit autoupdate | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ccd01abc4affe..b7595bef54f97 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,7 +19,7 @@ ci:
skip: [pylint, pyright, mypy]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.1.6
+ rev: v0.2.0
... | <!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.2.0)
- [github.com/pylint-dev/pylint: v3.0.1 → v3.0.3](https://github.com/pylint-dev/pylint/compare/v3.0.1...v3.0.3)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](... | https://api.github.com/repos/pandas-dev/pandas/pulls/57263 | 2024-02-05T16:29:57Z | 2024-02-06T02:46:48Z | null | 2024-02-06T02:46:51Z |
DOC: fix PR02 errors in docstrings of Index subclasses | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index cebc8e976425b..5b65182d1c253 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -71,26 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR02)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings... | To fix PR02 errors, this PR adds `__signature__` to the methods, so that the docs show the correct signature instead of `*args, **kwargs`.
- [x] xref #57111(Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writ... | https://api.github.com/repos/pandas-dev/pandas/pulls/57261 | 2024-02-05T08:55:52Z | 2024-02-05T17:24:55Z | 2024-02-05T17:24:55Z | 2024-02-06T03:27:31Z |
TYP: misc Index return types | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 1fec41463904c..8646b7425894d 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -189,6 +189,7 @@ def __reversed__(self) -> Iterator[_T_co]:
# passed in, a DataFrame is always returned.
NDFrameT = TypeVar("NDFrameT", bound="NDFrame")
+IndexT = TypeVar("... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57256 | 2024-02-05T00:07:29Z | 2024-02-05T23:14:29Z | 2024-02-05T23:14:29Z | 2024-02-10T20:34:29Z |
CoW: Remove copy-on-write conditions from frame tests | diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py
index 73683922bcc92..25d6e06a4c675 100644
--- a/pandas/tests/frame/indexing/test_getitem.py
+++ b/pandas/tests/frame/indexing/test_getitem.py
@@ -391,18 +391,13 @@ def test_getitem_empty_frame_with_boolean(self):
... | Getting started here as well | https://api.github.com/repos/pandas-dev/pandas/pulls/57255 | 2024-02-04T23:56:23Z | 2024-02-05T02:01:35Z | 2024-02-05T02:01:35Z | 2024-02-05T09:06:40Z |
CoW: Enforce some deprecations on the datafame level | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e48e5d9023f33..771554f2b0f2b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -39,10 +39,7 @@
import numpy as np
from numpy import ma
-from pandas._config import (
- get_option,
- using_copy_on_write,
-)
+from pandas._config import ... | - [ ] 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/57254 | 2024-02-04T23:44:11Z | 2024-02-09T22:01:01Z | 2024-02-09T22:01:01Z | 2024-02-09T22:01:37Z |
CoW: Enforce some deprecations on the block level | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index afa680d064c4a..614e8ff0232f5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10744,7 +10744,6 @@ def _series_round(ser: Series, decimals: int) -> Series:
# type "Union[int, integer[Any]]"; expected "int"
new_mgr = ... | This starts ripping the branches out of blocks.py, remaining ones will follow in another pr | https://api.github.com/repos/pandas-dev/pandas/pulls/57253 | 2024-02-04T23:25:18Z | 2024-02-05T02:00:07Z | 2024-02-05T02:00:07Z | 2024-02-05T09:06:33Z |
PERF: RangeIndex.append with the same index | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 637b1b40f59a3..9c1e9656503f7 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -136,10 +136,14 @@ def setup(self):
self.int_idxs.append(i_idx)
o_idx = i_... | ```python
In [1]: import pandas as pd, numpy as np
In [2]: idx = pd.RangeIndex(1000)
In [3]: %timeit idx.append([idx] * 100_000)
362 ms ± 4.39 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # main
342 ms ± 4.07 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # pr
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/57252 | 2024-02-04T21:02:50Z | 2024-02-09T21:07:41Z | 2024-02-09T21:07:41Z | 2024-02-09T21:31:13Z |
REGR/DOC: pd.concat should special case DatetimeIndex to sort even when sort=False | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 3cc11974b14e5..14e0bc5e777d8 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -15,6 +15,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed memory leak in :func:`read_csv` (:issue:`57039`)
- Fixed perfo... | - [x] closes #57006
- [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/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/57250 | 2024-02-04T14:06:07Z | 2024-02-09T22:07:01Z | 2024-02-09T22:07:00Z | 2024-02-10T09:51:19Z |
Update type hint in io/formats/format.py | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index 65124f97459cd..29f6e8ab96f71 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -1546,7 +1546,7 @@ def _format_strings(self) -> list[str]:
def format_percentiles(
- percentiles: (np.ndarray | Sequence[float])... | The brackets around the type hint broke the libcst parser. Since the brackets are not necessary for the type hint, they have been removed
- [x] closes #57248
- [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/57249 | 2024-02-04T13:49:24Z | 2024-02-04T16:05:20Z | 2024-02-04T16:05:20Z | 2024-02-04T16:07:31Z |
Fix errors in docstring for `pandas.PeriodIndex` | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 2eb5b73d68964..75ce6b179b966 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.TimedeltaIndex.round\
pandas.TimedeltaIndex.floor\
pandas.TimedeltaIndex... | Fix errors in `pandas.PeriodIndex`.
While working on it, I also add docstrings to the two associated new methods.
- [x] xref #57111(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 b... | https://api.github.com/repos/pandas-dev/pandas/pulls/57247 | 2024-02-04T12:43:50Z | 2024-02-04T18:19:04Z | 2024-02-04T18:19:04Z | 2024-02-05T04:04:48Z |
DEPR: Remove first and last from DataFrame | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 1d9019ff22c23..1ade30faa123b 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -186,11 +186,9 @@ Reindexing / selection / label manipulation
DataFrame.duplicated
DataFrame.equals
DataFrame.fi... | - [ ] 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/57246 | 2024-02-04T11:16:04Z | 2024-02-04T15:17:30Z | 2024-02-04T15:17:30Z | 2024-02-04T15:20:56Z |
DOC: fix PR02 errors in docstring for pandas.core.groupby.DataFrameGroupBy.corrwith | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f8f63de2c3cda..0645918354c29 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -151,7 +151,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.rolling\
pandas.core.groupby.DataFrameGroupBy.hist\
... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.DataFrameGroupBy.corrwith
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.DataFrame.corrwith
OUTPUT:
1. scripts/validate_docstrings.py --... | https://api.github.com/repos/pandas-dev/pandas/pulls/57243 | 2024-02-04T07:51:27Z | 2024-02-06T17:38:57Z | 2024-02-06T17:38:57Z | 2024-02-07T01:31:22Z |
DOC: Fix typo in merging.rst | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index c9c8478a719f0..1edf3908936db 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -249,7 +249,7 @@ a :class:`MultiIndex`) associate specific keys with each original :class:`DataFr
p.plot(fra... | - [ ] 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/57242 | 2024-02-04T04:55:59Z | 2024-02-04T05:21:06Z | 2024-02-04T05:21:06Z | 2024-02-04T05:21:19Z |
DEPR: Remove sql.execute, *args/**kwargs in resample, unrecognized timezones | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 81c3f88f7e8ad..35be14cd033e4 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -107,8 +107,11 @@ Removal of prior version deprecations/changes
- Removed ``DataFrameGroupBy.grouper`` and ``SeriesGroupBy.... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57241 | 2024-02-04T03:07:01Z | 2024-02-06T18:20:07Z | 2024-02-06T18:20:07Z | 2024-02-06T18:44:29Z |
Backport PR #57232 on branch 2.2.x (REGR: to_json converting nullable ints to floats) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 13d5024b5a131..3cc11974b14e5 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc` raising ``IndexError`` for non-unique, masked ... | Backport PR #57232: REGR: to_json converting nullable ints to floats | https://api.github.com/repos/pandas-dev/pandas/pulls/57240 | 2024-02-04T01:20:35Z | 2024-02-04T03:08:15Z | 2024-02-04T03:08:15Z | 2024-02-04T03:08:15Z |
DOC: fix PR02 errors in docstring for pandas.Series.rename_axis | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 2eb5b73d68964..14ff227b805dd 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -92,7 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.TimedeltaIndex.ceil\
pandas.PeriodIndex\
pandas.PeriodIndex.strftime\
- ... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.Series.rename_axis
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.DataFrame.rename_axis
OUTPUT:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/57239 | 2024-02-04T01:19:50Z | 2024-02-04T18:21:23Z | 2024-02-04T18:21:23Z | 2024-02-04T18:21:34Z |
Remove Copy-on-Write builds | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 0fffedcb6ae88..533b81013a264 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -57,22 +57,6 @@ jobs:
# Also install zh_CN (its encoding is gb2312) but do not activate it.
... | - [ ] 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/57238 | 2024-02-04T00:14:33Z | 2024-02-04T01:17:41Z | 2024-02-04T01:17:41Z | 2024-02-04T01:17:56Z |
Remove Copy-on-Write warning mode from tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index db251a07aeb5d..54d7122cd73de 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1966,14 +1966,6 @@ def using_copy_on_write() -> bool:
return True
-@pytest.fixture
-def warn_copy_on_write() -> bool:
- """
- Fixture to check if Copy-on-Wr... | - [ ] 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/57237 | 2024-02-04T00:05:54Z | 2024-02-04T01:14:14Z | 2024-02-04T01:14:13Z | 2024-02-16T15:20:41Z |
DOC: Clarifying brackets vs. parentheses | diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst
index 832c2cc25712f..ae658ec6abbaf 100644
--- a/doc/source/getting_started/intro_tutorials/02_read_write.rst
+++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst
@@ -97,... | - [x] closes #56972
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). (Doc edits only)
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functio... | https://api.github.com/repos/pandas-dev/pandas/pulls/57236 | 2024-02-04T00:05:26Z | 2024-02-04T15:24:14Z | 2024-02-04T15:24:14Z | 2024-02-04T18:25:47Z |
DOC: Updated docstring for set_option | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a09c4662a1fd9..a91f8a881f3ba 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -159,7 +159,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.tseries.offsets.Milli\
pandas.tseries.offsets.Micro\
pandas.tseries.of... | - [X] closes #57148
- [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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/57235 | 2024-02-03T23:42:37Z | 2024-02-05T17:29:52Z | 2024-02-05T17:29:52Z | 2024-02-05T21:53:52Z |
Remove Copy-on-Write warning mode | diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py
index 0594d1c190a72..9784303fc0b87 100644
--- a/pandas/_config/__init__.py
+++ b/pandas/_config/__init__.py
@@ -15,7 +15,6 @@
"option_context",
"options",
"using_copy_on_write",
- "warn_copy_on_write",
]
from pandas._config import ... | This removes the warning mode from the code, tests will follow in a separate PR
cc @mroeschke | https://api.github.com/repos/pandas-dev/pandas/pulls/57234 | 2024-02-03T23:36:58Z | 2024-02-04T01:11:11Z | 2024-02-04T01:11:11Z | 2024-02-04T01:11:49Z |
REGR: Fix to_numpy conversion for arrow ea with float dtype given | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 13d5024b5a131..0bbec10380c57 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.idxmin`, :meth:`DataFrameGroupBy.idxmax`, :m... | - [ ] 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/57233 | 2024-02-03T23:12:42Z | 2024-02-07T16:52:08Z | 2024-02-07T16:52:08Z | 2024-02-07T18:22:31Z |
REGR: to_json converting nullable ints to floats | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 13d5024b5a131..3cc11974b14e5 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc` raising ``IndexError`` for non-unique, masked ... | - [ ] closes #57224 (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/57232 | 2024-02-03T22:59:47Z | 2024-02-04T01:20:05Z | 2024-02-04T01:20:05Z | 2024-02-04T01:34:23Z |
DEPR: Remove Index type checking attributes | diff --git a/doc/source/reference/index.rst b/doc/source/reference/index.rst
index 7f4d05414d254..639bac4d40b70 100644
--- a/doc/source/reference/index.rst
+++ b/doc/source/reference/index.rst
@@ -62,7 +62,6 @@ to be stable.
..
.. toctree::
- api/pandas.Index.holds_integer
api/pandas.Index.nleve... | - [ ] 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/57231 | 2024-02-03T22:35:19Z | 2024-02-08T22:09:38Z | 2024-02-08T22:09:38Z | 2024-02-09T17:34:02Z |
DOC: fix PR02 errors in docstring for pandas.io.formats.style.Styler.to_excel | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a09c4662a1fd9..2eb5b73d68964 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -71,7 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (PR02)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.io.formats.style.Styler.to_excel
OUTPUT:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.io.formats.style.Styler.to_excel
```
######################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/57230 | 2024-02-03T21:37:36Z | 2024-02-04T01:07:01Z | 2024-02-04T01:07:01Z | 2024-02-04T01:20:36Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.