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 |
|---|---|---|---|---|---|---|---|
support tuple in startswith/endswith for arrow strings | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8c475791df64d..645a3cdb967ca 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -601,6 +601,7 @@ Strings
- Bug in :meth:`Series.__mul__` for :class:`ArrowDtype` with ``pyarrow.string`` dtype and ``string... | - [x] closes #56579(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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/56580 | 2023-12-20T18:38:27Z | 2023-12-21T21:01:17Z | 2023-12-21T21:01:17Z | 2023-12-21T21:13:15Z |
DOC: Fix doc redirects | diff --git a/doc/redirects.csv b/doc/redirects.csv
index bd60cc6a732bd..27b41da63c513 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -100,7 +100,6 @@ generated/pandas.api.extensions.register_series_accessor,../reference/api/pandas
generated/pandas.api.types.infer_dtype,../reference/api/pandas.api.types.infe... | - [ ] 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/56577 | 2023-12-20T16:51:40Z | 2023-12-21T19:49:44Z | 2023-12-21T19:49:44Z | 2023-12-21T23:33:55Z |
CI: Fix pre-commit failure | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 43bd14371284c..590cddba60f7a 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -480,7 +480,6 @@ Other Deprecations
- Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56571 | 2023-12-19T21:27:03Z | 2023-12-19T21:49:50Z | 2023-12-19T21:49:50Z | 2023-12-19T21:49:53Z |
Add test groupby complex numbers | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index fce7caa90cce4..4c903e691add1 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1196,6 +1196,24 @@ def test_groupby_complex():
tm.assert_series_equal(result, expected)
+d... | - [x] closes https://github.com/pandas-dev/pandas/issues/26475
- [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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/56570 | 2023-12-19T20:24:26Z | 2023-12-21T21:02:09Z | 2023-12-21T21:02:09Z | 2023-12-21T21:02:13Z |
DEPR: keep_date_col, nested parse_dates in read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 863a663fc2413..843144c3453c2 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -836,6 +836,7 @@ order) and the new column names will be the concatenation of the component
column names:
.. ipython:: python
+ ... | - [ ] closes #xxxx (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/56569 | 2023-12-19T19:44:14Z | 2023-12-19T23:39:30Z | 2023-12-19T23:39:30Z | 2023-12-20T00:13:18Z |
TYP: simple return types from ruff | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 42ff96603b71f..2a070e9a49b97 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,7 +32,7 @@ repos:
# TODO: remove autofixe-only rules when they are checked by ruff
name: ruff-selected-autofixes
alias: r... | Ruff has many "unsafe" autofixes for simple return types.
I hope to enable `--unsafe-fixes` (for only the type annotations) after a few PRs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/56568 | 2023-12-19T19:25:53Z | 2023-12-19T21:11:12Z | 2023-12-19T21:11:12Z | 2023-12-21T16:11:26Z |
BUG: ArrowExtensionArray.to_numpy from timestamp to int | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 84d6e2fb7ca53..2013229b228ff 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1313,16 +1313,12 @@ def to_numpy(
copy = False
if pa.types.is_timestamp(pa_type) or pa.... | Follow up to #56459 | https://api.github.com/repos/pandas-dev/pandas/pulls/56567 | 2023-12-19T19:12:30Z | 2023-12-21T21:04:37Z | 2023-12-21T21:04:37Z | 2023-12-21T21:57:13Z |
Revert "DOC: Change core paths to api.typing in URLs (#55626)" | diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst
index fe02fa106f941..771163ae1b0bc 100644
--- a/doc/source/reference/groupby.rst
+++ b/doc/source/reference/groupby.rst
@@ -5,7 +5,7 @@
=======
GroupBy
=======
-.. currentmodule:: pandas.api.typing
+.. currentmodule:: pandas.core.groupb... | This reverts commit 5c7d89db4583bfa8cf628235f4d566d104776278.
- [ ] 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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/56565 | 2023-12-19T15:36:04Z | 2023-12-19T17:07:44Z | 2023-12-19T17:07:44Z | 2023-12-19T17:07:51Z |
DOC: Add example using ``dtype_backend="numpy_nullable"`` to ``read_json`` | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 9c56089560507..5ef354fc70c5c 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -763,6 +763,19 @@ def read_json(
{{"index":"row 2","col 1":"c","col 2":"d"}}]\
}}\
'
+
+ The following example uses ``dtype_backend="numpy_nullabl... | - [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4) | https://api.github.com/repos/pandas-dev/pandas/pulls/56561 | 2023-12-19T13:34:39Z | 2023-12-19T18:53:56Z | 2023-12-19T18:53:56Z | 2023-12-22T12:07:55Z |
Update test_ufunc.py | diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py
index 9d13ebf740eab..2484517e4f446 100644
--- a/pandas/tests/series/test_ufunc.py
+++ b/pandas/tests/series/test_ufunc.py
@@ -177,8 +177,7 @@ def test_multiple_output_binary_ufuncs(ufunc, sparse, shuffle, arrays_for_binary
a1, a2 ... | refactor with chain constant value assignment to make code more Pythonic, concise and efficient.
- [ ] 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 n... | https://api.github.com/repos/pandas-dev/pandas/pulls/56559 | 2023-12-19T05:33:15Z | 2023-12-19T10:06:57Z | null | 2023-12-19T10:08:08Z |
DEPR: Tick.delta | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 105d11b67c9bf..0f0e6271d8329 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -1770,7 +1770,8 @@ We can instead only resample those groups where we have points as follows:
d... | - [x] closes #55498 (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/56558 | 2023-12-19T05:10:20Z | 2023-12-19T23:35:22Z | 2023-12-19T23:35:22Z | 2023-12-20T00:13:28Z |
DEPR: delim_whitespace kwd in read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 843144c3453c2..6148086452d54 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -81,6 +81,9 @@ delim_whitespace : boolean, default False
If this option is set to ``True``, nothing should be passed in for the
... | - [ ] closes #xxxx (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/56557 | 2023-12-19T04:32:54Z | 2023-12-21T01:33:05Z | 2023-12-21T01:33:05Z | 2023-12-21T15:29:50Z |
DEPR: verbose kwd in read_csv, read_table | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 3a11e5e4e7226..ad4132d6ca11a 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -477,6 +477,7 @@ Other Deprecations
- Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel... | - [ ] 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/56556 | 2023-12-19T04:18:27Z | 2023-12-19T21:09:46Z | 2023-12-19T21:09:46Z | 2023-12-19T21:53:56Z |
STY: Bump ruff; use ruff's docstring/code formatting | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7f3fc95ce00cc..294a81bf48d54 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,13 +18,8 @@ ci:
# manual stage hooks
skip: [pylint, pyright, mypy]
repos:
-- repo: https://github.com/hauntsaninja/black-pre-commit-mir... | Looks like ruff now has the ability to replace black and format docstring examples too.
Appears there are some formatting differences but they appear minor IMO and at least the format requires no manual adjusting | https://api.github.com/repos/pandas-dev/pandas/pulls/56554 | 2023-12-18T23:38:09Z | 2024-01-02T22:23:51Z | null | 2024-01-02T22:23:59Z |
TST: Remove arraymanager pytest mark | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 7bfd1b35f5314..2d8f9442d4e76 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -188,8 +188,8 @@ def pytest_collection_modifyitems(items, config) -> None:
("read_parquet", "Passing a BlockManager to DataFrame is deprecated"),
]
- for... | No longer needed as arraymanager is deprecated and no longer tested in the CI | https://api.github.com/repos/pandas-dev/pandas/pulls/56552 | 2023-12-18T20:45:39Z | 2023-12-19T21:12:21Z | 2023-12-19T21:12:21Z | 2023-12-19T21:12:25Z |
CLN: replace unnecessary `freq_to_period_freqstr` with `PeriodDtype` constructor | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index 88cfa6ca60d93..33f6789f3b402 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -11,7 +11,6 @@ cpdef int64_t periods_per_second(NPY_DATETIMEUNIT reso) except? -1
cdef NPY_DATETIMEUNIT get_supported_reso(... | xref #52064
replaced `freq_to_period_freqstr()` with `PeriodDtype(freq)._freqstr` in ValueError message in the definition of `_shift_with_freq()` | https://api.github.com/repos/pandas-dev/pandas/pulls/56550 | 2023-12-18T13:02:33Z | 2024-02-28T17:52:08Z | 2024-02-28T17:52:08Z | 2024-02-28T17:52:17Z |
Bump actions/upload-artifact from 3 to 4 | diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml
index 4e88bfff69327..da232404e6ff5 100644
--- a/.github/workflows/docbuild-and-upload.yml
+++ b/.github/workflows/docbuild-and-upload.yml
@@ -85,7 +85,7 @@ jobs:
run: mv doc/build/html web/build/docs
- name:... | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</h2>
<p>T... | https://api.github.com/repos/pandas-dev/pandas/pulls/56549 | 2023-12-18T08:10:17Z | 2023-12-18T16:02:36Z | 2023-12-18T16:02:36Z | 2023-12-18T16:02:44Z |
Bump actions/download-artifact from 3 to 4 | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index ca5dacad1b599..60079b73bbb3a 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -115,7 +115,7 @@ jobs:
# removes unnecessary files from the release
- name: Download sdist (not macOS)
#if:... | Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</... | https://api.github.com/repos/pandas-dev/pandas/pulls/56548 | 2023-12-18T08:10:13Z | 2023-12-18T16:02:49Z | 2023-12-18T16:02:49Z | 2023-12-18T16:02:58Z |
Bump github/codeql-action from 2 to 3 | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 2182e89731990..4d0066bc0b48d 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -28,8 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: github/codeql-action/init@v2
+ - uses: git... | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/github/codeql-action/releases">github/codeql-action's releases</a>.</em></p>
<blockquote>
<h2>CodeQL Bundle v2.15.4</h2>
<p>Bundles CodeQL CLI v2.... | https://api.github.com/repos/pandas-dev/pandas/pulls/56547 | 2023-12-18T08:10:09Z | 2023-12-18T16:03:05Z | 2023-12-18T16:03:05Z | 2023-12-18T16:03:13Z |
DOC: Add docs for read_sql to avoid sql injection | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 3a58daf681cfb..d9a5e6dfd0cf8 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -652,6 +652,14 @@ def read_sql(
read_sql_table : Read SQL database table into a DataFrame.
read_sql_query : Read SQL query into a DataFrame.
+ Notes
+ -----
+ ... | - [ ] closes https://github.com/pandas-dev/pandas/issues/10899
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Added examples and notes to the documents of `pandas.read_sql` (https://pandas.pydata.org/pandas-docs/stable/reference/api/panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/56546 | 2023-12-18T06:28:36Z | 2024-01-17T18:13:44Z | 2024-01-17T18:13:44Z | 2024-01-17T18:13:51Z |
DOC: Add whatsnew illustrating upcoming changes | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index bc233f4323e2a..050c3901c3420 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -52,6 +52,8 @@ it explicitly disallows this. With CoW enabled, ``df`` is unchanged:
The... | These are both changes that are hard to deprecate, so we should add very prominent whatsnews | https://api.github.com/repos/pandas-dev/pandas/pulls/56545 | 2023-12-18T00:04:04Z | 2023-12-21T22:13:34Z | 2023-12-21T22:13:34Z | 2023-12-21T22:13:36Z |
DOC: Remove 1.2 versionadded and changed | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index d9db2bc5cddb4..e342f76dc724b 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -209,8 +209,6 @@ def assert_index_equal(
Whether to compare the order of index entries as well as their values.
If... | Lets see if the docs build like this | https://api.github.com/repos/pandas-dev/pandas/pulls/56544 | 2023-12-17T23:35:13Z | 2023-12-18T15:02:37Z | 2023-12-18T15:02:37Z | 2023-12-18T17:57:29Z |
DOC: Update docstring for read_excel | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 6148086452d54..b3ad23e0d4104 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3471,20 +3471,15 @@ saving a ``DataFrame`` to Excel. Generally the semantics are
similar to working with :ref:`csv<io.read_csv_ta... | The initial motivation for this change was the typo in xlrd | https://api.github.com/repos/pandas-dev/pandas/pulls/56543 | 2023-12-17T23:27:08Z | 2024-01-04T03:30:21Z | 2024-01-04T03:30:21Z | 2024-01-04T08:21:14Z |
WARN: Improve deprecation message | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b63929079abeb..e9b735d389791 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5227,8 +5227,9 @@ def _sanitize_column(self, value) -> tuple[ArrayLike, BlockValuesRefs | None]:
# TODO: Remove kludge in sanitize_array for string mo... | @jbrockmendel suggested that the message could be clearer | https://api.github.com/repos/pandas-dev/pandas/pulls/56541 | 2023-12-17T20:36:52Z | 2023-12-17T23:14:06Z | 2023-12-17T23:14:06Z | 2023-12-17T23:14:12Z |
REF: avoid special-casing in agg_series | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 6f7f42eca3794..179c6161b7dd9 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -40,7 +40,6 @@
is_integer,
is_list_like,
is_scalar,
- pandas_dtype,
)
from pandas.core.dtype... | - [ ] 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/56540 | 2023-12-17T19:54:25Z | 2023-12-18T17:58:01Z | 2023-12-18T17:58:01Z | 2023-12-18T17:59:16Z |
TYP: _json.py | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index b8fba4d173ae7..be269dffada35 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -14,6 +14,7 @@
Generic,
Literal,
TypeVar,
+ final,
overload,
)
import warnings
@@ -37,11 +38,11 @@
is_string_dtype,
)
fr... | - [ ] 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/56539 | 2023-12-17T19:47:02Z | 2023-12-18T18:30:02Z | 2023-12-18T18:30:02Z | 2023-12-18T18:32:38Z |
Support multiplication of pd.ArrowDtype(pa.string()) and integral value where integral value is a series | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 6f7f42eca3794..d62a11f900694 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -695,22 +695,31 @@ def _evaluate_op_method(self, other, op, arrow_funcs):
other = self._box_pa(other)
... | - [ ] closes #56537(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/56538 | 2023-12-17T19:30:08Z | 2023-12-19T23:40:45Z | 2023-12-19T23:40:45Z | 2023-12-19T23:51:04Z |
Adjust format tests for new string option | diff --git a/pandas/tests/io/formats/style/test_to_latex.py b/pandas/tests/io/formats/style/test_to_latex.py
index 7f5b6b305f12d..7f1443c3ee66b 100644
--- a/pandas/tests/io/formats/style/test_to_latex.py
+++ b/pandas/tests/io/formats/style/test_to_latex.py
@@ -6,6 +6,7 @@
from pandas import (
DataFrame,
Mult... | - [ ] 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/56535 | 2023-12-17T18:15:27Z | 2023-12-18T18:39:29Z | 2023-12-18T18:39:29Z | 2023-12-18T19:24:15Z |
TST: Adjust excel tests for new string option | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 7c829ed4b8cb9..7bfd1b35f5314 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -863,8 +863,8 @@ def float_frame() -> DataFrame:
"""
return DataFrame(
np.random.default_rng(2).standard_normal((30, 4)),
- index=Index([f"foo_{i}... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56534 | 2023-12-17T17:46:53Z | 2023-12-18T15:07:48Z | 2023-12-18T15:07:48Z | 2023-12-18T17:57:23Z |
ENH: Add limit_area to ffill/bfill | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9283781e086fb..e03d1151a6baa 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -229,6 +229,7 @@ Other enhancements
- :func:`tseries.api.guess_datetime_format` is now part of the public API (:issue:`5472... | - [x] closes #56492 (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/56531 | 2023-12-17T16:18:04Z | 2023-12-19T17:43:42Z | 2023-12-19T17:43:42Z | 2023-12-21T23:34:18Z |
Adjust pivot tests for new string option | diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py
index d9ae8ddfb930e..18a449b4d0c67 100644
--- a/pandas/tests/reshape/test_pivot.py
+++ b/pandas/tests/reshape/test_pivot.py
@@ -9,6 +9,8 @@
import numpy as np
import pytest
+from pandas._config import using_pyarrow_string_dtype
+
... | on top of #56528 | https://api.github.com/repos/pandas-dev/pandas/pulls/56529 | 2023-12-16T23:35:45Z | 2023-12-18T18:46:40Z | 2023-12-18T18:46:40Z | 2023-12-18T19:24:02Z |
BUG: pivot dropping wrong column level with numeric columns and ea dtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0c4fb6d3d1164..08ef9ead94efb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -675,6 +675,7 @@ Reshaping
- Bug in :meth:`DataFrame.melt` where an exception was raised if ``var_name`` was not a string (... | - [ ] 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/56528 | 2023-12-16T23:25:12Z | 2023-12-18T15:12:39Z | 2023-12-18T15:12:39Z | 2023-12-18T17:57:26Z |
Adjust dummies tests for new string option | diff --git a/pandas/tests/reshape/test_from_dummies.py b/pandas/tests/reshape/test_from_dummies.py
index 0074a90d7a51e..f9a03222c8057 100644
--- a/pandas/tests/reshape/test_from_dummies.py
+++ b/pandas/tests/reshape/test_from_dummies.py
@@ -328,9 +328,13 @@ def test_no_prefix_string_cats_contains_get_dummies_NaN_column... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56527 | 2023-12-16T22:55:03Z | 2023-12-18T18:47:25Z | 2023-12-18T18:47:25Z | 2023-12-18T19:23:47Z |
Adjust crosstab tests for new string option | diff --git a/pandas/tests/reshape/test_crosstab.py b/pandas/tests/reshape/test_crosstab.py
index c0e9b266b0d06..136e76986df9d 100644
--- a/pandas/tests/reshape/test_crosstab.py
+++ b/pandas/tests/reshape/test_crosstab.py
@@ -562,7 +562,7 @@ def test_crosstab_with_numpy_size(self):
codes=[[1, 1, 1, 2, 2, 2,... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/56526 | 2023-12-16T22:29:44Z | 2023-12-18T18:48:03Z | 2023-12-18T18:48:03Z | 2023-12-18T19:23:35Z |
CoW: Remove some no longer necessary todos | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 14d05c59272e8..781b6df5ebd3d 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -1178,8 +1178,6 @@ def value_getitem(placement):
unfit_count = len(unfit_idxr)
new_b... | These are all outdated (I check the rec_array code path as well) | https://api.github.com/repos/pandas-dev/pandas/pulls/56525 | 2023-12-16T22:15:22Z | 2023-12-18T18:48:43Z | 2023-12-18T18:48:42Z | 2023-12-18T19:23:29Z |
DOC: Added docstrings to fixtures defined in XML I/O, util and pandas modules | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 7c829ed4b8cb9..023bc54ec9bc6 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1934,4 +1934,7 @@ def warsaw(request) -> str:
@pytest.fixture()
def arrow_string_storage():
+ """
+ Fixture that lists possible PyArrow values for StringDtype st... | Partially addresses: #19159
Co-authored-by: @GeorgeJuniorGG and @MylenaRoberta. | https://api.github.com/repos/pandas-dev/pandas/pulls/56524 | 2023-12-16T17:55:01Z | 2024-01-12T06:42:23Z | 2024-01-12T06:42:23Z | 2024-01-12T06:43:00Z |
PERF: merge on monotonic keys | diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py
index 6f494562103c2..ce64304731116 100644
--- a/asv_bench/benchmarks/join_merge.py
+++ b/asv_bench/benchmarks/join_merge.py
@@ -275,18 +275,21 @@ def time_merge_dataframes_cross(self, sort):
class MergeEA:
params = [
- "... | - [x] closes #56115
- [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/56523 | 2023-12-16T17:37:04Z | 2023-12-17T20:21:01Z | 2023-12-17T20:21:01Z | 2023-12-17T20:21:10Z |
REGR: groupby with Decimal and NA values | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..c5769ca6c6f24 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -654,11 +654,11 @@ Groupby/resample/rolling
- Bug in :meth:`.DataFrameGroupBy.value_counts` and :meth:`.SeriesGroupBy.value... | - [x] closes #54847 (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/56522 | 2023-12-16T16:33:01Z | 2023-12-17T20:40:36Z | 2023-12-17T20:40:36Z | 2023-12-18T13:21:16Z |
DEPR: groupby.grouper | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9283781e086fb..9fec4157d8710 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -476,7 +476,7 @@ Other Deprecations
- Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel... | - [ ] 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/56521 | 2023-12-16T16:08:44Z | 2023-12-18T23:19:38Z | 2023-12-18T23:19:38Z | 2024-01-17T21:05:50Z |
CoW: Set a bunch of Series copy statements to False | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index aa78bbe1c3ec1..98161110d2df9 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2188,7 +2188,7 @@ def any(self, skipna: bool = True) -> NDFrameT:
"""
return self._cython_agg_general(
... | Because the default is now `copy=True` for numpy array input when CoW is enabled, we can explicitly disable copying when we know the data is newly generated. | https://api.github.com/repos/pandas-dev/pandas/pulls/56520 | 2023-12-15T23:22:51Z | 2023-12-21T20:45:12Z | 2023-12-21T20:45:12Z | 2023-12-21T20:48:59Z |
TYP: make dtype required in _from_sequence_of_strings | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 2ada386f76b87..ae135fd41d977 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -88,6 +88,7 @@ Other API changes
^^^^^^^^^^^^^^^^^
- 3rd party ``py.path`` objects are no longer explicitly supported in I... | - [ ] 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/56519 | 2023-12-15T20:52:22Z | 2024-02-14T19:51:05Z | 2024-02-14T19:51:05Z | 2024-02-15T02:43:32Z |
TST: use one-class pattern for SparseArray | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index 340b7df1772e9..ca19845041e23 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -43,7 +43,13 @@ def skip_if_immutable(self, dtype, request):
# This fixture... | Along with #56512 and #56509 i think this gets all of them, so we can deprecate the old pattern | https://api.github.com/repos/pandas-dev/pandas/pulls/56513 | 2023-12-15T00:22:11Z | 2023-12-18T18:53:38Z | 2023-12-18T18:53:38Z | 2023-12-18T21:01:12Z |
TST: use one-class pattern in test_numpy | diff --git a/pandas/tests/extension/base/interface.py b/pandas/tests/extension/base/interface.py
index 08e385c9389d9..6683c87e2b8fc 100644
--- a/pandas/tests/extension/base/interface.py
+++ b/pandas/tests/extension/base/interface.py
@@ -1,6 +1,7 @@
import numpy as np
import pytest
+from pandas.core.dtypes.cast impo... | - [ ] 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/56512 | 2023-12-14T23:37:26Z | 2023-12-15T17:48:13Z | 2023-12-15T17:48:13Z | 2023-12-15T17:54:43Z |
DOC: Update redirects | diff --git a/doc/redirects.csv b/doc/redirects.csv
index bd60cc6a732bd..4ccf12bfebb3c 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -50,23 +50,22 @@ development/meeting,community
# api moved function
reference/api/pandas.io.json.json_normalize,pandas.json_normalize
-# rename due to refactors
-reference/... | - [ ] 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/56511 | 2023-12-14T22:18:18Z | 2023-12-20T13:33:30Z | null | 2024-02-14T01:30:55Z |
TST: use one-class pattern in json extension tests | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index 592b88c4701d2..7686bc5abb44c 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -2,6 +2,7 @@
import operator
import sys
+import numpy as np
import pytest
im... | - [ ] 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/56510 | 2023-12-14T21:39:02Z | 2023-12-14T23:36:19Z | 2023-12-14T23:36:19Z | 2023-12-14T23:36:55Z |
TST: use single-class pattern in test_string.py | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 6f7f42eca3794..f919a299eda4d 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -637,6 +637,9 @@ def __invert__(self) -> Self:
# This is a bit wise op for integer types
if pa... | - [ ] 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/56509 | 2023-12-14T21:10:53Z | 2023-12-18T18:54:46Z | 2023-12-18T18:54:46Z | 2023-12-18T21:00:59Z |
PERF: Improve performance when hashing a nullable extension array | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..2b22626b25fb5 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -350,8 +350,8 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
Other API changes
^^^^... | Avoids the roundtrip through object, this is much faster (around 15x) | https://api.github.com/repos/pandas-dev/pandas/pulls/56508 | 2023-12-14T21:06:33Z | 2023-12-18T15:32:06Z | 2023-12-18T15:32:06Z | 2023-12-18T15:32:09Z |
CLN: pass dtype to from_sequence explicitly | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 383f8a49fd02c..a19b304529383 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1071,7 +1071,7 @@ def shift(self, periods: int = 1, fill_value: object = None) -> IntervalArray:
fill_value = ... | - [ ] 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/56506 | 2023-12-14T18:47:46Z | 2023-12-14T23:40:36Z | 2023-12-14T23:40:36Z | 2023-12-14T23:41:40Z |
CI: Rename to .condarc | diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml
index 84e81b9a9297f..ceeebfcd1c90c 100644
--- a/.github/actions/setup-conda/action.yml
+++ b/.github/actions/setup-conda/action.yml
@@ -11,6 +11,6 @@ runs:
with:
environment-file: ${{ inputs.environment-file }}
... | - [ ] closes #56497 (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/56504 | 2023-12-14T16:41:04Z | 2023-12-14T17:33:26Z | 2023-12-14T17:33:26Z | 2023-12-14T17:33:29Z |
updated sphinx-lint version to 0.9.1 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 52463a462b785..782340178f462 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -111,7 +111,7 @@ repos:
types: [text] # overwrite types: [rst]
types_or: [python, rst]
- repo: https://github.com/sphinx-contrib/s... | When installing pre-commit an error occured:
<details>
[INFO] Initializing environment for https://github.com/hauntsaninja/black-pre-commit-mirror.
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/jendrikseipp/vulture.
[I... | https://api.github.com/repos/pandas-dev/pandas/pulls/56501 | 2023-12-14T16:04:27Z | 2023-12-14T17:36:40Z | 2023-12-14T17:36:40Z | 2023-12-14T17:36:49Z |
added mapping to assign | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..117125fe7f59d 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -225,6 +225,7 @@ Other enhancements
- :func:`tseries.api.guess_datetime_format` is now part of the public API (:issue:`5472... | - [x] closes #56498 (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/56500 | 2023-12-14T15:44:03Z | 2024-01-08T21:37:11Z | null | 2024-01-08T21:37:12Z |
TST: Updated tests for df.where() function in light of new exceptions | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index 4be5be77b015c..929814cc8c03c 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -137,7 +137,7 @@ def test_getitem_boolean(self, mixed_float_frame, m... | Modifies tests for df.where() function as in PR #56495 I changed the exceptions raised from ValueError to TypeError. Modified the same in tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/56496 | 2023-12-14T12:11:21Z | 2023-12-14T12:59:02Z | null | 2023-12-14T12:59:02Z |
BUG: Replaced ValueError exception with TypeError exception in df.where() function | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index e217e8c8557bb..0d96678bba82d 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -211,6 +211,8 @@ Styler
Other
^^^^^
+- Bug in :meth:`DataFrame.where` where using a non-bool type array in the function ... | Replaced ValueError exception with TypeError as it is more appropriate for the error it serves
[] closes issue #56330 where there was a consensus that a TypeError is more appropriate for the following error: "Boolean array expected for the condition, not (non-bool type)". Since ValueErrors are raised when the type ... | https://api.github.com/repos/pandas-dev/pandas/pulls/56495 | 2023-12-14T12:05:33Z | 2024-01-16T19:29:45Z | 2024-01-16T19:29:45Z | 2024-01-16T20:42:36Z |
TST: de-special-case test_EA_types | diff --git a/pandas/tests/extension/base/io.py b/pandas/tests/extension/base/io.py
index c369ec8a16f2f..3a6f2eb5ba8b1 100644
--- a/pandas/tests/extension/base/io.py
+++ b/pandas/tests/extension/base/io.py
@@ -5,11 +5,31 @@
import pandas as pd
import pandas._testing as tm
+from pandas.core.arrays import ExtensionArr... | - [ ] 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/56494 | 2023-12-14T02:33:24Z | 2023-12-14T17:38:19Z | 2023-12-14T17:38:19Z | 2023-12-14T18:17:33Z |
TYP: Update mypy and pyright | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 782340178f462..42ff96603b71f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -132,11 +132,11 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@... | The first commit contains changes for only the mypy update.
The second commit contains only changes for pyright 1.1.399 (this commit has three remaining errors caused by a bug fixed in 1.1.400 ).
The third commit tries to get to 1.1.400. One major change in 1.1.400 is that pyright now also infers missing return a... | https://api.github.com/repos/pandas-dev/pandas/pulls/56493 | 2023-12-14T01:39:37Z | 2023-12-19T17:44:49Z | 2023-12-19T17:44:49Z | 2023-12-19T19:11:33Z |
BUG: time strings cast to ArrowDtype with pa.time64 type | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..eca238223b8f0 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -697,7 +697,7 @@ Other
- Bug in rendering ``inf`` values inside a a :class:`DataFrame` with the ``use_inf_as_na`` option en... | - [x] closes #56463 (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/56490 | 2023-12-13T19:34:04Z | 2023-12-14T23:06:55Z | 2023-12-14T23:06:55Z | 2023-12-14T23:33:48Z |
DEPR: raise ValueError if invalid period freq pass to asfreq | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index b3e86b4360d74..39b2f4336730d 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -2784,7 +2784,13 @@ def asfreq(
how = "E"
if isinstance(freq, BaseOffset):
- freq = freq_to_period_freqstr(freq.n, fr... | xref #52064, #9586
in example:
```
index = pd.PeriodIndex(["2020-01-01", "2021-01-01"], freq="M")
df = pd.DataFrame({"a": pd.Series([0, 1], index=index)})
df.asfreq(freq=MonthBegin(2))
```
we silently convert " 2MS" to " 2M", which isn't correct.
Raised` ValueError` if invalid period freq pass to `asfreq()`... | https://api.github.com/repos/pandas-dev/pandas/pulls/56489 | 2023-12-13T18:59:23Z | 2023-12-14T09:54:09Z | 2023-12-14T09:54:09Z | 2023-12-14T09:54:09Z |
BUG: merge_asof(tolerance=Timedelta) with ArrowDtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..e1e119a3adf79 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -666,6 +666,7 @@ Reshaping
- Bug in :func:`concat` renaming :class:`Series` when ``ignore_index=False`` (:issue:`15047`)
-... | - [ ] closes #56486 (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/56488 | 2023-12-13T18:18:04Z | 2023-12-14T23:07:53Z | 2023-12-14T23:07:53Z | 2023-12-14T23:34:06Z |
BUG: Fix sort_index(axis=1, ignore_index=True) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index ff79100ed1fe1..9c3a46339769f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -704,9 +704,10 @@ Other
- Bug in :func:`infer_freq` and :meth:`DatetimeIndex.inferred_freq` with weekly frequencies and non... | - [ ] closes #56478 (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/56487 | 2023-12-13T17:49:15Z | 2023-12-18T19:39:13Z | 2023-12-18T19:39:13Z | 2023-12-18T19:39:16Z |
BUG: RecursionError with categorical merge keys | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..8ae9a680e4bdd 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -604,7 +604,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.loc` when setting :class:`Series` with extension dtype into N... | - [x] closes #56376
- [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/56485 | 2023-12-13T17:03:46Z | 2024-01-29T20:02:57Z | null | 2024-01-29T20:02:58Z |
Revert "DEPR: make_block (#56422)" | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..3385e28c029a9 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -432,7 +432,6 @@ Other Deprecations
^^^^^^^^^^^^^^^^^^
- Changed :meth:`Timedelta.resolution_string` to return ``h``, ``mi... | This reverts commit b0ffccd489badea508d0a83431f1aea019e294b7.
See the discussion in https://github.com/pandas-dev/pandas/pull/56422 | https://api.github.com/repos/pandas-dev/pandas/pulls/56481 | 2023-12-13T07:31:18Z | 2024-01-10T19:06:43Z | 2024-01-10T19:06:43Z | 2024-01-10T22:42:33Z |
README updated for initial setup and installation | diff --git a/README.md b/README.md
index 6fa20d237babe..50773eb2d6554 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<div align="center">
- <img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
+ <img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
</div>
-----------------
@@ -37,8... | - [ ] 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/56479 | 2023-12-13T04:16:50Z | 2023-12-13T05:35:02Z | null | 2023-12-13T05:35:03Z |
Create test_timestamp_fromisoformat.py | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index bb3cc3a03760f..0c1a39b82aee8 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -651,7 +651,7 @@ def normalize_dictlike_arg(
and any(is_list_like(v) for _, v in func.items())
) or (any(is_dict_like(v) for _, v in func.item... | - [ ] addresses #56398 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added](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/contribut... | https://api.github.com/repos/pandas-dev/pandas/pulls/56477 | 2023-12-12T23:29:37Z | 2023-12-27T19:13:28Z | null | 2023-12-27T19:13:28Z |
BUG: Change ValueError to TypeError in df.mask with int df | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e46a0aa044b6d..e5ebfbec75401 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10683,11 +10683,11 @@ def _where(
if not isinstance(cond, ABCDataFrame):
# This is a single-dimensional object.
... | - [ ] closes #56330
- [ ] [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/56476 | 2023-12-12T19:48:21Z | 2023-12-12T20:09:33Z | null | 2023-12-12T20:09:33Z |
CLN: changes for spelling mistakes | diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py
index f5579082c679b..051d04e43f14a 100644
--- a/pandas/core/dtypes/astype.py
+++ b/pandas/core/dtypes/astype.py
@@ -181,7 +181,7 @@ def astype_array(values: ArrayLike, dtype: DtypeObj, copy: bool = False) -> Arra
else:
values = _asty... | - [x] closes #xxxx (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/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/56474 | 2023-12-12T17:38:49Z | 2024-01-08T21:30:59Z | null | 2024-01-08T21:31:00Z |
DOC: Add example with ``numpy_nullable`` to ``pd.read_json()`` | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 9c56089560507..fca8048e69aba 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -763,6 +763,20 @@ def read_json(
{{"index":"row 2","col 1":"c","col 2":"d"}}]\
}}\
'
+
+ The following example uses ``dtype_backend="numpy_nullabl... | - [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4) | https://api.github.com/repos/pandas-dev/pandas/pulls/56473 | 2023-12-12T17:12:22Z | 2023-12-19T13:34:44Z | null | 2023-12-19T13:34:49Z |
DOC: Add example with ``numpy_nullable`` to ``pd.read_html()`` | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 863a663fc2413..b6bce18c8223f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2488,13 +2488,13 @@ Read a URL while passing headers alongside the HTTP request:
2 User-Agent: Python-urllib/3.8
... | - [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4) | https://api.github.com/repos/pandas-dev/pandas/pulls/56471 | 2023-12-12T16:54:30Z | 2024-01-06T16:54:04Z | null | 2024-01-06T16:54:05Z |
DOC: Add example with ``numpy_nullable`` to ``pd.read_xml()`` | diff --git a/pandas/io/xml.py b/pandas/io/xml.py
index bd3b515dbca2f..ac497cd266027 100644
--- a/pandas/io/xml.py
+++ b/pandas/io/xml.py
@@ -1058,7 +1058,7 @@ def read_xml(
Examples
--------
- >>> import io
+ >>> from io import StringIO
>>> xml = '''<?xml version='1.0' encoding='utf-8'?>
...... | - [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4) | https://api.github.com/repos/pandas-dev/pandas/pulls/56470 | 2023-12-12T16:43:32Z | 2023-12-18T19:06:13Z | 2023-12-18T19:06:13Z | 2023-12-18T22:55:54Z |
DOC: fix a typo in Resampler.interpolate | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index d54f6d31f6144..b3e86b4360d74 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -937,7 +937,7 @@ def interpolate(
The original index is first reindexed to target timestamps
(see :meth:`core.resample.Resampler.asf... | A colon is missing, which makes the [doc](https://pandas.pydata.org/docs/dev/reference/api/pandas.api.typing.Resampler.interpolate.html) not rendered correctly.
| https://api.github.com/repos/pandas-dev/pandas/pulls/56469 | 2023-12-12T12:10:29Z | 2023-12-12T15:31:44Z | 2023-12-12T15:31:44Z | 2023-12-12T16:41:08Z |
apply.py code comment reformatting and clean up | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 169a44accf066..b2179ceb50f15 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -169,15 +169,12 @@ def agg_or_apply_dict_like(
) -> DataFrame | Series:
pass
+ '''
+ Objective: Provide an implementation for the aggreg... | - [ ] 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/56467 | 2023-12-12T05:33:07Z | 2023-12-12T15:41:47Z | null | 2023-12-12T15:41:48Z |
Add optional parameter for pd.factorize to handle new categories in categorical data dynamically | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index dce776755ad7e..15b6dd93ebb15 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -105,10 +105,41 @@ For a full list of ADBC drivers and their development status, see the `ADBC Driv
Implementation Status <... | - [X] closes #12509
- [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/56466 | 2023-12-12T02:37:47Z | 2024-01-08T21:32:26Z | null | 2024-01-08T21:32:27Z |
DOC: Minor improvements groupby user guide | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 4e80be8fb0fc6..11863f8aead31 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -13,10 +13,8 @@ steps:
* **Applying** a function to each group independently.
* **Combining** the results into... | - [ ] 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/56465 | 2023-12-12T02:23:21Z | 2023-12-12T15:44:33Z | 2023-12-12T15:44:33Z | 2023-12-19T11:36:34Z |
DOC: replace deprecated freqs 'T', 'S', 'A' in docs and comments | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index eeaf472c23b60..74804336f09a3 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -2701,8 +2701,8 @@ class Period(_Period):
year=None, month=None, quarter=None, day=None,
h... | xref #54061, xref #55252
replaced deprecated frequencies 'T', 'S', 'A' in comments and docs | https://api.github.com/repos/pandas-dev/pandas/pulls/56464 | 2023-12-11T22:54:59Z | 2023-12-12T11:42:09Z | 2023-12-12T11:42:09Z | 2023-12-12T11:42:09Z |
Factorize documentation | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index ec0fe32163ec8..8e63f61e4f4d8 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -605,7 +605,6 @@ def factorize_array(
codes = ensure_platform_int(codes)
return codes, uniques
-
@doc(
values=dedent(
... | - [ ] 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/56461 | 2023-12-11T21:13:54Z | 2023-12-11T21:21:29Z | null | 2023-12-11T21:21:29Z |
BUG: Return numpy types from ArrowExtensionArray.to_numpy for temporal types when possible | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..cb826b7a42041 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -107,11 +107,11 @@ documentation.
.. _whatsnew_220.enhancements.to_numpy_ea:
-ExtensionArray.to_numpy converts to suita... | - [ ] closes #55997 (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/56459 | 2023-12-11T18:42:54Z | 2023-12-14T23:15:01Z | 2023-12-14T23:15:01Z | 2023-12-14T23:34:13Z |
DOC: Improve ``df.equals()`` docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index ef10958ac1153..e46a0aa044b6d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1451,8 +1451,8 @@ def equals(self, other: object) -> bool_t:
the same location are considered equal.
The row/column index do not need t... | - [x] closes #46507 | https://api.github.com/repos/pandas-dev/pandas/pulls/56458 | 2023-12-11T18:11:31Z | 2023-12-11T19:22:15Z | 2023-12-11T19:22:15Z | 2023-12-11T21:44:20Z |
DOC: Improve ``quantile`` docstring | diff --git a/pandas/core/series.py b/pandas/core/series.py
index e4dca97bc645d..626fcd47764e7 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2820,8 +2820,8 @@ def quantile(
This optional parameter specifies the interpolation method to use,
when the desired quantile lies bet... | - [x] closes #51745 and #52181
| https://api.github.com/repos/pandas-dev/pandas/pulls/56457 | 2023-12-11T17:58:16Z | 2023-12-11T19:21:22Z | 2023-12-11T19:21:22Z | 2023-12-11T19:38:15Z |
DOC: Improve ``io/excel/_base.py`` | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 6d66830ab1dfd..2884294377ec9 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -86,7 +86,7 @@
)
_read_excel_doc = (
"""
-Read an Excel file into a pandas DataFrame.
+Read an Excel file into a ``pandas`` ``DataFrame``... | - [x] closes #53674
- [x] closes #53953 | https://api.github.com/repos/pandas-dev/pandas/pulls/56453 | 2023-12-11T10:34:57Z | 2023-12-11T17:32:42Z | 2023-12-11T17:32:42Z | 2023-12-11T17:36:12Z |
Bump actions/setup-python from 4 to 5 | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 4260c0836bbea..b49b9a67c4743 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -170,7 +170,7 @@ jobs:
- name: Setup Python
id: setup_python
- uses: actions/setup-pyth... | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/setup-python/releases">actions/setup-python's releases</a>.</em></p>
<blockquote>
<h2>v5.0.0</h2>
<h2>What's Changed</h2>
<p>In scope of t... | https://api.github.com/repos/pandas-dev/pandas/pulls/56450 | 2023-12-11T08:20:19Z | 2023-12-11T17:27:54Z | 2023-12-11T17:27:54Z | 2023-12-11T17:27:58Z |
Bump actions/stale from 8 to 9 | diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml
index 11b81d11f7876..792afe8f4faf5 100644
--- a/.github/workflows/stale-pr.yml
+++ b/.github/workflows/stale-pr.yml
@@ -14,7 +14,7 @@ jobs:
if: github.repository_owner == 'pandas-dev'
runs-on: ubuntu-22.04
steps:
- - uses: ac... | Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/stale/releases">actions/stale's releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<h2>Breaking Changes</h2>
<ol>
<li>Action is now stateful: If the ac... | https://api.github.com/repos/pandas-dev/pandas/pulls/56449 | 2023-12-11T08:20:13Z | 2023-12-11T17:27:19Z | 2023-12-11T17:27:19Z | 2023-12-11T17:27:28Z |
Fix/qcut multiple min values | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 57b83a294963b..fb7ad903f7492 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -24,6 +24,7 @@ Bug fixes
- Bug in :class:`Series` when trying to cast date-like string inputs to :class:`ArrowDtype` of ``p... | - [] closes #55991
- [] [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).
- [] Add... | https://api.github.com/repos/pandas-dev/pandas/pulls/56448 | 2023-12-11T05:25:29Z | 2024-01-08T21:32:49Z | null | 2024-01-08T21:32:50Z |
Adjust concat tests for string option | diff --git a/pandas/tests/reshape/concat/test_append_common.py b/pandas/tests/reshape/concat/test_append_common.py
index ab20e8c8f6930..31c3ef3176222 100644
--- a/pandas/tests/reshape/concat/test_append_common.py
+++ b/pandas/tests/reshape/concat/test_append_common.py
@@ -57,10 +57,12 @@ class TestConcatAppendCommon:
... | - [ ] 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/56446 | 2023-12-11T01:12:47Z | 2023-12-11T17:34:40Z | 2023-12-11T17:34:40Z | 2023-12-11T17:57:53Z |
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 9d244452cb9b2..24e44c8f9e53e 100644
--- a/pandas/tests/reshape/merge/test_join.py
+++ b/pandas/tests/reshape/merge/test_join.py
@@ -630,7 +630,7 @@ def test_mixed_type_join_with_suffix(self):
df.insert(5, "dt",... | - [ ] 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/56445 | 2023-12-11T01:00:17Z | 2024-01-17T18:15:02Z | 2024-01-17T18:15:02Z | 2024-01-18T03:45:52Z |
BUG: merge_asof raising incorrect error for strings | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index acec8379ee5b3..908cd528dc11f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -665,6 +665,7 @@ Reshaping
- Bug in :func:`concat` ignoring ``sort`` parameter when passed :class:`DatetimeIndex` indexes (... | - [ ] 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/56444 | 2023-12-11T00:59:57Z | 2023-12-11T17:36:36Z | 2023-12-11T17:36:36Z | 2023-12-11T17:57:46Z |
BUG: DataFrame.join with left or right empty not respecting sort=True | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index acec8379ee5b3..711f0420aa8e7 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -247,7 +247,7 @@ These are bug fixes that might have notable behavior changes.
In previous versions of pandas, :func:`mer... | - [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/56443 | 2023-12-11T00:45:05Z | 2023-12-11T17:37:56Z | 2023-12-11T17:37:56Z | 2023-12-11T17:38:04Z |
BUG: merge not sorting for new string dtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index dbb11d3d0788d..94c9ebde7ec5d 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -893,6 +893,7 @@ Reshaping
- Bug in :func:`merge_asof` when using a :class:`Timedelta` tolerance on a :class:`ArrowDtype` 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/56442 | 2023-12-10T23:39:08Z | 2024-01-09T00:05:57Z | 2024-01-09T00:05:57Z | 2024-01-09T12:58:44Z |
BUG: merge not raising for String and numeric merges | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0c4fb6d3d1164..4f0660886b3c6 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -671,6 +671,7 @@ Reshaping
- Bug in :func:`merge_asof` raising ``TypeError`` when ``by`` dtype is not ``object``, ``int64``... | - [ ] 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/56441 | 2023-12-10T23:12:01Z | 2023-12-18T19:26:18Z | 2023-12-18T19:26:18Z | 2023-12-18T19:58:37Z |
WEB: Add timeout for ci | diff --git a/web/pandas_web.py b/web/pandas_web.py
index 1cd3be456bfe0..407debf5828be 100755
--- a/web/pandas_web.py
+++ b/web/pandas_web.py
@@ -175,7 +175,9 @@ def maintainers_add_info(context):
context["maintainers"]["active"] + context["maintainers"]["inactive"]
):
resp = requests.... | - [ ] 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/56440 | 2023-12-10T22:58:24Z | 2023-12-10T23:45:49Z | 2023-12-10T23:45:49Z | 2023-12-13T09:01:59Z |
REF: get_supported_reso->get_supported_dtype | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index b626959203295..88a9a259ac8ec 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -30,20 +30,16 @@
"get_unit_from_dtype",
"periods_per_day",
"periods_per_second",
- "is_supported_unit"... | - [ ] 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/56439 | 2023-12-10T19:57:32Z | 2023-12-11T17:40:18Z | 2023-12-11T17:40:18Z | 2023-12-11T17:45:09Z |
DEPS: Bump some code style check dependencies | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 3f35e88cf543a..dbc764c88a6f3 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -58,7 +58,6 @@
"numpydoc",
"sphinx_copybutton",
"sphinx_design",
- "sphinx_toggleprompt",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56438 | 2023-12-10T19:45:12Z | 2023-12-17T22:41:24Z | 2023-12-17T22:41:24Z | 2023-12-18T17:50:18Z |
TST: Test .groupby() encodes NaNs correctly | diff --git a/pandas/tests/groupby/test_indexing.py b/pandas/tests/groupby/test_indexing.py
index 664c52babac13..3a5341c2f0952 100644
--- a/pandas/tests/groupby/test_indexing.py
+++ b/pandas/tests/groupby/test_indexing.py
@@ -331,3 +331,15 @@ def test_groupby_get_nonexisting_groups():
msg = "('a2', 'b1')"
with... | - [X] closes #54347 (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/56437 | 2023-12-10T19:41:57Z | 2024-01-08T21:37:52Z | null | 2024-01-08T21:37:53Z |
REF: pass dtype to _from_sequence | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index a100af56faab8..82e9812094af2 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1471,7 +1471,9 @@ def _maybe_upcast(
elif arr.dtype == np.object_:
if use_dtype_backend:
- arr = StringDtype().construct... | xref #56430 aimed at narrowing down the places where we don't pass dtype for a specific reason | https://api.github.com/repos/pandas-dev/pandas/pulls/56436 | 2023-12-10T19:33:01Z | 2023-12-12T00:41:46Z | 2023-12-12T00:41:46Z | 2023-12-12T02:17:32Z |
TST: de-duplicate PeriodIndex constructor tests | diff --git a/pandas/tests/indexes/period/test_constructors.py b/pandas/tests/indexes/period/test_constructors.py
index aecd3b3bace9a..d53581fab40c7 100644
--- a/pandas/tests/indexes/period/test_constructors.py
+++ b/pandas/tests/indexes/period/test_constructors.py
@@ -19,7 +19,54 @@
from pandas.core.arrays import Peri... | - [ ] 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/56435 | 2023-12-10T18:28:29Z | 2023-12-11T17:41:45Z | 2023-12-11T17:41:45Z | 2023-12-11T17:44:44Z |
POC: Move some Tempita to Cython/C++ | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 6ca4d19196874..0b826cc6a781a 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -272,7 +272,8 @@ jobs:
python -m pip install --no-cache-dir -U pip wheel setuptools meson[ninja]==1.2.1 m... | klib provides a c++ header file that, while not exactly the same as our existing vendored copy, could help simplify the layers we have between Cython -> Tempita -> khash
I get the general impression that a lot of the `IntXXVector` classes we have and hashing code could be simplified using C++ templates, although the... | https://api.github.com/repos/pandas-dev/pandas/pulls/56432 | 2023-12-10T03:11:39Z | 2024-03-05T02:13:45Z | null | 2024-03-05T02:13:45Z |
CLN: assorted | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index da4eeaeb3b692..017fdc4bc834f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -338,7 +338,7 @@ def array_with_unit_to_datetime(
f"unit='{unit}' not valid with non-numerical val='{val}'"
)
- ... | - [ ] 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/56431 | 2023-12-10T00:56:33Z | 2023-12-13T17:53:51Z | 2023-12-13T17:53:51Z | 2023-12-13T17:55:35Z |
CI/TYP: Fix typing check on main | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 8928c72de750c..91dd40c2deced 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -770,7 +770,7 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
]
if ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56429 | 2023-12-09T19:48:14Z | 2023-12-09T19:48:40Z | null | 2023-12-09T19:48:43Z |
CI: Fix mypy | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 8928c72de750c..91dd40c2deced 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -770,7 +770,7 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
]
if ... | - [ ] 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/56428 | 2023-12-09T19:45:25Z | 2023-12-09T21:19:54Z | 2023-12-09T21:19:54Z | 2023-12-09T22:07:48Z |
DEPR: casting in datetimelike isin | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 7a0075ab88a3a..e97e7e6602046 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -455,6 +455,7 @@ Other Deprecations
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_xml` except ``path_o... | - [x] closes #53111 (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/56427 | 2023-12-09T17:02:21Z | 2023-12-09T18:32:19Z | 2023-12-09T18:32:19Z | 2023-12-09T18:38:05Z |
BUG: outer join on equal indexes not sorting | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 7a0075ab88a3a..03d00f4b30316 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -246,7 +246,7 @@ These are bug fixes that might have notable behavior changes.
In previous versions of pandas, :func:`mer... | - [x] closes #55992
- [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/56426 | 2023-12-09T13:04:13Z | 2023-12-09T19:00:18Z | 2023-12-09T19:00:18Z | 2023-12-09T19:00:25Z |
TST: misplaced tests | diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py
index 113402cda1b9a..9355d6089b742 100644
--- a/pandas/tests/io/parser/test_parse_dates.py
+++ b/pandas/tests/io/parser/test_parse_dates.py
@@ -12,13 +12,11 @@
from io import StringIO
from dateutil.parser import par... | - [ ] 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/56424 | 2023-12-09T03:28:27Z | 2023-12-09T18:28:37Z | 2023-12-09T18:28:37Z | 2023-12-09T18:29:48Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.