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 |
|---|---|---|---|---|---|---|---|
GH-52093 : AttributeError raised with pd.concat between a None and Timestamp | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 107b22953ff79..ff4b6655e7ab9 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -207,6 +207,7 @@ Bug fixes
Categorical
^^^^^^^^^^^
- Bug in :meth:`Series.map` , where the value of the ``na_action`` par... | - [x] closes #52093
- [ ] [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/52433 | 2023-04-05T05:40:07Z | 2023-04-18T04:46:23Z | null | 2023-04-18T04:46:23Z |
#52405 Issue :Rename module from_dataframe to _from_dataframe | diff --git a/pandas/api/interchange/__init__.py b/pandas/api/interchange/__init__.py
index 2f3a73bc46b31..3f0792ab63c79 100644
--- a/pandas/api/interchange/__init__.py
+++ b/pandas/api/interchange/__init__.py
@@ -3,6 +3,6 @@
"""
from pandas.core.interchange.dataframe_protocol import DataFrame
-from pandas.core.inte... | - [x] closes #52405 (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/52432 | 2023-04-05T04:37:58Z | 2023-04-05T13:13:06Z | null | 2023-04-05T13:32:43Z |
PERF: Series.to_numpy with float dtype and na_value=np.nan | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 204393cbb76f2..ab66e82f73237 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -385,6 +385,9 @@ def time_to_numpy_double_copy(self):
def time_to_numpy_copy(self):
... | - [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/52430 | 2023-04-05T00:03:05Z | 2023-04-06T15:39:33Z | 2023-04-06T15:39:33Z | 2023-04-18T11:03:39Z |
REF: define reductions non-dynamically | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 74873abac0758..44320de2c3209 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -140,7 +140,10 @@
sanitize_array,
sanitize_masked_array,
)
-from pandas.core.generic import NDFrame
+from pandas.core.generic import (
+ NDFrame,
+ ... | - [ ] 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/52428 | 2023-04-04T23:02:26Z | 2023-04-05T15:22:41Z | 2023-04-05T15:22:41Z | 2023-04-05T15:25:39Z |
API: Series/DataFrame from empty dict should have RangeIndex | diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst
index 0122c84ba2a8e..179d216c0824b 100644
--- a/doc/source/whatsnew/v2.0.1.rst
+++ b/doc/source/whatsnew/v2.0.1.rst
@@ -27,7 +27,8 @@ Bug fixes
Other
~~~~~
--
+- :class:`DataFrame` created from empty dicts had :attr:`~DataFrame.columns` o... | - [x] closes #52404
- [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/52426 | 2023-04-04T22:18:16Z | 2023-04-10T20:11:37Z | 2023-04-10T20:11:37Z | 2023-04-10T20:38:54Z |
PERF: avoid is_dtype_equal | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 23196f2bffcf0..d93ecc087844c 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -36,10 +36,7 @@
validate_insert_loc,
)
-from pandas.core.dtypes.common import (
- is_dtype_equal,
- pandas_dtype,
... | This gets rid of all our non-test usages. | https://api.github.com/repos/pandas-dev/pandas/pulls/52424 | 2023-04-04T20:57:36Z | 2023-05-01T23:28:09Z | 2023-05-01T23:28:09Z | 2023-05-01T23:58:50Z |
TYP/TST: tests/mypy complaints failing locally | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index b832eb90aa422..05812ca466d3f 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -3129,6 +3129,7 @@ def _nth(
dropped = self.obj.dropna(how=dropna, axis=self.axis)
# get a new grouper f... | This un-xfails-on-mac a test that is passing locally. Also suppresses some mypy complaints. I'm still complaints:
```
pandas/io/formats/printing.py:266: error: Incompatible types in assignment (expression has type "Tuple[Type[Dict[Any, Any]]]", base class "BaseFormatter" defined the type as "Type[str]") [assignm... | https://api.github.com/repos/pandas-dev/pandas/pulls/52423 | 2023-04-04T20:56:00Z | 2023-04-07T02:29:06Z | 2023-04-07T02:29:06Z | 2023-04-07T03:14:44Z |
BUG: merge with arrow and numpy dtypes raises | diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst
index 0122c84ba2a8e..4fda2cd11ce12 100644
--- a/doc/source/whatsnew/v2.0.1.rst
+++ b/doc/source/whatsnew/v2.0.1.rst
@@ -20,7 +20,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed bug in :func:`merge` when merging with ``ArrowDtype`` o... | - [x] closes #52406 (Replace xxxx with the GitHub issue number)
- [x] closes #52435
- [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-d... | https://api.github.com/repos/pandas-dev/pandas/pulls/52422 | 2023-04-04T20:26:42Z | 2023-04-06T08:34:03Z | 2023-04-06T08:34:03Z | 2023-08-28T21:09:31Z |
PERF: lazify IO imports | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 6ddfbadcf91d1..c430857bbe40c 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -1,3 +1,4 @@
+# pylint: disable=undefined-all-variable
from __future__ import annotations
__docformat__ = "restructuredtext"
@@ -113,8 +114,6 @@
from pandas.tseries.ap... | - [ ] 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/52421 | 2023-04-04T20:23:09Z | 2023-05-03T17:07:32Z | null | 2023-05-03T17:07:37Z |
DEPR: allowing non-class returns for _constructor etc | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 93ca2541d7ecd..13b40089dc809 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -249,6 +249,7 @@ Other Deprecations
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_pickle` except ``pat... | - [x] closes #51772 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52420 | 2023-04-04T19:54:33Z | 2024-01-10T16:22:24Z | null | 2024-01-10T16:22:24Z |
DEPR: accepting Manager objects in DataFrame/Series | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 2c612e31d33b6..0293165a0b6e5 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -763,12 +763,14 @@ Parquet
Writing to a Parquet file:
.. ipython:: python
+ :okwarning:
df.to_parquet("foo.p... | - [ ] 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/52419 | 2023-04-04T19:23:56Z | 2023-10-17T21:23:28Z | 2023-10-17T21:23:27Z | 2023-10-30T21:26:21Z |
Backport PR #52400 on branch 2.0.x (DOC: Typo: Fix inline code block to use double quotes instead of triple quotes) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 385b807b3ca82..1ad198dedd4c0 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -66,7 +66,7 @@ Below is a possibly non-exhaustive list of changes:
1. Instantiating using a numpy numeric array now follows... | Backport PR #52400: DOC: Typo: Fix inline code block to use double quotes instead of triple quotes | https://api.github.com/repos/pandas-dev/pandas/pulls/52416 | 2023-04-04T16:58:08Z | 2023-04-04T20:21:33Z | 2023-04-04T20:21:33Z | 2023-04-04T20:21:33Z |
Backport PR #52399 on branch 2.0.x (DOC: Remove note about dtype_backend option in convert_dtypes) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9e082b7883e74..e549ab7a165fe 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6593,13 +6593,6 @@ def convert_dtypes(
In the future, as new dtypes are added that support ``pd.NA``, the results
of this method will cha... | Backport PR #52399: DOC: Remove note about dtype_backend option in convert_dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/52415 | 2023-04-04T16:55:21Z | 2023-04-04T20:21:22Z | 2023-04-04T20:21:21Z | 2023-04-04T20:21:22Z |
Fixup typo | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 8bb07f7cd88fb..058cc4d764716 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -66,7 +66,7 @@ Below is a possibly non-exhaustive list of changes:
1. Instantiating using a numpy numeric array now follows... | As it says on the tin!
Otherwise this renders as:
`` int64` `` | https://api.github.com/repos/pandas-dev/pandas/pulls/52414 | 2023-04-04T16:54:39Z | 2023-04-04T16:59:06Z | null | 2023-04-04T17:18:27Z |
CLN: refactor block storage selection to use dtype_class._is_numeric | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index a52d0ccc7c631..ebe9140ab461d 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -119,8 +119,10 @@
from pandas.core.api import Index
from pandas.core.arrays._mixins import NDArrayBackedExtens... | - [ ] 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/52413 | 2023-04-04T16:49:01Z | 2023-04-11T17:49:23Z | null | 2023-04-11T17:49:24Z |
PERF: refactor string construction benchmark | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index f270f1a83af39..9f1aeb7670628 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -25,33 +25,31 @@ def setup(self, dtype):
class Construction:
- params = ["str", "string"]
- param_names = ["d... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/52410 | 2023-04-04T16:04:24Z | 2023-04-06T16:31:55Z | 2023-04-06T16:31:55Z | 2023-04-06T16:32:07Z |
Rename module from_dataframe to _from_dataframe to fix issue #52405 | diff --git a/pandas/api/interchange/__init__.py b/pandas/api/interchange/__init__.py
index 2f3a73bc46b31..28735ac2a497d 100644
--- a/pandas/api/interchange/__init__.py
+++ b/pandas/api/interchange/__init__.py
@@ -2,7 +2,7 @@
Public API for DataFrame interchange protocol.
"""
+from pandas.core.interchange._from_data... | - [x] closes #52405
- [ ] [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/52409 | 2023-04-04T15:40:21Z | 2023-04-05T13:58:00Z | null | 2023-04-05T13:58:01Z |
numpy ravel with dataframe test GH#26247 | diff --git a/pandas/tests/frame/test_npfuncs.py b/pandas/tests/frame/test_npfuncs.py
index b40f953cd800e..f671ee9d04d7f 100644
--- a/pandas/tests/frame/test_npfuncs.py
+++ b/pandas/tests/frame/test_npfuncs.py
@@ -26,3 +26,47 @@ def test_np_sqrt(self, float_frame):
assert result.columns is float_frame.columns
... |
- [ ] closes #26247 (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/52403 | 2023-04-04T07:22:35Z | 2023-04-06T16:34:47Z | 2023-04-06T16:34:47Z | 2023-04-07T00:11:45Z |
TST: move DataFrame.applymap tests to tests/frame/methods/test_map.py | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index c7eb8c0332e84..7162f5c14c679 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -528,161 +528,6 @@ def test_apply_dict(df, dicts):
tm.assert_series_equal(reduce_none, ... | Currently the tests for `DataFrame.applymap` are mixed together with the tests for `DataFrame.apply`. Keeping them separate makes it easier to find tests for one method so I've moved the `applymap` ones to tests/frame/methods/test_map.py.
Note there is also a proposal to rename `DataFrame.applymap` to `DataFrame.map... | https://api.github.com/repos/pandas-dev/pandas/pulls/52402 | 2023-04-04T07:21:38Z | 2023-04-07T17:50:26Z | 2023-04-07T17:50:26Z | 2023-04-07T18:02:30Z |
DOC: Typo: Fix inline code block to use double quotes instead of triple quotes | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 8bb07f7cd88fb..058cc4d764716 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -66,7 +66,7 @@ Below is a possibly non-exhaustive list of changes:
1. Instantiating using a numpy numeric array now follows... | Correct triple quotes to double quotes for inline code.
| https://api.github.com/repos/pandas-dev/pandas/pulls/52400 | 2023-04-04T06:18:31Z | 2023-04-04T16:57:59Z | 2023-04-04T16:57:59Z | 2023-04-04T16:58:08Z |
DOC: Remove note about dtype_backend option in convert_dtypes | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index fb8a28b45b6df..8c6b163647f65 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6695,13 +6695,6 @@ def convert_dtypes(
In the future, as new dtypes are added that support ``pd.NA``, the results
of this method will cha... | - [X] closes #52390
| https://api.github.com/repos/pandas-dev/pandas/pulls/52399 | 2023-04-04T05:57:35Z | 2023-04-04T16:54:39Z | 2023-04-04T16:54:39Z | 2023-04-04T16:54:46Z |
Backport PR #52382 on branch 2.0.x (DOC: Add release notes for 2.0.1) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 821f77dbba3e2..6b12cd93ae387 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 2.0
.. toctree::
:maxdepth: 2
+ v2.0.1
v2.0.0
Version 1.5
diff --git a/doc/source/whatsne... | Backport PR #52382: DOC: Add release notes for 2.0.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/52398 | 2023-04-04T05:39:34Z | 2023-04-04T16:51:20Z | 2023-04-04T16:51:20Z | 2023-04-04T16:51:20Z |
DOC: Fix link points to other organization | diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst
index f935c27d9917d..f2198d1ce521d 100644
--- a/doc/source/development/roadmap.rst
+++ b/doc/source/development/roadmap.rst
@@ -113,7 +113,7 @@ By replacing the BlockManager we hope to achieve
* Improved micro-performance
* Option to... | - [x] closes #51625
- [ ] [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/52396 | 2023-04-04T04:00:13Z | 2023-04-04T17:14:04Z | 2023-04-04T17:14:04Z | 2023-04-04T17:14:11Z |
TST: `Groupby.agg` with mutliples ignores as_index False | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index dca0281d610ad..9a529f1cccb3c 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -1577,3 +1577,12 @@ def test_agg_groupings_selection... | - [x] closes #50724 (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/52395 | 2023-04-04T00:45:03Z | 2023-04-04T17:06:33Z | 2023-04-04T17:06:33Z | 2023-04-05T02:16:58Z |
TST: Fix some typo caused by myself previous pr | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index dca0281d610ad..02a3c8e3bf2b4 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -1520,8 +1520,8 @@ def test_agg_of_mode_list(test, c... | Caused by my previous pr, I happened to see it.
| https://api.github.com/repos/pandas-dev/pandas/pulls/52394 | 2023-04-04T00:32:27Z | 2023-04-04T17:07:22Z | 2023-04-04T17:07:21Z | 2023-04-05T02:16:36Z |
Backport PR #52392 on branch 2.0.x (fix #52389 : typo in "It row raises") | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 6365c692699b6..385b807b3ca82 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -95,7 +95,7 @@ Below is a possibly non-exhaustive list of changes:
4. :class:`Index` cannot be instantiated using a float... | Backport PR #52392: fix #52389 : typo in "It row raises" | https://api.github.com/repos/pandas-dev/pandas/pulls/52393 | 2023-04-04T00:20:59Z | 2023-04-04T16:54:03Z | 2023-04-04T16:54:03Z | 2023-04-04T16:54:04Z |
fix #52389 : typo in "It row raises" | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 3afdef4ba9b47..8bb07f7cd88fb 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -95,7 +95,7 @@ Below is a possibly non-exhaustive list of changes:
4. :class:`Index` cannot be instantiated using a float... | changed row to now in the statement "It row raises a NotImplementedError".
- [x] closes #52389
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/52392 | 2023-04-04T00:17:57Z | 2023-04-04T00:20:48Z | 2023-04-04T00:20:48Z | 2023-04-04T00:20:54Z |
BUG: dt.days for timedelta non-nano overflows int32 | diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py
index 23ae73811204c..3a2baec54109a 100644
--- a/asv_bench/benchmarks/tslibs/fields.py
+++ b/asv_bench/benchmarks/tslibs/fields.py
@@ -12,7 +12,7 @@
class TimeGetTimedeltaField:
params = [
_sizes,
- ["days", ... | - [ ] closes #52386 (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/52391 | 2023-04-04T00:15:45Z | 2023-04-14T17:48:42Z | 2023-04-14T17:48:42Z | 2023-04-14T17:48:46Z |
PERF: slightly faster dtype.kind checks | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 4af02839d831b..5bf99301d9261 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -747,7 +747,7 @@ cpdef ndarray[object] ensure_string_array(
if hasattr(arr, "to_numpy"):
- if hasattr(arr, "dtype") and arr.dtype.kind in ["m", "M"]... | - [ ] 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/52387 | 2023-04-03T22:27:32Z | 2023-04-04T00:19:55Z | 2023-04-04T00:19:55Z | 2023-04-04T01:18:14Z |
CLN: remove unused nan comparison functions, ensure_float | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 791208cab302b..cbf7da6a4dcd6 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -66,32 +66,6 @@
_is_scipy_sparse = None
ensure_float64 = algos.ensure_float64
-
-
-def ensure_float(arr):
- """
- Ensure t... | - [ ] 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/52385 | 2023-04-03T21:40:21Z | 2023-04-03T23:37:43Z | 2023-04-03T23:37:43Z | 2023-04-03T23:38:29Z |
TST: move Series.map tests to tests/series/methods/test_map.py | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 20abeb83834ee..70995506a9ac3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -276,6 +276,7 @@ Other
- Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`5172... | Currently the tests for `Series.map` are mixed together with the tests for `Series.apply`. Keeping them separate makes it easier to find tests for one method and I've moved the map ones to tests/series/methods/test_map.py.
Also fixed a bug that I found in this proces:
```python
>>> import pandas as pd
>>> ser =... | https://api.github.com/repos/pandas-dev/pandas/pulls/52384 | 2023-04-03T21:15:05Z | 2023-04-04T17:22:11Z | 2023-04-04T17:22:11Z | 2023-04-06T16:44:28Z |
DOC: Add release notes for 2.0.1 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 568c19c57aee0..555868d001118 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 2.0
.. toctree::
:maxdepth: 2
+ v2.0.1
v2.0.0
Version 1.5
diff --git a/doc/source/whatsne... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52382 | 2023-04-03T20:56:10Z | 2023-04-04T05:39:25Z | 2023-04-04T05:39:25Z | 2023-04-04T05:39:25Z |
PERF: Series.any/all | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bed47ee6cabd6..b43f3cb9be4bc 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11524,15 +11524,12 @@ def any(
skipna: bool_t = True,
**kwargs,
):
- return NDFrame.any(
- sel... | - [x] closes #26032 (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/52381 | 2023-04-03T20:20:44Z | 2023-04-04T17:27:33Z | 2023-04-04T17:27:32Z | 2023-04-04T17:29:26Z |
Backport PR #52377 on branch 2.0.x (DOC: Update doc version dropdown for pandas 2.0) | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index d71ac559ae86f..81021e5a7c72f 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -5,10 +5,15 @@
"url": "/docs/dev/"
},
{
- "name": "1.5 (stable)",
+ "name": "2.0 (stable)",
"version": "do... | Backport PR #52377: DOC: Update doc version dropdown for pandas 2.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/52380 | 2023-04-03T20:10:57Z | 2023-04-03T21:02:04Z | null | 2023-04-03T21:02:05Z |
DOC: Update release instructions | diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst
index 97de0fb343223..b8a39c0c91236 100644
--- a/doc/source/development/maintaining.rst
+++ b/doc/source/development/maintaining.rst
@@ -437,7 +437,7 @@ which will be triggered when the tag is pushed.
git tag -a v1.5.0.dev0... | Updating the release instructions since they still mention MacPython, and there were couple of code blocks that aren't rendering correctly. | https://api.github.com/repos/pandas-dev/pandas/pulls/52378 | 2023-04-03T15:37:24Z | 2023-04-03T17:18:35Z | 2023-04-03T17:18:35Z | 2023-04-17T23:46:41Z |
DOC: Update doc version dropdown for pandas 2.0 | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index d71ac559ae86f..81021e5a7c72f 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -5,10 +5,15 @@
"url": "/docs/dev/"
},
{
- "name": "1.5 (stable)",
+ "name": "2.0 (stable)",
"version": "do... | After this release I think we can start removing older versions from the drop down. I'd probably leave 5 versions at most. Thoughts? | https://api.github.com/repos/pandas-dev/pandas/pulls/52377 | 2023-04-03T15:21:07Z | 2023-04-03T20:10:49Z | 2023-04-03T20:10:48Z | 2023-04-03T20:10:49Z |
Backport PR #52375 on branch 2.0.x (Adding missing single-quote) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 2aaaefbf29a34..6365c692699b6 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -716,7 +716,7 @@ In the past, :func:`to_datetime` guessed the format for each element independent
Note that this affects :f... | Backport PR #52375: Adding missing single-quote | https://api.github.com/repos/pandas-dev/pandas/pulls/52376 | 2023-04-03T14:44:11Z | 2023-04-03T16:46:54Z | 2023-04-03T16:46:54Z | 2023-04-03T16:46:54Z |
Adding missing single-quote | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 6829f49b5d694..3afdef4ba9b47 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -717,7 +717,7 @@ In the past, :func:`to_datetime` guessed the format for each element independent
Note that this affects :f... | - [ ] 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/52375 | 2023-04-03T14:39:41Z | 2023-04-03T14:44:02Z | 2023-04-03T14:44:02Z | 2023-04-03T14:44:03Z |
Backport PR #52352 on branch 2.0.x (DOC: update documentation for YearBegin) | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 94c1c0c179782..9a9a325eb16a6 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2310,13 +2310,29 @@ cdef class YearEnd(YearOffset):
cdef class YearBegin(YearOffset):
"""
- DateOffset incre... | Backport PR #52352: DOC: update documentation for YearBegin | https://api.github.com/repos/pandas-dev/pandas/pulls/52374 | 2023-04-03T13:43:47Z | 2023-04-03T16:48:07Z | 2023-04-03T16:48:07Z | 2023-04-03T16:48:07Z |
Backport PR #52370 on branch 2.0.x (DOC: Update final date for pandas 2.0 release notes) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index efb72b862143f..2aaaefbf29a34 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_200:
-What's new in 2.0.0 (March XX, 2023)
-------------------------------------
+What's new in... | Backport PR #52370: DOC: Update final date for pandas 2.0 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/52372 | 2023-04-03T09:23:36Z | 2023-04-03T09:29:45Z | 2023-04-03T09:29:45Z | 2023-04-03T09:29:46Z |
Add a test for agg std | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index c7eb8c0332e84..f0f8b3befadcb 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1665,3 +1665,15 @@ def foo2(x, b=2, c=0):
columns=MultiIndex.from_tuples([("x", "f... | - [X] closes #18734
- [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/52371 | 2023-04-03T08:14:36Z | 2023-04-04T17:14:55Z | 2023-04-04T17:14:54Z | 2023-04-05T10:03:24Z |
DOC: Update final date for pandas 2.0 release notes | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 193f837400ac0..6829f49b5d694 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_200:
-What's new in 2.0.0 (March XX, 2023)
-------------------------------------
+What's new in... | xref #46776
Planning to merge this once the docs build is green. | https://api.github.com/repos/pandas-dev/pandas/pulls/52370 | 2023-04-03T07:54:34Z | 2023-04-03T09:23:05Z | 2023-04-03T09:23:05Z | 2023-04-03T09:23:06Z |
Backport PR #52068 on branch 2.0.x (CoW: Switch to copy=False everywhere for Series constructor) | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 4f153863c8cb8..29009c1627cfb 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -837,7 +837,7 @@ def value_counts(
if bins is not None:
from pandas.core.reshape.tile import cut
- values = Series(values... | Backport PR #52068: CoW: Switch to copy=False everywhere for Series constructor | https://api.github.com/repos/pandas-dev/pandas/pulls/52367 | 2023-04-02T20:32:34Z | 2023-04-03T02:49:26Z | 2023-04-03T02:49:26Z | 2023-04-03T02:49:27Z |
PERF: call np.errstate less | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index c036dc09948d8..74c24f263c3da 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -905,10 +905,9 @@ def _cmp_method(self, other, op):
# We have to use comp_method_OBJECT_ARRAY i... | These add a surprising amount of overhead. | https://api.github.com/repos/pandas-dev/pandas/pulls/52366 | 2023-04-02T17:45:20Z | 2023-04-03T17:51:48Z | 2023-04-03T17:51:48Z | 2023-04-03T17:52:52Z |
Bug: DataFrame.clip fixed for lower > upper | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 20abeb83834ee..d466dd28c4302 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -276,6 +276,7 @@ Other
- Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`5172... | Fixed behavior of DataFrame.clip for `lower` > `upper` arguments. Changed to be consistent with numpy - all equal to `upper`. Main reason of bug was undocumented swap of arguments for scalars and for list-like arguments comparison with initial DataFrame for both bounds.
- [x] closes #52147
- [x] [Tests added and p... | https://api.github.com/repos/pandas-dev/pandas/pulls/52365 | 2023-04-02T16:20:40Z | 2023-04-24T18:58:58Z | null | 2023-04-24T18:58:58Z |
API/DEPR: Rename DataFrame.applymap to DataFrame.map | diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst
index f2198d1ce521d..2d142453fb735 100644
--- a/doc/source/development/roadmap.rst
+++ b/doc/source/development/roadmap.rst
@@ -179,7 +179,7 @@ Numba-accelerated operations
`Numba <https://numba.pydata.org>`__ is a JIT compiler for ... | - [x] closes #52353
- [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/52364 | 2023-04-02T15:53:16Z | 2023-04-16T20:21:41Z | 2023-04-16T20:21:41Z | 2023-04-16T20:30:00Z |
Backport PR #52354 on branch 2.0.x (Fixed up formatting of docstring of DateOffset) | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index fd3d80a8a3fa6..94c1c0c179782 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1347,18 +1347,18 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
valid dates. For example, Bday(2... | Backport PR #52354: Fixed up formatting of docstring of DateOffset | https://api.github.com/repos/pandas-dev/pandas/pulls/52361 | 2023-04-02T14:34:23Z | 2023-04-02T17:04:08Z | 2023-04-02T17:04:08Z | 2023-04-02T17:04:08Z |
Backport PR #52311 on branch 2.0.x (DOC: Clarify Timestamp(unit=) will not necessarily set unit) | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 2134da209246e..6b707d4158f6c 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1290,6 +1290,9 @@ class Timestamp(_Timestamp):
Unit used for conversion if ts_input is of type int... | Backport PR #52311: DOC: Clarify Timestamp(unit=) will not necessarily set unit | https://api.github.com/repos/pandas-dev/pandas/pulls/52360 | 2023-04-02T14:20:19Z | 2023-04-02T17:04:25Z | 2023-04-02T17:04:25Z | 2023-04-02T17:04:25Z |
Backport PR #52330 on branch 2.0.x (ENH: Implement .dt.year for ArrowExtensionArray) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 8e1774c1ea45e..8e6b9db0fe7d4 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1945,6 +1945,10 @@ def _str_wrap(self, width, **kwargs):
"str.wrap not supported with pd.ArrowDtyp... | Backport PR #52330: ENH: Implement .dt.year for ArrowExtensionArray | https://api.github.com/repos/pandas-dev/pandas/pulls/52359 | 2023-04-02T14:13:46Z | 2023-04-02T17:35:56Z | 2023-04-02T17:35:56Z | 2023-04-02T17:35:57Z |
Backport PR #51966 on branch 2.0.x (CoW: __array__ not recognizing ea dtypes) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 586d7d653599b..9e082b7883e74 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -101,6 +101,7 @@
validate_inclusive,
)
+from pandas.core.dtypes.astype import astype_is_view
from pandas.core.dtypes.common import (
ensure_ob... | Backport PR #51966: CoW: __array__ not recognizing ea dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/52358 | 2023-04-02T14:11:43Z | 2023-04-02T17:04:36Z | 2023-04-02T17:04:36Z | 2023-04-02T17:04:37Z |
TYP: Fix type hint for params passed to read_sql_query | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ca2676488dd11..ab4039107b8aa 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -25,6 +25,7 @@
Any,
Iterator,
Literal,
+ Mapping,
cast,
overload,
)
@@ -357,7 +358,7 @@ def read_sql_query(
con,
index_col: str | list[str] |... | - [x] closes #49716
- [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/52357 | 2023-04-02T13:14:02Z | 2023-04-10T20:12:47Z | 2023-04-10T20:12:47Z | 2023-08-06T15:12:51Z |
DOC: Fix typo in developer's guide | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index d779e31253e09..07c22b9bdfb9b 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -349,7 +349,7 @@ If using :ref:`mamba <contributing.mamba>`, do::
If using :ref:`pip <c... | Fix a small typo.
| https://api.github.com/repos/pandas-dev/pandas/pulls/52356 | 2023-04-02T10:22:04Z | 2023-04-02T10:28:05Z | 2023-04-02T10:28:05Z | 2023-04-02T10:28:14Z |
DOC: cleanup whatsnew entry for na_action='ignore' | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index f9f1b87ddaef8..f1a713e5aebb2 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -21,8 +21,51 @@ enhancement1
.. _whatsnew_210.enhancements.enhancement2:
-enhancement2
-^^^^^^^^^^^^
+``map(func, na_ac... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52355 | 2023-04-02T09:57:00Z | 2023-04-04T00:18:35Z | 2023-04-04T00:18:35Z | 2023-04-04T00:37:14Z |
Fixed up formatting of docstring of DateOffset | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 9718641e75f60..8ec75cfa11052 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1350,18 +1350,18 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
valid dates. For example, Bday(2... | - [ ] closes #52325
| https://api.github.com/repos/pandas-dev/pandas/pulls/52354 | 2023-04-02T03:12:39Z | 2023-04-02T14:34:15Z | 2023-04-02T14:34:15Z | 2023-04-02T14:34:49Z |
DOC: update documentation for YearBegin | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 9718641e75f60..af64b8982f1b4 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2313,12 +2313,28 @@ cdef class YearEnd(YearOffset):
cdef class YearBegin(YearOffset):
"""
- DateOffset incre... | - [x] closes #52105
Updated documentation for YearBegin, added new examples. | https://api.github.com/repos/pandas-dev/pandas/pulls/52352 | 2023-04-01T21:31:25Z | 2023-04-03T13:43:35Z | 2023-04-03T13:43:35Z | 2023-04-03T13:43:36Z |
PERF: extract_array | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 0a46b8d9c6e3a..e34c0a25a1858 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -907,17 +907,12 @@ def _map_values(self, mapper, na_action=None, convert: bool = True):
If the function returns a tuple with more than one element
... | ```
import numpy as np
import pandas as pd
arr = np.arange(5)
ser = pd.Series(arr)
%timeit pd.core.construction.extract_array(arr, extract_numpy=True)
924 ns ± 23.5 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) # <- main
205 ns ± 15.6 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops... | https://api.github.com/repos/pandas-dev/pandas/pulls/52351 | 2023-04-01T19:14:07Z | 2023-04-02T15:24:36Z | 2023-04-02T15:24:36Z | 2023-04-02T17:30:47Z |
Backport PR #52332 on branch 2.0.x (Use date32 for pyarrow date) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 8612f5a4718cd..8e1774c1ea45e 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1999,7 +1999,7 @@ def _dt_second(self):
@property
def _dt_date(self):
- return type(self)(se... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52350 | 2023-04-01T17:34:16Z | 2023-04-01T19:42:03Z | 2023-04-01T19:42:03Z | 2023-04-09T17:50:36Z |
CI: Test development container | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index d6d43a8bfc13b..2e9bd70553611 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -11,8 +11,12 @@ on:
- 2.0.x
env:
+ COVERAGE: true
ENV_FILE: environment.yml
PANDAS_CI: 1
+ PYT... | - [x] closes #48537
- [ ] [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/52349 | 2023-04-01T17:14:06Z | 2023-04-04T16:28:56Z | null | 2023-04-04T16:28:57Z |
PERF: DataFrame.values for pyarrow-backed numeric types | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index ed1a9b193b3e4..47bb9c9a59e99 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -50,6 +50,7 @@
import pandas.core.algorithms as algos
from pandas.core.arrays._mixins import NDArrayBackedEx... | - [ ] 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/52348 | 2023-04-01T16:21:02Z | 2023-04-09T23:38:12Z | null | 2023-04-18T11:03:42Z |
Backport PR #52340 on branch 2.0.x (CI: Bump Circle CI versions) | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ac28728685ce4..e704c37df3e45 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3,7 +3,7 @@ version: 2.1
jobs:
test-arm:
machine:
- image: ubuntu-2004:202101-01
+ image: ubuntu-2004:2022.04.1
resource_class: arm.la... | Backport PR #52340: CI: Bump Circle CI versions | https://api.github.com/repos/pandas-dev/pandas/pulls/52347 | 2023-04-01T13:29:07Z | 2023-04-01T16:53:01Z | 2023-04-01T16:53:01Z | 2023-04-01T16:53:01Z |
CLN: minor change in StringFormatter | diff --git a/pandas/io/formats/string.py b/pandas/io/formats/string.py
index 071afc059b166..8ad545270dec1 100644
--- a/pandas/io/formats/string.py
+++ b/pandas/io/formats/string.py
@@ -166,7 +166,7 @@ def _fit_strcols_to_terminal_width(self, strcols: list[list[str]]) -> str:
dif = max_len - width
# '+... | This is more idiomatic + the old way got in the for some changes I'm experimenting with on `Series.apply`. | https://api.github.com/repos/pandas-dev/pandas/pulls/52346 | 2023-04-01T10:46:58Z | 2023-04-02T15:29:20Z | 2023-04-02T15:29:20Z | 2023-04-02T15:36:37Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index de36bf2d441c5..32abb1291d56a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -28,7 +28,7 @@ repos:
types_or: [python, pyi]
additional_dependencies: [black==23.1.0]
- repo: https://github.com/charliermarsh/ruf... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/main)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_... | https://api.github.com/repos/pandas-dev/pandas/pulls/52345 | 2023-04-01T07:04:42Z | 2023-04-28T09:59:07Z | null | 2023-04-28T19:17:44Z |
BUG: args offset in Timestamp.__new__ causes bugs | diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py
index 082220ee0dff2..a85a9aebe2e0c 100644
--- a/asv_bench/benchmarks/tslibs/timestamp.py
+++ b/asv_bench/benchmarks/tslibs/timestamp.py
@@ -48,6 +48,12 @@ def time_from_datetime_aware(self):
def time_from_pd_timestamp(... | - [x] closes #52343 , #52117
- [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-commi... | https://api.github.com/repos/pandas-dev/pandas/pulls/52344 | 2023-04-01T06:53:36Z | 2024-01-31T18:53:11Z | null | 2024-01-31T18:53:12Z |
REF: Use _python_apply_general internally | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 76e3c4dae54c0..a2621ce28ee48 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -2685,7 +2685,9 @@ def dtypes(self) -> Series:
)
# error: Incompatible return value type (got "DataFrame... | - [ ] 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/52342 | 2023-04-01T04:33:34Z | 2023-04-06T15:25:37Z | 2023-04-06T15:25:37Z | 2023-04-07T02:53:10Z |
PERF: Series.any | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 20abeb83834ee..5e99e610c33c6 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -149,6 +149,8 @@ Performance improvements
- Performance improvement in :meth:`Series.combine_first` (:issue:`51777`)
- Per... | ```
import numpy as np
import pandas as pd
s = pd.Series(np.random.randint(0, 2, 100000)).astype(bool)
In [8]: %timeit s.any(skipna=True)
19.5 µs ± 757 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each) # <- main
7.71 µs ± 142 ns... | https://api.github.com/repos/pandas-dev/pandas/pulls/52341 | 2023-04-01T03:58:09Z | 2023-04-03T18:19:20Z | 2023-04-03T18:19:20Z | 2023-04-03T19:04:37Z |
CI: Bump Circle CI versions | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ac28728685ce4..e704c37df3e45 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3,7 +3,7 @@ version: 2.1
jobs:
test-arm:
machine:
- image: ubuntu-2004:202101-01
+ image: ubuntu-2004:2022.04.1
resource_class: arm.la... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52340 | 2023-04-01T02:03:13Z | 2023-04-01T13:28:37Z | 2023-04-01T13:28:37Z | 2023-04-01T17:26:04Z |
PERF: Groupby.idxmax | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 89ffe6f225109..37c7d23a730e6 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1819,6 +1819,70 @@ def group_min(
)
+@cython.wraparound(False)
+@cython.boundscheck(False)
+def group_argmin_argmax(
+ int64_t[:, ::1] ... | cc @phofl this is currently failing locally and could use a fresh pair of eyes. | https://api.github.com/repos/pandas-dev/pandas/pulls/52339 | 2023-04-01T00:54:29Z | 2023-04-21T20:10:51Z | null | 2023-07-23T16:45:14Z |
DEPR: concat with mismatched length keys/objs | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 69a955dc3cd9f..a61400e20eaa4 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -110,6 +110,7 @@ Deprecations
- Deprecated :meth:`DataFrame._data` and :meth:`Series._data`, use public APIs instead (:issu... | - [x] closes #43485 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52337 | 2023-03-31T23:07:12Z | 2023-04-03T21:39:40Z | 2023-04-03T21:39:40Z | 2023-04-03T21:44:32Z |
PERF: PeriodDtype hash and eq | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index 6c2871cd746b8..0e695bf4e57eb 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -102,5 +102,6 @@ cdef enum PeriodDtypeCode:
cdef class PeriodDtypeBase:
cdef readonly:
PeriodDtypeCode _dtype... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52336 | 2023-03-31T22:34:47Z | 2023-04-03T18:30:46Z | 2023-04-03T18:30:46Z | 2023-04-03T19:02:33Z |
TYP: datetimelike arrays | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index b6c9af3a3b388..a494ae177f2bf 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -109,7 +109,6 @@
Shape,
SortKind,
npt,
- type_t,
)
from pandas imp... | - [ ] 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/52334 | 2023-03-31T21:30:58Z | 2023-04-03T22:28:59Z | 2023-04-03T22:28:59Z | 2023-04-03T22:31:32Z |
DEPR: groupby with as_index=False not including out-of-axis groupings | diff --git a/doc/source/whatsnew/v0.15.1.rst b/doc/source/whatsnew/v0.15.1.rst
index a1d4f9d14a905..07139ebad8737 100644
--- a/doc/source/whatsnew/v0.15.1.rst
+++ b/doc/source/whatsnew/v0.15.1.rst
@@ -70,9 +70,14 @@ API changes
current behavior:
- .. ipython:: python
+ .. code-block:: ipython
- df.groupby... | - [x] closes #49519 (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/52333 | 2023-03-31T20:56:10Z | 2023-04-17T17:15:26Z | 2023-04-17T17:15:26Z | 2023-04-17T20:44:23Z |
Use date32 for pyarrow date | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 998aa6b9e6f08..c8a31834ed261 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -2015,7 +2015,7 @@ def _dt_second(self):
@property
def _dt_date(self):
- return type(self)(se... | - [ ] 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/52332 | 2023-03-31T20:31:34Z | 2023-04-01T17:28:07Z | 2023-04-01T17:28:07Z | 2023-04-01T19:30:26Z |
ENH: Implement .dt.year for ArrowExtensionArray | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 998aa6b9e6f08..86a15ba6ca61b 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1961,6 +1961,10 @@ def _str_wrap(self, width: int, **kwargs):
"str.wrap not supported with pd.Arro... | - [ ] closes #52321 (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/52330 | 2023-03-31T18:18:15Z | 2023-04-02T14:13:38Z | 2023-04-02T14:13:38Z | 2023-04-02T18:07:59Z |
DOC streamline contributing guide a bit | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 07c22b9bdfb9b..ea69f0b907d8b 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -47,7 +47,7 @@ that is assigned, feel free to kindly ask the current assignee if you can... | - [ ] 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/52328 | 2023-03-31T17:01:31Z | 2023-04-06T16:36:43Z | 2023-04-06T16:36:43Z | 2023-04-06T16:36:49Z |
Backport PR #52220 on branch 2.0.x (BUG: zero-pad shorter years in `Timestamp.isoformat`) | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 33e8344c79d6c..2134da209246e 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1012,7 +1012,7 @@ cdef class _Timestamp(ABCTimestamp):
base_ts = "microseconds" if timespec == "na... | Backport PR #52220: BUG: zero-pad shorter years in `Timestamp.isoformat` | https://api.github.com/repos/pandas-dev/pandas/pulls/52327 | 2023-03-31T16:51:38Z | 2023-03-31T19:22:00Z | 2023-03-31T19:22:00Z | 2023-03-31T19:22:01Z |
PERF: new_block | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 88c95331cd393..12b5ce61195ea 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -569,8 +569,14 @@ cpdef update_blklocs_and_blknos(
def _unpickle_block(values, placement, ndim):
# We have to do some gymnastics b/c "... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/52326 | 2023-03-31T16:20:31Z | 2023-04-03T21:49:39Z | 2023-04-03T21:49:39Z | 2023-04-03T21:51:13Z |
BUG: GH52229 changed code in pandas/pandas/core/reshape/pivot.py _bui… | diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py
index ee5851fcc2dd6..1b3195f6c3839 100644
--- a/pandas/core/reshape/pivot.py
+++ b/pandas/core/reshape/pivot.py
@@ -863,7 +863,13 @@ def _build_names_mapper(
def get_duplicates(names):
seen: set = set()
- return {name for na... | …ld_names_mapper() to match docstring - replaces names of columns/rows
- [x] closes #52229
| https://api.github.com/repos/pandas-dev/pandas/pulls/52324 | 2023-03-31T12:19:00Z | 2023-04-24T19:01:03Z | null | 2023-04-24T19:01:04Z |
Backport PR #52097 on branch 2.0.x (DOC: improve (dark) theme getting started tutorials) | diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css
index 2eb69beb05cb5..e4c5964259349 100644
--- a/doc/source/_static/css/getting_started.css
+++ b/doc/source/_static/css/getting_started.css
@@ -10,6 +10,14 @@
font-size: 0.9rem;
}
+.gs-data-header {
+ background-... | Backport PR #52097: DOC: improve (dark) theme getting started tutorials | https://api.github.com/repos/pandas-dev/pandas/pulls/52320 | 2023-03-31T06:37:18Z | 2023-03-31T16:56:16Z | 2023-03-31T16:56:16Z | 2023-03-31T16:56:16Z |
CLN: Assorted cleanups | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e591298e2a58e..9233a63452bfa 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2832,11 +2832,6 @@ def blk_func(values: ArrayLike) -> ArrayLike:
else:
# We broadcast algorit... | Ref:
- https://github.com/pandas-dev/pandas/commit/871494846489e0964e3b77701c08eb482dd0b10f#r105292840
- https://github.com/pandas-dev/pandas/pull/52065/files#r1142381009
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/deve... | https://api.github.com/repos/pandas-dev/pandas/pulls/52318 | 2023-03-31T04:14:39Z | 2023-03-31T14:35:32Z | 2023-03-31T14:35:32Z | 2023-04-05T21:40:00Z |
Backport PR #52308 on branch 2.0.x (TYP: Remove unneeded type ignore) | diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py
index e734304471144..1f0341a608288 100644
--- a/pandas/io/formats/printing.py
+++ b/pandas/io/formats/printing.py
@@ -263,10 +263,7 @@ def enable_data_resource_formatter(enable: bool) -> None:
class TableSchemaFormatter(BaseFormat... | Backport PR #52308: TYP: Remove unneeded type ignore | https://api.github.com/repos/pandas-dev/pandas/pulls/52317 | 2023-03-31T02:34:34Z | 2023-03-31T03:40:49Z | 2023-03-31T03:40:49Z | 2023-03-31T03:40:49Z |
PERF: concat_compat | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 13fff4d4c9f2b..4af02839d831b 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -3060,6 +3060,9 @@ def dtypes_all_equal(list types not None) -> bool:
"""
first = types[0]
for t in types[1:]:
+ if t is first:
+ #... | Fastpath for all-matching-dtype case. | https://api.github.com/repos/pandas-dev/pandas/pulls/52316 | 2023-03-31T01:15:43Z | 2023-03-31T18:22:10Z | 2023-03-31T18:22:10Z | 2023-03-31T20:15:17Z |
TYP: concat_compat | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 5cddf3c2c865b..12e09795f2304 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1666,7 +1666,11 @@ def union_with_duplicates(
lvals = lvals._values
if isinstance(rvals, ABCIndex):
rvals = ... | - [ ] 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/52315 | 2023-03-31T00:38:27Z | 2023-03-31T17:00:05Z | 2023-03-31T17:00:05Z | 2023-03-31T18:34:05Z |
BUG: DataFrame.corrwith raising for pyarrow-backed dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 3a749708fb526..61e3bae2b4727 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -181,6 +181,7 @@ Timezones
Numeric
^^^^^^^
- Bug in :meth:`Series.corr` and :meth:`Series.cov` raising ``AttributeError``... | - [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/52314 | 2023-03-31T00:33:30Z | 2023-03-31T17:09:23Z | 2023-03-31T17:09:23Z | 2023-04-18T11:03:43Z |
Backport PR #52211 on branch 2.0.x (CI: Test pyarrow nightly instead of intermediate versions) | diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml
index 002d0020c2df1..b667075e87144 100644
--- a/.github/actions/setup-conda/action.yml
+++ b/.github/actions/setup-conda/action.yml
@@ -9,20 +9,9 @@ inputs:
extra-specs:
description: Extra packages to install
requi... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/52313 | 2023-03-30T23:58:44Z | 2023-03-31T02:33:33Z | 2023-03-31T02:33:33Z | 2023-03-31T02:33:37Z |
REF/PERF: pd.concat | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bb3573d148e98..f7d6dd15a8ac7 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9347,7 +9347,13 @@ def compare(
else:
axis = self._get_axis_number(align_axis)
- diff = concat([self, other], axis=axis, key... | Sits on top of #52291. Mostly a refactor making `Concatenator.__init__` less stateful, makes some of the annotations more accurate. A bit of a performance improvement from avoiding a `_get_concat_axis` in some cases. Makes it easier to spot in profiling where more overhead can be trimmed going forward. | https://api.github.com/repos/pandas-dev/pandas/pulls/52312 | 2023-03-30T21:49:05Z | 2023-04-03T22:34:30Z | 2023-04-03T22:34:30Z | 2023-04-03T22:36:11Z |
DOC: Clarify Timestamp(unit=) will not necessarily set unit | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 10a331f302cc4..e6d1571550b86 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1293,6 +1293,9 @@ class Timestamp(_Timestamp):
Unit used for conversion if ts_input is of type int... | - [ ] closes #52286 (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/52311 | 2023-03-30T21:13:24Z | 2023-04-02T14:20:10Z | 2023-04-02T14:20:10Z | 2023-04-02T18:08:55Z |
Backport PR #52298 on branch 2.0.x (Bump pypa/cibuildwheel from 2.9.0 to 2.12.1) | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 665aeb6bc7f87..f0d422b01e0c8 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -71,7 +71,7 @@ jobs:
fetch-depth: 0
- name: Build wheels
- uses: pypa/cibuildwheel@v2.9.0
+ us... | Backport PR #52298: Bump pypa/cibuildwheel from 2.9.0 to 2.12.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/52309 | 2023-03-30T19:49:37Z | 2023-03-30T22:54:41Z | 2023-03-30T22:54:41Z | 2023-03-30T22:54:41Z |
TYP: Remove unneeded type ignore | diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py
index 58c2d0a9aa574..0062a4737740e 100644
--- a/pandas/io/formats/printing.py
+++ b/pandas/io/formats/printing.py
@@ -263,10 +263,7 @@ def enable_data_resource_formatter(enable: bool) -> None:
class TableSchemaFormatter(BaseFormat... | Looks to be failing on 2.0 as well | https://api.github.com/repos/pandas-dev/pandas/pulls/52308 | 2023-03-30T18:14:28Z | 2023-03-31T02:33:51Z | 2023-03-31T02:33:51Z | 2023-03-31T02:33:55Z |
DOC: Include timedelta as freq for timedelta_range, interval_range, and date_range | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index d1245e8856ab2..3cf84804e0ae1 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -790,7 +790,7 @@ def date_range(
Right bound for generating dates.
periods : int, optional
Nu... | - [x] Closes #52287
- [] 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/52307 | 2023-03-30T18:09:16Z | 2023-03-31T17:12:05Z | 2023-03-31T17:12:05Z | 2023-03-31T17:12:12Z |
Backport PR #52304 on branch 2.0.x (DOC: Update link in user guide/style) | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 90e57ad4ad90f..79596c946c068 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1,6 +1,7 @@
{
"cells": [
{
+ "attachments": {},
"cell_type": "markdown",
"metadata": {},
"s... | Backport PR #52304: DOC: Update link in user guide/style | https://api.github.com/repos/pandas-dev/pandas/pulls/52306 | 2023-03-30T16:23:55Z | 2023-03-30T19:14:41Z | 2023-03-30T19:14:41Z | 2023-03-30T19:14:41Z |
DOC: Update link in user guide/style | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 90e57ad4ad90f..79596c946c068 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1,6 +1,7 @@
{
"cells": [
{
+ "attachments": {},
"cell_type": "markdown",
"metadata": {},
"s... | - DOC: Fixes broken link in [https://pandas.pydata.org/docs/user_guide/style.html](https://pandas.pydata.org/docs/user_guide/style.html).
- [x] Closes #52157
| https://api.github.com/repos/pandas-dev/pandas/pulls/52304 | 2023-03-30T14:29:09Z | 2023-03-30T16:23:08Z | 2023-03-30T16:23:08Z | 2023-03-30T17:56:04Z |
Bump pypa/cibuildwheel from 2.9.0 to 2.12.1 | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 31ed5096991a6..1d27085dc6039 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -71,7 +71,7 @@ jobs:
fetch-depth: 0
- name: Build wheels
- uses: pypa/cibuildwheel@v2.9.0
+ us... | Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.9.0 to 2.12.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p>
<blockquote>
<h2>v2.12.1</h2>
<ul>
<li>🐛 Fix a bug that prevented the u... | https://api.github.com/repos/pandas-dev/pandas/pulls/52298 | 2023-03-30T02:24:11Z | 2023-03-30T19:49:27Z | 2023-03-30T19:49:27Z | 2023-03-30T20:05:19Z |
Bump actions/stale from 4 to 8 | diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml
index c47745e097d17..8ead259f95ed3 100644
--- a/.github/workflows/stale-pr.yml
+++ b/.github/workflows/stale-pr.yml
@@ -13,7 +13,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-22.04
steps:
- - uses: actions/stale@v4
+ -... | Bumps [actions/stale](https://github.com/actions/stale) from 4 to 8.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/stale/releases">actions/stale's releases</a>.</em></p>
<blockquote>
<h2>v8.0.0</h2>
<p>:warning: This version contains breaking changes :warning:</p>
<h... | https://api.github.com/repos/pandas-dev/pandas/pulls/52297 | 2023-03-30T02:24:07Z | 2023-03-30T03:11:49Z | 2023-03-30T03:11:49Z | 2023-03-30T03:11:53Z |
Bump pre-commit/action from 2.0.3 to 3.0.0 | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 9756843350036..d6d43a8bfc13b 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -35,7 +35,7 @@ jobs:
python-version: '3.9'
- name: Run pre-commit
- uses: pre-commit/action... | Bumps [pre-commit/action](https://github.com/pre-commit/action) from 2.0.3 to 3.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pre-commit/action/releases">pre-commit/action's releases</a>.</em></p>
<blockquote>
<h2>pre-commit/action@v3.0.0</h2>
<h3>Breaking</h3>
<ul>
<li... | https://api.github.com/repos/pandas-dev/pandas/pulls/52296 | 2023-03-30T02:24:02Z | 2023-03-30T03:10:01Z | 2023-03-30T03:10:01Z | 2023-03-30T03:10:05Z |
combine_first with mix tz test GH#26283 | diff --git a/pandas/tests/series/methods/test_combine_first.py b/pandas/tests/series/methods/test_combine_first.py
index 25a3dfe42e843..46af5f509d6ab 100644
--- a/pandas/tests/series/methods/test_combine_first.py
+++ b/pandas/tests/series/methods/test_combine_first.py
@@ -120,3 +120,26 @@ def test_combine_first_preserv... | - [ ] closes #26283 (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/52294 | 2023-03-30T00:59:39Z | 2023-03-30T16:37:58Z | 2023-03-30T16:37:58Z | 2023-03-31T00:03:30Z |
MAINT: Move dependabot to .github folder | diff --git a/.github/workflows/dependabot.yml b/.github/dependabot.yml
similarity index 100%
rename from .github/workflows/dependabot.yml
rename to .github/dependabot.yml
| Accidentally put this in the `.github/workflows` folder when it should have just have been in `.github/` like in https://github.com/numpy/numpy/tree/main/.github | https://api.github.com/repos/pandas-dev/pandas/pulls/52293 | 2023-03-30T00:41:44Z | 2023-03-30T02:23:30Z | 2023-03-30T02:23:30Z | 2023-03-30T02:23:34Z |
Backport PR #52239 on branch 2.0.x (CI: Try running single_cpu/not single_cpu tests together) | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index b7ca0e45352e4..a5187542f0514 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -25,7 +25,8 @@ jobs:
strategy:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-3... | Backport PR #52239: CI: Try running single_cpu/not single_cpu tests together | https://api.github.com/repos/pandas-dev/pandas/pulls/52292 | 2023-03-30T00:15:57Z | 2023-03-30T02:24:22Z | 2023-03-30T02:24:22Z | 2023-03-30T02:24:23Z |
PERF: concat | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index d54b37c06c6bd..f80fb0320a209 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -41,6 +41,14 @@
)
+def _is_nonempty(x, axis) -> bool:
+ # filter empty arrays
+ # 1-d dtypes always are included here... | xref #23362 (closes? not sure how much more we can do)
```
import numpy as np
import pandas as pd
a = np.random.randint(2000, 2100, size=1000)
b = np.random.randint(2000, 2100, size=1000)
x = pd.core.arrays.period_array(a, freq='B')
y = pd.core.arrays.period_array(b, freq='B')
s = pd.Series(x)
t = pd.... | https://api.github.com/repos/pandas-dev/pandas/pulls/52291 | 2023-03-29T23:48:07Z | 2023-03-31T22:49:50Z | 2023-03-31T22:49:50Z | 2023-03-31T22:52:02Z |
PERF: concat_same_type for PeriodDtype | diff --git a/pandas/_libs/arrays.pyi b/pandas/_libs/arrays.pyi
index c9350ed9b8a75..78fee8f01319c 100644
--- a/pandas/_libs/arrays.pyi
+++ b/pandas/_libs/arrays.pyi
@@ -3,7 +3,9 @@ from typing import Sequence
import numpy as np
from pandas._typing import (
+ AxisInt,
DtypeObj,
+ Self,
Shape,
)
@@... | xref #23362
```
import numpy as np
import pandas as pd
a = np.random.randint(2000, 2100, size=1000)
b = np.random.randint(2000, 2100, size=1000)
x = pd.core.arrays.period_array(a, freq='B')
y = pd.core.arrays.period_array(b, freq='B')
%timeit x._concat_same_type([x, y])
6.86 µs ± 75.2 ns per loop (mean... | https://api.github.com/repos/pandas-dev/pandas/pulls/52290 | 2023-03-29T23:05:45Z | 2023-03-30T16:44:14Z | 2023-03-30T16:44:14Z | 2023-03-30T16:45:05Z |
Backport PR #52276 on branch 2.0.x (API / CoW: Respect CoW for DataFrame(Index)) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index d9495d843d939..efb72b862143f 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -191,7 +191,8 @@ Copy-on-Write improvements
of those Series objects for the columns of the DataFrame (:issue:`50777`)
... | Backport PR #52276: API / CoW: Respect CoW for DataFrame(Index) | https://api.github.com/repos/pandas-dev/pandas/pulls/52289 | 2023-03-29T22:32:35Z | 2023-03-30T00:24:53Z | 2023-03-30T00:24:53Z | 2023-03-30T00:24:53Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.