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 |
|---|---|---|---|---|---|---|---|
Backport PR #54525 on branch 2.1.x (BLD: Fix version script) | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ac9db5f451bf3..50f6a116a6630 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -46,6 +46,7 @@ jobs:
fi
- run:
name: Build aarch64 wheels
+ no_output_timeout: 30m # Sometimes the tests won't generate a... | Backport PR #54525: BLD: Fix version script | https://api.github.com/repos/pandas-dev/pandas/pulls/54560 | 2023-08-15T19:27:51Z | 2023-08-15T21:18:44Z | 2023-08-15T21:18:44Z | 2023-08-15T21:18:45Z |
Backport PR #54537 on branch 2.1.x (REF: Refactor using_pyarrow check for string tests) | diff --git a/pandas/tests/strings/test_find_replace.py b/pandas/tests/strings/test_find_replace.py
index b2d7e3e7507f8..bcb8db96b37fa 100644
--- a/pandas/tests/strings/test_find_replace.py
+++ b/pandas/tests/strings/test_find_replace.py
@@ -18,6 +18,10 @@
# -------------------------------------------------------------... | Backport PR #54537: REF: Refactor using_pyarrow check for string tests | https://api.github.com/repos/pandas-dev/pandas/pulls/54559 | 2023-08-15T19:18:23Z | 2023-08-15T21:18:05Z | 2023-08-15T21:18:05Z | 2023-08-15T21:18:05Z |
Backport PR #54541 on branch 2.1.x (Bump pypa/cibuildwheel from 2.14.1 to 2.15.0) | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index f486a57bdb67d..5f541f1bae1fd 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,7 +139,7 @@ jobs:
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
- name: Build wheels
- ... | Backport PR #54541: Bump pypa/cibuildwheel from 2.14.1 to 2.15.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/54558 | 2023-08-15T18:55:52Z | 2023-08-15T21:32:32Z | 2023-08-15T21:32:32Z | 2023-08-15T21:32:32Z |
REF: remove special-casing for IntervalDtype in Index._raise_if_missing | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 288fd35892fd0..3d916acde971e 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -6159,19 +6159,7 @@ def _raise_if_missing(self, key, indexer, axis_name: str_t) -> None:
nmissing = missing_mask.sum()
... | - [ ] 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/54557 | 2023-08-15T16:52:31Z | 2023-08-16T18:20:26Z | 2023-08-16T18:20:26Z | 2023-08-16T18:25:43Z |
Improvement of documentation: how to install pip if not already installed | diff --git a/README.md b/README.md
index 8ea473beb107e..cfa3193704dc9 100644
--- a/README.md
+++ b/README.md
@@ -97,16 +97,35 @@ https://github.com/pandas-dev/pandas
Binary installers for the latest released version are available at the [Python
Package Index (PyPI)](https://pypi.org/project/pandas) and on [Conda](htt... | - [ ] 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/54553 | 2023-08-15T13:03:12Z | 2023-08-15T17:54:40Z | null | 2023-08-15T18:03:21Z |
Fixed unexpected np.nan value with reindex on pd.series with pd.Inter… | diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in
index 0b99aebbd3816..a6cec0fb30ecc 100644
--- a/pandas/_libs/intervaltree.pxi.in
+++ b/pandas/_libs/intervaltree.pxi.in
@@ -391,6 +391,11 @@ cdef class {{dtype_title}}Closed{{closed_title}}IntervalNode(IntervalNode):
"""Recursivel... | - [x] closes #51826
- [x] [Tests added and passed]
- [x] All [code checks passed]
The test added in this issue is failing on Linux-32-bit. This is caused by another issue as discussed in #23440. The description of the the error is also described below in the comments. The test is marked xfail for 32-bit system in ... | https://api.github.com/repos/pandas-dev/pandas/pulls/54549 | 2023-08-15T00:38:03Z | 2023-08-18T16:38:32Z | 2023-08-18T16:38:32Z | 2023-08-18T16:38:38Z |
ruff 0.0.284 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 90627216a1354..1bda47e0631a0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -24,7 +24,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.0.282
+ rev: v0.0.284
... | Ruff enabled many of the flake8-pyi rules for py files. | https://api.github.com/repos/pandas-dev/pandas/pulls/54548 | 2023-08-14T23:58:23Z | 2023-08-15T18:05:49Z | 2023-08-15T18:05:48Z | 2023-09-19T15:24:48Z |
DOC: whatsnew 2.1.0 refinements | diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst
index 5a43e5796d1d9..41705620d4bc7 100644
--- a/doc/source/reference/series.rst
+++ b/doc/source/reference/series.rst
@@ -314,6 +314,7 @@ Datetime properties
Series.dt.weekday
Series.dt.dayofyear
Series.dt.day_of_year
+ Series.... | - [ ] 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/54545 | 2023-08-14T20:05:48Z | 2023-08-16T21:57:51Z | 2023-08-16T21:57:51Z | 2023-08-17T09:00:44Z |
refactor grouper __iter__ | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 3c4a22d009406..71525c8c1a223 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -996,9 +996,6 @@ def groups(self):
}
return result
- def __iter__(self) -> Iterator[Hashable]:
- return iter(s... | - [x] closes #52468
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Removed the `__iter__` overload that was introduced in #51414. The logic accessing the `grouping_vector` for was introduced #53088 | https://api.github.com/repos/pandas-dev/pandas/pulls/54544 | 2023-08-14T16:23:12Z | 2023-08-19T11:04:18Z | 2023-08-19T11:04:18Z | 2023-08-19T11:04:27Z |
Create EA from groupby | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index be0d046697ba9..6233d1ea7128c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6182,6 +6182,28 @@ def __finalize__(self, other, method: str | None = None, **kwargs) -> Self:
)
self.flags.allows_duplicate_labe... | - [ ] 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/54543 | 2023-08-14T15:15:34Z | 2023-09-18T17:17:33Z | null | 2023-09-18T17:17:34Z |
Bump pypa/cibuildwheel from 2.14.1 to 2.15.0 | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index f486a57bdb67d..5f541f1bae1fd 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,7 +139,7 @@ jobs:
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
- name: Build wheels
- ... | Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.14.1 to 2.15.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p>
<blockquote>
<h2>v2.15.0</h2>
<ul>
<li>🌟 CPython 3.12 wheels are now b... | https://api.github.com/repos/pandas-dev/pandas/pulls/54541 | 2023-08-14T08:57:40Z | 2023-08-15T18:11:35Z | 2023-08-15T18:11:35Z | 2023-08-15T18:11:39Z |
BUG: 54445 interferes with EAs that support complex128 | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 7bb579b22aeed..7904972a84dfa 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -983,11 +983,18 @@ def fast_xs(self, loc: int) -> SingleBlockManager:
)
result = ensur... | When a loc indexer goes to create a fresh array to hold values from an Extension Array, it makes the array allocation based on the na_value of the EA, but that na_value may be smaller than the size of the things that the EA can hold (such as complex128). Note that np.nan is itself a legitimate complex128 value.
If ... | https://api.github.com/repos/pandas-dev/pandas/pulls/54540 | 2023-08-14T02:41:12Z | 2023-10-12T16:43:36Z | null | 2023-10-12T16:43:36Z |
Backport PR #54534 on branch 2.1.x (REF: Move methods that can be shared with new string dtype) | diff --git a/pandas/core/arrays/_arrow_string_mixins.py b/pandas/core/arrays/_arrow_string_mixins.py
new file mode 100644
index 0000000000000..63db03340683b
--- /dev/null
+++ b/pandas/core/arrays/_arrow_string_mixins.py
@@ -0,0 +1,84 @@
+from __future__ import annotations
+
+from typing import Literal
+
+import numpy a... | Backport PR #54534: REF: Move methods that can be shared with new string dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/54539 | 2023-08-13T22:39:15Z | 2023-08-14T09:57:00Z | 2023-08-14T09:57:00Z | 2023-08-14T09:57:00Z |
Backport PR #54536 on branch 2.1.x (REF: Move checks to object into a variable) | diff --git a/pandas/tests/strings/__init__.py b/pandas/tests/strings/__init__.py
index e69de29bb2d1d..9a7622b4f1cd8 100644
--- a/pandas/tests/strings/__init__.py
+++ b/pandas/tests/strings/__init__.py
@@ -0,0 +1,2 @@
+# Needed for new arrow string dtype
+object_pyarrow_numpy = ("object",)
diff --git a/pandas/tests/stri... | Backport PR #54536: REF: Move checks to object into a variable | https://api.github.com/repos/pandas-dev/pandas/pulls/54538 | 2023-08-13T22:39:09Z | 2023-08-14T09:56:50Z | 2023-08-14T09:56:49Z | 2023-08-14T09:56:50Z |
REF: Refactor using_pyarrow check for string tests | diff --git a/pandas/tests/strings/test_find_replace.py b/pandas/tests/strings/test_find_replace.py
index c3cc8b3643ed2..5f85a33dd2753 100644
--- a/pandas/tests/strings/test_find_replace.py
+++ b/pandas/tests/strings/test_find_replace.py
@@ -17,6 +17,10 @@
# -------------------------------------------------------------... | - [ ] 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/54537 | 2023-08-13T20:25:29Z | 2023-08-15T18:40:04Z | 2023-08-15T18:40:04Z | 2023-08-15T19:58:19Z |
REF: Move checks to object into a variable | diff --git a/pandas/tests/strings/__init__.py b/pandas/tests/strings/__init__.py
index e69de29bb2d1d..9a7622b4f1cd8 100644
--- a/pandas/tests/strings/__init__.py
+++ b/pandas/tests/strings/__init__.py
@@ -0,0 +1,2 @@
+# Needed for new arrow string dtype
+object_pyarrow_numpy = ("object",)
diff --git a/pandas/tests/stri... | Precursor for https://github.com/pandas-dev/pandas/pull/54533 | https://api.github.com/repos/pandas-dev/pandas/pulls/54536 | 2023-08-13T20:21:23Z | 2023-08-13T22:37:58Z | 2023-08-13T22:37:58Z | 2023-08-13T22:38:01Z |
REF: Replace "pyarrow" string storage checks with variable | diff --git a/pandas/conftest.py b/pandas/conftest.py
index f756da82157b8..c2ffddf661921 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1996,3 +1996,8 @@ def warsaw(request) -> str:
tzinfo for Europe/Warsaw using pytz, dateutil, or zoneinfo.
"""
return request.param
+
+
+@pytest.fixture()
+d... | - [ ] 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/54535 | 2023-08-13T20:12:43Z | 2023-08-17T08:42:36Z | 2023-08-17T08:42:36Z | 2023-08-17T08:42:39Z |
REF: Move methods that can be shared with new string dtype | diff --git a/pandas/core/arrays/_arrow_string_mixins.py b/pandas/core/arrays/_arrow_string_mixins.py
new file mode 100644
index 0000000000000..63db03340683b
--- /dev/null
+++ b/pandas/core/arrays/_arrow_string_mixins.py
@@ -0,0 +1,84 @@
+from __future__ import annotations
+
+from typing import Literal
+
+import numpy a... | cc @jorisvandenbossche
Just a copy-paste | https://api.github.com/repos/pandas-dev/pandas/pulls/54534 | 2023-08-13T20:05:24Z | 2023-08-13T22:38:53Z | 2023-08-13T22:38:53Z | 2023-08-13T22:38:56Z |
Implement Arrow String Array that is compatible with NumPy semantics | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 5210e727aeb3c..10826f50d1fe1 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1321,6 +1321,7 @@ def nullable_string_dtype(request):
params=[
"python",
pytest.param("pyarrow", marks=td.skip_if_no("pyarrow")),
+ pytest.pa... | cc @jbrockmendel @jorisvandenbossche
I'll do a couple of pre-cursors to reduce the diff
Context: https://github.com/pandas-dev/pandas/issues/54792 | https://api.github.com/repos/pandas-dev/pandas/pulls/54533 | 2023-08-13T19:59:00Z | 2023-08-23T16:43:37Z | 2023-08-23T16:43:37Z | 2023-08-28T13:39:17Z |
Fixed DatetimeIndex.tz_convert() .freq attribute | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 84b102bd4a262..02a58c626b08e 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1373,6 +1373,25 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
previous midnight.
**kwds... | - [ ] closes #49696
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [ ] 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/54532 | 2023-08-13T19:15:29Z | 2023-09-07T16:36:31Z | null | 2023-09-07T16:36:32Z |
REF: Factor out string methods from ArrowExtensionArray | diff --git a/pandas/core/arrays/_string_arrow_mixins.py b/pandas/core/arrays/_string_arrow_mixins.py
new file mode 100644
index 0000000000000..50f2203c4b694
--- /dev/null
+++ b/pandas/core/arrays/_string_arrow_mixins.py
@@ -0,0 +1,365 @@
+from __future__ import annotations
+
+import re
+import textwrap
+from typing imp... | pre-cursor for a StringArray that follows numpy semantics
cc @jorisvandenbossche maybe? Should be an easy review | https://api.github.com/repos/pandas-dev/pandas/pulls/54530 | 2023-08-13T15:19:09Z | 2023-08-13T20:01:50Z | null | 2023-09-30T21:24:28Z |
PERF: Reuse codes when grouping on a MultiIndex | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index c35473b852eb9..4791559724c83 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -100,7 +100,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
--
+- Performance improvement in :class:... | - [ ] 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/54529 | 2023-08-13T13:11:16Z | 2023-08-14T07:26:52Z | null | 2023-11-26T13:41:59Z |
Backport PR #54341 on branch 2.1.x (PERF: axis=1 reductions with EA dtypes) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 313bf61ecabf9..d1a689dc60830 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -614,6 +614,7 @@ Performance improvements
- :class:`Period`'s default formatter (`period_format`) is now significantly (~tw... | Backport PR #54341: PERF: axis=1 reductions with EA dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/54528 | 2023-08-13T12:47:45Z | 2023-08-13T16:20:25Z | 2023-08-13T16:20:25Z | 2023-08-13T16:20:25Z |
BUG: Special-case setting nan into integer series | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index 32641319a6b96..15bd5a7379105 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -195,6 +195,7 @@ def array_equivalent_object(
right: npt.NDArray[np.object_],
) -> bool: ...
def has_infs(arr: np.ndarray) -> bool: ... # const floating[:]
... | ~totally wrong, please ignore, will update~
~have updated, maybe it's not totally wrong anymore, but I'm off to bed now~🛏️
have woken up, and I think this is alright, so ready for reviews
Should integer interval dtype also not warn when setting `np.nan`? I've left that one out for now, but interval dtype is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/54527 | 2023-08-13T11:54:25Z | 2023-08-28T09:36:22Z | 2023-08-28T09:36:22Z | 2023-08-28T09:36:22Z |
DOC: Series.count remove mention of "level" | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 814a770b192bf..020fadc359ebd 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2150,7 +2150,7 @@ def count(self):
Returns
-------
- int or Series (if level specified)
+ int
Number of non-null... | similar to #54395 (I should have checked `Series.count` in that PR)
| https://api.github.com/repos/pandas-dev/pandas/pulls/54526 | 2023-08-13T11:06:38Z | 2023-08-15T18:49:15Z | 2023-08-15T18:49:15Z | 2023-09-06T00:54:09Z |
BLD: Fix version script | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ac9db5f451bf3..50f6a116a6630 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -46,6 +46,7 @@ jobs:
fi
- run:
name: Build aarch64 wheels
+ no_output_timeout: 30m # Sometimes the tests won't generate a... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/54525 | 2023-08-13T07:49:27Z | 2023-08-15T18:50:48Z | 2023-08-15T18:50:48Z | 2023-08-15T19:35:01Z |
Backport PR #54515 on branch 2.1.x (ENH: ArrowExtensionArray(duration) workarounds for pyarrow versions >= 11.0) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 88695f11fba59..07436cdf24e8d 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1011,12 +1011,11 @@ def factorize(
) -> tuple[np.ndarray, ExtensionArray]:
null_encoding = "mask"... | Backport PR #54515: ENH: ArrowExtensionArray(duration) workarounds for pyarrow versions >= 11.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/54524 | 2023-08-13T07:38:20Z | 2023-08-13T12:38:58Z | 2023-08-13T12:38:58Z | 2023-08-13T12:38:58Z |
Backport PR #54517 on branch 2.1.x (Run CI on 2.1.x) | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 0954bf7d9231c..9daa1a67bc2c1 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -4,11 +4,11 @@ on:
push:
branches:
- main
- - 2.0.x
+ - 2.1.x
pull_request:
bra... | Backport PR #54517: Run CI on 2.1.x | https://api.github.com/repos/pandas-dev/pandas/pulls/54522 | 2023-08-13T07:18:38Z | 2023-08-13T09:11:07Z | 2023-08-13T09:11:07Z | 2023-08-13T09:11:07Z |
DOC: Add whatsnew file for 2.2.0 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index fc225d0f44497..e933b3e84c481 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -10,6 +10,14 @@ This is the list of changes to pandas between each release. For full details,
see the `commit logs <https://git... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54520 | 2023-08-12T23:45:07Z | 2023-08-13T12:04:14Z | 2023-08-13T12:04:14Z | 2023-09-06T00:54:10Z |
Run CI on 2.1.x | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 0954bf7d9231c..9daa1a67bc2c1 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -4,11 +4,11 @@ on:
push:
branches:
- main
- - 2.0.x
+ - 2.1.x
pull_request:
bra... | - [ ] 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/54517 | 2023-08-12T19:57:55Z | 2023-08-13T07:17:35Z | 2023-08-13T07:17:35Z | 2023-08-13T09:05:35Z |
ENH: Allow usage of custom library to serialize with to_json method. | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 6e352c52cd60e..d5d04fe147dca 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1843,6 +1843,7 @@ with optional parameters:
* ``default_handler`` : The handler to call if an object cannot otherwise be converted... | - [X] closes #46571
- [ ] [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/54516 | 2023-08-12T19:57:49Z | 2023-08-16T22:25:43Z | null | 2024-02-17T17:20:07Z |
ENH: ArrowExtensionArray(duration) workarounds for pyarrow versions >= 11.0 | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 88695f11fba59..07436cdf24e8d 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1011,12 +1011,11 @@ def factorize(
) -> tuple[np.ndarray, ExtensionArray]:
null_encoding = "mask"... | The [issue](https://github.com/apache/arrow/issues/15226) was fixed upstream so the workaround is no longer needed for pyarrow versions >= 11.0
| https://api.github.com/repos/pandas-dev/pandas/pulls/54515 | 2023-08-12T17:19:08Z | 2023-08-13T07:38:14Z | 2023-08-13T07:38:14Z | 2023-09-06T00:54:13Z |
Backport PR #54509 on branch 2.1.x (PERF: Dataframe reductions with EA dtypes) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4908b535bcb1c..0e998898ffd1a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -11109,14 +11109,20 @@ def func(values: np.ndarray):
# We only use this in the case that operates on self.values
return op(values, axis=ax... | Backport PR #54509: PERF: Dataframe reductions with EA dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/54514 | 2023-08-12T12:11:37Z | 2023-08-12T19:55:41Z | 2023-08-12T19:55:41Z | 2023-08-12T19:55:41Z |
Backport PR #54504 on branch 2.1.x (Move Unit Tests for groupby.rolling.corr) | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 24a550b4602a6..9b260d5757767 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -3159,29 +3159,3 @@ def test_groupby_series_with_datetimeindex_month_name():
expected = Series(... | Backport PR #54504: Move Unit Tests for groupby.rolling.corr | https://api.github.com/repos/pandas-dev/pandas/pulls/54513 | 2023-08-12T12:09:27Z | 2023-08-12T19:55:27Z | 2023-08-12T19:55:27Z | 2023-08-12T19:55:27Z |
Backport PR #54498 on branch 2.1.x (Speed up string inference in maybe_convert_objects) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 55819ebd1f15e..a96152ccdf3cc 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -2681,14 +2681,13 @@ def maybe_convert_objects(ndarray[object] objects,
seen.object_ = True
elif seen.str_:
- if is_string_array(objects, ski... | Backport PR #54498: Speed up string inference in maybe_convert_objects | https://api.github.com/repos/pandas-dev/pandas/pulls/54512 | 2023-08-12T12:09:21Z | 2023-08-12T19:55:17Z | 2023-08-12T19:55:17Z | 2023-08-12T19:55:18Z |
REF: implement Dtype.index_class | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index bc776434b2e6e..3779048bfe804 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -15,6 +15,7 @@
from pandas._libs import missing as libmissing
from pandas._libs.hashtable import object_hash
+from pandas._libs.properti... | Allows EAs to specify what Index subclass they want to use. Avoids special-casing pandas-internal EAs.
Small perf improvement
```
In [2]: dti = pd.date_range("2016-01-01", periods=3, tz="UTC")
In [3]: cat = dti.astype("category")
In [4]: %timeit pd.Index(dti)
6.39 µs ± 80 ns per loop (mean ± std. dev. of... | https://api.github.com/repos/pandas-dev/pandas/pulls/54511 | 2023-08-12T07:55:03Z | 2023-08-16T18:22:04Z | 2023-08-16T18:22:04Z | 2023-08-16T18:27:53Z |
Speed up StringDtype arrow implementation for merge | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 6987a0ac7bf6b..c2cb9d643ca87 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -90,6 +90,7 @@
ExtensionArray,
)
from pandas.core.arrays._mixins import NDArrayBackedExtensionArray
+from pandas.core.arrays.... | - [ ] 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/54510 | 2023-08-12T07:35:54Z | 2023-08-22T15:05:44Z | 2023-08-22T15:05:44Z | 2023-08-22T15:05:47Z |
PERF: Dataframe reductions with EA dtypes | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4908b535bcb1c..0e998898ffd1a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -11109,14 +11109,20 @@ def func(values: np.ndarray):
# We only use this in the case that operates on self.values
return op(values, axis=ax... | Avoids re-checking the `_reduce` method signature on every block which can be slow. No whatsnew as I believe the method signature check was only added in the 2.1 cycle.
```
import pandas as pd
import numpy as np
df_wide = pd.DataFrame(np.random.randn(4, 10_000), dtype="float64[pyarrow]")
%timeit df_wide.sum(... | https://api.github.com/repos/pandas-dev/pandas/pulls/54509 | 2023-08-12T02:24:46Z | 2023-08-12T12:11:30Z | 2023-08-12T12:11:30Z | 2023-10-19T01:21:58Z |
PERF: DataFrame.iloc[int] for EA dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 313bf61ecabf9..fe6974c1f6934 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -623,6 +623,7 @@ Performance improvements
- Performance improvement in :func:`read_csv` with ``engine="c"`` (:issue:`52632`... | - [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/54508 | 2023-08-12T01:41:30Z | 2023-08-23T00:23:52Z | 2023-08-23T00:23:52Z | 2023-09-06T15:34:35Z |
Enable assert_almost_equal to test numpy-like zero-dimensional arrays | diff --git a/example b/example
new file mode 100644
index 0000000000000..442ae1a5f1591
Binary files /dev/null and b/example differ
diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx
index 4ba7bce51ed64..e2b56128a00b6 100644
--- a/pandas/_libs/testing.pyx
+++ b/pandas/_libs/testing.pyx
@@ -24,7 +24,14 @@ f... | - [ ] closes #48919
- [ ] [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/54507 | 2023-08-11T20:13:24Z | 2023-10-02T17:58:22Z | null | 2023-10-02T17:58:23Z |
Bitmask Backed MaskedArray | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c911edfa03670..11173a54cdf72 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -46,6 +46,10 @@ repos:
- id: codespell
types_or: [python, rst, markdown, cython, c]
additional_dependencies: [tomli]
+ e... | POC using vendored nanoarrow
| https://api.github.com/repos/pandas-dev/pandas/pulls/54506 | 2023-08-11T20:04:19Z | 2023-10-23T12:46:46Z | null | 2023-10-23T12:46:47Z |
Move Unit Tests for groupby.rolling.corr | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 24a550b4602a6..9b260d5757767 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -3159,29 +3159,3 @@ def test_groupby_series_with_datetimeindex_month_name():
expected = Series(... | Moves recently created unit tests for groupby.rolling.corr to pandas/tests/window/test_groupby.py
Resolves comment in #54499 | https://api.github.com/repos/pandas-dev/pandas/pulls/54504 | 2023-08-11T19:08:44Z | 2023-08-11T23:35:53Z | 2023-08-11T23:35:53Z | 2023-08-17T22:41:41Z |
Fix scatter_matrix lacking ability to use grid parameter | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5477694941125..a5222263a8177 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -793,9 +793,9 @@ Period
Plotting
^^^^^^^^
+- Bug in :func:`scatter_matrix` where the ``grid`` parameter was ignored (:is... | - [ ] closes #50818
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] 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/54503 | 2023-08-11T16:29:25Z | 2023-09-11T16:40:47Z | null | 2023-09-11T16:40:48Z |
Start 2.2.0 | - [ ] 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/54502 | 2023-08-11T16:28:37Z | 2023-08-11T16:28:58Z | 2023-08-11T16:28:58Z | 2023-08-11T16:28:59Z | |
RLS: 2.1.0rc0 | - [ ] 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/54501 | 2023-08-11T16:23:56Z | 2023-08-11T16:24:14Z | 2023-08-11T16:24:13Z | 2023-08-11T16:24:14Z | |
#51826_Fixed bug when np.nan is used as index value with .reindex on … | diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in
index 0b99aebbd3816..3de7f8e025c95 100644
--- a/pandas/_libs/intervaltree.pxi.in
+++ b/pandas/_libs/intervaltree.pxi.in
@@ -391,6 +391,10 @@ cdef class {{dtype_title}}Closed{{closed_title}}IntervalNode(IntervalNode):
"""Recursivel... |
- [x] closes #51826
- [x] [Tests added and passed]
- [x] All [code checks passed]
| https://api.github.com/repos/pandas-dev/pandas/pulls/54500 | 2023-08-11T14:37:41Z | 2023-08-15T00:21:51Z | null | 2023-08-15T00:21:51Z |
Unit test for groupby.rolling.corr | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 9b260d5757767..24a550b4602a6 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -3159,3 +3159,29 @@ def test_groupby_series_with_datetimeindex_month_name():
expected = Series(... | - [ ] closes #44078
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [ ] 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/54499 | 2023-08-11T13:33:59Z | 2023-08-11T16:19:00Z | 2023-08-11T16:19:00Z | 2023-08-11T23:26:21Z |
Speed up string inference in maybe_convert_objects | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 38695fbb8222b..0df739462b99d 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -2680,14 +2680,13 @@ def maybe_convert_objects(ndarray[object] objects,
seen.object_ = True
elif seen.str_:
- if is_string_array(objects, ski... | - [ ] 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/54498 | 2023-08-11T13:08:48Z | 2023-08-12T12:06:03Z | 2023-08-12T12:06:03Z | 2023-08-12T12:08:10Z |
Revert Cython upgrade | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index b7dce4f63f94c..810764754b7e1 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/54497 | 2023-08-11T13:02:42Z | 2023-08-11T15:47:55Z | 2023-08-11T15:47:55Z | 2023-08-11T20:36:52Z |
Fix inference for fixed with numpy strings with arrow string option | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 5757c69bb6ec7..f733ba3b445fd 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -19,6 +19,8 @@
import numpy as np
from numpy import ma
+from pandas._config import using_pyarrow_string_dtype
+
from pandas._libs 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/54496 | 2023-08-11T12:15:11Z | 2023-08-21T19:59:28Z | 2023-08-21T19:59:28Z | 2023-08-21T19:59:33Z |
DOC: updated required dependencies list | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 1896dffa9a105..0ab0391ac78a9 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -206,6 +206,7 @@ Package Minimum su... | - [x] closes #54492
- [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/54493 | 2023-08-11T08:47:15Z | 2023-08-15T18:59:35Z | 2023-08-15T18:59:35Z | 2023-08-15T18:59:41Z |
DEPR: Positional arguments in to_hdf except path_or_buf | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index df2f1bccc3cff..93294d3cbdcfe 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4220,7 +4220,7 @@ similar to how ``read_csv`` and ``to_csv`` work.
.. ipython:: python
df_tl = pd.DataFrame({"A": list(range... | - [X] xref #54229
- [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] A... | https://api.github.com/repos/pandas-dev/pandas/pulls/54491 | 2023-08-11T01:15:13Z | 2023-08-17T20:59:55Z | 2023-08-17T20:59:55Z | 2024-02-17T17:20:00Z |
DOC: Simplify missing_data.rst | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 9d645c185d3b5..e0e752099b77a 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -6,350 +6,462 @@
Working with missing data
*************************
-In this section, w... | * Explain np.nan vs pd.NaT vs pd.NA in the beginning
* Reorder section more logically
* Simplified examples and language
* Used more sphinx references | https://api.github.com/repos/pandas-dev/pandas/pulls/54490 | 2023-08-10T22:38:12Z | 2023-08-15T19:07:36Z | 2023-08-15T19:07:36Z | 2023-08-15T19:07:40Z |
CI: Set back the schedule | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 4330c25034e4f..f486a57bdb67d 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -14,8 +14,8 @@ name: Wheel builder
on:
schedule:
- # 8:50 UTC every day
- - cron: "50 8 * * *"
+ # 3:27 UTC every day
... | The wheel builds didn't trigger in time.
- [ ] 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://panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/54489 | 2023-08-10T21:20:55Z | 2023-08-10T21:21:28Z | 2023-08-10T21:21:28Z | 2023-08-10T21:21:29Z |
DOC: Prepare release notes for 2.1.0rc0 and remove 2.0.4 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index f22fd2a79b50e..fc225d0f44497 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,7 +24,6 @@ Version 2.0
.. toctree::
:maxdepth: 2
- v2.0.4
v2.0.3
v2.0.2
v2.0.1
diff --git a/doc/source/... | - [ ] 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/54488 | 2023-08-10T21:05:41Z | 2023-08-11T07:30:40Z | 2023-08-11T07:30:40Z | 2023-08-11T07:30:41Z |
CI: Another shot at fixing macOS wheel builds | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 69e6da8309b24..4330c25034e4f 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -14,8 +14,8 @@ name: Wheel builder
on:
schedule:
- # 3:27 UTC every day
- - cron: "27 3 * * *"
+ # 8:50 UTC every day
... | - [ ] 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/54487 | 2023-08-10T20:14:22Z | 2023-08-10T20:48:27Z | 2023-08-10T20:48:27Z | 2023-08-10T20:49:50Z |
Changed read_csv type hint for na_values and added tests Issue#53813 | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 7fad2b779ab28..8f37721541fa0 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -65,6 +65,7 @@
if TYPE_CHECKING:
from collections.abc import (
Hashable,
+ Iterable,
Mapping,
... | - [ ] closes #53813
- [ ] [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/54486 | 2023-08-10T19:30:11Z | 2023-08-20T22:12:57Z | 2023-08-20T22:12:57Z | 2023-08-20T22:13:10Z |
Update whatsnew | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5477694941125..ca464d3bec35f 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -181,8 +181,8 @@ pandas has reimplemented :meth:`DataFrame.stack`. To use the new implementation,
The previous implementa... | - [ ] 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/54484 | 2023-08-10T15:27:59Z | 2023-08-10T17:22:53Z | 2023-08-10T17:22:53Z | 2023-08-10T20:44:11Z |
Remove GIL from ``take_2d_axis_0`` | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 2a3858674af9e..88c3abba506a3 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -121,21 +121,30 @@ def take_2d_axis0_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values,
... | - [ ] 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/54483 | 2023-08-10T13:27:58Z | 2023-08-11T07:25:36Z | 2023-08-11T07:25:36Z | 2023-08-11T13:08:11Z |
CLN: Cython 3 cleanups | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 0b6ea58f987d4..ed251c401c277 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -998,8 +998,7 @@ def rank_1d(
N = len(values)
if labels is not None:
- # TODO(cython3): cast won't be necessary (#2992)
- assert <... | - [ ] 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/54482 | 2023-08-10T12:06:19Z | 2023-08-10T15:33:30Z | 2023-08-10T15:33:30Z | 2023-08-18T07:29:19Z |
BUG: interval_range with float step | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5cafaa5759a5b..d7f7facde5d76 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -695,6 +695,7 @@ Interval
^^^^^^^^
- :meth:`pd.IntervalIndex.get_indexer` and :meth:`pd.IntervalIndex.get_indexer_nonuniqu... | - [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 an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/54477 | 2023-08-09T22:00:50Z | 2023-08-10T20:47:50Z | 2023-08-10T20:47:50Z | 2023-08-10T20:49:55Z |
Add whatsnew for arrow | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5cafaa5759a5b..50c04815ecfb2 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -14,6 +14,46 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
+.. _whatsnew_210.enhancements.pyarrow_dep... | - [ ] 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/54476 | 2023-08-09T20:15:25Z | 2023-08-09T22:03:53Z | 2023-08-09T22:03:53Z | 2023-08-10T07:42:42Z |
readme file modified | diff --git a/README.md b/README.md
index 8ea473beb107e..0cbd733cb8bf5 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ doing practical, **real world** data analysis in Python. Additionally, it has
the broader goal of becoming **the most powerful and flexible open source data
analysis / manipulation tool avail... | Updated few lines of readme.md file | https://api.github.com/repos/pandas-dev/pandas/pulls/54474 | 2023-08-09T19:36:36Z | 2023-08-09T20:12:30Z | null | 2023-08-09T20:12:30Z |
CI/TST: Run tests in development mode with EncodingWarnings | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 54e41ea449848..48ef21686a26f 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... | * Will catch errors on file handle `close`
* Enables `EncodingWarning` for the upcoming https://peps.python.org/pep-0597/ | https://api.github.com/repos/pandas-dev/pandas/pulls/54472 | 2023-08-09T16:43:00Z | 2023-08-10T20:46:11Z | 2023-08-10T20:46:11Z | 2023-08-10T20:49:49Z |
CI: Try purging on macOS | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index c2dcef0b2032c..69e6da8309b24 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -123,14 +123,12 @@ jobs:
with:
python-version: '3.11'
- # Work around https://github.com/actions/cache... | - [ ] 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/54470 | 2023-08-09T14:11:55Z | 2023-08-09T15:47:19Z | 2023-08-09T15:47:19Z | 2023-08-09T15:47:20Z |
DOC: Adds the PDEP vote issue template | diff --git a/.github/ISSUE_TEMPLATE/pdep_vote.yaml b/.github/ISSUE_TEMPLATE/pdep_vote.yaml
new file mode 100644
index 0000000000000..b047ae8bb0c58
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/pdep_vote.yaml
@@ -0,0 +1,77 @@
+name: PDEP Vote
+description: Call for a vote on a PDEP
+title: "VOTE: "
+labels: [VOTE]
+
+body:... | This template will facilitate changes currently proposed in #53576.
Recommend merging it after #53576 is approved. Opened now to facilitate ongoing PDEP voting work.
Also adding PDEP to rst capitalization exception list. | https://api.github.com/repos/pandas-dev/pandas/pulls/54469 | 2023-08-09T13:45:44Z | 2024-04-16T17:17:19Z | null | 2024-04-16T17:17:20Z |
ENH: Remove NINF and PINF usages | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index b0dac23c3b8e2..425c5ade2e2d4 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -51,8 +51,8 @@ cdef extern from "pandas/skiplist.h":
int skiplist_min_rank(skiplist_t*, double)... | Hi!
Due to NumPy's main namespace being changed in https://github.com/numpy/numpy/pull/24357, here I update warning imports. | https://api.github.com/repos/pandas-dev/pandas/pulls/54468 | 2023-08-09T11:47:11Z | 2023-08-09T15:18:15Z | 2023-08-09T15:18:15Z | 2023-08-09T15:21:36Z |
DOC: Simplify reshaping.rst | diff --git a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst
index c7e564f94cdc6..6a0b59b26350c 100644
--- a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst
+++ b/doc/source/getting_started/intro_tutor... | * Added intro section and reorganized sections corresponding to the intro
* Added more sphinx references
* Simplified language
* Remove sections covered in the docstrings or that were outdated | https://api.github.com/repos/pandas-dev/pandas/pulls/54465 | 2023-08-08T23:56:56Z | 2023-08-10T22:23:56Z | 2023-08-10T22:23:56Z | 2023-08-10T22:23:58Z |
TST: More explicit test patterns | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index 01217f87b6359..34b526bf97408 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -414,8 +414,7 @@ def test_dti_cmp_datetimelike(self, other, tz_naive_fixture... | * For commented out code, use xfails or uncomment working behavior
* Instead of `return`, use `pytest.skip` | https://api.github.com/repos/pandas-dev/pandas/pulls/54463 | 2023-08-08T19:50:16Z | 2023-08-10T20:52:14Z | 2023-08-10T20:52:14Z | 2023-08-10T20:52:49Z |
Fixed #54454 issue | diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst
index a9c9bd2b6507f..efffb2059cd95 100644
--- a/doc/_templates/autosummary/class.rst
+++ b/doc/_templates/autosummary/class.rst
@@ -31,3 +31,11 @@
{% endif %}
{% endblock %}
+
+{{ fullname }}
+{{ underline }}
+
+.. currentmodul... | DOC: Deleted class_without_autosummary.rst and assigning all clases in class.rst file. | https://api.github.com/repos/pandas-dev/pandas/pulls/54461 | 2023-08-08T14:16:18Z | 2023-08-08T16:32:03Z | null | 2023-08-08T16:32:04Z |
Fixes grouped rank bug with nullable types. | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index d422fb1be9fdf..51b4c4f297b07 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -789,6 +789,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`.DataFrameGroupBy.idxmin`, :m... | - [x] closes #54206
- [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/54460 | 2023-08-08T13:13:16Z | 2023-09-22T02:30:52Z | 2023-09-22T02:30:52Z | 2023-09-22T02:31:01Z |
TYP: ExtensionDtype.name/type as ClassVar | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 43344f04085ae..04e6f0a0bcdde 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -3,6 +3,7 @@
import numbers
from typing import (
TYPE_CHECKING,
+ ClassVar,
cast,
)
@@ -60,7 +61,7 @@ class Bo... | xref #51736
ExtensionDtype.name/type is sometimes a property and sometimes a class variable. Going either way would require non-typing changes. I believe the ClassVar approach is used more frequently and also mandated by some of the register methods.
If ClassVar is the main way of defining type/name, let's annota... | https://api.github.com/repos/pandas-dev/pandas/pulls/54458 | 2023-08-08T02:15:18Z | 2023-08-23T00:20:15Z | 2023-08-23T00:20:15Z | 2023-09-19T15:24:48Z |
Clean up autosummary usage | diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst
index a9c9bd2b6507f..79c2e37b0192f 100644
--- a/doc/_templates/autosummary/class.rst
+++ b/doc/_templates/autosummary/class.rst
@@ -1,33 +1,32 @@
-{% extends "!autosummary/class.rst" %}
+{{ fullname | escape | underline}}
-{% blo... | This PR stops numpydoc from producing the summary tables for a class's methods and attributes, preferring to instead rely on autosummary. This approach allows using a class.rst template that isn't relying on hacks to get autosummary to still generate stub pages. In a follow-up PR we can look into removing more of those... | https://api.github.com/repos/pandas-dev/pandas/pulls/54457 | 2023-08-08T01:44:01Z | 2023-08-18T17:00:31Z | 2023-08-18T17:00:31Z | 2023-08-18T17:00:39Z |
DOC: Simplify 10min.rst | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 51168f74c2657..1a891dca839e3 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -32,14 +32,14 @@ Object creation
See the :ref:`Intro to data structures section <dsintro>`.
Creating a :class:`Serie... | * Add more sphinx references
* Simplified examples and language
* Fixes a local build issue with `plt.show` | https://api.github.com/repos/pandas-dev/pandas/pulls/54456 | 2023-08-07T23:50:58Z | 2023-08-08T16:36:18Z | 2023-08-08T16:36:18Z | 2023-08-08T16:36:21Z |
REF: update decimal tests to TestExtension | diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py
index 4d05a5a799eac..baa056550624f 100644
--- a/pandas/tests/extension/decimal/test_decimal.py
+++ b/pandas/tests/extension/decimal/test_decimal.py
@@ -65,35 +65,71 @@ def data_for_grouping():
return Decima... | - [ ] 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/54455 | 2023-08-07T23:04:58Z | 2023-08-08T01:19:42Z | 2023-08-08T01:19:41Z | 2023-08-09T07:46:37Z |
BLD: Add Cython Coverage option | diff --git a/meson.build b/meson.build
index 06623a305ab54..d038e4996251f 100644
--- a/meson.build
+++ b/meson.build
@@ -27,6 +27,7 @@ add_project_arguments('-DNPY_NO_DEPRECATED_API=0', language : 'cpp')
add_project_arguments('-DNPY_TARGET_VERSION=NPY_1_21_API_VERSION', language : 'c')
add_project_arguments('-DNPY_TA... | - [ ] 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/54453 | 2023-08-07T20:52:52Z | 2024-02-28T17:57:54Z | null | 2024-02-28T17:57:54Z |
BUG: Fixes #54617 Dataframe to html for empty array with complex dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index a0c5b4523f782..fb016defc0c56 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -731,6 +731,7 @@ I/O
- Bug in :func:`read_sql` when reading multiple timezone aware columns with the same column name (:iss... | - [x] closes #54167
- [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/54451 | 2023-08-07T16:45:46Z | 2023-08-08T19:53:16Z | 2023-08-08T19:53:16Z | 2023-08-08T19:55:03Z |
[pre-commit.ci] pre-commit autoupdate | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 63821fd49e8e3..90627216a1354 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,11 +20,11 @@ ci:
repos:
- repo: https://github.com/hauntsaninja/black-pre-commit-mirror
# black compiled with mypyc
- rev: 23.3.0
+ r... | <!--pre-commit.ci start-->
updates:
- [github.com/hauntsaninja/black-pre-commit-mirror: 23.3.0 → 23.7.0](https://github.com/hauntsaninja/black-pre-commit-mirror/compare/23.3.0...23.7.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.277 → v0.0.282](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.277...v0.0.282... | https://api.github.com/repos/pandas-dev/pandas/pulls/54450 | 2023-08-07T16:42:59Z | 2023-08-07T20:17:50Z | 2023-08-07T20:17:50Z | 2023-08-07T20:17:53Z |
DOC Update Documentation in "missing_data" 54028 | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 27d7e63f72111..9d645c185d3b5 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -91,6 +91,8 @@ See :ref:`integer_na` for more.
Datetimes
---------
+.. note::
+ If you... | Closes #54028 DOC: Add NAType and NaTType references in docs for pandas.api.typing
Adds reference notes for importing NaType and NaTType
| https://api.github.com/repos/pandas-dev/pandas/pulls/54448 | 2023-08-07T15:36:10Z | 2023-08-08T16:37:45Z | 2023-08-08T16:37:45Z | 2023-08-08T16:37:52Z |
test_map: use data_missing to exercise na_action | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index dea43e53ffc40..93c8e873e0bc3 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -95,9 +95,9 @@ def test_apply_simple_series(self, data):
assert isinstance(result, ... | Change `data` to `data_missing` to exercise the `na_action` parameter.
- [ ] 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
- [x] All [cod... | https://api.github.com/repos/pandas-dev/pandas/pulls/54446 | 2023-08-07T13:04:38Z | 2023-08-09T15:32:58Z | 2023-08-09T15:32:58Z | 2023-08-09T15:32:59Z |
ENH: Implement more efficient merge for arrow strings | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8b258b40f8ac5..9b3bb90b629e7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -588,6 +588,7 @@ Performance improvements
- Performance improvement in :class:`Series` reductions (:issue:`52341`)
- Perfo... | - [ ] 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/54443 | 2023-08-06T22:47:41Z | 2023-08-08T23:46:14Z | 2023-08-08T23:46:14Z | 2023-08-15T17:49:07Z |
Enable many tests for complex numbers | Add `complex` to `test_numpy.py` and add `complex128` to `test_numeric.py`. Then fix the many small problems revealed by the test suite.
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#wri... | https://api.github.com/repos/pandas-dev/pandas/pulls/54441 | 2023-08-06T17:52:38Z | 2023-08-24T09:33:32Z | null | 2023-08-24T09:35:49Z | |
REF: move misplaced tests | diff --git a/pandas/tests/extension/base/getitem.py b/pandas/tests/extension/base/getitem.py
index faa38a7c03447..a7c05c886a3ea 100644
--- a/pandas/tests/extension/base/getitem.py
+++ b/pandas/tests/extension/base/getitem.py
@@ -468,23 +468,3 @@ def test_item(self, data):
with pytest.raises(ValueError, match... | - [ ] 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/54440 | 2023-08-06T17:19:51Z | 2023-08-06T19:39:03Z | 2023-08-06T19:39:03Z | 2023-08-06T20:09:21Z |
REF: use updated patterns in pyarrow TestReduce | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 03c12850b1d23..dd1ff925adf5f 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -412,50 +412,25 @@ def test_accumulate_series(self, data, all_numeric_accumulations, skipna, reques
... | - [ ] 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/54438 | 2023-08-06T14:40:37Z | 2023-08-07T16:42:36Z | 2023-08-07T16:42:36Z | 2023-08-07T16:51:13Z |
CI: Try to fix the tar issue on macOS | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 4e3544d5e443a..c2dcef0b2032c 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -123,6 +123,15 @@ jobs:
with:
python-version: '3.11'
+ # Work around https://github.com/actions/cache/... | - [ ] 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/54437 | 2023-08-06T14:06:19Z | 2023-08-06T18:00:51Z | 2023-08-06T18:00:51Z | 2023-08-06T18:02:58Z |
REF: update to use extension test patterns | diff --git a/pandas/tests/extension/base/reduce.py b/pandas/tests/extension/base/reduce.py
index 3d2870191ff6b..dec1b27bac094 100644
--- a/pandas/tests/extension/base/reduce.py
+++ b/pandas/tests/extension/base/reduce.py
@@ -23,7 +23,15 @@ def check_reduce(self, s, op_name, skipna):
# that the results match. ... | - [ ] 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/54436 | 2023-08-05T23:45:59Z | 2023-08-06T10:14:33Z | 2023-08-06T10:14:33Z | 2023-08-06T14:36:45Z |
BUG: Fix for pandas-dev#54167 | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index a7a6f481ebdde..9fe8cbfa159c6 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -1960,6 +1960,8 @@ def _trim_zeros_complex(str_complexes: np.ndarray, decimal: str = ".") -> list[s
# in the array
n = len(str... | - [x] closes #54167
- [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/54435 | 2023-08-05T22:14:17Z | 2023-08-07T16:34:41Z | null | 2023-08-07T16:34:49Z |
REF: simplify fixtures | diff --git a/pandas/tests/extension/conftest.py b/pandas/tests/extension/conftest.py
index 9e1b44d3bac02..7b7945b15ed83 100644
--- a/pandas/tests/extension/conftest.py
+++ b/pandas/tests/extension/conftest.py
@@ -26,12 +26,17 @@ def data():
@pytest.fixture
-def data_for_twos():
+def data_for_twos(dtype):
"""
... | I expect the na_value fixture is unnecessary altogether, saving that for another pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/54434 | 2023-08-05T21:35:44Z | 2023-08-06T10:16:04Z | 2023-08-06T10:16:04Z | 2023-08-06T14:37:38Z |
xfail EA tests when EA data is unhashable | diff --git a/pandas/tests/extension/base/groupby.py b/pandas/tests/extension/base/groupby.py
index 882855f59f28d..4095689142f26 100644
--- a/pandas/tests/extension/base/groupby.py
+++ b/pandas/tests/extension/base/groupby.py
@@ -111,6 +111,11 @@ def test_groupby_extension_no_sort(self, data_for_grouping):
tm.a... | The `uncertainties` datatype is not hashable. It's wrapper-style implementation also leads to confusion when testing whether AffineScalarFunc objects are instances of typing.Hashable (`isinstance` says True, but `hash` raises `TypeError`). These changes skip specific groupby, factorize, and hashing tests but otherwis... | https://api.github.com/repos/pandas-dev/pandas/pulls/54433 | 2023-08-05T20:06:41Z | 2023-08-17T00:55:45Z | null | 2023-08-17T00:55:45Z |
REF: implement TestExtension | diff --git a/pandas/tests/extension/base/__init__.py b/pandas/tests/extension/base/__init__.py
index 7d76838998540..7cd55b7240d54 100644
--- a/pandas/tests/extension/base/__init__.py
+++ b/pandas/tests/extension/base/__init__.py
@@ -34,33 +34,61 @@ class TestMyDtype(BaseDtypeTests):
wherever the test requires it. You'... | - [x] closes #54420 (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/54432 | 2023-08-05T19:46:28Z | 2023-08-07T20:22:04Z | 2023-08-07T20:22:04Z | 2023-08-07T20:53:59Z |
ENH: Implement arrow string option for various I/O methods | diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py
index c37ad563df8ef..daeb135f5bcf7 100644
--- a/pandas/_config/__init__.py
+++ b/pandas/_config/__init__.py
@@ -38,3 +38,8 @@ def using_copy_on_write() -> bool:
def using_nullable_dtypes() -> bool:
_mode_options = _global_config["mode"]
ret... | - [ ] 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/54431 | 2023-08-05T17:46:05Z | 2023-08-10T20:52:24Z | 2023-08-10T20:52:24Z | 2023-08-10T20:55:53Z |
ENH: allow opt-in to inferring pyarrow strings | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index c3fbd3ee4853e..924cf360a35cc 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1299,6 +1299,7 @@ cdef class Seen:
bint datetimetz_ # seen_datetimetz
bint period_ # seen_period
bint interval_ # s... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/54430 | 2023-08-05T17:31:44Z | 2023-08-09T16:34:41Z | 2023-08-09T16:34:41Z | 2023-09-30T21:24:28Z |
REF: move misplaced tests | diff --git a/pandas/tests/arrays/categorical/test_astype.py b/pandas/tests/arrays/categorical/test_astype.py
index c65cf5bf58d60..d2f9f6dffab49 100644
--- a/pandas/tests/arrays/categorical/test_astype.py
+++ b/pandas/tests/arrays/categorical/test_astype.py
@@ -4,7 +4,11 @@
from pandas import (
Categorical,
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/54429 | 2023-08-05T16:54:51Z | 2023-08-05T18:35:15Z | 2023-08-05T18:35:15Z | 2023-08-05T19:07:52Z |
BUG: fix AttributeError raised with pd.concat between a None and timezone-aware Timestamp | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9eb5bbc8f07d5..e3d17977ad26c 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -301,6 +301,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :func:`concat` raising ``AttributeError`` when concaten... | Take over #53042. I updated the test. It should produce a FutureWarning.
- [x] closes #52093 (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 [... | https://api.github.com/repos/pandas-dev/pandas/pulls/54428 | 2023-08-05T15:27:21Z | 2023-10-23T22:54:03Z | 2023-10-23T22:54:03Z | 2023-10-24T02:19:41Z |
DOC: add missing parameters to offsets classes: Second, Minute, Hour and Day | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 028e79774607d..958fe1181d309 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1089,6 +1089,35 @@ cdef class Tick(SingleConstructorOffset):
cdef class Day(Tick):
+ """
+ Offset ``n`` days... | - [ x] partially completes #52431
- [ ] [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-... | https://api.github.com/repos/pandas-dev/pandas/pulls/54427 | 2023-08-05T13:09:01Z | 2023-08-09T15:35:48Z | 2023-08-09T15:35:48Z | 2023-08-09T16:30:29Z |
Update conftest.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 9cb29903dc156..f756da82157b8 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1765,8 +1765,8 @@ def any_numeric_dtype(request):
("datetime64", [np.datetime64("2013-01-01"), np.nan, np.datetime64("2018-01-01")]),
("datetime", [Timestamp("20... | complex numbers now appear to work for GH #23554.
There are no examples as to how to update the whatsnew documentation for conftest.py, so I don't know whether or how to add an entry for this change.
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pyda... | https://api.github.com/repos/pandas-dev/pandas/pulls/54426 | 2023-08-05T10:01:42Z | 2023-08-05T18:32:32Z | 2023-08-05T18:32:32Z | 2023-08-05T18:32:40Z |
#53718 Added copy_on_write effects on pd.Dataframe.copy() method | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 8a3a105749800..2551436a6f4d0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6584,6 +6584,13 @@ def copy(self, deep: bool_t | None = True) -> Self:
:ref:`gotchas <gotchas.thread-safety>` when copying in a threading
... | - [x] closes #53718
- [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/54425 | 2023-08-05T07:42:14Z | 2023-08-10T18:29:42Z | 2023-08-10T18:29:42Z | 2023-08-10T18:29:51Z |
REF: de-duplicate _compare_other | diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py
index 658018a7ac740..1160c781b4827 100644
--- a/pandas/tests/extension/base/ops.py
+++ b/pandas/tests/extension/base/ops.py
@@ -195,6 +195,7 @@ def _compare_other(self, ser: pd.Series, data, op, other):
# comparison should... | - [ ] 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/54424 | 2023-08-05T02:21:35Z | 2023-08-05T18:33:39Z | 2023-08-05T18:33:39Z | 2023-08-05T19:08:37Z |
TYP: enable reportGeneralTypeIssues for more files | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dc1ae4bd99612..63821fd49e8e3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -138,7 +138,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.... | Most changes are in io/excel but also in files where pyright had one or two violates to get those files off the list. | https://api.github.com/repos/pandas-dev/pandas/pulls/54423 | 2023-08-05T01:33:41Z | 2023-08-07T17:55:37Z | 2023-08-07T17:55:36Z | 2023-08-09T15:08:11Z |
REF: share BooleanArray tests with MaskedArray | diff --git a/pandas/tests/extension/test_boolean.py b/pandas/tests/extension/test_boolean.py
deleted file mode 100644
index 12b4fd30c2dcf..0000000000000
--- a/pandas/tests/extension/test_boolean.py
+++ /dev/null
@@ -1,274 +0,0 @@
-"""
-This file contains a minimal set of tests for compliance with the extension
-array i... | mirror the layout in the pyarrow tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/54422 | 2023-08-04T23:01:20Z | 2023-08-05T20:37:08Z | 2023-08-05T20:37:08Z | 2023-08-05T23:31:07Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.