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 |
|---|---|---|---|---|---|---|---|
DEPR: DFGB.dtypes, rolling axis, Categorical.to_list | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 63c85c43f91e5..e93ca56836595 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -100,9 +100,12 @@ Deprecations
- Deprecated :meth:`DataFrame._data` and :meth:`Series._data`, use public APIs instead (:iss... | - [ ] <s>closes #51254</s>Reverted that part
- [x] closes #51045
- [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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/51997 | 2023-03-15T19:21:21Z | 2023-03-21T17:10:29Z | 2023-03-21T17:10:29Z | 2023-03-21T17:39:44Z |
Backport PR #51976 on branch 2.0.x (BUG: read_csv for arrow with mismatching dtypes does not work) | diff --git a/pandas/io/parsers/c_parser_wrapper.py b/pandas/io/parsers/c_parser_wrapper.py
index 3cf8207717284..0e8a711e615fe 100644
--- a/pandas/io/parsers/c_parser_wrapper.py
+++ b/pandas/io/parsers/c_parser_wrapper.py
@@ -29,8 +29,10 @@
is_categorical_dtype,
pandas_dtype,
)
-from pandas.core.dtypes.concat... | #51976
| https://api.github.com/repos/pandas-dev/pandas/pulls/51995 | 2023-03-15T18:06:55Z | 2023-03-15T19:54:22Z | 2023-03-15T19:54:22Z | 2023-03-15T20:03:30Z |
Backport PR #51971 on branch 2.0.x (BLD: Try g0 on macos?) | diff --git a/pyproject.toml b/pyproject.toml
index 5e5da840c2835..0c750d60fbb67 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -143,7 +143,7 @@ parentdir_prefix = "pandas-"
[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
build-verbosity = "3"
-environment = { LD... | Backport PR #51971: BLD: Try g0 on macos? | https://api.github.com/repos/pandas-dev/pandas/pulls/51993 | 2023-03-15T17:12:22Z | 2023-03-15T19:17:04Z | 2023-03-15T19:17:04Z | 2023-03-15T19:17:04Z |
CI: Unpin matplotlib | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index f159b71a1b48c..83b476363e9e3 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -32,7 +32,7 @@ dependencies:
- gcsfs>=2022.05.0
- jinja2>=3.1.2
- lxml>=4.8.0
- - matplotlib>=3.6.1, <3.7.0
+ - matplotlib>=3.6.1
- nu... | - [ ] closes #51394 (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/51990 | 2023-03-15T15:52:58Z | 2023-04-23T10:02:53Z | 2023-04-23T10:02:53Z | 2023-04-23T10:44:56Z |
Backport PR #51985 on branch 2.0.x (BUG: Add numpy_nullable support to arrow csv parser) | diff --git a/pandas/io/parsers/arrow_parser_wrapper.py b/pandas/io/parsers/arrow_parser_wrapper.py
index bf9e4e01ccd29..df85ea3baf27a 100644
--- a/pandas/io/parsers/arrow_parser_wrapper.py
+++ b/pandas/io/parsers/arrow_parser_wrapper.py
@@ -8,6 +8,7 @@
import pandas as pd
from pandas import DataFrame
+from pandas.i... | Backport PR #51985: BUG: Add numpy_nullable support to arrow csv parser | https://api.github.com/repos/pandas-dev/pandas/pulls/51989 | 2023-03-15T15:35:36Z | 2023-03-15T18:08:38Z | 2023-03-15T18:08:38Z | 2023-03-15T18:08:38Z |
DOC: Remove whatsnew after backport | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5ee61d3df1062..48498d696ae3e 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -89,7 +89,6 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
Other API changes
^^^^^^... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51988 | 2023-03-15T15:32:18Z | 2023-03-16T00:06:09Z | 2023-03-16T00:06:09Z | 2023-03-16T00:06:44Z |
Backport PR #51643 on branch 2.0.x (API: ArrowExtensionArray._cmp_method to return pyarrow.bool_ type) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 977257160f7f7..763da1c6c018a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -765,6 +765,7 @@ Other API changes
- Division by zero with :class:`ArrowDtype` dtypes returns ``-inf``, ``nan``, or ``inf``... | #51643
- [x] closes #51980 | https://api.github.com/repos/pandas-dev/pandas/pulls/51987 | 2023-03-15T15:31:21Z | 2023-03-16T02:18:19Z | 2023-03-16T02:18:19Z | 2023-03-16T09:17:34Z |
Backport PR #51926 on branch 2.0.x (CoW: change ChainedAssignmentError exception to a warning) | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index 94dde9a6ffd70..b1d9166782128 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -114,10 +114,11 @@ two subsequent indexing operations, e.g.
The column ``foo`` is updat... | Backport PR #51926: CoW: change ChainedAssignmentError exception to a warning | https://api.github.com/repos/pandas-dev/pandas/pulls/51986 | 2023-03-15T15:29:46Z | 2023-03-15T17:08:27Z | 2023-03-15T17:08:27Z | 2023-03-15T17:08:28Z |
BUG: Add numpy_nullable support to arrow csv parser | diff --git a/pandas/io/parsers/arrow_parser_wrapper.py b/pandas/io/parsers/arrow_parser_wrapper.py
index b98a31e3f940b..30fc65dca7ca1 100644
--- a/pandas/io/parsers/arrow_parser_wrapper.py
+++ b/pandas/io/parsers/arrow_parser_wrapper.py
@@ -9,6 +9,7 @@
import pandas as pd
from pandas import DataFrame
+from pandas.i... | - [x] closes #51852 (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/51985 | 2023-03-15T12:58:45Z | 2023-03-15T15:35:27Z | 2023-03-15T15:35:27Z | 2023-03-15T15:51:06Z |
Revert "CI: parallel build follow up" | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index 11601564c5d79..23bb988ef4d73 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -16,5 +16,7 @@ runs:
python -m pip install -e . --no-build-isolation --no-use-p... | Reverts pandas-dev/pandas#51911
have to revert this as well to get windows builds green again | https://api.github.com/repos/pandas-dev/pandas/pulls/51984 | 2023-03-15T10:29:30Z | 2023-03-15T12:29:42Z | 2023-03-15T12:29:42Z | 2023-03-15T13:35:41Z |
Backport PR #51974 on branch 2.0.x (BUG: astype_view check raising on minimum versions build) | diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py
index 7ae5993c857e2..87a36aed418f9 100644
--- a/pandas/core/dtypes/astype.py
+++ b/pandas/core/dtypes/astype.py
@@ -263,6 +263,9 @@ def astype_is_view(dtype: DtypeObj, new_dtype: DtypeObj) -> bool:
-------
True if new data is a view or n... | Backport PR #51974: BUG: astype_view check raising on minimum versions build | https://api.github.com/repos/pandas-dev/pandas/pulls/51983 | 2023-03-15T10:26:02Z | 2023-03-15T12:30:13Z | 2023-03-15T12:30:13Z | 2023-03-15T12:30:13Z |
integer array creation test GH#31104 | diff --git a/pandas/tests/arrays/integer/test_construction.py b/pandas/tests/arrays/integer/test_construction.py
index 43ef46ddfb581..48f247fb296ca 100644
--- a/pandas/tests/arrays/integer/test_construction.py
+++ b/pandas/tests/arrays/integer/test_construction.py
@@ -234,3 +234,10 @@ def test_to_integer_array(values, ... |
- [ ] closes #31104 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/... | https://api.github.com/repos/pandas-dev/pandas/pulls/51982 | 2023-03-15T05:56:11Z | 2023-03-15T15:33:16Z | 2023-03-15T15:33:16Z | 2023-03-15T17:56:10Z |
CLN: Refactor validate_min_versions_in_sync.py | diff --git a/scripts/validate_min_versions_in_sync.py b/scripts/validate_min_versions_in_sync.py
index 9edce3a00a502..dfd6ee5ee0b1d 100755
--- a/scripts/validate_min_versions_in_sync.py
+++ b/scripts/validate_min_versions_in_sync.py
@@ -37,10 +37,7 @@
YAML_PATH = pathlib.Path("ci/deps")
ENV_PATH = pathlib.Path("envir... | - Follow up pull request for #51189
| https://api.github.com/repos/pandas-dev/pandas/pulls/51981 | 2023-03-15T04:32:53Z | 2023-03-17T17:42:41Z | 2023-03-17T17:42:41Z | 2023-03-17T17:42:49Z |
BUG: map method on datetimelikes should not work arraywise | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5ee61d3df1062..99fa9c0ca75c6 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -137,13 +137,13 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :meth:`Timestamp.round` with values close to the implem... | - [x] closes #51977
- [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/51979 | 2023-03-15T03:01:49Z | 2023-03-17T17:55:43Z | 2023-03-17T17:55:43Z | 2023-03-17T18:08:17Z |
BUG/API: preserve non-nano in factorize/unique | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index c927dc2ac4a96..2d499b6e3dd4a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -767,6 +767,7 @@ Other API changes
- Division by zero with :class:`ArrowDtype` dtypes returns ``-inf``, ``nan``, or ``inf``... | - [ ] closes #51961 (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/51978 | 2023-03-15T02:32:48Z | 2023-03-15T21:10:55Z | 2023-03-15T21:10:54Z | 2023-03-16T00:02:46Z |
BUG: read_csv for arrow with mismatching dtypes does not work | diff --git a/pandas/io/parsers/c_parser_wrapper.py b/pandas/io/parsers/c_parser_wrapper.py
index 4b8bc5c402157..3d3e343050421 100644
--- a/pandas/io/parsers/c_parser_wrapper.py
+++ b/pandas/io/parsers/c_parser_wrapper.py
@@ -23,8 +23,10 @@
is_categorical_dtype,
pandas_dtype,
)
-from pandas.core.dtypes.concat... | - [x] closes #51876 (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/51976 | 2023-03-15T01:12:14Z | 2023-03-15T17:58:02Z | 2023-03-15T17:58:02Z | 2023-03-15T18:07:28Z |
Grouper documentation update | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index a6d5b59d7c5d0..22ea1a665ee44 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -83,7 +83,8 @@ class Grouper:
sort : bool, default to False
Whether to sort the resulting labels.
closed ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/51975 | 2023-03-14T23:48:19Z | 2023-04-17T17:14:11Z | null | 2023-04-17T17:14:12Z |
BUG: astype_view check raising on minimum versions build | diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py
index cd91f06d7ff04..09e338d205bbc 100644
--- a/pandas/core/dtypes/astype.py
+++ b/pandas/core/dtypes/astype.py
@@ -263,6 +263,9 @@ def astype_is_view(dtype: DtypeObj, new_dtype: DtypeObj) -> bool:
-------
True if new data is a view or n... | - [ ] 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/51974 | 2023-03-14T22:30:54Z | 2023-03-15T10:25:15Z | 2023-03-15T10:25:15Z | 2023-03-15T10:25:19Z |
CLN: Assorted | diff --git a/.gitignore b/.gitignore
index 07b1f056d511b..88ed58b70925d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,6 +53,9 @@ dist
# type checkers
pandas/py.typed
+# pyenv
+.python-version
+
# tox testing tool
.tox
# rope
diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/... | - [ ] 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/51973 | 2023-03-14T22:11:38Z | 2023-03-17T22:01:05Z | 2023-03-17T22:01:05Z | 2023-03-18T00:05:42Z |
BLD: Try g0 on macos? | diff --git a/pyproject.toml b/pyproject.toml
index 90e5292aaf913..d5e72c55afe46 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -143,7 +143,7 @@ parentdir_prefix = "pandas-"
[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
build-verbosity = "3"
-environment = { LD... | - [ ] closes #51900 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/51971 | 2023-03-14T21:44:14Z | 2023-03-15T17:12:13Z | 2023-03-15T17:12:13Z | 2023-03-15T17:24:06Z |
REF/TYP: avoid need for NDFrameTb | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 9d64842373573..3d9872c55ca2d 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -131,9 +131,6 @@
# Series is passed into a function, a Series is always returned and if a DataFrame is
# passed in, a DataFrame is always returned.
NDFrameT = TypeVar("NDFra... | We have a method align_as_utc that implemented at the module-level instead of as a method, requiring some annotation gymnastics. This refactors so that it is only used in one place instead of two, then inlines the function inside `align`. | https://api.github.com/repos/pandas-dev/pandas/pulls/51969 | 2023-03-14T19:03:51Z | 2023-03-15T16:11:51Z | 2023-03-15T16:11:51Z | 2023-03-15T16:22:30Z |
DEPR: method, limit, fill_axis keywords in align | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5ee61d3df1062..e63d9c7b85a55 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -102,6 +102,7 @@ Deprecations
- Deprecated ``axis=1`` in :meth:`DataFrame.groupby` and in :class:`Grouper` constructor, do ... | - [ ] 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/51968 | 2023-03-14T18:54:35Z | 2023-03-16T00:14:32Z | 2023-03-16T00:14:32Z | 2023-03-16T00:51:53Z |
Series.plot doesn't allow color=None | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 410a324be829e..2434da4123e9c 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -195,7 +195,7 @@ Period
Plotting
^^^^^^^^
--
+- Bug in :meth:`Series.plot` when invoked with ``color=None`` (:issue:`519... | - [X] closes #51953
- [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/51967 | 2023-03-14T17:20:09Z | 2023-03-15T20:05:25Z | 2023-03-15T20:05:25Z | 2023-03-16T01:03:02Z |
CoW: __array__ not recognizing ea dtypes | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bb3573d148e98..2d8627722280e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -103,6 +103,7 @@
validate_inclusive,
)
+from pandas.core.dtypes.astype import astype_is_view
from pandas.core.dtypes.common import (
ensure_ob... | - [ ] 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/51966 | 2023-03-14T15:32:09Z | 2023-04-02T14:11:13Z | 2023-04-02T14:11:13Z | 2023-04-02T14:11:52Z |
Backport PR #51871 on branch 2.0.x (ERR: Check that dtype_backend is valid) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 495f151dd47eb..9b426dd2448e2 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -94,6 +94,7 @@
from pandas.util._decorators import doc
from pandas.util._exceptions import find_stack_level
from pandas.util._validators import (
+ ch... | - [ ] 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/51964 | 2023-03-14T14:06:51Z | 2023-03-14T16:43:03Z | 2023-03-14T16:43:03Z | 2023-03-15T20:03:53Z |
Backport PR #51944 on branch 2.0.x (BUG: CoW not tracking references when indexing midx with slice) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 0fae6dca08aae..6650077355615 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -206,6 +206,9 @@ Copy-on-Write improvements
- Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect... | Backport PR #51944: BUG: CoW not tracking references when indexing midx with slice | https://api.github.com/repos/pandas-dev/pandas/pulls/51963 | 2023-03-14T13:15:41Z | 2023-03-14T16:42:52Z | 2023-03-14T16:42:52Z | 2023-03-14T16:42:53Z |
Backport PR #51945 on branch 2.0.x (BUG: swapaxes creating result with read_only array) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 495f151dd47eb..f97ec256a1c5d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -748,7 +748,7 @@ def swapaxes(
mapping = {i: j, j: i}
new_axes = [self._get_axis(mapping.get(k, k)) for k in range(self._AXIS_LEN)]
- ... | Backport PR #51945: BUG: swapaxes creating result with read_only array | https://api.github.com/repos/pandas-dev/pandas/pulls/51962 | 2023-03-14T13:15:31Z | 2023-03-14T16:42:39Z | 2023-03-14T16:42:39Z | 2023-03-14T16:42:40Z |
DEPR: DataFrame.swapaxes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 1f5c3c88c5ff5..71fda39a05e55 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -114,6 +114,7 @@ Deprecations
- Deprecated 'method', 'limit', and 'fill_axis' keywords in :meth:`DataFrame.align` and :meth... | - [x] closes #51946 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/51960 | 2023-03-14T10:38:37Z | 2023-03-25T20:44:00Z | 2023-03-25T20:44:00Z | 2023-03-26T00:07:37Z |
Backport PR #51917 on branch 2.0.x (Series.astype(np.integer) doesn't show numpy warning) | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 3be290ca2dfac..4b33fd8ed412c 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -7,6 +7,7 @@
Any,
Callable,
)
+import warnings
import numpy as np
@@ -1678,7 +1679,12 @@ def pandas_dtype(dtype) -> ... | Backport PR #51917: Series.astype(np.integer) doesn't show numpy warning | https://api.github.com/repos/pandas-dev/pandas/pulls/51958 | 2023-03-14T02:23:16Z | 2023-03-14T04:25:49Z | 2023-03-14T04:25:49Z | 2023-03-14T04:25:50Z |
Backport PR #51943 on branch 2.0.x (BUG: Count creates result with read_only array) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 36fd0dda5d2bc..00518647baf1e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10408,7 +10408,7 @@ def count(self, axis: Axis = 0, numeric_only: bool = False):
else:
# GH13407
series_counts = not... | Backport PR #51943: BUG: Count creates result with read_only array | https://api.github.com/repos/pandas-dev/pandas/pulls/51957 | 2023-03-14T00:53:55Z | 2023-03-14T04:25:37Z | 2023-03-14T04:25:37Z | 2023-03-14T04:25:37Z |
Backport PR #51949 on branch 2.0.x (CI: Remove workflows on 1.5.x branch) | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index 4e363c7fd573d..08026a5fd637f 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -5,12 +5,10 @@ on:
branches:
- main
- 2.0.x
- - 1.5.x
pull_request:
branches... | Backport PR #51949: CI: Remove workflows on 1.5.x branch | https://api.github.com/repos/pandas-dev/pandas/pulls/51956 | 2023-03-14T00:52:09Z | 2023-03-14T02:23:29Z | 2023-03-14T02:23:29Z | 2023-03-14T02:23:30Z |
REGR: Performance of DataFrame axis=1 reduction ops with EA | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index c987588097953..f849aa11990c4 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1197,7 +1197,6 @@ Numeric
- Bug in :meth:`Series.__add__` casting to object for list and masked :class:`Series` (:issue:`2... | Ref: https://github.com/pandas-dev/pandas/pull/51335#issuecomment-1445534578
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/51955 | 2023-03-14T00:43:52Z | 2023-04-08T12:29:10Z | null | 2023-04-16T13:32:08Z |
Add replace test for nil gh32075 | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index 466d48fba4779..ad89ccd6e3c60 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -1498,6 +1498,13 @@ def test_replace_value_none_dtype_numeric(self, val):
... | - [ ] closes #32075
- [ ] [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/51954 | 2023-03-14T00:32:11Z | 2023-03-14T16:51:10Z | 2023-03-14T16:51:10Z | 2023-03-14T22:53:59Z |
Revert "Re-enable parallel builds in CI" | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 7f82b613f8cb8..52a8cab1cd2de 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -55,7 +55,8 @@ if pip list | grep -q ^pandas; then
fi
echo "Build extensions"
-python setup.py build_ext -q -j4
+# GH 47305: Parallel build can causes f... | Reverts pandas-dev/pandas#51902
Depends on #51525 which is reverted by #51951 | https://api.github.com/repos/pandas-dev/pandas/pulls/51952 | 2023-03-13T23:26:53Z | 2023-03-14T23:23:57Z | 2023-03-14T23:23:57Z | 2023-03-15T02:33:59Z |
Revert "Use PyCapsule for internal datetime functions" | diff --git a/MANIFEST.in b/MANIFEST.in
index 361cd8ff9ec22..d2b1b8cb887bc 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -58,5 +58,3 @@ prune pandas/tests/io/parser/data
# Selectively re-add *.cxx files that were excluded above
graft pandas/_libs/src
graft pandas/_libs/tslibs/src
-include pandas/_libs/pd_parser.h
-in... | Reverts pandas-dev/pandas#51525
This is making #50960 a PITA. | https://api.github.com/repos/pandas-dev/pandas/pulls/51951 | 2023-03-13T23:26:33Z | 2023-03-14T23:23:39Z | 2023-03-14T23:23:39Z | 2023-03-15T16:52:20Z |
BUG: Series.getitem not respecting CoW with MultiIndex | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 200ba9af508b6..df9b828d702b1 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -209,6 +209,9 @@ Copy-on-Write improvements
- :meth:`DataFrame.__getitem__` will now respect the Copy-on-Write mechanism wh... | - [ ] 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/51950 | 2023-03-13T23:15:51Z | 2023-03-15T22:36:30Z | 2023-03-15T22:36:30Z | 2023-03-15T22:36:34Z |
CI: Remove workflows on 1.5.x branch | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index e14be521ff523..03925991ec632 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -5,12 +5,10 @@ on:
branches:
- main
- 2.0.x
- - 1.5.x
pull_request:
branches... | Additionally freezes the `python-dev` workflow by using `if: False` instead of commenting out branches | https://api.github.com/repos/pandas-dev/pandas/pulls/51949 | 2023-03-13T23:06:23Z | 2023-03-14T00:51:59Z | 2023-03-14T00:51:59Z | 2023-03-14T00:52:44Z |
ENH include the first incompatible key in error message when merging | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 7e8403c94ceef..b3ea6fbd4ae2d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -32,7 +32,8 @@ Other enhancements
- :meth:`MultiIndex.sortlevel` and :meth:`Index.sortlevel` gained a new keyword ``na_posi... | - [x] Closes #51861
- [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/51947 | 2023-03-13T22:57:45Z | 2023-03-14T17:41:56Z | 2023-03-14T17:41:55Z | 2023-09-23T13:26:55Z |
BUG: swapaxes creating result with read_only array | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5b77bb9651073..de99effdfe579 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -750,7 +750,7 @@ def swapaxes(
mapping = {i: j, j: i}
new_axes = [self._get_axis(mapping.get(k, k)) for k in range(self._AXIS_LEN)]
- ... | - [ ] 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/51945 | 2023-03-13T22:40:04Z | 2023-03-14T13:14:54Z | 2023-03-14T13:14:54Z | 2023-03-14T13:15:42Z |
BUG: CoW not tracking references when indexing midx with slice | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index ea7bc06746689..c71301a2714ca 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -206,6 +206,9 @@ Copy-on-Write improvements
- Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect... | - [ ] 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/51944 | 2023-03-13T22:39:24Z | 2023-03-14T13:15:24Z | 2023-03-14T13:15:24Z | 2023-03-14T13:15:32Z |
BUG: Count creates result with read_only array | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 70019030da182..2052d84b1e6ff 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10870,7 +10870,7 @@ def count(self, axis: Axis = 0, numeric_only: bool = False):
else:
# GH13407
series_counts = not... | - [ ] 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/51943 | 2023-03-13T22:38:31Z | 2023-03-14T00:53:47Z | 2023-03-14T00:53:47Z | 2023-03-14T10:51:36Z |
TST: Avoid datetime.now in tests for DST dependence | diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py
index 1848872335518..eaeef4d00e23e 100644
--- a/pandas/tests/dtypes/cast/test_promote.py
+++ b/pandas/tests/dtypes/cast/test_promote.py
@@ -374,10 +374,10 @@ def test_maybe_promote_any_with_datetime64(any_numpy_dtype, fill_... | Looks like this test failed over the weekend due to DST: https://github.com/pandas-dev/pandas/actions/runs/4395351454/jobs/7697080729 | https://api.github.com/repos/pandas-dev/pandas/pulls/51942 | 2023-03-13T22:25:07Z | 2023-03-14T11:52:54Z | 2023-03-14T11:52:54Z | 2023-03-14T16:35:45Z |
Backport PR #51931 on branch 2.0.x (BLD: Try strip-all instead of strip-debug) | diff --git a/pyproject.toml b/pyproject.toml
index 51236159b1f74..5e5da840c2835 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -143,7 +143,7 @@ parentdir_prefix = "pandas-"
[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
build-verbosity = "3"
-environment = { LD... | Backport PR #51931: BLD: Try strip-all instead of strip-debug | https://api.github.com/repos/pandas-dev/pandas/pulls/51938 | 2023-03-13T20:02:50Z | 2023-03-13T22:16:12Z | 2023-03-13T22:16:12Z | 2023-03-13T22:16:12Z |
Backport PR #51832 on branch 2.0.x (BUG / CoW: Series.view not respecting CoW) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 317eca7dc8723..e829d1f4c986b 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -221,6 +221,8 @@ Copy-on-Write improvements
- Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect... | Backport PR #51832: BUG / CoW: Series.view not respecting CoW | https://api.github.com/repos/pandas-dev/pandas/pulls/51937 | 2023-03-13T19:18:10Z | 2023-03-13T21:00:03Z | 2023-03-13T21:00:03Z | 2023-03-13T21:00:03Z |
BUG/API: DTI/TDI/PI.map na_action="ignore" | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index c6783e46faaee..4e4ac14c37961 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -140,13 +140,17 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :meth:`Timestamp.round` with values close to the implem... | - [x] closes #51644
- [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/51936 | 2023-03-13T19:02:14Z | 2023-03-20T17:04:24Z | 2023-03-20T17:04:24Z | 2023-03-20T21:16:15Z |
Backport PR #51853 on branch 2.0.x (Remove use_nullable_dtypes and add dtype_backend keyword) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 3c3a655626bb6..c4e5ad773ca09 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -170,12 +170,15 @@ dtype : Type name or dict of column -> type, default ``None``
the default determines the dtype of the colum... | - [ ] 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/51935 | 2023-03-13T18:46:23Z | 2023-03-13T22:16:32Z | 2023-03-13T22:16:32Z | 2023-03-14T14:04:35Z |
REF: move ExtensionIndex.map to be part of DatetimeLikeArrayMixin.map | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 5295f89626e04..b1e2cdd104937 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -119,6 +119,7 @@
from pandas.core.algorithms import (
checked_add_with_arr,
isin,
+ map_array,... | Follow-up to #51809.
`ExtensionIndex.map` is only used by the datetime-like indexes (`DatetimeIndex.map` etc.) and contains no index-specific functionality, so shouldn't be an index method.
By moving this method to `DatetimeLikeArrayMixin.map` we simplify the code paths quite a bit when dealing with `DatetimeArra... | https://api.github.com/repos/pandas-dev/pandas/pulls/51934 | 2023-03-13T18:31:58Z | 2023-03-14T18:01:33Z | 2023-03-14T18:01:33Z | 2023-03-14T18:13:57Z |
Backport PR #51082 on branch 2.0.x (API / CoW: return read-only numpy arrays in .values/to_numpy()) | diff --git a/pandas/core/base.py b/pandas/core/base.py
index f83825d5ef6e1..a454bfce279f4 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -20,6 +20,8 @@
import numpy as np
+from pandas._config import using_copy_on_write
+
from pandas._libs import lib
from pandas._typing import (
Axis,
@@ -545,... | Backport PR #51082: API / CoW: return read-only numpy arrays in .values/to_numpy() | https://api.github.com/repos/pandas-dev/pandas/pulls/51933 | 2023-03-13T17:50:30Z | 2023-03-13T21:00:34Z | 2023-03-13T21:00:34Z | 2023-03-13T21:00:35Z |
DOC: add examples to offsets CustomBusinessDay, Business/MonthBegin | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 9b626b9ee4f6a..d780cf0c4ffe3 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2574,11 +2574,28 @@ cdef class MonthBegin(MonthOffset):
"""
DateOffset of one month at beginning.
+ Mont... | This pr is related to pr #50182, #49958 and #50027.
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Updated docs for `BusinessMonthBegin`, `CustomBusinessDay` and `MonthBegin`. Added more examples to highlight “the first day of the month” ... | https://api.github.com/repos/pandas-dev/pandas/pulls/51932 | 2023-03-13T16:20:04Z | 2023-03-15T16:36:42Z | 2023-03-15T16:36:42Z | 2023-03-15T16:36:42Z |
BLD: Try strip-all instead of strip-debug | diff --git a/pyproject.toml b/pyproject.toml
index 16143706196ef..90e5292aaf913 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -143,7 +143,7 @@ parentdir_prefix = "pandas-"
[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
build-verbosity = "3"
-environment = { LD... | - [ ] 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/51931 | 2023-03-13T15:38:57Z | 2023-03-13T20:02:41Z | 2023-03-13T20:02:41Z | 2023-03-13T20:02:43Z |
API / BUG: copy non-Index arrays in Index construction to avoid data corruption | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 620823b9703ab..790895f5f4f81 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -464,7 +464,7 @@ def __new__(
cls,
data=None,
dtype=None,
- copy: bool = False,
+ copy: bool | ... | Would close https://github.com/pandas-dev/pandas/issues/34364 and https://github.com/pandas-dev/pandas/issues/42934
The idea here is that since the Index is assumed to be immutable and caches things like the hashtable, we should avoid that a user can actually mutate those values through normal pandas functionality b... | https://api.github.com/repos/pandas-dev/pandas/pulls/51930 | 2023-03-13T15:13:12Z | 2024-02-06T19:12:58Z | null | 2024-02-06T19:12:58Z |
BUG: Incorrect parsing of ISO 8601 durations strings in Timedelta constructor | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 6390fbeed8548..a4dc369702f97 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -385,6 +385,8 @@ Timedelta
- Bug in :class:`Timedelta` with Numpy timedelta64 objects not properly raising ``ValueError`` (... | - [x] Closes #51882
- [x] Closes #48122
- [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.htm... | https://api.github.com/repos/pandas-dev/pandas/pulls/51928 | 2023-03-13T13:06:32Z | 2023-08-01T17:14:15Z | null | 2023-08-01T17:14:15Z |
Backport PR #51918 on branch 2.0.x (Replace deprecated BadZipfile with BadZipFile) | diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py
index 121784d5a45ed..ab00e31bd9b43 100644
--- a/pandas/tests/io/parser/test_compression.py
+++ b/pandas/tests/io/parser/test_compression.py
@@ -85,7 +85,7 @@ def test_zip_error_invalid_zip(parser_and_data):
with ... | Backport PR #51918: Replace deprecated BadZipfile with BadZipFile | https://api.github.com/repos/pandas-dev/pandas/pulls/51927 | 2023-03-13T11:56:51Z | 2023-03-13T15:26:18Z | 2023-03-13T15:26:18Z | 2023-03-13T15:26:19Z |
CoW: change ChainedAssignmentError exception to a warning | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index 94dde9a6ffd70..b1d9166782128 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -114,10 +114,11 @@ two subsequent indexing operations, e.g.
The column ``foo`` is updat... | See https://github.com/pandas-dev/pandas/issues/51315 for context. Currently the detection gives false positives if the changed assignment comes from cython code. Therefore, changing this to a warning to still allow more broadly testing this without causing failures. | https://api.github.com/repos/pandas-dev/pandas/pulls/51926 | 2023-03-13T11:01:26Z | 2023-03-15T15:29:08Z | 2023-03-15T15:29:08Z | 2023-03-15T15:47:00Z |
REGR: Performance regression in axis=1 DataFrame ops | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e6af875ab1c23..c711da9fc7066 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -141,12 +141,16 @@
is_integer_dtype,
is_iterator,
is_list_like,
+ is_numeric_dtype,
is_scalar,
is_sequence,
needs_i8_conversion,
... | Ref: https://github.com/pandas-dev/pandas/pull/51335#issuecomment-1445534578
- [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/51923 | 2023-03-13T04:22:22Z | 2023-04-16T12:13:41Z | null | 2023-04-16T13:32:12Z |
PERF: Reject non-string object arrays faster in factorize | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index eef81242abc7c..2584e1f13853a 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -23,6 +23,7 @@ class Factorize:
"uint",
"float",
"object",
+ ... | - [ ] 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/51921 | 2023-03-13T00:27:22Z | 2023-03-13T17:11:11Z | 2023-03-13T17:11:11Z | 2023-03-14T12:15:53Z |
ENH: Adding implementation for issue #51748 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 7e8403c94ceef..3597fd09f219b 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -158,7 +158,7 @@ Conversion
Strings
^^^^^^^
--
+- Enhancement to allow dictionaries to be passed to func: Series.str.rep... | - [X] closes #51748 (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/51919 | 2023-03-12T18:51:29Z | 2023-03-13T22:49:40Z | null | 2023-03-13T22:52:20Z |
Replace deprecated BadZipfile with BadZipFile | diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py
index 121784d5a45ed..ab00e31bd9b43 100644
--- a/pandas/tests/io/parser/test_compression.py
+++ b/pandas/tests/io/parser/test_compression.py
@@ -85,7 +85,7 @@ def test_zip_error_invalid_zip(parser_and_data):
with ... | - [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).
- [ ] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/51918 | 2023-03-12T17:07:42Z | 2023-03-13T11:56:13Z | 2023-03-13T11:56:13Z | 2023-03-13T11:58:19Z |
Series.astype(np.integer) doesn't show numpy warning | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 6802cf096e868..23bc0e6280e27 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -8,6 +8,7 @@
Any,
Callable,
)
+import warnings
import numpy as np
@@ -1694,7 +1695,12 @@ def pandas_dtype(dtype) -> ... | - [X] closes #51523
- [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/51917 | 2023-03-12T16:34:21Z | 2023-03-14T02:23:08Z | 2023-03-14T02:23:08Z | 2023-03-14T17:27:11Z |
DOC Trying to improve Group by split-apply-combine guide | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 56e62ba20e030..4ec7bfeed93c1 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -31,20 +31,20 @@ following:
* Filling NAs within groups with a value derived from each group.
* **Filtra... | - [ ] 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 [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51916 | 2023-03-12T15:09:46Z | 2023-03-18T14:36:45Z | 2023-03-18T14:36:45Z | 2023-03-19T12:55:41Z |
Enable Pylint `undefined-variable` warning | diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index e574ed2c8059a..66f5e514c3aea 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -124,6 +124,7 @@ def paste_osx_pbcopy():
def init_osx_pyobjc_clipboard():
+ # pylint: disable=undefined-variable... | Enables the pylint warning `undefined-variable`.
- [ ] 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/51915 | 2023-03-12T02:43:26Z | 2023-03-13T13:18:51Z | null | 2023-03-13T13:18:52Z |
Richard/str replace | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 1b020a3d96411..9acc75175a6e8 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1314,12 +1314,13 @@ def fullmatch(self, pat, case: bool = True, flags: int = 0, na=None):
@forbid_nonstring_types(... | - [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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51914 | 2023-03-12T01:48:39Z | 2023-03-12T04:14:20Z | null | 2023-03-12T04:14:20Z |
ENH: Updating the replace method in accessor.py and adding unit tests for … | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 1b020a3d96411..8980b12083cca 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1314,12 +1314,13 @@ def fullmatch(self, pat, case: bool = True, flags: int = 0, na=None):
@forbid_nonstring_types(... | …issue #51748
- [x] closes #51748(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/de... | https://api.github.com/repos/pandas-dev/pandas/pulls/51913 | 2023-03-12T01:11:25Z | 2023-03-12T01:44:21Z | null | 2023-03-12T01:44:21Z |
TYP: misc return types | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index 2de970466e19f..0408dfd83fedc 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -9,7 +9,6 @@
Callable,
Hashable,
Literal,
- TypeVar,
)
import numpy as... | xref #47521
Most changes are from renaming `T` to `_<class>T`. | https://api.github.com/repos/pandas-dev/pandas/pulls/51912 | 2023-03-11T23:31:00Z | 2023-03-14T02:25:10Z | 2023-03-14T02:25:10Z | 2023-03-14T02:25:17Z |
CI: parallel build follow up | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index 23bb988ef4d73..11601564c5d79 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -16,7 +16,5 @@ runs:
python -m pip install -e . --no-build-isolation --no-use-p... | Follow up to https://github.com/pandas-dev/pandas/pull/51902/
Also added strict channel priority back to conda env creation. | https://api.github.com/repos/pandas-dev/pandas/pulls/51911 | 2023-03-11T20:45:37Z | 2023-03-12T02:36:38Z | 2023-03-12T02:36:38Z | 2023-03-12T02:36:42Z |
Backport PR #51902 on branch 2.0.x (Re-enable parallel builds in CI) | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 52a8cab1cd2de..7f82b613f8cb8 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -55,8 +55,7 @@ if pip list | grep -q ^pandas; then
fi
echo "Build extensions"
-# GH 47305: Parallel build can causes flaky ImportError from pandas/_libs... | Backport PR #51902: Re-enable parallel builds in CI | https://api.github.com/repos/pandas-dev/pandas/pulls/51910 | 2023-03-11T19:39:00Z | 2023-03-11T20:14:40Z | null | 2023-03-11T20:14:40Z |
DOC: add example for sparse.density and sparse.coo | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8fefa47c16bab..eeaa277b1ab2c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -547,8 +547,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DataFrame.last_valid_index \
pandas.DataFrame.attrs \
pandas.DataFrame... | - [ ] 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/51909 | 2023-03-11T19:25:20Z | 2023-03-16T18:10:53Z | 2023-03-16T18:10:53Z | 2023-03-16T22:44:34Z |
REF: Refactor CI env file creation and reduce pyarrow testing | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ac28728685ce4..00903f9f46f91 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -10,6 +10,7 @@ jobs:
PYTEST_WORKERS: auto
PATTERN: "not single_cpu and not slow and not network and not clipboard and not arm_slow and not db"
... | - [ ] 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/51908 | 2023-03-11T19:01:48Z | 2023-03-15T00:37:30Z | null | 2023-03-15T00:37:31Z |
Update integer_na.rst with multiple improvements. | diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst
index cda1d0181b789..a3ccb5b0d4019 100644
--- a/doc/source/user_guide/integer_na.rst
+++ b/doc/source/user_guide/integer_na.rst
@@ -32,7 +32,7 @@ implemented within pandas.
arr = pd.array([1, 2, None], dtype=pd.Int64Dtype())
... | updating and improving multiple problems in the documentation.
- [ ] 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/51907 | 2023-03-11T17:10:39Z | 2023-03-13T17:12:20Z | 2023-03-13T17:12:20Z | 2023-03-13T17:12:29Z |
DOC: typo fix contributing_environment | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index a648b18a554ee..d870c67d37e2c 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -21,7 +21,7 @@ locally before pushing yo... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Just a small typo fixed in the contributing_environment docs
| https://api.github.com/repos/pandas-dev/pandas/pulls/51906 | 2023-03-11T16:48:56Z | 2023-03-11T16:52:22Z | 2023-03-11T16:52:22Z | 2023-03-11T16:53:12Z |
Refactor C Extension Layout | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index de36bf2d441c5..3b87730756d72 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -65,18 +65,14 @@ repos:
rev: 1.6.1
hooks:
- id: cpplint
- # We don't lint all C files because we don't want to lint any that are... | Simplifies includes for the build script and I think is easier to follow
khash doesn't pass cpplint at the moment. Need to look further if its even worth doing that or if we can get it excluded from cpplint | https://api.github.com/repos/pandas-dev/pandas/pulls/51904 | 2023-03-11T13:42:27Z | 2023-04-12T20:17:10Z | null | 2023-04-12T20:17:11Z |
ENH: add LaTeX math mode with parentheses | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 3a749708fb526..c65f346f85dff 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -38,6 +38,7 @@ Other enhancements
- Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string col... | This pr is related to pr #50398
- [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-com... | https://api.github.com/repos/pandas-dev/pandas/pulls/51903 | 2023-03-11T13:16:55Z | 2023-03-31T17:25:16Z | 2023-03-31T17:25:16Z | 2023-03-31T17:25:23Z |
Re-enable parallel builds in CI | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 52a8cab1cd2de..7f82b613f8cb8 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -55,8 +55,7 @@ if pip list | grep -q ^pandas; then
fi
echo "Build extensions"
-# GH 47305: Parallel build can causes flaky ImportError from pandas/_libs... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/51902 | 2023-03-11T12:40:18Z | 2023-03-11T19:38:13Z | 2023-03-11T19:38:13Z | 2023-03-12T02:13:29Z |
DEPR: DataFrame.resample axis parameter | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index db900ddd1f85b..0cb1641e40e05 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -107,6 +107,7 @@ Deprecations
- Deprecated accepting slices in :meth:`DataFrame.take`, call ``obj[slicer]`` or pass a seque... | - [X] closes #51778(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/51901 | 2023-03-11T08:18:50Z | 2023-03-23T23:32:00Z | 2023-03-23T23:32:00Z | 2023-03-23T23:36:06Z |
assert_frame_equal for set | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 3f898ca23bd6f..aff30d113438e 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -240,11 +240,10 @@ Styler
Other
^^^^^
--
+- Bug in :func:`assert_almost_equal` now throwing assertion error for two uneq... | - [x] closes #51727
- [x] [Tests added and passed]
- [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/51899 | 2023-03-11T06:14:30Z | 2023-03-20T09:09:36Z | 2023-03-20T09:09:36Z | 2023-03-20T09:09:54Z |
DEPS: Address np.cumproduct deprecation | diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py
index 1154940f2c4a6..a92b439927fff 100644
--- a/pandas/core/reshape/util.py
+++ b/pandas/core/reshape/util.py
@@ -41,7 +41,7 @@ def cartesian_product(X) -> list[np.ndarray]:
return []
lenX = np.fromiter((len(x) for x in X), dtype=np.... | Looks to be failing on the 2.0.x branch: https://github.com/pandas-dev/pandas/actions/runs/4387938078/jobs/7683838893 | https://api.github.com/repos/pandas-dev/pandas/pulls/51897 | 2023-03-11T02:09:17Z | 2023-03-11T05:43:26Z | 2023-03-11T05:43:26Z | 2023-03-11T05:43:29Z |
BUG: disallow resample with non-Tick on TimedeltaIndex | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 2dea25d6f10f4..e74629e63f2c7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -200,6 +200,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`DataFrameGroupBy.idxmin`, :meth:`Series... | - [ ] 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/51896 | 2023-03-11T01:12:26Z | 2023-03-13T19:35:41Z | 2023-03-13T19:35:41Z | 2023-03-13T19:39:16Z |
BUG: Fix getitem dtype preservation with multiindexes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b0e9fa2cea0ee..742324c18428f 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -347,8 +347,8 @@ Missing
MultiIndex
^^^^^^^^^^
+- Bug in :meth:`DataFrame.__getitem__` not preserving dtypes for :class:... | - [x] closes #51261
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] ~~Added [type annotations](https://pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/51895 | 2023-03-11T01:01:31Z | 2023-04-25T17:27:05Z | 2023-04-25T17:27:05Z | 2023-09-16T01:26:30Z |
CI/STYLE: Add auto-fix to ruff | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f10cfac5f1276..98dc671a8b35f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,6 +31,7 @@ repos:
rev: v0.0.253
hooks:
- id: ruff
+ args: [--exit-non-zero-on-fix]
- repo: https://github.com/jendrikseip... | - [x] closes #51814 (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/51894 | 2023-03-11T00:56:16Z | 2023-03-12T08:42:22Z | 2023-03-12T08:42:22Z | 2023-03-12T10:11:36Z |
Backport PR #51886 on branch 2.0.x (CI: Pin moto image to specific version) | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 2ca22e6356b11..7e91ff8051148 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -141,7 +141,7 @@ jobs:
- 5432:5432
moto:
- image: motoserver/moto
+ image: motoserver/moto:4.1.4
... | Backport PR #51886: CI: Pin moto image to specific version | https://api.github.com/repos/pandas-dev/pandas/pulls/51893 | 2023-03-11T00:47:06Z | 2023-03-11T03:24:21Z | 2023-03-11T03:24:21Z | 2023-03-11T03:24:22Z |
DOC: change 8610 -> 8601 in Timestamp.isoformat() docstring | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 398f26723b508..fb351f1e41f60 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -978,7 +978,7 @@ cdef class _Timestamp(ABCTimestamp):
def isoformat(self, sep: str = "T", timespec: 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/51890 | 2023-03-10T21:16:36Z | 2023-03-10T21:30:18Z | 2023-03-10T21:30:18Z | 2023-03-10T21:32:07Z |
DOC: Fix dangling hyphens. | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 1d0232c80ffcc..165be2a092535 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -377,8 +377,8 @@ aggregations for step functions defined over real numbers, datetime and timedelt
xarray brings the labeled data power of pandas ... | Dangling hyphens gets rendered with a space, see screenshot:

It's currently been added sphinx-lint side in https://github.com/sphi... | https://api.github.com/repos/pandas-dev/pandas/pulls/51889 | 2023-03-10T20:47:07Z | 2023-03-11T01:57:58Z | 2023-03-11T01:57:58Z | 2023-03-11T01:58:05Z |
fixed "pandas/util/*" = ["TCH"] | diff --git a/pandas/util/_print_versions.py b/pandas/util/_print_versions.py
index 2526fafe5851f..e3cd3a3f227a2 100644
--- a/pandas/util/_print_versions.py
+++ b/pandas/util/_print_versions.py
@@ -7,8 +7,11 @@
import platform
import struct
import sys
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from p... | - [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/51888 | 2023-03-10T20:11:12Z | 2023-03-11T10:43:24Z | 2023-03-11T10:43:24Z | 2023-03-11T14:05:19Z |
Backport PR #51854 on branch 2.0.x (ENH: Add misc pyarrow types to ArrowDtype.type) | diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py
index b6515c2875718..33b13b895b7c8 100644
--- a/pandas/core/arrays/arrow/dtype.py
+++ b/pandas/core/arrays/arrow/dtype.py
@@ -27,6 +27,7 @@
StorageExtensionDtype,
register_extension_dtype,
)
+from pandas.core.dtypes.dtypes imp... | Backport PR #51854: ENH: Add misc pyarrow types to ArrowDtype.type | https://api.github.com/repos/pandas-dev/pandas/pulls/51887 | 2023-03-10T19:49:44Z | 2023-03-10T21:53:32Z | 2023-03-10T21:53:32Z | 2023-03-10T21:53:33Z |
CI: Pin moto image to specific version | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 951cf24c2168d..1b82816796e10 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -142,7 +142,7 @@ jobs:
- 5432:5432
moto:
- image: motoserver/moto
+ image: motoserver/moto:4.1.4
... | Should help fix the failing `single_cpu` builds | https://api.github.com/repos/pandas-dev/pandas/pulls/51886 | 2023-03-10T19:46:44Z | 2023-03-11T00:46:56Z | 2023-03-11T00:46:56Z | 2023-03-11T00:46:59Z |
Backport PR #51877 on branch 2.0.x (CI/DEPS: Use np.prod in tests for np deprecation) | diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py
index d7ee7744ebcd4..34f7b756bfb40 100644
--- a/pandas/tests/resample/test_datetime_index.py
+++ b/pandas/tests/resample/test_datetime_index.py
@@ -1843,7 +1843,7 @@ def test_resample_apply_product(duplicates, unit)... | Backport PR #51877: CI/DEPS: Use np.prod in tests for np deprecation | https://api.github.com/repos/pandas-dev/pandas/pulls/51884 | 2023-03-10T18:23:41Z | 2023-03-10T19:58:19Z | 2023-03-10T19:58:19Z | 2023-03-10T19:58:19Z |
BUG: pd.DataFrame.from_dict with a numpy masked array of dtype=object produces NaN instead of None. #51872 | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index bc71804221ddf..eb40069fe0ed4 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -495,7 +495,11 @@ def sanitize_masked_array(data: ma.MaskedArray) -> np.ndarray:
"""
mask = ma.getmaskarray(data)
if mask... | - [x] closes #51872
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/51883 | 2023-03-10T17:59:55Z | 2023-05-09T18:07:08Z | null | 2023-09-01T11:44:27Z |
DOC update DataFrame.to_csv write modes (#51839) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 95ac522833b35..cbe270d143aee 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3635,9 +3635,14 @@ def to_csv(
sequence should be given if the object uses MultiIndex. If
False do not print fields for index nam... | - [ ] closes #51839
| https://api.github.com/repos/pandas-dev/pandas/pulls/51881 | 2023-03-10T15:02:43Z | 2023-03-17T18:04:21Z | 2023-03-17T18:04:21Z | 2023-03-17T18:04:30Z |
CI/DEPS: Use np.prod in tests for np deprecation | diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py
index 3c46887dad859..01e11c779e957 100644
--- a/pandas/tests/resample/test_datetime_index.py
+++ b/pandas/tests/resample/test_datetime_index.py
@@ -1842,7 +1842,7 @@ def test_resample_apply_product(duplicates, unit)... | Failing on the numpy dev build due to a deprecation https://github.com/pandas-dev/pandas/actions/runs/4380199790/jobs/7667001150
https://github.com/numpy/numpy/pull/23314 | https://api.github.com/repos/pandas-dev/pandas/pulls/51877 | 2023-03-10T02:07:12Z | 2023-03-10T18:23:05Z | 2023-03-10T18:23:05Z | 2023-03-10T18:23:09Z |
WIP/API: Make Day not a Tick | diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst
index ab89fe74e7337..da88b8d42dd6c 100644
--- a/doc/source/reference/offset_frequency.rst
+++ b/doc/source/reference/offset_frequency.rst
@@ -1107,7 +1107,6 @@ Properties
.. autosummary::
:toctree: api/
- Day.de... | - [x] closes #41943 (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/51874 | 2023-03-09T23:39:45Z | 2023-10-12T23:17:33Z | null | 2023-10-12T23:17:37Z |
PERF: Improve performance of MultiIndex._verify_integrity | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 66714ea326576..5484407520148 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -117,6 +117,7 @@ Performance improvements
- Performance improvement when parsing strings to ``boolean[pyarrow]`` dtype (:is... | - [ ] 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/51873 | 2023-03-09T22:33:40Z | 2023-03-14T02:28:25Z | 2023-03-14T02:28:25Z | 2023-03-14T10:51:18Z |
ERR: Check that dtype_backend is valid | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5b77bb9651073..1bedf07103086 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -96,6 +96,7 @@
from pandas.util._decorators import doc
from pandas.util._exceptions import find_stack_level
from pandas.util._validators import (
+ ch... | - [ ] 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/51871 | 2023-03-09T22:16:04Z | 2023-03-14T13:14:04Z | 2023-03-14T13:14:04Z | 2023-03-14T14:07:10Z |
Backport PR #51869 on branch 2.0.x (ENH: Add to_pydatetime for ArrowExtensionArray) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index fbd7626c8637d..e9122544a18f5 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1958,6 +1958,9 @@ def _dt_round(
):
return self._round_temporally("round", freq, ambiguous, nonex... | Backport PR #51869: ENH: Add to_pydatetime for ArrowExtensionArray | https://api.github.com/repos/pandas-dev/pandas/pulls/51870 | 2023-03-09T21:50:41Z | 2023-03-10T00:23:58Z | 2023-03-10T00:23:58Z | 2023-03-10T00:23:58Z |
ENH: Add to_pydatetime for ArrowExtensionArray | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index d8b0b53331229..6084634503d97 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -2090,6 +2090,9 @@ def _dt_round(
):
return self._round_temporally("round", freq, ambiguous, nonex... | - [x] closes #51859 (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/51869 | 2023-03-09T19:36:11Z | 2023-03-09T21:50:32Z | 2023-03-09T21:50:32Z | 2023-03-09T23:43:24Z |
TYP: fix NDFrame.align | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 6059bced4a7d4..b54b8d6adb50e 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -125,6 +125,9 @@
# Series is passed into a function, a Series is always returned and if a DataFrame is
# passed in, a DataFrame is always returned.
NDFrameT = TypeVar("NDFra... | - [ ] closes #51863 (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/51867 | 2023-03-09T18:20:39Z | 2023-03-11T21:26:25Z | 2023-03-11T21:26:25Z | 2023-08-09T15:08:37Z |
Backport PR #50936 on branch 2.0.x (DOC: Fix dark mode styles) | diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css
index 2a348e5b84e6e..2eb69beb05cb5 100644
--- a/doc/source/_static/css/getting_started.css
+++ b/doc/source/_static/css/getting_started.css
@@ -236,11 +236,11 @@ ul.task-bullet > li > p:first-child {
.tutorial-card .... | Backport PR #50936: DOC: Fix dark mode styles | https://api.github.com/repos/pandas-dev/pandas/pulls/51864 | 2023-03-09T16:32:35Z | 2023-03-09T20:03:42Z | 2023-03-09T20:03:42Z | 2023-03-09T20:03:43Z |
Backport PR #51704 on branch 2.0.x (DOC: Improve groupby in the User Guide) | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 15baedbac31ba..b0aafbc22562e 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -478,41 +478,71 @@ Or for an object grouped on multiple columns:
Aggregation
-----------
-Once the GroupBy o... | - [ ] 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/51857 | 2023-03-09T10:42:33Z | 2023-03-09T15:22:22Z | 2023-03-09T15:22:22Z | 2023-03-09T15:22:23Z |
ENH: Add misc pyarrow types to ArrowDtype.type | diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py
index a262a45feb9c5..2ba0711de98f9 100644
--- a/pandas/core/arrays/arrow/dtype.py
+++ b/pandas/core/arrays/arrow/dtype.py
@@ -27,6 +27,7 @@
StorageExtensionDtype,
register_extension_dtype,
)
+from pandas.core.dtypes.dtypes imp... | - [ ] closes #51845 (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/51854 | 2023-03-09T00:43:39Z | 2023-03-10T19:49:35Z | 2023-03-10T19:49:35Z | 2023-03-10T19:49:40Z |
Remove use_nullable_dtypes and add dtype_backend keyword | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 3c3a655626bb6..c4e5ad773ca09 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -170,12 +170,15 @@ dtype : Type name or dict of column -> type, default ``None``
the default determines the dtype of the colum... | - [ ] 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/51853 | 2023-03-08T23:40:13Z | 2023-03-13T18:20:41Z | 2023-03-13T18:20:41Z | 2023-03-13T18:47:02Z |
TST/CLN: `test_query_eval.py` | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index fc0c81339de08..db68c4cd2546b 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -385,17 +385,15 @@ def to_series(mi, level):
@td.skip_if_no_ne
class TestDataFrameQueryNumEx... | Use fixtures instead of `setup/teardown_class` | https://api.github.com/repos/pandas-dev/pandas/pulls/51851 | 2023-03-08T22:31:16Z | 2023-03-09T00:21:37Z | 2023-03-09T00:21:37Z | 2023-03-09T00:25:42Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.