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 |
|---|---|---|---|---|---|---|---|
REGR: non-unique, masked dtype index raising IndexError | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..386e8cbc51f6f 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... | - [x] closes #57027
- [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/57061 | 2024-01-25T00:58:03Z | 2024-01-30T02:15:28Z | 2024-01-30T02:15:28Z | 2024-01-30T02:15:35Z |
check ExtensionType in is_datetime64_any_dtype for array-likes | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index f9117253b61c1..d6d33ed873564 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -130,7 +130,6 @@ Bug fixes
~~~~~~~~~
- Fixed bug in :meth:`DataFrame.join` inconsistently setting result index name (:issu... | - [x] closes #57055
- [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/57060 | 2024-01-24T22:58:07Z | 2024-02-02T17:55:16Z | 2024-02-02T17:55:16Z | 2024-02-02T18:01:43Z |
Backport PR #57058 on branch 2.2.x (BUG: Series.pct_change with empty Series) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 75445c978d262..d3065cdd8b624 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`merge... | Backport PR #57058: BUG: Series.pct_change with empty Series | https://api.github.com/repos/pandas-dev/pandas/pulls/57059 | 2024-01-24T22:37:47Z | 2024-01-25T16:13:44Z | 2024-01-25T16:13:44Z | 2024-01-25T16:13:45Z |
BUG: Series.pct_change with empty Series | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 75445c978d262..d3065cdd8b624 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`merge... | - [ ] closes #57056 (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/57058 | 2024-01-24T20:43:04Z | 2024-01-24T22:36:47Z | 2024-01-24T22:36:47Z | 2024-01-24T22:36:50Z |
COMPAT: Make argsort compatable with numpy 2.0 | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index a36e25a9df410..4df30f7f4a8a7 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -138,6 +138,7 @@ def validate_argmax_with_skipna(skipna: bool | ndarray | None, args, kwargs) ->
ARGSORT_DEFAULTS["kind... | - [ ] 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/57057 | 2024-01-24T19:15:49Z | 2024-01-25T01:01:42Z | 2024-01-25T01:01:42Z | 2024-01-25T01:01:45Z |
DOC: Add notes to nullable types documentation about pd.NA column type | diff --git a/doc/source/user_guide/boolean.rst b/doc/source/user_guide/boolean.rst
index 3c361d4de17e5..1998fb82ffd40 100644
--- a/doc/source/user_guide/boolean.rst
+++ b/doc/source/user_guide/boolean.rst
@@ -37,6 +37,16 @@ If you would prefer to keep the ``NA`` values you can manually fill them with ``
s[mask.fi... | - [x] closes #49201
- [ ] [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).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/57050 | 2024-01-24T11:13:32Z | 2024-03-26T17:39:14Z | null | 2024-03-26T17:39:14Z |
DOC: Add docstrings for fixtures defined from pandas.tests.io.conftest | diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py
index ab6cacc4cc860..f96c32c8cc9cd 100644
--- a/pandas/tests/io/conftest.py
+++ b/pandas/tests/io/conftest.py
@@ -19,6 +19,7 @@
@pytest.fixture
def compression_to_extension():
+ """Fixture for compression to extension"""
return {value: k... | Add docstrings for fixtures defined from pandas.tests.io.conftest
- [x] xref https://github.com/pandas-dev/pandas/issues/19159
- [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 check... | https://api.github.com/repos/pandas-dev/pandas/pulls/57047 | 2024-01-24T06:45:14Z | 2024-01-28T06:24:06Z | null | 2024-01-28T06:24:11Z |
REGR: groupby.idxmin/idxmax wrong result on extreme values | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index d3065cdd8b624..f2d406620774b 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -14,6 +14,8 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`merge... | - [x] closes #57040 (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/57046 | 2024-01-24T04:29:20Z | 2024-01-26T17:19:19Z | 2024-01-26T17:19:18Z | 2024-01-26T19:28:38Z |
fix: Expose `to_pandas_kwargs` in `read_parquet` for pyarrow engine | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index bb5b4e056d527..5f869b03e590c 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5420,6 +5420,13 @@ Read only certain columns of a parquet file.
)
result.dtypes
+Pass additional keyword arguments to the... | - [x] closes #49236
- [ ] [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/57044 | 2024-01-24T01:13:58Z | 2024-04-15T17:26:54Z | null | 2024-04-15T17:26:54Z |
API: MultiIndex.names|codes|levels returns tuples | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 2a4d7791322e5..19c2abf10651d 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -137,15 +137,6 @@ We could naturally group by either the ``A`` or ``B`` columns, or both:
``df.groupby('A'... | - [ ] closes #53531 (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/57042 | 2024-01-23T22:06:14Z | 2024-02-07T04:52:03Z | 2024-02-07T04:52:03Z | 2024-02-09T10:47:42Z |
DOC: Docstrings for fixtures in pandas/indexes/numeric/test_numeric.py | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index 4416034795463..c1b21c5731684 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -12,14 +12,17 @@
class TestFloatNumericIndex:
@pytest.fixture(... | Partially addresses #19159
Added docstring descriptions for the `pandas/indexes/numeric/test_numeric.py` file | https://api.github.com/repos/pandas-dev/pandas/pulls/57041 | 2024-01-23T18:33:37Z | 2024-02-28T17:47:14Z | null | 2024-02-28T17:47:15Z |
REGR: perf regression in Series.combine_first | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index d3065cdd8b624..93965ffed23d3 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed performance regression i... | - [x] closes #55845
- [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/57034 | 2024-01-23T11:30:18Z | 2024-01-25T16:25:04Z | 2024-01-25T16:25:03Z | 2024-01-25T16:25:11Z |
BUG: Inconsistent behavior while constructing a Series with large integers in a int64 masked array | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index e6d99ab773db9..06f7f02db679a 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -48,6 +48,8 @@
maybe_promote,
)
from pandas.core.dtypes.common import (
+ is_float_dtype,
+ is_integer_dtype,
is_list_... | - [x] closes #56566
- [x] [Tests added and passed]
- [x] All [code checks passed]
- [ ] Added [type annotations]
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
| https://api.github.com/repos/pandas-dev/pandas/pulls/57030 | 2024-01-23T09:58:03Z | 2024-03-20T17:25:24Z | null | 2024-03-20T17:25:24Z |
DOC: Add `DataFrame.to_numpy` method | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index fefb02dd916cd..1d9019ff22c23 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -49,6 +49,7 @@ Conversion
DataFrame.infer_objects
DataFrame.copy
DataFrame.bool
+ DataFrame.to_numpy
Indexi... | - [x] closes #57016 (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/57029 | 2024-01-23T09:24:42Z | 2024-01-23T16:03:25Z | 2024-01-23T16:03:25Z | 2024-03-20T22:22:24Z |
TST: Interchange implementation for timestamp[ns][pyarrow] | diff --git a/pandas/tests/interchange/test_impl.py b/pandas/tests/interchange/test_impl.py
index 96a239b89d6ce..aeee98f5a125e 100644
--- a/pandas/tests/interchange/test_impl.py
+++ b/pandas/tests/interchange/test_impl.py
@@ -293,6 +293,30 @@ def test_multi_chunk_pyarrow() -> None:
pd.api.interchange.from_dataf... | - [x] closes #56712
- [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/57026 | 2024-01-23T05:23:07Z | 2024-01-29T12:53:49Z | 2024-01-29T12:53:49Z | 2024-03-18T13:18:15Z |
DOC: fix EX03 errors in docstrings - pandas.Series.plot.line, pandas.Series.to_sql, pandas.read_json, pandas.DataFrame.to_sql | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index ee989604534f5..c0a26edd230eb 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -65,16 +65,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (EX01, EX04, GL01, GL02, GL03, GL04, GL05, GL06, ... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Series.plot.line
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Series.to_sql
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.read_json
4. scrip... | https://api.github.com/repos/pandas-dev/pandas/pulls/57025 | 2024-01-23T05:02:37Z | 2024-01-23T15:51:17Z | 2024-01-23T15:51:17Z | 2024-01-23T18:20:00Z |
PERF: Index.join to maintain cached attributes in more cases | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 26587bcb1da7d..950082f9281c5 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -105,6 +105,7 @@ Performance improvements
- Performance improvement in :meth:`DataFrame.join` when left and/or right are no... | - [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] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/57023 | 2024-01-23T01:45:39Z | 2024-01-24T02:52:02Z | 2024-01-24T02:52:02Z | 2024-01-24T02:52:09Z |
Backport PR #57018 on branch 2.2.x (REGR: merge_ordered with fill_method="ffill" and how="left") | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 22a6c0cd1028f..75445c978d262 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -13,7 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :func:`... | Backport PR #57018: REGR: merge_ordered with fill_method="ffill" and how="left" | https://api.github.com/repos/pandas-dev/pandas/pulls/57021 | 2024-01-22T23:23:02Z | 2024-01-23T00:22:19Z | 2024-01-23T00:22:19Z | 2024-01-23T00:22:19Z |
Backport PR #57011 on branch 2.2.x (Remove SKIP summary from CI logs) | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 48ef21686a26f..39ab0890a32d1 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -10,7 +10,7 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED
COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml"
-PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYT... | Backport PR #57011: Remove SKIP summary from CI logs | https://api.github.com/repos/pandas-dev/pandas/pulls/57020 | 2024-01-22T23:12:51Z | 2024-01-23T00:22:05Z | 2024-01-23T00:22:05Z | 2024-01-23T00:22:05Z |
REGR: merge_ordered with fill_method="ffill" and how="left" | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 22a6c0cd1028f..75445c978d262 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -13,7 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :func:`... | - [x] closes #57010
- [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/57018 | 2024-01-22T22:24:25Z | 2024-01-22T23:22:55Z | 2024-01-22T23:22:55Z | 2024-01-22T23:23:04Z |
DOC : ambiguous takes bool as an argument, not bool-ndarray | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2fe1f4a3bcf7c..5868975390516 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11586,7 +11586,7 @@ def tz_localize(
You can already get the future behavior and improvements through
enabling copy on ... | `ambiguous` takes bool as an argument, not bool-ndarray. `[True, False]` wouldn't make sense in this context.
Docstring update so checklist N/A.
| https://api.github.com/repos/pandas-dev/pandas/pulls/57015 | 2024-01-22T20:14:38Z | 2024-01-29T22:15:01Z | 2024-01-29T22:15:01Z | 2024-01-29T22:15:01Z |
Fix docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e7509760bfde9..ee989604534f5 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -113,7 +113,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.dt.ceil\
pandas.Series.dt.month_name\
pandas.Series.dt.day_name... | - [x] xref #27976 (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/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/57014 | 2024-01-22T19:44:42Z | 2024-01-22T23:24:24Z | 2024-01-22T23:24:24Z | 2024-01-22T23:24:32Z |
Backport PR #57005 on branch 2.2.x (CI: pyarrow nightly failures) | diff --git a/pandas/tests/frame/test_arrow_interface.py b/pandas/tests/frame/test_arrow_interface.py
index ac7b51cbdfa92..098d1829b973c 100644
--- a/pandas/tests/frame/test_arrow_interface.py
+++ b/pandas/tests/frame/test_arrow_interface.py
@@ -35,11 +35,11 @@ def test_dataframe_arrow_interface():
def test_dataframe_t... | Backport PR #57005: CI: pyarrow nightly failures | https://api.github.com/repos/pandas-dev/pandas/pulls/57013 | 2024-01-22T18:46:26Z | 2024-01-22T20:10:25Z | 2024-01-22T20:10:25Z | 2024-01-22T20:10:25Z |
Remove SKIP summary from CI logs | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 48ef21686a26f..39ab0890a32d1 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -10,7 +10,7 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED
COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml"
-PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYT... | I think this was @rhshadrach idea originally. This currently generates about 3k lines of SKIPs in the CI output, which can be mildly annoying to have to scroll through every log | https://api.github.com/repos/pandas-dev/pandas/pulls/57011 | 2024-01-22T17:48:59Z | 2024-01-22T23:11:51Z | 2024-01-22T23:11:51Z | 2024-01-22T23:11:58Z |
DOC: mention both mirror methods | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2fe1f4a3bcf7c..3722a1b2eec6c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10858,25 +10858,28 @@ def where(
Returns
-------
- Same type as caller or None if ``inplace=True``.
+ Series or DataFrame... | closes #21825 (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/contributing_code... | https://api.github.com/repos/pandas-dev/pandas/pulls/57009 | 2024-01-22T16:32:43Z | 2024-01-22T23:26:34Z | 2024-01-22T23:26:34Z | 2024-01-22T23:26:40Z |
Use Python Timedelta C-API where applicable | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index f6c69cf6d3875..6d780b86ee193 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -14,6 +14,10 @@ from cpython.object cimport (
PyObject,
PyObject_RichCompare,
)
+from libc.limits... | - [ ] closes #54682
Kind of a strange intermediate point but maybe no worse than where we are today | https://api.github.com/repos/pandas-dev/pandas/pulls/57007 | 2024-01-22T14:54:33Z | 2024-01-23T20:43:00Z | null | 2024-01-25T07:35:47Z |
CI: pyarrow nightly failures | diff --git a/pandas/tests/frame/test_arrow_interface.py b/pandas/tests/frame/test_arrow_interface.py
index ac7b51cbdfa92..098d1829b973c 100644
--- a/pandas/tests/frame/test_arrow_interface.py
+++ b/pandas/tests/frame/test_arrow_interface.py
@@ -35,11 +35,11 @@ def test_dataframe_arrow_interface():
def test_dataframe_t... | Use `pa.RecordBatchReader.read_all` to get table. | https://api.github.com/repos/pandas-dev/pandas/pulls/57005 | 2024-01-22T12:16:48Z | 2024-01-22T18:46:18Z | 2024-01-22T18:46:18Z | 2024-01-22T18:46:30Z |
BUG: df.iloc not working with NamedTuple | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 950082f9281c5..6313cdee1fd48 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -157,7 +157,7 @@ Strings
Interval
^^^^^^^^
--
+- Bug in :meth:`DataFrame.iloc` raising error when indexing with a ``Name... | - [x] closes #48188(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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/57004 | 2024-01-22T12:15:12Z | 2024-03-09T08:39:55Z | null | 2024-03-09T08:40:00Z |
Remove enter on begin of warnign message | diff --git a/pandas/__init__.py b/pandas/__init__.py
index ed524c2bb3619..f73408bbe1dcb 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -219,8 +219,7 @@
)
warnings.warn(
- f"""
-Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
+ ... | Closes #57082
With current code, it is not possible to filter pandas warning about PyArrow that leads to crash of test suite with the rule to treat warning as error.
It looks like the source of the problem is that `warnigns` library compile pattern with only IgnoreCase flag.
https://github.com/python/cpython/... | https://api.github.com/repos/pandas-dev/pandas/pulls/57003 | 2024-01-22T11:23:40Z | 2024-02-22T18:13:41Z | null | 2024-02-22T18:13:41Z |
Dims deprecate sizes test fix | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d9ab0452c8334..a54a10d76830b 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -937,6 +937,7 @@ Other
- Bug in rendering ``inf`` values inside a :class:`DataFrame` with the ``use_inf_as_na`` option enab... | - [.] closes #57000
- [.] [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/57001 | 2024-01-22T06:32:35Z | 2024-01-22T06:37:29Z | null | 2024-01-22T06:37:29Z |
DOC: Remove old versions from doc dropdown | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 2d2599ae8585b..8af32d16bdcf1 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -24,30 +24,5 @@
"name": "1.5",
"version": "1.5",
"url": "https://pandas.pydata.org/pandas-docs/version/1.5/"
- },
- ... | - [X] closes #53286
The version switcher in the docs is currently missing for <= v1.3 and broken for 1.4. I had a look at the views for the older versions, and I don't think it's worth to keep the old versions in the dropdown:
 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index ec024f36d78b1..3a2ab4c17d1bd 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 2.2
.. toctree::
:maxdepth: 2
+ v2.2.1
v2.2.0
Version 2.1
diff --git a/doc/source/whatsne... | Backport PR #56982: DOC: Add release notes for 2.2.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/56998 | 2024-01-22T00:28:19Z | 2024-01-22T18:24:51Z | 2024-01-22T18:24:51Z | 2024-01-22T18:24:51Z |
PERF: StringEngine for string dtype indexing ops | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index fdd757355d757..26587bcb1da7d 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -107,6 +107,7 @@ Performance improvements
- Performance improvement in :meth:`DataFrameGroupBy.ffill`, :meth:`DataFrameGrou... | - [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] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/56997 | 2024-01-21T20:55:41Z | 2024-01-23T18:02:28Z | 2024-01-23T18:02:28Z | 2024-01-23T18:02:34Z |
DEP: Loosely pin Cython to 3.0 | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 9b0dc14fe6747..e02ff26ba14e9 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -41,7 +41,7 @@
// pip (with all the conda available packages installed first,
// followed by the pip installed packages).
"matrix": {
- ... | - [ ] 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/56993 | 2024-01-21T11:16:03Z | 2024-01-31T18:48:24Z | 2024-01-31T18:48:24Z | 2024-01-31T21:48:42Z |
ENH: Add groupby(...).agg_index | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index a443597347283..a5d7aced24c75 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -83,6 +83,7 @@ class OutputKey:
groupby_other_methods = frozenset(
[
"agg",
+ "agg_index",
"aggregate",
... | - [ ] 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/56992 | 2024-01-21T10:42:35Z | 2024-02-23T20:55:15Z | null | 2024-02-23T20:55:15Z |
PERF: MultiIndex.equals for equal length indexes | diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py
index 54788d41d83fe..0a588c9a2e22e 100644
--- a/asv_bench/benchmarks/multiindex_object.py
+++ b/asv_bench/benchmarks/multiindex_object.py
@@ -223,14 +223,20 @@ def time_categorical_level(self):
class Equals:
def s... | - [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] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/56990 | 2024-01-21T01:52:17Z | 2024-01-23T01:19:04Z | 2024-01-23T01:19:04Z | 2024-01-23T01:19:10Z |
DOC: fix EX03 errors in docstrings - pandas.errors: SettingWithCopyWarning, SpecificationError, UndefinedVariableError | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b642e3f085c22..c335495591372 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -73,9 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX03 --ignore_functions \
... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.errors.SettingWithCopyWarning
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.errors.SpecificationError
3. scripts/validate_docstrings.py --format=actions --errors=EX03 p... | https://api.github.com/repos/pandas-dev/pandas/pulls/56989 | 2024-01-20T22:52:58Z | 2024-01-21T23:35:21Z | 2024-01-21T23:35:21Z | 2024-01-22T00:19:24Z |
fix unsigned // negative integral value for pyarrow types | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index bf04d86e8e476..4d24aed9b29bc 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -150,7 +150,6 @@ def floordiv_compat(
)
else:
result = divided
- ... | >>> a = pd.Series([7], dtype="uint8[pyarrow]")
>>> b = pd.Series([-4], dtype="int8[pyarrow]")
>>> a // b
pyarrow.lib.ArrowInvalid: Integer value -2 not in range: 0 to 255
>>>
But it works with numpy types:
>>> a = pd.Series([7], dtype="uint8")
>>> b = pd.Series([-4], dtype="int8")
>>> a // b
0 -2
dtype:... | https://api.github.com/repos/pandas-dev/pandas/pulls/56988 | 2024-01-20T21:17:56Z | 2024-01-21T15:43:55Z | null | 2024-01-21T15:43:55Z |
Backport PR #56986 on branch 2.2.x (WEB: Fix typo in dropdown page) | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 09b3d8492a2c7..2d2599ae8585b 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -13,7 +13,7 @@
{
"name": "2.1",
"version": "2.1",
- "url": "https://pandas.pydata.org/pandas-docs/version/2.1/",
+ ... | Backport PR #56986: WEB: Fix typo in dropdown page | https://api.github.com/repos/pandas-dev/pandas/pulls/56987 | 2024-01-20T20:08:40Z | 2024-01-20T20:36:53Z | 2024-01-20T20:36:53Z | 2024-01-20T20:36:54Z |
WEB: Fix typo in dropdown page | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 09b3d8492a2c7..2d2599ae8585b 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -13,7 +13,7 @@
{
"name": "2.1",
"version": "2.1",
- "url": "https://pandas.pydata.org/pandas-docs/version/2.1/",
+ ... | - [ ] 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/56986 | 2024-01-20T18:12:47Z | 2024-01-20T18:42:46Z | 2024-01-20T18:42:46Z | 2024-01-22T00:26:40Z |
raise error on unsafe decimal parse with pyarrow types | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index bf04d86e8e476..392b4e3cc616a 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -527,11 +527,7 @@ def _box_pa_array(
else:
try:
pa_array = pa... | - [ ] closes #56984(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/56985 | 2024-01-20T18:07:04Z | 2024-01-23T00:29:43Z | 2024-01-23T00:29:43Z | 2024-01-23T16:29:52Z |
Backport PR #56980 on branch 2.2.x (WEB: Add version 2.2 to the dropdown) | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index e355005c7c937..09b3d8492a2c7 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -5,11 +5,16 @@
"url": "https://pandas.pydata.org/docs/dev/"
},
{
- "name": "2.1 (stable)",
- "version": "2.1",
+ ... | Backport PR #56980: WEB: Add version 2.2 to the dropdown | https://api.github.com/repos/pandas-dev/pandas/pulls/56983 | 2024-01-20T17:32:32Z | 2024-01-20T20:07:16Z | 2024-01-20T20:07:16Z | 2024-01-20T20:07:16Z |
DOC: Add release notes for 2.2.1 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 09d1ae08df57a..081dc8c12e885 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -25,6 +25,7 @@ Version 2.2
.. toctree::
:maxdepth: 2
+ v2.2.1
v2.2.0
Version 2.1
diff --git a/doc/source/whatsne... | - [ ] 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/56982 | 2024-01-20T16:45:36Z | 2024-01-22T00:27:20Z | 2024-01-22T00:27:20Z | 2024-01-22T23:12:05Z |
ENH: Adds ability to store tooltips as title attribute through pandas styler | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 012fe47c476d1..470099c0b5cc4 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -30,6 +30,7 @@ Other enhancements
^^^^^^^^^^^^^^^^^^
- :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the c... | - [x] closes #56605 (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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/56981 | 2024-01-20T16:17:36Z | 2024-02-15T21:08:58Z | 2024-02-15T21:08:58Z | 2024-02-15T21:09:06Z |
WEB: Add version 2.2 to the dropdown | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index e355005c7c937..09b3d8492a2c7 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -5,11 +5,16 @@
"url": "https://pandas.pydata.org/docs/dev/"
},
{
- "name": "2.1 (stable)",
- "version": "2.1",
+ ... | - [ ] 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/56980 | 2024-01-20T15:58:25Z | 2024-01-20T17:32:24Z | 2024-01-20T17:32:24Z | 2024-01-20T17:33:03Z |
Idx get level values list | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 6bcfaa6d26fc2..2d50f35bdb564 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -73,6 +73,7 @@
)
from pandas.core.dtypes.generic import (
ABCDataFrame,
+ ABCMultiIndex,
ABCSeries,
)
from pandas.c... | - [x] will close #56917
- [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/56979 | 2024-01-20T14:03:05Z | 2024-01-23T00:31:53Z | null | 2024-01-23T00:31:53Z |
Added a test that breaks over Series.rank with nullable ints | diff --git a/pandas/tests/series/methods/test_rank.py b/pandas/tests/series/methods/test_rank.py
index 776c5633cb4b3..8021c0a51f5d6 100644
--- a/pandas/tests/series/methods/test_rank.py
+++ b/pandas/tests/series/methods/test_rank.py
@@ -248,6 +248,23 @@ def test_rank_tie_methods(self, ser, results, dtype):
res... |
- [ ] will eventually close #56976
- [ ] [Tests added and passed] Added a test for `pandas.Series.rank`
I'll have to check the rest as soon as the Issue is closed
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type anno... | https://api.github.com/repos/pandas-dev/pandas/pulls/56977 | 2024-01-20T10:56:19Z | 2024-02-28T17:48:02Z | null | 2024-02-28T17:48:03Z |
TST: test for warnings using pytest.warns() | diff --git a/pandas/tests/io/xml/test_xml.py b/pandas/tests/io/xml/test_xml.py
index 5451f7b2f16f5..0ee3ec85ab6c6 100644
--- a/pandas/tests/io/xml/test_xml.py
+++ b/pandas/tests/io/xml/test_xml.py
@@ -1361,7 +1361,8 @@ def test_stylesheet_with_etree(kml_cta_rail_lines, xsl_flatten_doc):
@pytest.mark.parametrize("val... | Fix tests that used `pytest.raises()` to check for warnings, to use `pytest.warns()` instead. This is more correct, and it fixes running the test suite without `-Werror`. This is how Gentoo runs it, to avoid sudden test failures due to new deprecation warnings from upgraded dependencies.
- [ ] closes #56716 (Repla... | https://api.github.com/repos/pandas-dev/pandas/pulls/56974 | 2024-01-20T09:19:32Z | 2024-01-23T17:56:06Z | 2024-01-23T17:56:06Z | 2024-01-23T18:12:39Z |
CI/DOC: Enforce PR02 in CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b642e3f085c22..baa743fcfe2c7 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -80,6 +80,134 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DataFrame.to_sql \
RET=$(($RET + $?)) ; echo $MSG "DONE"
+ MSG='Partially vali... | I attempted to enforce PR02 in CI so that it can be fixed and enforced in chunks like other docstring errors.
- [x] xref #27976 (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 o... | https://api.github.com/repos/pandas-dev/pandas/pulls/56971 | 2024-01-20T01:18:24Z | 2024-01-22T13:01:08Z | 2024-01-22T13:01:08Z | 2024-01-22T18:34:00Z |
Fix ci not raises on error | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b642e3f085c22..235c4b7ae0fa1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -77,7 +77,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.SpecificationError \
pandas.errors.UndefinedVariableError \
panda... | I fixed the bug that was fixed in https://github.com/pandas-dev/pandas/pull/56855 again, also added a comment to make it more visible
- [ ] 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... | https://api.github.com/repos/pandas-dev/pandas/pulls/56970 | 2024-01-20T01:03:12Z | 2024-01-22T06:17:44Z | 2024-01-22T06:17:44Z | 2024-01-22T18:21:41Z |
Backport PR #56967 on branch 2.2.x (CI: Adjust pyarrow depr warning to account for different newlines on …) | diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py
index fe24755e8cc23..4af71be11fe6b 100644
--- a/pandas/tests/test_common.py
+++ b/pandas/tests/test_common.py
@@ -286,4 +286,7 @@ def test_pyarrow_missing_warn(module):
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466... | Backport PR #56967: CI: Adjust pyarrow depr warning to account for different newlines on … | https://api.github.com/repos/pandas-dev/pandas/pulls/56969 | 2024-01-19T23:49:35Z | 2024-01-20T00:20:40Z | 2024-01-20T00:20:40Z | 2024-01-20T00:20:41Z |
CI: Adjust pyarrow depr warning to account for different newlines on … | diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py
index fe24755e8cc23..4af71be11fe6b 100644
--- a/pandas/tests/test_common.py
+++ b/pandas/tests/test_common.py
@@ -286,4 +286,7 @@ def test_pyarrow_missing_warn(module):
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466... | …Windows
- [ ] 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/dev... | https://api.github.com/repos/pandas-dev/pandas/pulls/56967 | 2024-01-19T22:06:36Z | 2024-01-19T23:48:37Z | 2024-01-19T23:48:37Z | 2024-01-19T23:48:38Z |
Backport PR #56952: DEPR: Make FutureWarning into DeprecationWarning … | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 089e15afd465b..5b18455dbe8a8 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1831,7 +1831,7 @@ def f(g):
message=_apply_groupings_depr.format(
typ... | …for groupby.apply
- [ ] xref #56952 (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-doc... | https://api.github.com/repos/pandas-dev/pandas/pulls/56964 | 2024-01-19T17:47:41Z | 2024-01-19T20:05:35Z | 2024-01-19T20:05:35Z | 2024-01-19T20:05:36Z |
Backport PR #56896 on branch 2.2.x (DEPS: Add warning if pyarrow is not installed) | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index dd5d090e098b0..a3cffb4b03b93 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -92,7 +92,10 @@ jobs:
- name: "Numpy Dev"
env_file: actions-311-numpydev.yaml
p... | Backport PR #56896: DEPS: Add warning if pyarrow is not installed | https://api.github.com/repos/pandas-dev/pandas/pulls/56963 | 2024-01-19T17:12:57Z | 2024-01-19T18:22:16Z | 2024-01-19T18:22:16Z | 2024-01-19T18:22:17Z |
Backport PR #56922 on branch 2.2.x (REGR: DatetimeTZDtype __from_arrow__ interprets UTC values as wall time) | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index e90e92fa0ee1c..1c43ef55c11d7 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -919,7 +919,7 @@ def __from_arrow__(self, array: pa.Array | pa.ChunkedArray) -> DatetimeArray:
else:
np_arr = ... | Backport PR #56922: REGR: DatetimeTZDtype __from_arrow__ interprets UTC values as wall time | https://api.github.com/repos/pandas-dev/pandas/pulls/56962 | 2024-01-19T17:12:46Z | 2024-01-19T18:21:44Z | 2024-01-19T18:21:44Z | 2024-01-19T18:21:44Z |
Backport PR #56949 on branch 2.2.x (CI: avoid FutureWarnings in to_xarray tests) | diff --git a/pandas/tests/generic/test_to_xarray.py b/pandas/tests/generic/test_to_xarray.py
index e0d79c3f15282..d8401a8b2ae3f 100644
--- a/pandas/tests/generic/test_to_xarray.py
+++ b/pandas/tests/generic/test_to_xarray.py
@@ -41,7 +41,7 @@ def test_to_xarray_index_types(self, index_flat, df, using_infer_string):
... | Backport PR #56949: CI: avoid FutureWarnings in to_xarray tests | https://api.github.com/repos/pandas-dev/pandas/pulls/56961 | 2024-01-19T15:57:51Z | 2024-01-19T17:14:09Z | 2024-01-19T17:14:09Z | 2024-01-19T17:14:10Z |
Update copyright year | diff --git a/LICENSE b/LICENSE
index cdfa749dc34df..2d1c34fd9d7fc 100644
--- a/LICENSE
+++ b/LICENSE
@@ -3,7 +3,7 @@ BSD 3-Clause License
Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
All rights reserved.
-Copyright (c) 2011-2023, Open source contributors.
+C... | 2023 -> 2024
| https://api.github.com/repos/pandas-dev/pandas/pulls/56960 | 2024-01-19T14:06:14Z | 2024-01-19T15:48:47Z | 2024-01-19T15:48:47Z | 2024-01-19T15:48:53Z |
BUG: DataFrame.drop_duplicates method fails when a column with a list… | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e093d551f3ead..40b43183b997e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6748,6 +6748,22 @@ def drop_duplicates(
DataFrame or None
DataFrame with duplicates removed or None if ``inplace=True``.
+ Notes
+ ... | resolved #56784 in the file pandas/core/frame.py | https://api.github.com/repos/pandas-dev/pandas/pulls/56958 | 2024-01-19T11:27:01Z | 2024-02-23T19:51:18Z | null | 2024-02-23T19:51:19Z |
Drop duplicates | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index c01e551b38c32..8b3a45e7bbc2f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6721,6 +6721,24 @@ def drop_duplicates(
DataFrame or None
DataFrame with duplicates removed or None if ``inplace=True``.
+ Notes
+ ... | resolved #56784 in file pandas/core/frame.py | https://api.github.com/repos/pandas-dev/pandas/pulls/56957 | 2024-01-19T10:05:26Z | 2024-01-19T10:35:06Z | null | 2024-01-19T10:35:11Z |
DOC: fixed Ex03 errors in docstrings: pandas.io.formats.style.Styler.to_latex and pandas.read_parquet | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 5e6c02eab574d..b642e3f085c22 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -77,8 +77,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.SpecificationError \
pandas.errors.UndefinedVariableError \
panda... | **PR SUMMARY**
Checked if validation docstrings passes for:
- [x] pandas.io.formats.style.Styler.to_latex
- [x] pandas.read_parquet
OUTPUT:
1. python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.to_latex
```
###################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/56953 | 2024-01-19T05:07:16Z | 2024-01-19T18:16:49Z | 2024-01-19T18:16:49Z | 2024-01-19T18:16:49Z |
DEPR: Make FutureWarning into DeprecationWarning for groupby.apply | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 68c834bfa3d5c..d86062e35a20c 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1856,7 +1856,7 @@ def f(g):
message=_apply_groupings_depr.format(
typ... | - [ ] 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/56952 | 2024-01-19T04:15:04Z | 2024-01-19T17:13:46Z | 2024-01-19T17:13:46Z | 2024-01-19T21:16:43Z |
Backport PR #56947 on branch 2.2.x (DOC: Set date for 2.2) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index ceb67b4ef956c..d9ab0452c8334 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -1,6 +1,6 @@
.. _whatsnew_220:
-What's new in 2.2.0 (January XX, 2024)
+What's new in 2.2.0 (January 19, 2024)
---------... | Backport PR #56947: DOC: Set date for 2.2 | https://api.github.com/repos/pandas-dev/pandas/pulls/56950 | 2024-01-19T01:51:34Z | 2024-01-19T02:56:51Z | 2024-01-19T02:56:51Z | 2024-01-19T02:56:51Z |
CI: avoid FutureWarnings in to_xarray tests | diff --git a/pandas/tests/generic/test_to_xarray.py b/pandas/tests/generic/test_to_xarray.py
index e0d79c3f15282..d8401a8b2ae3f 100644
--- a/pandas/tests/generic/test_to_xarray.py
+++ b/pandas/tests/generic/test_to_xarray.py
@@ -41,7 +41,7 @@ def test_to_xarray_index_types(self, index_flat, df, using_infer_string):
... | FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`. | https://api.github.com/repos/pandas-dev/pandas/pulls/56949 | 2024-01-19T01:42:38Z | 2024-01-19T15:57:43Z | 2024-01-19T15:57:43Z | 2024-01-19T15:57:51Z |
BUG: DataFrame.join inconsistently setting result index name | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 0c389719ae01a..d12b46c866dd2 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -113,8 +113,9 @@ Performance improvements
Bug fixes
~~~~~~~~~
+- Fixed bug in :meth:`DataFrame.join` inconsistently sett... | - [x] closes #55815
- [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/56948 | 2024-01-19T01:02:55Z | 2024-01-23T00:35:02Z | 2024-01-23T00:35:02Z | 2024-01-25T17:58:35Z |
DOC: Set date for 2.2 | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index ceb67b4ef956c..d9ab0452c8334 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -1,6 +1,6 @@
.. _whatsnew_220:
-What's new in 2.2.0 (January XX, 2024)
+What's new in 2.2.0 (January 19, 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/56947 | 2024-01-18T23:37:09Z | 2024-01-19T01:50:31Z | 2024-01-19T01:50:31Z | 2024-01-19T01:50:31Z |
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 (:... | xref #55785, #52064
`PeriodIndex.asfreq` silently converts for offsets such as `offsets.MonthBegin()`, offsets.BusinessMonthEnd(), etc. (with no attribute '`_period_dtype_code'`) frequency to period frequency (in this case `'M'`).
Reproducible Example:
```
>>> import pandas as pd
>>> from pandas.tseries import... | https://api.github.com/repos/pandas-dev/pandas/pulls/56945 | 2024-01-18T20:51:27Z | 2024-02-07T13:38:20Z | 2024-02-07T13:38:20Z | 2024-04-10T12:09:06Z |
Backport PR #56587 on branch 2.2.x (ENH: support the Arrow PyCapsule Interface on pandas.DataFrame (export)) | diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py
index 9d04d7c0a1216..2bc6cd46f09a7 100644
--- a/pandas/compat/_optional.py
+++ b/pandas/compat/_optional.py
@@ -120,9 +120,8 @@ def import_optional_dependency(
The imported module, when found and the version is correct.
None is retur... | Backport PR #56587: ENH: support the Arrow PyCapsule Interface on pandas.DataFrame (export) | https://api.github.com/repos/pandas-dev/pandas/pulls/56944 | 2024-01-18T19:23:14Z | 2024-01-18T20:47:02Z | 2024-01-18T20:47:02Z | 2024-01-18T20:47:03Z |
DOC: Remove references to AxesSubPlot #56876 | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 96609fdc1671b..9f1d5387ffdee 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -98,7 +98,7 @@ def hist_series(
Returns
-------
- matplotlib.AxesSubplot
+ matplotlib.Axes
A histogram plot.
See A... | resolve #56876 in pandas/plotting/_core.py | https://api.github.com/repos/pandas-dev/pandas/pulls/56943 | 2024-01-18T13:41:54Z | 2024-01-18T17:24:53Z | 2024-01-18T17:24:53Z | 2024-01-18T17:25:00Z |
STY: Enable B904 | diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py
index 2b3d32fb579dc..f9ea3d5684751 100644
--- a/asv_bench/benchmarks/algos/isin.py
+++ b/asv_bench/benchmarks/algos/isin.py
@@ -61,8 +61,8 @@ def setup(self, dtype):
self.series = Series(
Index([f"... | I think most of the fixes should be straightforward. For a few complex cases, I think it's reasonable to `noqa` them to allow us to enable a global check to the rest of the codebase.
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/d... | https://api.github.com/repos/pandas-dev/pandas/pulls/56941 | 2024-01-18T11:56:25Z | 2024-01-22T13:02:36Z | 2024-01-22T13:02:36Z | 2024-01-22T18:21:41Z |
Backport PR #56445: Adjust merge tests for new string option | diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py
index 1d5ed2d7373ce..9a2f18f33bce5 100644
--- a/pandas/tests/reshape/merge/test_join.py
+++ b/pandas/tests/reshape/merge/test_join.py
@@ -631,7 +631,7 @@ def test_mixed_type_join_with_suffix(self):
df.insert(5, "dt",... | - [ ] xref #56445 (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/56938 | 2024-01-18T03:44:52Z | 2024-01-18T15:21:14Z | 2024-01-18T15:21:14Z | 2024-01-18T15:21:16Z |
DOC: Remove inconsistency with timestamp data in describe() method docs | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 86c4a99ac052d..db60e68ec6194 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11815,10 +11815,10 @@ def describe(
upper percentile is ``75``. The ``50`` percentile is the
same as the median.
- For object da... | - [x] closes #56918
- [ ] [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/56937 | 2024-01-18T01:04:53Z | 2024-01-18T17:29:44Z | 2024-01-18T17:29:44Z | 2024-01-18T17:35:05Z |
BUG: Improve MultiIndex label rename checks, docs and tests | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 28965c79f5cf6..28bf0b0dc4362 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -285,6 +285,7 @@ Other
^^^^^
- Bug in :meth:`DataFrame.sort_index` when passing ``axis="columns"`` and ``ignore_index=True... | - [x] closes #55169
- [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/56936 | 2024-01-18T00:32:14Z | 2024-03-26T17:38:52Z | null | 2024-03-29T21:34:37Z |
TST: Add test groupby transform no column | diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py
index 134a585651d72..738d8e6858cc2 100644
--- a/pandas/tests/groupby/transform/test_transform.py
+++ b/pandas/tests/groupby/transform/test_transform.py
@@ -650,6 +650,16 @@ def test_groupby_transform_with_na... | - [X] closes #37093
- [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/56935 | 2024-01-17T22:22:53Z | 2024-02-28T17:49:25Z | null | 2024-02-28T17:49:25Z |
Backport PR #56824 on branch 2.2.x (DOC: 2.2.0 whatsnew cleanups) | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 57b83a294963b..73b1103c1bd37 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -42,4 +42,4 @@ Bug fixes
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.1.3..v2.1.4|HEAD
+.. contributors:: v2.1.3..v2.... | Backport PR #56824: DOC: 2.2.0 whatsnew cleanups | https://api.github.com/repos/pandas-dev/pandas/pulls/56933 | 2024-01-17T21:54:37Z | 2024-01-17T22:29:35Z | 2024-01-17T22:29:35Z | 2024-01-17T22:29:36Z |
Backport PR #56930 on branch 2.2.x (DOC: update install instruction with correct Python version support (including 3.12)) | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 1d7eca5223544..b9f7d64d4b2f8 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -21,7 +21,7 @@ Instructions for installing :ref:`from source <install.source>`,
Python vers... | Backport PR #56930: DOC: update install instruction with correct Python version support (including 3.12) | https://api.github.com/repos/pandas-dev/pandas/pulls/56931 | 2024-01-17T17:37:06Z | 2024-01-17T18:05:17Z | 2024-01-17T18:05:17Z | 2024-01-17T18:05:17Z |
DOC: update install instruction with correct Python version support (including 3.12) | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 1d7eca5223544..b9f7d64d4b2f8 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -21,7 +21,7 @@ Instructions for installing :ref:`from source <install.source>`,
Python vers... | Small fix of the install guide | https://api.github.com/repos/pandas-dev/pandas/pulls/56930 | 2024-01-17T16:04:57Z | 2024-01-17T17:36:57Z | 2024-01-17T17:36:56Z | 2024-01-17T19:02:51Z |
Document some more categorical methods | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index fe65364896f54..93b56d1b48c02 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -539,6 +539,21 @@ To create a Series of dtype ``category``, use ``cat = s.astype(dtype)`` or
If the :class:`Series` is ... | - [x] closes #56927
- [ ] [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/56928 | 2024-01-17T14:04:49Z | 2024-01-31T19:06:21Z | 2024-01-31T19:06:21Z | 2024-01-31T19:06:28Z |
BUG: fix `groupby.quantile` inconsistency when interpolation='nearest' | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 6c10710d6c62f..4ab55491c9e01 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -188,7 +188,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
+- Bug in :meth:`.DataFrameGroupBy.quanti... | I removed the xfail mark in previous tests. Do we need to add more tests?
Under the hood, `np.quantile` uses `np.round` for nearest interpolation, which rounds to the even idx when exactly halfway.
- [x] closes #47942 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.... | https://api.github.com/repos/pandas-dev/pandas/pulls/56926 | 2024-01-17T11:48:10Z | 2024-01-18T17:03:44Z | 2024-01-18T17:03:44Z | 2024-01-19T04:18:05Z |
DOC: indicate that origin argument can be a string that is timestamp … | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 81ffb243cd302..3669594cfef4b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9454,7 +9454,7 @@ def resample(
origin : Timestamp or str, default 'start_day'
The timestamp on which to adjust the grouping. The tim... | resolved #56877 in file `pandas/core/generic.py`
closes #56877 | https://api.github.com/repos/pandas-dev/pandas/pulls/56925 | 2024-01-17T10:28:19Z | 2024-01-17T18:08:43Z | 2024-01-17T18:08:43Z | 2024-01-17T19:03:18Z |
Backport PR #56910 on branch 2.2.x (DEPR: lowercase freqs 'ye', 'qe', etc. raise a ValueError) | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 205ab6f01f8c6..764a044f32c82 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4711,29 +4711,7 @@ _lite_rule_alias = {
"ns": "ns",
}
-_dont_uppercase = {
- "h",
- "bh",
- "cbh",
- ... | Backport PR #56910: DEPR: lowercase freqs 'ye', 'qe', etc. raise a ValueError | https://api.github.com/repos/pandas-dev/pandas/pulls/56924 | 2024-01-17T09:51:19Z | 2024-01-17T11:00:41Z | 2024-01-17T11:00:41Z | 2024-01-17T11:00:41Z |
REGR: DatetimeTZDtype __from_arrow__ interprets UTC values as wall time | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 0a288f435c50c..5b51bc9debb33 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -919,7 +919,7 @@ def __from_arrow__(self, array: pa.Array | pa.ChunkedArray) -> DatetimeArray:
else:
np_arr = ... | - [ ] closes #56775 (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/56922 | 2024-01-17T04:16:28Z | 2024-01-19T17:12:31Z | 2024-01-19T17:12:31Z | 2024-01-19T17:13:20Z |
ENH: Allow performance warnings to be disabled | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 1f9f5e85a6c4b..d44824183f05f 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -33,6 +33,7 @@ Other enhancements
- :meth:`Styler.set_tooltips` provides alternative method to storing tooltips by using ti... | - [x] closes #56920 (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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/56921 | 2024-01-17T03:41:31Z | 2024-02-23T22:33:26Z | 2024-02-23T22:33:26Z | 2024-02-23T22:51:51Z |
PERF: DataFrame.join with how=left|right and sort=True | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 53444e04dbce1..6c10710d6c62f 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -103,6 +103,7 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`DataFrame.join` for... | - [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] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/56919 | 2024-01-17T01:21:42Z | 2024-01-17T18:11:47Z | 2024-01-17T18:11:47Z | 2024-01-17T18:11:55Z |
Backport PR #56906 on branch 2.2.x (DEPR: freq ''2BQ-SEP" for to_period should raise an error) | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 6b7ddc4a72957..02656b655a0c6 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -39,10 +39,7 @@
tz_convert_from_utc,
tzconversion,
)
-from pandas._libs.tslibs.dtypes import (
- abbrev_to... | Backport PR #56906: DEPR: freq ''2BQ-SEP" for to_period should raise an error | https://api.github.com/repos/pandas-dev/pandas/pulls/56916 | 2024-01-16T20:30:52Z | 2024-01-16T21:54:48Z | 2024-01-16T21:54:47Z | 2024-01-16T21:54:48Z |
read_csv: adding "round_trip" to the "float_precision" accepted literal types | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index e26e7e7470461..2cdc3f235cb66 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -676,7 +676,7 @@ def read_csv(
delim_whitespace: bool | lib.NoDefault = ...,
low_memory: bool = ...,
memory_map: bool... |
- [ ] 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... | https://api.github.com/repos/pandas-dev/pandas/pulls/56915 | 2024-01-16T19:00:40Z | 2024-01-16T20:47:12Z | 2024-01-16T20:47:12Z | 2024-01-16T21:00:11Z |
Autofix ruf010 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 73ac14f1ed5ce..d899a3136dd83 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -190,9 +190,6 @@ repos:
# Check for deprecated messages without sphinx directive
|(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)
... | As now `ruff` has an autofix for `RUF010`, I enable the rule.
I separate the PR into 4 commits with the 4 actions I performed, you can review them one by one for a better diff.
- Autofix `RUF010`
- `ruff format`
- Final manual format
- Remove old "unwanted pattern" rule in `pre-commit`
- [ ] closes #xxxx (Rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/56914 | 2024-01-16T17:05:09Z | 2024-01-16T21:58:04Z | 2024-01-16T21:58:04Z | 2024-01-22T18:21:43Z |
Fix origin docs | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 81ffb243cd302..41bd3436372b8 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9454,14 +9454,15 @@ def resample(
origin : Timestamp or str, default 'start_day'
The timestamp on which to adjust the grouping. The t... | - [x] closes #56877
| https://api.github.com/repos/pandas-dev/pandas/pulls/56912 | 2024-01-16T16:10:30Z | 2024-01-17T18:09:14Z | null | 2024-01-17T18:09:14Z |
Fix documentation for the origin argument | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 81ffb243cd302..30ca2fb23d13d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9454,14 +9454,14 @@ def resample(
origin : Timestamp or str, default 'start_day'
The timestamp on which to adjust the grouping. The t... | - [x] closes #56877
| https://api.github.com/repos/pandas-dev/pandas/pulls/56911 | 2024-01-16T15:02:24Z | 2024-01-16T18:38:41Z | null | 2024-01-16T18:38:41Z |
DEPR: lowercase freqs 'ye', 'qe', etc. raise a ValueError | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 446088821b10d..e1615a1ceb818 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4711,29 +4711,7 @@ _lite_rule_alias = {
"ns": "ns",
}
-_dont_uppercase = {
- "h",
- "bh",
- "cbh",
- ... | xref #56346, #56847, #9586
Using lowercase frequencies such as ‘y’, ‘ye’, ‘q’, ‘qe’, etc. raise a`ValueError` on main, though it worked before. Using those was never documented, but if people are use these lowercase frequencies, we should keep them work.
For example:
```
>>> pd.period_range("2020-01-01", "2020-... | https://api.github.com/repos/pandas-dev/pandas/pulls/56910 | 2024-01-16T14:21:35Z | 2024-01-17T09:51:10Z | 2024-01-17T09:51:10Z | 2024-01-18T08:56:45Z |
DOC: fix imprecision in the type description of `pd.concat` parameter | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index 31859c7d04e04..2558532bfb029 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -178,7 +178,7 @@ def concat(
Parameters
----------
- objs : a sequence or mapping of Series or DataFrame objects
... | - [x] closes #56845
- [ ] [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/56909 | 2024-01-16T13:29:34Z | 2024-01-16T16:02:54Z | 2024-01-16T16:02:54Z | 2024-01-16T16:03:03Z |
WEB: Add page about benchmarks | diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst
index f177684b8c98f..5d833dca50732 100644
--- a/doc/source/development/maintaining.rst
+++ b/doc/source/development/maintaining.rst
@@ -326,34 +326,6 @@ a milestone before tagging, you can request the bot to backport it with:
... | CC: @DeaMariaLeon @rhshadrach @lithomas1
This is not yet ready, the conbench url provided is not correctly rendering the css, and I need to add all the information about the OVH server, but opening early in case you have any feedback.
| https://api.github.com/repos/pandas-dev/pandas/pulls/56907 | 2024-01-16T09:53:35Z | 2024-02-29T22:15:17Z | 2024-02-29T22:15:17Z | 2024-02-29T22:15:33Z |
DEPR: freq ''2BQ-SEP" for to_period should raise an error | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index cd6689e9f1ce2..d5714d5b676fb 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -40,10 +40,7 @@
tz_convert_from_utc,
tzconversion,
)
-from pandas._libs.tslibs.dtypes import (
- abbrev_to... | - [x] closes #56899
corrected the definition to_period to raise an errror for `freq = '2BQ-SEP'` and add tests
No whatsnew note as this is only on main yet. | https://api.github.com/repos/pandas-dev/pandas/pulls/56906 | 2024-01-16T09:24:36Z | 2024-01-16T20:29:53Z | 2024-01-16T20:29:53Z | 2024-01-16T20:29:53Z |
DOC: Ex03 errors docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index da4d95f9ae083..5e6c02eab574d 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -80,10 +80,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.to_latex \
pandas.read_parquet \
pandas.DataFra... | pandas.io.formats.style.Styler.map
<img width="382" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/d56abac1-7369-45e3-baa1-c59f4a82400e">
pandas.io.formats.style.Styler.apply_index
<img width="446" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/41be81a0-2cf3-4a9d-b... | https://api.github.com/repos/pandas-dev/pandas/pulls/56905 | 2024-01-16T07:26:58Z | 2024-01-18T04:19:28Z | 2024-01-18T04:19:28Z | 2024-01-18T06:41:54Z |
DOC: fix EX03 errors in docstrings - pandas.io.formats.style.Styler: highlight_quantile, background_gradient, text_gradient | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c82924b5028f0..da4d95f9ae083 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -84,9 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.apply_index \
pandas.io.formats.style.Styler.map_index \
... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.highlight_quantile
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.background_gradient
3. scripts/validate_docstrings.py -... | https://api.github.com/repos/pandas-dev/pandas/pulls/56904 | 2024-01-16T03:37:32Z | 2024-01-16T19:29:03Z | 2024-01-16T19:29:02Z | 2024-01-16T19:33:02Z |
PERF: Don't sort labels in groupby.ffill/bfill | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index e217e8c8557bb..1937bac5465f6 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -103,6 +103,7 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`DataFrame.join` for... | - [ ] 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/56902 | 2024-01-16T01:18:45Z | 2024-01-16T18:36:53Z | 2024-01-16T18:36:53Z | 2024-01-16T21:37:08Z |
DOC: fix EX03 errors in docstrings - pandas.io.formats.style.Styler: set_tooltips, set_uuid, pipe, highlight_between | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 145be3e52f2c0..1091c5f3805f1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -84,10 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.apply_index \
pandas.io.formats.style.Styler.map_index \... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.set_tooltips
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.set_uuid
3. scripts/validate_docstrings.py --format=actions -... | https://api.github.com/repos/pandas-dev/pandas/pulls/56901 | 2024-01-16T01:10:05Z | 2024-01-16T07:58:05Z | 2024-01-16T07:58:05Z | 2024-01-16T17:07:26Z |
DOC: EX03 fixes on dataframe.plot methods: hexbin, line | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c0dfbcc03b473..c82924b5028f0 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -86,9 +86,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.format \
pandas.io.formats.style.Styler.highlight_quantil... | - [x] xref #56804 (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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/56900 | 2024-01-16T00:59:39Z | 2024-01-16T15:59:20Z | 2024-01-16T15:59:20Z | 2024-01-16T17:27:06Z |
DOC: Docstring EX03 fixes for pandas.DataFrame methods | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 145be3e52f2c0..a65018be8c22c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -91,9 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.highlight_quantile \
pandas.io.formats.style.Styler.backg... | - [x] xref #56804 (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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/56898 | 2024-01-15T22:29:54Z | 2024-01-16T07:54:39Z | 2024-01-16T07:54:39Z | 2024-01-16T08:20:23Z |
Fix CI not raised when there's an error | - [ ] 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/56897 | 2024-01-15T22:26:43Z | 2024-01-16T08:23:24Z | null | 2024-01-16T08:48:00Z | |
DEPS: Add warning if pyarrow is not installed | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index dd5d090e098b0..a3cffb4b03b93 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -92,7 +92,10 @@ 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/56896 | 2024-01-15T21:26:56Z | 2024-01-19T17:12:49Z | 2024-01-19T17:12:49Z | 2024-01-22T11:04:40Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.