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 #54838 on branch 2.1.x (Don't expose EA.pad_or_backfill to users + switch to DeprecationWarning) | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index eb2529716b55e..e177e2b1d87d5 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -39,6 +39,7 @@ objects.
api.extensions.ExtensionArray._from_sequence
api.extensions.Extens... | Backport PR #54838: Don't expose EA.pad_or_backfill to users + switch to DeprecationWarning | https://api.github.com/repos/pandas-dev/pandas/pulls/54851 | 2023-08-29T15:52:31Z | 2023-08-29T17:54:12Z | 2023-08-29T17:54:12Z | 2023-08-29T17:54:12Z |
DOC: Add date for v2.1.0 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 7aea1fa99f655..9ecdcc1bfe597 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -1,6 +1,6 @@
.. _whatsnew_210:
-What's new in 2.1.0 (Aug 11, 2023)
+What's new in 2.1.0 (Aug 30, 2023)
-----------------... | - [ ] 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/54850 | 2023-08-29T15:20:49Z | 2023-08-29T20:30:10Z | 2023-08-29T20:30:10Z | 2023-08-29T20:39:44Z |
Backport PR #54818 on branch 2.1.x (DEP: Deprecate passing fill_value and freq to shift) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 7aea1fa99f655..ebb31733fe370 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -591,6 +591,7 @@ Other Deprecations
- Deprecated values ``"pad"``, ``"ffill"``, ``"bfill"``, ``"backfill"`` for :meth:`Seri... | Backport PR #54818: DEP: Deprecate passing fill_value and freq to shift | https://api.github.com/repos/pandas-dev/pandas/pulls/54849 | 2023-08-29T14:44:11Z | 2023-08-29T17:49:53Z | 2023-08-29T17:49:53Z | 2023-08-29T17:49:53Z |
DEPR: remove use of `nan_as_null` from callers of `__dataframe__` | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 3a4e8fdd91362..3424b990a746c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -893,8 +893,8 @@ def __dataframe__(
Parameters
----------
nan_as_null : bool, default False
- Whether to tell the DataFrame to... | No one was using it yet and it seemed easier to clean it up from libraries than to ask everyone to add support for it - see https://github.com/data-apis/dataframe-api/issues/125. | https://api.github.com/repos/pandas-dev/pandas/pulls/54846 | 2023-08-29T12:53:10Z | 2023-11-17T17:02:57Z | 2023-11-17T17:02:57Z | 2023-11-17T17:02:57Z |
ENH: Bring `devcontainer` closer to GitHub CI environment, improve `vscode` setup | diff --git a/.devcontainer.json b/.devcontainer.json
deleted file mode 100644
index 7c5d009260c64..0000000000000
--- a/.devcontainer.json
+++ /dev/null
@@ -1,29 +0,0 @@
-// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
-// https://github.com/microsoft/vscode-dev-cont... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
This PR serves two purposes:
1. **Harmonizing devcontainer with the CI env... | https://api.github.com/repos/pandas-dev/pandas/pulls/54845 | 2023-08-29T12:38:32Z | 2023-08-30T16:59:24Z | null | 2023-08-30T16:59:25Z |
BUG: ArrowExtensionArray.to_numpy avoid object dtype when na_value provided | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index e815b8292b0cc..4d887ecd1510f 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -29,12 +29,12 @@
from pandas.util._decorators import doc
from pandas.util._validators import validate_fillna_k... | - [x] closes #54808
- [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/54843 | 2023-08-29T11:24:18Z | 2023-09-01T16:55:50Z | 2023-09-01T16:55:50Z | 2023-09-06T00:53:47Z |
remove unnecessary conditional from equals method | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b87772594cfbf..ec0e62582f0ba 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1459,7 +1459,7 @@ def equals(self, other: object) -> bool_t:
>>> df.equals(different_data_type)
False
"""
- if not (isins... | - [ ] [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).
- [ ] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/54842 | 2023-08-29T09:41:44Z | 2023-08-29T09:58:05Z | null | 2023-08-29T09:58:06Z |
DOC: Added missing git instruction to docs on how to update environment | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 247f5cb0cb62d..82af8122a6bbd 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -311,6 +311,7 @@ If using :ref:`mamba <contributing.mamba>`, run:
.. code-block:: shell... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
I think a `git fetch` instruction is missing from [Updating the development environment](https://pandas.pydata.org/docs/dev/development/contributing.html#updating-the-development-environment)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/54841 | 2023-08-29T09:33:42Z | 2023-08-29T10:54:56Z | 2023-08-29T10:54:56Z | 2023-08-29T10:54:57Z |
Shinyp | diff --git a/pandas/__init__.py b/pandas/__init__.py
index d11a429987ac4..4d3ce42ca4cc8 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -2,7 +2,7 @@
__docformat__ = "restructuredtext"
-# Let users know if they're missing any of our hard dependencies
+# Ensure users are informed if they lack any essenti... | - DOC: Rewrite a sentence for a better understanding of users.
- [ ] [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/54840 | 2023-08-29T09:04:00Z | 2023-08-29T09:56:16Z | null | 2023-08-29T11:51:10Z |
Backport PR #54794 on branch 2.1.x (Infer string storage based on infer_string option) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8f2667d69a322..7aea1fa99f655 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -39,11 +39,15 @@ We are collecting feedback on this decision `here <https://github.com/pandas-dev
Avoid NumPy object dtype ... | Backport PR #54794: Infer string storage based on infer_string option | https://api.github.com/repos/pandas-dev/pandas/pulls/54839 | 2023-08-29T08:37:25Z | 2023-08-29T11:14:20Z | 2023-08-29T11:14:20Z | 2023-08-29T11:14:20Z |
Don't expose EA.pad_or_backfill to users + switch to DeprecationWarning | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index eb2529716b55e..e177e2b1d87d5 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -39,6 +39,7 @@ objects.
api.extensions.ExtensionArray._from_sequence
api.extensions.Extens... | Closes #54831
This does:
- Rename `ExtensionArray.pad_or_backfill` to `ExtensionArray._pad_or_backfill` (added underscore -> this is only a method that needs to be implemented by developers (EA authors), and not be called by or visible to users)
- Changed the warning in `_pad_or_backfill` for when the EA still o... | https://api.github.com/repos/pandas-dev/pandas/pulls/54838 | 2023-08-29T08:28:39Z | 2023-08-29T15:52:21Z | 2023-08-29T15:52:21Z | 2023-08-30T13:26:34Z |
TST: added test for missing categories for `value_counts` | diff --git a/pandas/tests/frame/methods/test_value_counts.py b/pandas/tests/frame/methods/test_value_counts.py
index c05a929360478..f30db91f82b60 100644
--- a/pandas/tests/frame/methods/test_value_counts.py
+++ b/pandas/tests/frame/methods/test_value_counts.py
@@ -189,3 +189,17 @@ def test_value_counts_categorical_futu... | - [x] closes #54836
- [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/54837 | 2023-08-29T06:55:12Z | 2023-08-31T20:58:07Z | 2023-08-31T20:58:07Z | 2023-09-01T04:33:56Z |
PERF: lexsort_indexer (MultiIndex / multi-column sorting) | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 96fe90ce08c5f..8e0bffd7b8ece 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -693,20 +693,24 @@ def time_frame_sort_values(self, ascending):
self.df.sort_values(by=... | - [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/54835 | 2023-08-29T02:12:34Z | 2023-08-30T17:02:18Z | 2023-08-30T17:02:18Z | 2023-09-06T00:53:58Z |
ENH: add `ExtensionArray._explode` method; adjust pyarrow extension for use of new interface | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index e177e2b1d87d5..83f830bb11198 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -34,6 +34,7 @@ objects.
api.extensions.ExtensionArray._accumulate
api.extensions.Extensi... | - [x] closes #54833
- [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/54834 | 2023-08-29T01:28:31Z | 2023-09-18T21:37:33Z | 2023-09-18T21:37:33Z | 2023-09-19T00:37:36Z |
ENH: allow EADtype to specify _supports_2d | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index a055afe6ec0ae..6567ca7155b0d 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -418,6 +418,33 @@ def index_class(self) -> type_t[Index]:
return Index
+ @property
+ def _supports_2d(self) -> bool:
+ ... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/54832 | 2023-08-28T23:12:17Z | 2023-09-01T00:18:31Z | 2023-09-01T00:18:31Z | 2023-09-01T01:18:27Z |
Shift | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8f2667d69a322..e7fc83c35f56d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -587,6 +587,7 @@ Other Deprecations
- Deprecated values ``"pad"``, ``"ffill"``, ``"bfill"``, ``"backfill"`` for :meth:`Seri... | - [ ] 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/54830 | 2023-08-28T21:08:05Z | 2023-08-28T22:29:24Z | null | 2023-08-28T22:29:24Z |
Backport PR #54823 on branch 2.1.x (REGR: clip raising for list-bound) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index c34df3e0e865c..cdd0545f0a3ec 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7929,6 +7929,7 @@ def to_series(right):
)
elif isinstance(right, Series):
# axis=1 is default for DataFrame-with-Series ... | Backport PR #54823: REGR: clip raising for list-bound | https://api.github.com/repos/pandas-dev/pandas/pulls/54829 | 2023-08-28T21:01:48Z | 2023-08-28T22:39:49Z | 2023-08-28T22:39:49Z | 2023-08-28T22:39:49Z |
DOC: update information of parameter value_name of pandas.melt | diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index 7579f816d0ace..1fc63dd503467 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -213,7 +213,7 @@
Name to use for the 'variable' column. If None it uses
``frame.columns.name`` or 'variable'.
value_name : scalar... | - [x] closes #54715
- [x] *Pre-commit* and *python3 scripts/validate_docstrings.py pandas.melt* were executed with no mistakes
The update developed was to add the information of no repeating an already existing column name.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54828 | 2023-08-28T20:58:24Z | 2023-08-30T16:47:04Z | 2023-08-30T16:47:04Z | 2023-09-22T22:03:19Z |
Backport PR #54820 on branch 2.1.x (REF: Dispatch ArrowExtensionArray.fillna methods to pad_or_backfill) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 528b085bd5236..70c59e94f6d27 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -40,7 +40,10 @@
from pandas.core.dtypes.dtypes import DatetimeTZDtype
from pandas.core.dtypes.missing import i... | Backport PR #54820: REF: Dispatch ArrowExtensionArray.fillna methods to pad_or_backfill | https://api.github.com/repos/pandas-dev/pandas/pulls/54827 | 2023-08-28T19:56:59Z | 2023-08-28T22:29:33Z | 2023-08-28T22:29:33Z | 2023-08-28T22:29:33Z |
Infer large_string type as pyarrow_numpy strings | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index cc3bc5900c4c2..769d04bbc02c7 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -448,6 +448,15 @@ def _str_rstrip(self, to_strip=None):
class ArrowStringArrayNumpySemantics(ArrowStringArr... | - [ ] ref #54798 (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/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/54826 | 2023-08-28T19:20:47Z | 2023-09-02T18:15:52Z | 2023-09-02T18:15:52Z | 2023-09-02T18:15:55Z |
CLN: Remove unused parameter | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b87772594cfbf..99ca298e292cb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10704,7 +10704,6 @@ def shift(
freq=None,
axis: Axis = 0,
fill_value: Hashable = lib.no_default,
- suffix: str | None = N... | - [ ] closes #54806 (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/54825 | 2023-08-28T19:10:59Z | 2023-10-12T16:52:27Z | null | 2023-10-12T16:52:27Z |
#50990 Increase to_dict('list') performance | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index bc66335d74f9b..3c9810598331e 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -157,9 +157,9 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
-- Performance improvement in :meth:`Dat... | - [x] closes #50990
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added... | https://api.github.com/repos/pandas-dev/pandas/pulls/54824 | 2023-08-28T19:07:00Z | 2023-09-01T16:55:06Z | 2023-09-01T16:55:06Z | 2023-09-01T16:55:13Z |
REGR: clip raising for list-bound | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 018059ce2784f..3a4e8fdd91362 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7948,6 +7948,7 @@ def to_series(right):
)
elif isinstance(right, Series):
# axis=1 is default for DataFrame-with-Series ... | - [ ] closes #54817 (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/54823 | 2023-08-28T19:05:29Z | 2023-08-28T21:01:39Z | 2023-08-28T21:01:39Z | 2023-08-28T21:01:42Z |
DOC: Removing repeated NA | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 41ddbd048e6c5..fe65364896f54 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -134,11 +134,6 @@ is the missing value for datetime data.
Timestamp
-.. autosummary::
- :toctree: api/
-
- N... | - [x] closes #53404 (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/54821 | 2023-08-28T17:54:29Z | 2023-09-29T16:34:43Z | 2023-09-29T16:34:43Z | 2023-09-29T16:34:44Z |
REF: Dispatch ArrowExtensionArray.fillna methods to pad_or_backfill | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 528b085bd5236..70c59e94f6d27 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -40,7 +40,10 @@
from pandas.core.dtypes.dtypes import DatetimeTZDtype
from pandas.core.dtypes.missing import i... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54820 | 2023-08-28T17:38:02Z | 2023-08-28T19:56:52Z | 2023-08-28T19:56:52Z | 2023-08-28T20:08:26Z |
Backport PR #54801 on branch 2.1.x (BUG: repr aligning left for string dtype columns) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 19a8500928ab7..8f2667d69a322 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -717,6 +717,7 @@ Conversion
Strings
^^^^^^^
- Bug in :meth:`Series.str` that did not raise a ``TypeError`` when iterated... | Backport PR #54801: BUG: repr aligning left for string dtype columns | https://api.github.com/repos/pandas-dev/pandas/pulls/54819 | 2023-08-28T17:35:23Z | 2023-08-28T19:36:41Z | 2023-08-28T19:36:41Z | 2023-08-28T19:36:41Z |
DEP: Deprecate passing fill_value and freq to shift | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8f2667d69a322..e7fc83c35f56d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -587,6 +587,7 @@ Other Deprecations
- Deprecated values ``"pad"``, ``"ffill"``, ``"bfill"``, ``"backfill"`` for :meth:`Seri... | - [ ] 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/54818 | 2023-08-28T17:34:18Z | 2023-08-29T14:44:02Z | 2023-08-29T14:44:02Z | 2023-08-29T14:44:05Z |
Fix minor cython warning | diff --git a/pandas/_libs/writers.pyx b/pandas/_libs/writers.pyx
index bd5c0290b2879..48eedd1fd1af6 100644
--- a/pandas/_libs/writers.pyx
+++ b/pandas/_libs/writers.pyx
@@ -1,4 +1,5 @@
cimport cython
+from cython cimport Py_ssize_t
import numpy as np
from cpython cimport (
| Fixes
```
2023-08-26T19:21:26.6203637Z warning: /home/runner/work/pandas/pandas/pandas/_libs/writers.pyx:123:50: Unknown type declaration 'Py_ssize_t' in annotation, ignoring
2023-08-26T19:21:26.6253780Z warning: /home/runner/work/pandas/pandas/pandas/_libs/writers.pyx:123:50: Unknown type declaration 'Py_ssi... | https://api.github.com/repos/pandas-dev/pandas/pulls/54816 | 2023-08-28T16:10:42Z | 2023-08-28T19:35:34Z | 2023-08-28T19:35:34Z | 2023-08-28T19:35:37Z |
DOC: added docstring for `storage_options` in `read_html` | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 8a73c786825e3..10701be4f7e0b 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -23,6 +23,7 @@
AbstractMethodError,
EmptyDataError,
)
+from pandas.util._decorators import doc
from pandas.util._exceptions import find_stack_level
from pandas.uti... | - [x] closes #54772
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. | https://api.github.com/repos/pandas-dev/pandas/pulls/54815 | 2023-08-28T15:32:10Z | 2023-08-29T16:06:40Z | 2023-08-29T16:06:40Z | 2023-08-29T16:06:47Z |
Backport PR #54803 on branch 2.1.x (DOC: update docstrings for ffill and bfill (no longer aliases for fillna with method)) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b4281f6959997..fce9b35aa5c49 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7079,6 +7079,8 @@ def fillna(
See Also
--------
+ ffill : Fill values by propagating the last valid observation to next valid.
+... | Backport PR #54803: DOC: update docstrings for ffill and bfill (no longer aliases for fillna with method) | https://api.github.com/repos/pandas-dev/pandas/pulls/54814 | 2023-08-28T15:25:51Z | 2023-08-28T17:26:21Z | 2023-08-28T17:26:21Z | 2023-08-28T17:26:21Z |
Backport PR #54778 on branch 2.1.x (REGR: Index.union loses python string dtype) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1f15a4ad84755..0db0a3608a1f0 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5204,7 +5204,7 @@ def _from_join_target(self, result: np.ndarray) -> ArrayLike:
"""
if isinstance(self.values, BaseMa... | Backport PR #54778: REGR: Index.union loses python string dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/54813 | 2023-08-28T15:16:48Z | 2023-08-28T17:25:59Z | 2023-08-28T17:25:59Z | 2023-08-28T17:26:00Z |
Backport PR #54800 on branch 2.1.x (ExtensionArray.fillna: start with DeprecationWarning about added copy keyword) | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 7e647426e9726..a33c5d9303421 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2015,7 +2015,7 @@ def fillna(
"need to implement this keyword or an exception will be "
... | Backport PR #54800: ExtensionArray.fillna: start with DeprecationWarning about added copy keyword | https://api.github.com/repos/pandas-dev/pandas/pulls/54812 | 2023-08-28T15:10:43Z | 2023-08-28T17:25:37Z | 2023-08-28T17:25:37Z | 2023-08-28T17:25:37Z |
ERR: improve setitem error message for DatetimeArray | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index c3b8d1c0e79e8..61946caa3c142 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -625,15 +625,19 @@ def _validation_error_message(self, value, allow_listlike: bool = False) -> str:
... | This is a small detail, but currently we see this kind of error message:
```python
>>> ser = pd.Series(pd.arrays.DatetimeArray(np.arange(10, dtype="i8") * 24 * 3600 * 10**9))
>>> ser.searchsorted(["foo", "baz"])
TypeError: value should be a 'Timestamp', 'NaT', or array of those. Got 'StringArray' instead.
>>> se... | https://api.github.com/repos/pandas-dev/pandas/pulls/54809 | 2023-08-28T13:38:57Z | 2023-08-29T16:08:19Z | 2023-08-29T16:08:19Z | 2023-08-29T16:08:25Z |
Removed whitespace in README.md | diff --git a/README.md b/README.md
index 6fa20d237babe..52d2e134e18a2 100644
--- a/README.md
+++ b/README.md
@@ -167,9 +167,7 @@ There are also frequent [community meetings](https://pandas.pydata.org/docs/dev/
Additional information on the communication channels can be found on the [contributor community](https://pand... | - [ ] 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/54804 | 2023-08-28T12:29:56Z | 2023-08-28T12:33:23Z | null | 2023-08-28T12:33:23Z |
DOC: update docstrings for ffill and bfill (no longer aliases for fillna with method) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 021725899a1bb..b87772594cfbf 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7099,6 +7099,8 @@ def fillna(
See Also
--------
+ ffill : Fill values by propagating the last valid observation to next valid.
+... | Follow-up on https://github.com/pandas-dev/pandas/pull/54728 to do the same for `bfill`, and also updated both `ffill` and `bfill` to include the parameter section (now that only lived in fillna) | https://api.github.com/repos/pandas-dev/pandas/pulls/54803 | 2023-08-28T12:16:37Z | 2023-08-28T15:25:43Z | 2023-08-28T15:25:43Z | 2023-08-28T15:26:41Z |
Revert "MAINT: small simplification of meson.build following best practices" | diff --git a/meson.build b/meson.build
index e16f565d491fe..09a1494135af4 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@
project(
'pandas',
'c', 'cpp', 'cython',
- version: run_command(['python3', 'generate_version.py', '--print'], check: true).stdout().strip(),
+ version: run_command(['pyt... | Reverts pandas-dev/pandas#54737
cc @lithomas1 | https://api.github.com/repos/pandas-dev/pandas/pulls/54802 | 2023-08-28T12:13:49Z | 2023-08-28T17:36:01Z | 2023-08-28T17:36:01Z | 2023-08-28T17:36:07Z |
BUG: repr aligning left for string dtype columns | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 19a8500928ab7..8f2667d69a322 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -717,6 +717,7 @@ Conversion
Strings
^^^^^^^
- Bug in :meth:`Series.str` that did not raise a ``TypeError`` when iterated... | - [ ] closes #54797 (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/54801 | 2023-08-28T12:09:21Z | 2023-08-28T17:35:15Z | 2023-08-28T17:35:15Z | 2023-08-28T17:35:18Z |
ExtensionArray.fillna: start with DeprecationWarning about added copy keyword | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 12380752c198e..3b27f7e2eb80c 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2008,7 +2008,7 @@ def fillna(
"need to implement this keyword or an exception will be "
... | Follow-up on https://github.com/pandas-dev/pandas/pull/53728, changing the FutureWarning to DeprecationWarning. This warning is targetting EA authors, not end users, and thus we should start with a DeprecationWarning. | https://api.github.com/repos/pandas-dev/pandas/pulls/54800 | 2023-08-28T11:57:56Z | 2023-08-28T15:10:35Z | 2023-08-28T15:10:35Z | 2023-08-28T15:10:38Z |
Backport PR #54737 on branch 2.1.x (MAINT: small simplification of meson.build following best practices) | diff --git a/meson.build b/meson.build
index a927b59abeaf9..09a1494135af4 100644
--- a/meson.build
+++ b/meson.build
@@ -6,9 +6,6 @@ project(
license: 'BSD-3',
meson_version: '>=1.0.1',
default_options: [
- # TODO: investigate, does meson try to compile against debug Python
- # when buildty... | Backport PR #54737: MAINT: small simplification of meson.build following best practices | https://api.github.com/repos/pandas-dev/pandas/pulls/54799 | 2023-08-28T11:45:43Z | 2023-08-28T19:43:07Z | 2023-08-28T19:43:07Z | 2023-08-28T19:43:07Z |
Backport PR #54591 on branch 2.1.x (Implement any and all for pyarrow numpy strings) | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index bc1d7cb52e196..87dd48b3569d8 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -554,3 +554,16 @@ def value_counts(self, dropna: bool = True):
return Series(
result._... | #54591 | https://api.github.com/repos/pandas-dev/pandas/pulls/54796 | 2023-08-28T11:21:56Z | 2023-08-28T15:05:31Z | 2023-08-28T15:05:31Z | 2023-08-28T15:05:39Z |
Backport PR #54789 on branch 2.1.x (WARN: Remove non-actionable warning in value_counts) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 56e1b82c992c3..c34df3e0e865c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7260,7 +7260,7 @@ def value_counts(
subset = self.columns.tolist()
name = "proportion" if normalize else "count"
- counts = self.gro... | Backport PR #54789: WARN: Remove non-actionable warning in value_counts | https://api.github.com/repos/pandas-dev/pandas/pulls/54795 | 2023-08-28T10:35:06Z | 2023-08-28T12:30:58Z | 2023-08-28T12:30:58Z | 2023-08-28T12:30:58Z |
Infer string storage based on infer_string option | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 19a8500928ab7..7e5be1fdde71b 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -39,11 +39,15 @@ We are collecting feedback on this decision `here <https://github.com/pandas-dev
Avoid NumPy object dtype ... | - [x] closes #54793
- [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/54794 | 2023-08-28T10:32:36Z | 2023-08-29T08:36:21Z | 2023-08-29T08:36:21Z | 2023-08-29T22:07:57Z |
Backport PR #54527 on branch 2.1.x (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[:]
... | Backport PR #54527: BUG: Special-case setting nan into integer series | https://api.github.com/repos/pandas-dev/pandas/pulls/54791 | 2023-08-28T09:37:29Z | 2023-08-28T12:31:28Z | 2023-08-28T12:31:28Z | 2023-08-28T12:31:29Z |
WARN: Remove non-actionable warning in value_counts | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 53ab03696551e..018059ce2784f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7279,7 +7279,7 @@ def value_counts(
subset = self.columns.tolist()
name = "proportion" if normalize else "count"
- counts = self.gro... | - [x] closes #54775 (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/54789 | 2023-08-28T08:41:04Z | 2023-08-28T10:34:59Z | 2023-08-28T10:34:58Z | 2023-08-29T05:19:35Z |
BUG: creating dataframe from masked numpy array turns missing string … | diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx
index 4ba7bce51ed64..9ebab9a45a1d3 100644
--- a/pandas/_libs/testing.pyx
+++ b/pandas/_libs/testing.pyx
@@ -2,6 +2,7 @@ import cmath
import math
import warnings
+warnings.simplefilter(action="ignore", category=FutureWarning)
import numpy as np
fro... | …values into NaN
- [x] closes #54706 (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-doc... | https://api.github.com/repos/pandas-dev/pandas/pulls/54787 | 2023-08-28T02:49:05Z | 2023-10-09T18:34:00Z | null | 2023-10-09T18:34:00Z |
TYP: simple return types | diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py
index edbba9452b50a..95977edb600ad 100644
--- a/pandas/_testing/_io.py
+++ b/pandas/_testing/_io.py
@@ -118,7 +118,7 @@ def round_trip_localpath(writer, reader, path: str | None = None):
return obj
-def write_to_compressed(compression, path, data, de... | "simple" meaning, non-unions and non-overload return types (at least in most cases).
xref #47521
edit: sorry for changes in many files - I grep'ed for missing return types inferred by pyright and then fixed the resulting type errors. | https://api.github.com/repos/pandas-dev/pandas/pulls/54786 | 2023-08-28T00:20:20Z | 2023-08-31T17:52:56Z | 2023-08-31T17:52:56Z | 2023-09-19T15:24:48Z |
Backport PR #54783 on branch 2.1.x (CI: Remove strict option) | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 9daa1a67bc2c1..f87aef5385898 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -124,7 +124,7 @@ jobs:
run: |
cd asv_bench
asv machine --yes
- asv run --quick -... | Backport PR #54783: CI: Remove strict option | https://api.github.com/repos/pandas-dev/pandas/pulls/54785 | 2023-08-27T23:38:00Z | 2023-08-28T05:01:15Z | 2023-08-28T05:01:15Z | 2023-08-28T05:01:16Z |
CI: Unpin Cython | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 6410f2edd6175..1445e5e822017 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -233,8 +233,8 @@ jobs:
run: |
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-de... | - [ ] closes #54756 (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/54784 | 2023-08-27T21:52:58Z | 2023-09-16T02:03:22Z | 2023-09-16T02:03:22Z | 2023-09-16T13:37:46Z |
CI: Remove strict option | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 9daa1a67bc2c1..f87aef5385898 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -124,7 +124,7 @@ jobs:
run: |
cd asv_bench
asv machine --yes
- asv run --quick -... | It is there by default in asv > 0.6.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.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/54783 | 2023-08-27T21:42:06Z | 2023-08-27T23:36:38Z | 2023-08-27T23:36:38Z | 2023-08-28T01:16:33Z |
ENH: 54714 repeated sampling improvement | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 52bc43f52b1d3..04c37c572e37e 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -719,8 +719,7 @@ as a string.
df3 = pd.DataFrame({'col1': [1, 2, 3], 'col2': [2, 3, 4]})
df3.sam... | This PR contains enhanced functionality for df.sample() and df.groupby().sample(), with the addition of n_samples.
Currently, there is no way to take repeated samples to create a sampling distribution using pandas alone. Currently, one would need to create a list comprehension to perform the same, and numpy.random.... | https://api.github.com/repos/pandas-dev/pandas/pulls/54780 | 2023-08-27T17:41:17Z | 2023-09-18T16:58:37Z | null | 2023-09-18T16:58:38Z |
Backport PR #54755 on branch 2.1.x (BUG: merge raising for ea int and numpy float) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index f5758a079b1b5..19a8500928ab7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -816,6 +816,7 @@ Reshaping
- Bug in :func:`merge_asof` raising ``KeyError`` for extension dtypes (:issue:`52904`)
- Bug in... | #54755 | https://api.github.com/repos/pandas-dev/pandas/pulls/54779 | 2023-08-27T14:58:24Z | 2023-08-27T21:45:15Z | 2023-08-27T21:45:15Z | 2023-09-01T11:17:08Z |
REGR: Index.union loses python string dtype | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index a49db84450bb3..4fa8eb0cce2a2 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5194,7 +5194,7 @@ def _from_join_target(self, result: np.ndarray) -> ArrayLike:
"""
if isinstance(self.values, BaseMa... | - [x] closes #54745 (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/54778 | 2023-08-27T14:49:11Z | 2023-08-28T15:16:40Z | 2023-08-28T15:16:40Z | 2023-08-28T15:17:39Z |
BUG: pd.SparseDtype('int', 0) == pd.SparseDtype('int', pd.NA) returns pd.NA | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index f76163cbbd0a1..cfe19125ed717 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -1697,7 +1697,7 @@ def __eq__(self, other: object) -> bool:
if isinstance(other, type(self)):
subtype = self... | BUG: pd.SparseDtype('int', 0) == pd.SparseDtype('int', pd.NA) returns pd.NA
- [X] closes #54770(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... | https://api.github.com/repos/pandas-dev/pandas/pulls/54776 | 2023-08-26T22:27:15Z | 2023-09-25T20:45:21Z | null | 2023-09-25T20:45:22Z |
TST: remove redundant catch_warnings | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index 20530e37116f2..f230221c3ba62 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -1,7 +1,6 @@
from __future__ import annotations
import re
-import warnings
im... | xref #52064
removed redundant catch_warnings in pandas/tests/arrays/test_datetimelike.py | https://api.github.com/repos/pandas-dev/pandas/pulls/54774 | 2023-08-26T19:54:37Z | 2023-09-18T22:04:51Z | null | 2023-09-18T22:04:51Z |
Backport PR #54768 on branch 2.1.x (Fix roundtripping with pyarrow schema) | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index e3656b6ff4bcc..3af63c781d499 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -14,6 +14,7 @@
missing as libmissing,
)
from pandas._libs.arrays import NDArrayBacked
+from pandas._libs.lib import ensur... | Backport PR #54768: Fix roundtripping with pyarrow schema | https://api.github.com/repos/pandas-dev/pandas/pulls/54773 | 2023-08-26T19:07:36Z | 2023-08-27T05:45:08Z | 2023-08-27T05:45:08Z | 2023-08-27T05:45:08Z |
Fix roundtripping with pyarrow schema | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index 2394b9af2015e..1eaae0807fee1 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -15,6 +15,7 @@
missing as libmissing,
)
from pandas._libs.arrays import NDArrayBacked
+from pandas._libs.lib import ensur... | - [ ] 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/54768 | 2023-08-26T11:02:11Z | 2023-08-26T19:07:28Z | 2023-08-26T19:07:28Z | 2023-08-28T15:25:26Z |
Backport PR #54585 on branch 2.1.x (Use NaN as na_value for new pyarrow_numpy StringDtype) | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index 1e285f90e9fea..e3656b6ff4bcc 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -98,10 +98,14 @@ class StringDtype(StorageExtensionDtype):
name = "string"
- #: StringDtype().na_value uses pandas.N... | Backport PR #54585: Use NaN as na_value for new pyarrow_numpy StringDtype | https://api.github.com/repos/pandas-dev/pandas/pulls/54767 | 2023-08-26T10:41:39Z | 2023-08-26T13:14:49Z | 2023-08-26T13:14:49Z | 2023-08-26T13:14:49Z |
Backport PR #54750 on branch 2.1.x (Revert deprecation of con as keyword only arg) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index e3f18067e354d..f5758a079b1b5 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -586,7 +586,7 @@ Other Deprecations
- Deprecated the use of non-supported datetime64 and timedelta64 resolutions with :func... | Backport PR #54750: Revert deprecation of con as keyword only arg | https://api.github.com/repos/pandas-dev/pandas/pulls/54766 | 2023-08-26T07:57:48Z | 2023-08-26T10:40:15Z | 2023-08-26T10:40:15Z | 2023-08-26T10:40:16Z |
PERF: skip libjoin fastpath for MultiIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index a49db84450bb3..1fbf4381cb64e 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -124,6 +124,7 @@
from pandas.core.dtypes.generic import (
ABCDataFrame,
ABCDatetimeIndex,
+ ABCIntervalIndex,
ABCMult... | - [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/54765 | 2023-08-26T01:45:57Z | 2023-08-28T15:34:18Z | 2023-08-28T15:34:18Z | 2023-09-06T00:53:59Z |
Backport PR #54759 on branch 2.1.x (CI: Pin more cython) | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 030c9546fecca..6410f2edd6175 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -234,7 +234,7 @@ jobs:
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
. ~... | Backport PR #54759: CI: Pin more cython | https://api.github.com/repos/pandas-dev/pandas/pulls/54764 | 2023-08-26T00:46:51Z | 2023-08-26T07:57:20Z | 2023-08-26T07:57:20Z | 2023-08-26T07:57:20Z |
Backport PR #54752 on branch 2.1.x (REGR: groupby.count returning string dtype instead of numeric for string input) | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 5a7f42a535951..dd0c995e6acca 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -107,6 +107,7 @@ class providing the base-class of operations.
IntegerArray,
SparseArray,
)
+from pandas.core.arr... | Backport PR #54752: REGR: groupby.count returning string dtype instead of numeric for string input | https://api.github.com/repos/pandas-dev/pandas/pulls/54762 | 2023-08-25T18:59:26Z | 2023-08-25T20:59:11Z | 2023-08-25T20:59:11Z | 2023-08-25T20:59:11Z |
Backport PR #54699 on branch 2.1.x (BUG: setitem with object type inserting Series maintains Series) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index fabe910261c3d..e3f18067e354d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -729,6 +729,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` losing dtype when setting a :class:`DataFrame` into duplic... | Backport PR #54699: BUG: setitem with object type inserting Series maintains Series | https://api.github.com/repos/pandas-dev/pandas/pulls/54760 | 2023-08-25T18:01:53Z | 2023-08-25T20:58:27Z | 2023-08-25T20:58:27Z | 2023-08-25T20:58:27Z |
CI: Pin more cython | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 030c9546fecca..6410f2edd6175 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -234,7 +234,7 @@ jobs:
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
. ~... | - [ ] 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/54759 | 2023-08-25T17:38:42Z | 2023-08-26T00:36:20Z | 2023-08-26T00:36:20Z | 2023-08-26T00:45:48Z |
Backport PR #54757 on branch 2.1.x (CI: Pin Cython on CI) | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 638aaedecf2b5..2190136220c6c 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -6,7 +6,7 @@ dependencies:
# build dependencies
- versioneer[toml]
- - cython>=0.29.33
+ - cython>=0.29.33, <3.0.1
- meson[ninja]=1.0.1... | Backport PR #54757: CI: Pin Cython on CI | https://api.github.com/repos/pandas-dev/pandas/pulls/54758 | 2023-08-25T17:07:52Z | 2023-08-26T00:45:16Z | 2023-08-26T00:45:15Z | 2023-08-26T00:45:29Z |
CI: Pin Cython on CI | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index ffa7732c604a0..0534f54c42e9a 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -6,7 +6,7 @@ dependencies:
# build dependencies
- versioneer[toml]
- - cython>=0.29.33
+ - cython>=0.29.33, <3.0.1
- meson[ninja]=1.0.1... | - [ ] ref #54756 (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/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/54757 | 2023-08-25T14:48:41Z | 2023-08-25T17:06:42Z | 2023-08-25T17:06:42Z | 2023-08-25T17:33:11Z |
BUG: merge raising for ea int and numpy float | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index f5758a079b1b5..19a8500928ab7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -816,6 +816,7 @@ Reshaping
- Bug in :func:`merge_asof` raising ``KeyError`` for extension dtypes (:issue:`52904`)
- Bug in... | - [ ] closes #46178 (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/54755 | 2023-08-25T14:29:41Z | 2023-08-26T19:10:37Z | 2023-08-26T19:10:37Z | 2023-08-27T15:03:33Z |
REGR: groupby.count returning string dtype instead of numeric for string input | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 49b47545d6297..f0d73811227fa 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -107,6 +107,7 @@ class providing the base-class of operations.
IntegerArray,
SparseArray,
)
+from pandas.core.arr... | - [ ] closes #54751 (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/54752 | 2023-08-25T09:43:36Z | 2023-08-25T18:59:18Z | 2023-08-25T18:59:18Z | 2023-08-25T22:52:20Z |
Revert deprecation of con as keyword only arg | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index e3f18067e354d..f5758a079b1b5 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -586,7 +586,7 @@ Other Deprecations
- Deprecated the use of non-supported datetime64 and timedelta64 resolutions with :func... | - [x] closes #54749 (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/54750 | 2023-08-25T09:23:41Z | 2023-08-26T07:57:40Z | 2023-08-26T07:57:40Z | 2023-08-26T07:57:44Z |
PERF: Increase threashold for using binary search in IndexEngine | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 01c43486f800f..604fd9256e10f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -153,7 +153,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
--
+- Performance improvement when index... | # Checklist
- [x] closes #54550 (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... | https://api.github.com/repos/pandas-dev/pandas/pulls/54746 | 2023-08-25T02:31:53Z | 2023-08-26T19:12:09Z | 2023-08-26T19:12:09Z | 2023-08-26T21:49:54Z |
50557 | diff --git a/doc/source/user_guide/groupby.html b/doc/source/user_guide/groupby.html
new file mode 100644
index 0000000000000..4630138cad90d
--- /dev/null
+++ b/doc/source/user_guide/groupby.html
@@ -0,0 +1,2945 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "... | - [ ] closes #50557 (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/54744 | 2023-08-25T00:38:13Z | 2023-09-18T17:09:00Z | null | 2023-09-18T17:09:01Z |
CLN: Update LICENCES and reference where used | diff --git a/LICENSES/BOTTLENECK_LICENCE b/LICENSES/BOTTLENECK_LICENCE
new file mode 100644
index 0000000000000..f4bdbb1647ee6
--- /dev/null
+++ b/LICENSES/BOTTLENECK_LICENCE
@@ -0,0 +1,25 @@
+Copyright (c) 2010-2019 Keith Goodman
+Copyright (c) 2019 Bottleneck Developers
+All rights reserved.
+
+Redistribution and use... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54743 | 2023-08-25T00:21:27Z | 2023-08-25T17:18:30Z | 2023-08-25T17:18:30Z | 2023-08-25T17:18:32Z |
Backport PR #54728 on branch 2.1.x (Docs: Update doc string to not reference deprecated function fillna for ffill) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 954573febed41..09ebd9387220f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7348,7 +7348,7 @@ def ffill(
downcast: dict | None | lib.NoDefault = lib.no_default,
) -> Self | None:
"""
- Synonym for :met... | Backport PR #54728: Docs: Update doc string to not reference deprecated function fillna for ffill | https://api.github.com/repos/pandas-dev/pandas/pulls/54740 | 2023-08-24T21:07:38Z | 2023-08-24T22:44:39Z | 2023-08-24T22:44:39Z | 2023-08-24T22:44:39Z |
TYP: Added type hint to Index.repeat | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 796aadf9e4061..32c1ef1ff50f3 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1205,7 +1205,7 @@ def _maybe_disallow_fill(self, allow_fill: bool, fill_value, indices) -> bool:
"""
@Appender(_index_s... | - [ ] Fixes a bullet point on https://github.com/noatamir/pyladies-aug23-sprint/issues/5#issue-1805063243
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/54739 | 2023-08-24T20:58:20Z | 2023-08-29T16:28:07Z | 2023-08-29T16:28:07Z | 2023-08-29T16:30:22Z |
DOC: fix an example which raises an Error in whatsnew/v0.24.0.rst | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 38c6e1123aaae..4ad5f4e7b5c3d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1377,18 +1377,22 @@ the object's ``freq`` attribute (:issue:`21939`, :issue:`23878`).
*New behavior*:
-.. ipython:... | Fix an example in doc/source/whatsnew/v0.24.0.rst, which raises an Error (see https://pandas.pydata.org/docs/dev/whatsnew/v0.24.0.html#integer-addition-subtraction-with-datetimes-and-timedeltas-is-deprecated) | https://api.github.com/repos/pandas-dev/pandas/pulls/54738 | 2023-08-24T20:31:18Z | 2023-08-25T13:05:32Z | 2023-08-25T13:05:32Z | 2023-08-25T13:05:32Z |
MAINT: small simplification of meson.build following best practices | diff --git a/meson.build b/meson.build
index a927b59abeaf9..e16f565d491fe 100644
--- a/meson.build
+++ b/meson.build
@@ -2,13 +2,10 @@
project(
'pandas',
'c', 'cpp', 'cython',
- version: run_command(['python', 'generate_version.py', '--print'], check: true).stdout().strip(),
+ version: run_command(['py... | Just a couple of things I observed having a quick look at `meson.build`. | https://api.github.com/repos/pandas-dev/pandas/pulls/54737 | 2023-08-24T20:27:46Z | 2023-08-28T11:44:35Z | 2023-08-28T11:44:35Z | 2023-08-28T13:12:17Z |
Docs: fix for links on see also for DataFrame.agg | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 07756b6af04f5..53ab03696551e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9818,12 +9818,12 @@ def _gotitem(
--------
DataFrame.apply : Perform any type of operations.
DataFrame.transform : Perform transformation type opera... | - [x] fix for 1st bullet point on https://github.com/noatamir/pyladies-aug23-sprint/issues/13
- [ ] [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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/54736 | 2023-08-24T20:11:24Z | 2023-08-25T17:59:26Z | 2023-08-25T17:59:26Z | 2023-08-25T17:59:36Z |
Backport PR #54720 on branch 2.1.x (Infer strings as pyarrow_numpy backed strings) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5d46f819b07f9..fabe910261c3d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -21,7 +21,7 @@ PyArrow will become a required dependency with pandas 3.0
`PyArrow <https://arrow.apache.org/docs/python/i... | Backport PR #54720: Infer strings as pyarrow_numpy backed strings | https://api.github.com/repos/pandas-dev/pandas/pulls/54735 | 2023-08-24T19:30:11Z | 2023-08-24T21:33:27Z | 2023-08-24T21:33:27Z | 2023-08-24T21:33:27Z |
Deleted non-existing method reference. | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 9a934217ed5c1..761ec3cec66bf 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -5753,7 +5753,6 @@ def to_period(self, freq: str | None = None, copy: bool | None = None) -> Series
See Also
--------
Series.reindex ... | - [ ] 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/54734 | 2023-08-24T18:40:55Z | 2023-08-24T21:06:00Z | 2023-08-24T21:06:00Z | 2023-08-24T21:06:07Z |
adding dtype_backend=pyarrow in documentation | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index fb3e1ba32228c..0802207bad559 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -492,6 +492,19 @@ Setting ``dtype_backend="numpy_nullable"`` will result in nullable dtypes for ev
.. _io.categorical:
+Setting... | - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the lates... | https://api.github.com/repos/pandas-dev/pandas/pulls/54733 | 2023-08-24T18:40:20Z | 2023-10-09T18:36:41Z | null | 2023-10-09T18:36:42Z |
added description to parameters | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 53ab03696551e..08c26f111cdde 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4909,7 +4909,13 @@ def insert(
column : str, number, or hashable object
Label of the inserted column.
value : Scalar, Series, or arr... | - [ ] 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/54731 | 2023-08-24T18:31:58Z | 2023-09-18T17:16:04Z | null | 2023-09-18T17:16:04Z |
DOC: fix formatting in .at docstring | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index a2871f364f092..97578e3f1668b 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -604,12 +604,12 @@ def at(self) -> _AtIndexer:
Raises
------
KeyError
- * If getting a value and 'label' does not ... | - [x] Fix for 9th bullet point of https://github.com/noatamir/pyladies-aug23-sprint/issues/13
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Done during the 'Let's contribute to pandas - mentored workshop' event - PyLadies Berlin
@noat... | https://api.github.com/repos/pandas-dev/pandas/pulls/54730 | 2023-08-24T18:30:02Z | 2023-08-28T15:09:54Z | 2023-08-28T15:09:54Z | 2023-08-28T15:09:55Z |
typing improvements on level and fill_value in Series.eq | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 318f3fee2756b..f1bc67810b788 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -166,6 +166,7 @@
DtypeBackend,
DtypeObj,
FilePath,
+ Frequency,
IgnoreRaise,
IndexKeyFunc,
IndexLab... | - [x] item 6 and 7 in [issue#11](https://github.com/noatamir/pyladies-aug23-sprint/issues/11)
- [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/54729 | 2023-08-24T18:24:28Z | 2023-08-25T13:14:13Z | 2023-08-25T13:14:13Z | 2023-08-26T07:05:00Z |
Docs: Update doc string to not reference deprecated function fillna for ffill | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6e4d3610f4ffa..9682e5a864e2c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7368,7 +7368,7 @@ def ffill(
downcast: dict | None | lib.NoDefault = lib.no_default,
) -> Self | None:
"""
- Synonym for :met... | - [x] fix for 1st bullet point on https://github.com/noatamir/pyladies-aug23-sprint/issues/13
- [ ] [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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/54728 | 2023-08-24T17:31:53Z | 2023-08-24T21:07:30Z | 2023-08-24T21:07:30Z | 2023-08-25T00:42:34Z |
Backport PR #54721 on branch 2.1.x (BUG/WARN: Passing EA object to dtype instead of an instance) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b79797fa86431..5d46f819b07f9 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -837,6 +837,7 @@ ExtensionArray
- Bug in :meth:`Series.rank` returning wrong order for small values with ``Float64`` dtype ... | Backport PR #54721: BUG/WARN: Passing EA object to dtype instead of an instance | https://api.github.com/repos/pandas-dev/pandas/pulls/54726 | 2023-08-24T16:14:24Z | 2023-08-24T19:00:43Z | 2023-08-24T19:00:43Z | 2023-08-24T19:00:43Z |
TYP: Return type for eq/ne/div/... | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e9d8ba6aab4a8..07756b6af04f5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8067,43 +8067,49 @@ def _flex_cmp_method(self, other, op, *, axis: Axis = "columns", level=None):
return self._construct_result(new_data)
@Appender... | I was first trying to use `Self` (not sure whether it should be used here) but that seems to confuse mypy when the method is assigned to an alias (e.g., `subtract = sub`) as it then seems to loose track of what Self refers to. | https://api.github.com/repos/pandas-dev/pandas/pulls/54725 | 2023-08-24T14:01:24Z | 2023-08-24T16:18:16Z | 2023-08-24T16:18:16Z | 2023-09-19T15:24:48Z |
BUG/WARN: Passing EA object to dtype instead of an instance | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b79797fa86431..5d46f819b07f9 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -837,6 +837,7 @@ ExtensionArray
- Bug in :meth:`Series.rank` returning wrong order for small values with ``Float64`` dtype ... | - [x] closes #31356 (Replace xxxx with the GitHub issue number)
- [x] closes #54592 (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/54721 | 2023-08-23T22:37:14Z | 2023-08-24T16:13:19Z | 2023-08-24T16:13:19Z | 2023-08-24T16:13:35Z |
Infer strings as pyarrow_numpy backed strings | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b79797fa86431..8056e6f3393e9 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -21,7 +21,7 @@ PyArrow will become a required dependency with pandas 3.0
`PyArrow <https://arrow.apache.org/docs/python/i... | - [x] closes #54724 (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/54720 | 2023-08-23T21:58:39Z | 2023-08-24T19:30:03Z | 2023-08-24T19:30:03Z | 2023-08-28T09:48:30Z |
TST: clean ups in extension tests | diff --git a/pandas/tests/extension/base/accumulate.py b/pandas/tests/extension/base/accumulate.py
index 776ff80cd6e17..9a41a3a582c4a 100644
--- a/pandas/tests/extension/base/accumulate.py
+++ b/pandas/tests/extension/base/accumulate.py
@@ -23,14 +23,6 @@ def check_accumulate(self, ser: pd.Series, op_name: str, skipna:... | - [ ] 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/54719 | 2023-08-23T21:48:49Z | 2023-08-24T16:21:07Z | 2023-08-24T16:21:07Z | 2023-08-25T18:26:06Z |
DOC: add awkward-pandas to ecosystem page | diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md
index e9f5c8643b493..561503de416a5 100644
--- a/web/pandas/community/ecosystem.md
+++ b/web/pandas/community/ecosystem.md
@@ -511,9 +511,16 @@ assumptions about your datasets and check that they're *actually* true.
Pandas provides an ... | We'd love to have [awkward-pandas](https://github.com/intake/awkward-pandas) listed on the ecosystem webpage. (I added the package to the existing lists in alphabetical order, would be happy to reorder)
- [ ] 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/54718 | 2023-08-23T21:26:54Z | 2023-08-24T16:22:23Z | 2023-08-24T16:22:23Z | 2023-08-24T16:33:39Z |
CLN: Update vendored packaging Version | diff --git a/pandas/util/version/__init__.py b/pandas/util/version/__init__.py
index c72598eb50410..2ff1c256920a8 100644
--- a/pandas/util/version/__init__.py
+++ b/pandas/util/version/__init__.py
@@ -1,26 +1,23 @@
-# Vendored from https://github.com/pypa/packaging/blob/main/packaging/_structures.py
-# and https://gith... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54716 | 2023-08-23T17:34:02Z | 2023-08-25T00:22:18Z | null | 2023-08-25T00:22:21Z |
Backport PR #54533 on branch 2.1.x (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... | Backport PR #54533: Implement Arrow String Array that is compatible with NumPy semantics | https://api.github.com/repos/pandas-dev/pandas/pulls/54713 | 2023-08-23T16:46:02Z | 2023-08-23T21:09:24Z | 2023-08-23T21:09:24Z | 2023-08-23T21:09:24Z |
Backport PR #54707 on branch 2.1.x (BUG: ArrowExtensionArray.fillna with duration types) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 48ff769f6c737..4ba0e70393efb 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -381,8 +381,7 @@ def _box_pa_scalar(cls, value, pa_type: pa.DataType | None = None) -> pa.Scalar:
elif ... | Backport PR #54707: BUG: ArrowExtensionArray.fillna with duration types | https://api.github.com/repos/pandas-dev/pandas/pulls/54711 | 2023-08-23T15:42:30Z | 2023-08-23T18:39:10Z | 2023-08-23T18:39:10Z | 2023-08-23T18:39:10Z |
DEPR: downcasting in replace | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index e0e752099b77a..4a2aa565dd15c 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -401,7 +401,7 @@ Limit the number of NA values filled
df.ffill(limit=1)
-NA values c... | - [ ] 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/54710 | 2023-08-23T15:32:08Z | 2023-09-18T17:20:39Z | 2023-09-18T17:20:38Z | 2023-09-18T17:44:11Z |
BUG: ArrowExtensionArray.fillna with duration types | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 48ff769f6c737..4ba0e70393efb 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -381,8 +381,7 @@ def _box_pa_scalar(cls, value, pa_type: pa.DataType | None = None) -> pa.Scalar:
elif ... | - [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/54707 | 2023-08-23T10:29:28Z | 2023-08-23T15:37:37Z | 2023-08-23T15:37:37Z | 2023-09-06T00:53:59Z |
DOC: updated date_format description for read_csv | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index f01595a684344..10d3ab230cb9d 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -280,11 +280,20 @@
Use ``date_format`` instead, or read in as ``object`` and then apply
:func:`~pandas.to_datetime` ... | - [x] closes #54285
- [ ] [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/54705 | 2023-08-23T06:59:08Z | 2023-08-23T15:50:25Z | 2023-08-23T15:50:25Z | 2023-08-24T05:43:24Z |
DEPR: deprecated nonkeyword arguments in to_gbq | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index a9522a09d73be..f03a091541d03 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -134,6 +134,7 @@ Deprecations
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_clipboard`. (:issue:`54229... | - [x] xref #54229
- [ ] [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] A... | https://api.github.com/repos/pandas-dev/pandas/pulls/54704 | 2023-08-23T06:18:06Z | 2023-08-23T15:45:50Z | 2023-08-23T15:45:49Z | 2023-08-23T15:53:28Z |
DEPR: deprecated nonkeyword arguments in to_excel | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index f03a091541d03..15326aae428d4 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -134,6 +134,7 @@ Deprecations
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_clipboard`. (:issue:`54229... | - [x] closes #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
- [ ] 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/54703 | 2023-08-23T06:12:42Z | 2023-08-23T21:15:48Z | 2023-08-23T21:15:48Z | 2023-08-24T05:44:20Z |
TST: added test for fixed bug gh#50372 | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index e2fbc0653695b..9d11827e2923e 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -145,6 +145,23 @@ def test_frame_getitem_simple_key_... | - [x] closes #50372
- [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).
I added a test to prevent the bug describe... | https://api.github.com/repos/pandas-dev/pandas/pulls/54701 | 2023-08-23T04:19:26Z | 2023-08-23T21:12:44Z | 2023-08-23T21:12:44Z | 2023-08-23T21:12:51Z |
Backport PR #54508 on branch 2.1.x (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 7dd2fb570c695..3f7226890a5b5 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -622,6 +622,7 @@ Performance improvements
- Performance improvement in :meth:`.ArrowExtensionArray.to_numpy` (:issue:`52525... | Backport PR #54508: PERF: DataFrame.iloc[int] for EA dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/54700 | 2023-08-23T00:23:59Z | 2023-08-23T02:42:44Z | 2023-08-23T02:42:44Z | 2023-08-23T02:42:44Z |
BUG: setitem with object type inserting Series maintains Series | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b79797fa86431..f12caf3fb7ab6 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -727,6 +727,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` losing dtype when setting a :class:`DataFrame` into duplic... | - [x] closes #48933 (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/54699 | 2023-08-23T00:15:22Z | 2023-08-25T18:01:45Z | 2023-08-25T18:01:45Z | 2023-08-25T18:01:48Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.