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 #44839 on branch 1.4.x (REGR: allow reindexing datetimelike with upcast / raise deprecation warning) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 2a77b755d5076..2c501fa9e05f2 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -784,6 +784,7 @@ Datetimelike
- Bug in :meth:`Index.insert` for inserting ``np.datetime64``, ``np.timedelta64`` or ``tuple`... | Backport PR #44839: REGR: allow reindexing datetimelike with upcast / raise deprecation warning | https://api.github.com/repos/pandas-dev/pandas/pulls/45406 | 2022-01-16T23:38:53Z | 2022-01-17T12:20:37Z | 2022-01-17T12:20:37Z | 2022-01-17T12:20:37Z |
REF: share NumericIndex.astype+Index.astype | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 717abb998dd65..a855ccdaa154f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -52,6 +52,7 @@
from pandas.compat.numpy import function as nv
from pandas.errors import (
DuplicateLabelError,
+ IntCastingNaN... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
The process here surfaced a couple of places where the Index/Series behavior is incons... | https://api.github.com/repos/pandas-dev/pandas/pulls/45405 | 2022-01-16T21:49:57Z | 2022-01-22T00:29:03Z | 2022-01-22T00:29:03Z | 2022-01-22T00:50:53Z |
BUG/PERF: MaskedArray.__setitem__ validation | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index a9366f122bb5d..04c2624e3ae21 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -55,6 +55,7 @@
from pandas.core.dtypes.inference import is_array_like
from pandas.core.dtypes.missing import (
array_equivale... | - [x] closes #44172
- [x] closes #44186
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Fixes a bunch of ways we currently allow invalid setting, but AT... | https://api.github.com/repos/pandas-dev/pandas/pulls/45404 | 2022-01-16T21:42:50Z | 2022-01-17T13:45:17Z | 2022-01-17T13:45:16Z | 2022-01-17T20:24:44Z |
REF: simplify Block.setitem | diff --git a/pandas/core/indexers/utils.py b/pandas/core/indexers/utils.py
index 41920727c50fd..8c38341e02e34 100644
--- a/pandas/core/indexers/utils.py
+++ b/pandas/core/indexers/utils.py
@@ -104,14 +104,13 @@ def is_scalar_indexer(indexer, ndim: int) -> bool:
return False
-def is_empty_indexer(indexer, arr_v... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Yak-shaving to get to a point where we can share Block.setitem with Block subclasses. | https://api.github.com/repos/pandas-dev/pandas/pulls/45403 | 2022-01-16T21:28:08Z | 2022-01-19T21:55:28Z | 2022-01-19T21:55:28Z | 2022-01-19T22:09:05Z |
CLN: assorted follow-ups | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 64ee843f1d946..238f1382890c9 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -996,7 +996,7 @@ def series_generator(self):
# GH#35462 re-pin mgr in case setitem changed it
ser._mgr = mgr
mgr.... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45402 | 2022-01-16T21:15:09Z | 2022-01-17T13:48:15Z | 2022-01-17T13:48:15Z | 2022-01-17T15:58:52Z |
CLN: reuse common_dtype_categorical_compat | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index 40f5af9d0c0dd..d3d755b205878 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -16,9 +16,11 @@
from pandas.util._exceptions import find_stack_level
from pandas.core.dtypes.astype import astype_array
-from pa... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45401 | 2022-01-16T19:22:02Z | 2022-01-17T00:55:01Z | 2022-01-17T00:55:01Z | 2022-01-17T00:57:21Z |
CLN: consolidate arg no longer needed | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 504b6d507a87e..075b1437992a4 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -224,9 +224,9 @@ def _obj_with_exclusions(self):
if len(self.exclusions) > 0:
# equivalent to `self.obj.drop(self.exclusions, axis=1)
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45400 | 2022-01-16T19:19:44Z | 2022-01-17T00:54:48Z | 2022-01-17T00:54:48Z | 2022-01-17T01:46:27Z |
Backport PR #45389 on branch 1.4.x (REG/REF: close file handles engine-independently in read_csv) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 64d8e36177051..aae19906fbc41 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -874,6 +874,7 @@ I/O
- Bug in :func:`read_csv` when passing a ``tempfile.SpooledTemporaryFile`` opened in binary mode (:iss... | Backport PR #45389: REG/REF: close file handles engine-independently in read_csv | https://api.github.com/repos/pandas-dev/pandas/pulls/45398 | 2022-01-16T18:10:58Z | 2022-01-17T00:52:46Z | 2022-01-17T00:52:46Z | 2022-01-17T00:52:46Z |
Backport PR #45363 on branch 1.4.x (BUG: correctly instantiate subclassed DataFrame/Series in groupby apply) | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 984cb6d932487..29073cc23b133 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -753,6 +753,7 @@ def apply(
zipped = zip(group_keys, splitter)
for key, group in zipped:
+ group = group.__fi... | Backport PR #45363: BUG: correctly instantiate subclassed DataFrame/Series in groupby apply | https://api.github.com/repos/pandas-dev/pandas/pulls/45397 | 2022-01-16T16:58:38Z | 2022-01-16T23:36:33Z | 2022-01-16T23:36:33Z | 2022-01-16T23:36:34Z |
Backport PR #45393 on branch 1.4.x (DOC: whatsnew note for groupby.apply bugfix) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 64d8e36177051..2a77b755d5076 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -379,6 +379,65 @@ instead (:issue:`26314`).
.. --------------------------------------------------------------------------... | Backport PR #45393: DOC: whatsnew note for groupby.apply bugfix | https://api.github.com/repos/pandas-dev/pandas/pulls/45396 | 2022-01-16T16:56:49Z | 2022-01-16T22:42:42Z | 2022-01-16T22:42:42Z | 2022-01-16T22:42:42Z |
Backport PR #45371 on branch 1.4.x (PERF: avoid SQL MetaData reflection in init #45260) | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 022ed2df8598d..f7fdc47afa8d1 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -1378,7 +1378,6 @@ def __init__(self, engine, schema: str | None = None):
self.connectable = engine
self.meta = MetaData(schema=schema)
- self.meta.refle... | Backport PR #45371: PERF: avoid SQL MetaData reflection in init #45260 | https://api.github.com/repos/pandas-dev/pandas/pulls/45395 | 2022-01-16T16:50:02Z | 2022-01-16T20:23:51Z | 2022-01-16T20:23:50Z | 2022-01-16T20:23:51Z |
Backport PR #45377 on branch 1.4.x (REGR: DataFrame.reset_index with empty RangeIndex) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 862b6f0e43d50..22ab2bff4cb09 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2080,8 +2080,14 @@ def _drop_level_numbers(self, levnums: list[int]):
if len(lev) == 0:
# If lev is emp... | Backport PR #45377: REGR: DataFrame.reset_index with empty RangeIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/45394 | 2022-01-16T16:49:43Z | 2022-01-16T20:23:38Z | 2022-01-16T20:23:38Z | 2022-01-16T20:23:38Z |
DOC: whatsnew note for groupby.apply bugfix | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 64d8e36177051..2a77b755d5076 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -379,6 +379,65 @@ instead (:issue:`26314`).
.. --------------------------------------------------------------------------... | ref https://github.com/pandas-dev/pandas/issues/45315#issuecomment-1013655106
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45393 | 2022-01-16T16:10:46Z | 2022-01-16T16:56:40Z | 2022-01-16T16:56:40Z | 2022-01-16T19:57:45Z |
Fix Stale Action commenting on issues | diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml
index 1c233faf561fb..b97b60717a2b8 100644
--- a/.github/workflows/stale-pr.yml
+++ b/.github/workflows/stale-pr.yml
@@ -14,7 +14,8 @@ jobs:
stale-pr-message: "This pull request is stale because it has been open for thirty days with no... | Seems when bumping `actions/stale` to v4, it started adding the `Stale` label on issues. Hopefully this fixes that.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45391 | 2022-01-16T02:24:34Z | 2022-01-16T17:15:29Z | 2022-01-16T17:15:29Z | 2022-01-16T18:52:25Z |
DOC: Improve 10min/EnhancingPerf.rst | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 08488a33936f0..494d5308b284c 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -29,7 +29,7 @@ a default integer index:
s = pd.Series([1, 3, 5, np.nan, 6, 8])
s
-Creating a :class:`DataFrame... | * Add more reference links
* Convert `code-block` to `ipython`
| https://api.github.com/repos/pandas-dev/pandas/pulls/45390 | 2022-01-16T02:19:26Z | 2022-01-17T13:49:43Z | 2022-01-17T13:49:43Z | 2022-01-17T18:17:06Z |
REG/REF: close file handles engine-independently in read_csv | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 64d8e36177051..aae19906fbc41 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -874,6 +874,7 @@ I/O
- Bug in :func:`read_csv` when passing a ``tempfile.SpooledTemporaryFile`` opened in binary mode (:iss... | - [ ] closes #45384
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Open file handles in TextFileParser instead of in the read_csv engines. This makes it... | https://api.github.com/repos/pandas-dev/pandas/pulls/45389 | 2022-01-15T21:25:44Z | 2022-01-16T18:10:49Z | 2022-01-16T18:10:49Z | 2022-01-16T18:11:09Z |
BUG: Fix file leaks in csv parsers (GH#45384) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 64d8e36177051..5b587df47e635 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -874,6 +874,7 @@ I/O
- Bug in :func:`read_csv` when passing a ``tempfile.SpooledTemporaryFile`` opened in binary mode (:iss... | - [x] closes #45384
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
I originally tried to implement the tests using the `@td.check_file_leaks` decorator ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45388 | 2022-01-15T21:25:20Z | 2022-01-16T18:11:24Z | null | 2022-01-16T18:11:24Z |
PERF: use groupby.transform fast path for DataFrame -> Series aggregations | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index ff58e382a9ba2..342a3403f0cfa 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -735,6 +735,12 @@ def setup(self):
data = DataFrame(arr, index=index, columns=["col1", "col20", "col3"])
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
The groupby.transform fast path is currently only taken for DataFrame -> DataFrame o... | https://api.github.com/repos/pandas-dev/pandas/pulls/45387 | 2022-01-15T20:08:35Z | 2022-01-23T00:21:51Z | 2022-01-23T00:21:51Z | 2022-03-02T01:13:01Z |
Update the common.py file | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 109073c7511d0..af03cd070e5de 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -1775,6 +1775,12 @@ def pandas_dtype(dtype) -> DtypeObj:
# raise a consistent TypeError if failed
try:
npdtype = ... | Solve the dtype issue in pandas
- [ ] closes #45345
- [ Update the pandas.dtype function at line no. 1779] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45386 | 2022-01-15T18:46:46Z | 2022-01-16T18:54:54Z | null | 2022-01-16T18:54:54Z |
DOC: Improve scale.rst | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index 71aef4fdd75f6..e23253d8253e0 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -18,36 +18,9 @@ tool for all situations. If you're working with very large datasets and a tool
like PostgreSQL fits you... | * Add more `:class:` tags
* Unsupress set up code for reader reproducibility
* Inline helper function for set up in docs that was not used elsewhere.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45385 | 2022-01-15T18:17:59Z | 2022-01-16T17:05:04Z | 2022-01-16T17:05:04Z | 2022-01-16T18:55:05Z |
BUG: no `apply` to empty df in `Styler` | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9a6455d4d012f..ad28b2f918ba4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -20,6 +20,7 @@ Styler
^^^^^^
- New method :meth:`.Styler.to_string` for alternative customisable output methods (:issu... | - [x] closes #45313
- [ ] <s>whatsnew entry 1.4.0 **can be backported**</s>
| https://api.github.com/repos/pandas-dev/pandas/pulls/45383 | 2022-01-15T08:38:46Z | 2022-01-17T13:27:04Z | 2022-01-17T13:27:04Z | 2022-01-17T13:27:08Z |
REF: Transfer `DataFrame.to_latex` to `Styler` implementation for v1.5.0 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..8a720882a72e0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -20,6 +20,7 @@ Styler
^^^^^^
- New method :meth:`.Styler.to_string` for alternative customisable output methods (:issu... | The latest version 1.4.0 issues a generic `FutureWarning` advising utilising `df.style.to_latex`, instead of `DataFrame.to_latex` suggesting arguments signature might change in future.
This PR makes the following changes for 1.5.0:
- [x] creates a temporary function `DataFrame._to_latex_via_styler`. **This is th... | https://api.github.com/repos/pandas-dev/pandas/pulls/45382 | 2022-01-15T08:05:59Z | 2022-08-04T20:38:54Z | null | 2023-01-19T21:43:28Z |
ENH: support 'out' keyword in Categorical.__array_ufunc__ | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 0202efd1a8339..c46e2ae46c15b 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1517,6 +1517,12 @@ def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
if resu... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45381 | 2022-01-15T07:00:45Z | 2022-01-16T17:00:52Z | 2022-01-16T17:00:52Z | 2022-01-16T17:25:13Z |
REF: de-duplicate methods across nullable EA subclasses | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index d501af6212ce3..0ba98e4a377ae 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -324,15 +324,6 @@ def __init__(self, values: np.ndarray, mask: np.ndarray, copy: bool = False):
def dtype(self) -> BooleanD... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45380 | 2022-01-15T05:27:14Z | 2022-01-16T17:01:57Z | 2022-01-16T17:01:57Z | 2022-01-16T17:33:21Z |
REF: implement LocationIndexer._tupleize_axis_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 77482cbc88bf5..9887acd50c6e6 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -5,6 +5,7 @@
TYPE_CHECKING,
Hashable,
Sequence,
+ final,
)
import warnings
@@ -626,6 +627,7 @@ class _LocationIndexer(NDFrameIndex... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Trying to roll back some complexity that causes problems with bool-indexers. | https://api.github.com/repos/pandas-dev/pandas/pulls/45378 | 2022-01-15T00:19:56Z | 2022-01-16T20:24:59Z | 2022-01-16T20:24:59Z | 2022-01-16T20:37:00Z |
REGR: DataFrame.reset_index with empty RangeIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 95d9ed7adc360..3e9720508ffa0 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2081,8 +2081,14 @@ def _drop_level_numbers(self, levnums: list[int]):
if len(lev) == 0:
# If lev is emp... | - [x] closes #45230
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45377 | 2022-01-14T23:54:37Z | 2022-01-16T16:49:10Z | 2022-01-16T16:49:09Z | 2022-01-16T17:37:02Z |
DOC: Improve sparse.rst | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 38792c46e5f54..5d40541f1d37b 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -464,7 +464,7 @@ be stored efficiently as a :class:`arrays.SparseArray`.
The ``Series.sparse`` accessor may be used t... | * Use more :class: tags
* Add a cross reference to `doc/source/reference/arrays.rst`
| https://api.github.com/repos/pandas-dev/pandas/pulls/45376 | 2022-01-14T23:12:54Z | 2022-01-16T16:22:38Z | 2022-01-16T16:22:38Z | 2022-01-16T18:57:06Z |
DOC: Improve gotchas.rst | diff --git a/doc/source/user_guide/gotchas.rst b/doc/source/user_guide/gotchas.rst
index 1de978b195382..ae4dfeed081fb 100644
--- a/doc/source/user_guide/gotchas.rst
+++ b/doc/source/user_guide/gotchas.rst
@@ -10,13 +10,13 @@ Frequently Asked Questions (FAQ)
DataFrame memory usage
----------------------
-The memory ... | * Use more `:class:` tags
* Use more `ipython:: python` blocks instead of `code-blocks:: python`
* Add more references to gotchas.rst in other docstrings | https://api.github.com/repos/pandas-dev/pandas/pulls/45375 | 2022-01-14T23:11:02Z | 2022-01-16T16:22:25Z | 2022-01-16T16:22:25Z | 2022-01-16T18:57:12Z |
BUG: CategoricalIndex.get_indexer issue with NaNs (#45361) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9aebcad1d8cae..b316b4ff2d688 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -269,6 +269,7 @@ Indexing
- Bug in :meth:`DataFrame.mask` with ``inplace=True`` and ``ExtensionDtype`` columns incorrectly ... | Bug Example:
```python
ci = pd.CategoricalIndex([1, 2, np.nan, 3])
other = pd.Index([2, 3, 4])
res = ci.get_indexer(other)
>>> res
array([1, 3, 2])
```
`ci.get_indexer(other)` yields incorrect results when `ci` contains NaNs, and
`other` does not. The reason is that, if `other` contains elements that do... | https://api.github.com/repos/pandas-dev/pandas/pulls/45373 | 2022-01-14T16:51:30Z | 2022-01-28T16:29:25Z | 2022-01-28T16:29:25Z | 2022-01-28T17:17:46Z |
PERF: avoid SQL MetaData reflection in init #45260 | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 022ed2df8598d..f7fdc47afa8d1 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -1378,7 +1378,6 @@ def __init__(self, engine, schema: str | None = None):
self.connectable = engine
self.meta = MetaData(schema=schema)
- self.meta.refle... | - [x] closes #45260
| https://api.github.com/repos/pandas-dev/pandas/pulls/45371 | 2022-01-14T16:40:50Z | 2022-01-16T16:49:53Z | 2022-01-16T16:49:53Z | 2022-01-16T19:20:47Z |
DOC: add version dropdown to the online doc site | diff --git a/doc/source/conf.py b/doc/source/conf.py
index ea878f052f1f8..e8cd85e3369f7 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -225,11 +225,24 @@
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# do... | xref https://github.com/pandas-dev/pandas/issues/42722
This adds a version dropdown to our documentation site.
Currently, it is added on the right side of the top nav bar (for the rest using the default styling from the upstream sphinx theme):
 | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 532309dfc40b3..4bec30cad22cc 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -35,7 +35,6 @@
)
from pandas.core.dtypes.common import (
is_1d_only_ea_dtype,
- is_dat... | Backport PR #44889: BUG: ArrayManager not respecting copy keyword | https://api.github.com/repos/pandas-dev/pandas/pulls/45368 | 2022-01-14T15:20:38Z | 2022-01-14T15:26:51Z | null | 2022-01-14T15:26:52Z |
Backport PR #45354 on branch 1.4.x (TST: xfail test_arrowparquet_options for windows) | diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py
index e3e8358aa6340..0648c60eb5016 100644
--- a/pandas/tests/io/test_fsspec.py
+++ b/pandas/tests/io/test_fsspec.py
@@ -1,8 +1,10 @@
import io
+import sys
import numpy as np
import pytest
+from pandas.compat import is_platform_windows
... | Backport PR #45354: TST: xfail test_arrowparquet_options for windows | https://api.github.com/repos/pandas-dev/pandas/pulls/45365 | 2022-01-14T12:19:31Z | 2022-01-14T14:59:24Z | 2022-01-14T14:59:24Z | 2022-01-14T14:59:25Z |
CI/TST: update pyarrow pin in windows-3.8 env / fix failing parquet test on windows | diff --git a/ci/deps/actions-38.yaml b/ci/deps/actions-38.yaml
index 60db02def8a3d..b23f686d845e9 100644
--- a/ci/deps/actions-38.yaml
+++ b/ci/deps/actions-38.yaml
@@ -36,7 +36,7 @@ dependencies:
- psycopg2
- pymysql
- pytables
- - pyarrow
+ - pyarrow=3
- pyreadstat
- pyxlsb
- s3fs
diff --git a/ci/... | Closes #45344 | https://api.github.com/repos/pandas-dev/pandas/pulls/45364 | 2022-01-14T10:43:15Z | 2022-01-18T13:24:56Z | 2022-01-18T13:24:55Z | 2022-01-18T15:41:37Z |
BUG: correctly instantiate subclassed DataFrame/Series in groupby apply | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 984cb6d932487..29073cc23b133 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -753,6 +753,7 @@ def apply(
zipped = zip(group_keys, splitter)
for key, group in zipped:
+ group = group.__fi... | closes #45314
- [ ] whatsnew entry
This reverts the "fastpath" construction in groupby.apply from https://github.com/pandas-dev/pandas/pull/40236 and restores the code from https://github.com/pandas-dev/pandas/pull/37461, and expands the metadata propagation that was added in that PR to more cases.
The problem... | https://api.github.com/repos/pandas-dev/pandas/pulls/45363 | 2022-01-14T09:24:16Z | 2022-01-16T16:58:30Z | 2022-01-16T16:58:29Z | 2022-01-17T12:14:09Z |
BUG: CategoricalIndex.union with nans | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9a6455d4d012f..0b6e8ac7886d3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -113,7 +113,7 @@ Bug fixes
Categorical
^^^^^^^^^^^
--
+- Bug in :meth:`CategoricalIndex.union` when the index's categori... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
After this and #45359, cast_to_common_type can be refactored to reuse the helper this ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45362 | 2022-01-14T04:29:44Z | 2022-01-16T16:24:52Z | 2022-01-16T16:24:52Z | 2022-01-16T17:44:41Z |
BUG: No error raised in to_stata() for -np.inf #45350 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9a6455d4d012f..852d24a3d1c4e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -171,7 +171,7 @@ MultiIndex
I/O
^^^
--
+- Bug in :meth:`DataFrame.to_stata` where no error is raised if the :class:`Data... | * Add an absolute function when checking infinity, which includes both np.inf and -np.inf. Also changed the error message a bit.
* Add similar tests but replacing np.inf with -np.inf and change the correct error message accordingly
- [ ] closes #45350
- [ ] tests added / passed
- [ ] Ensure all linting tests pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/45360 | 2022-01-14T03:48:07Z | 2022-01-16T16:14:03Z | 2022-01-16T16:14:03Z | 2022-01-16T16:14:06Z |
BUG: categorical-with-nas to float64 instead of object | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9a6455d4d012f..acdac0949ee34 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -191,7 +191,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug in :func:`concat` between a :class:`Series` with... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This makes us match what we do in Index._find_common_type_compat, after which we'll be... | https://api.github.com/repos/pandas-dev/pandas/pulls/45359 | 2022-01-14T03:39:25Z | 2022-01-16T16:25:28Z | 2022-01-16T16:25:28Z | 2022-01-16T17:45:01Z |
DEPR: DatetimeIndex.intersection with mixed timezones cast to UTC, not object | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ff3e018779b02..459c8feabc226 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -139,9 +139,11 @@ Slicing on a :class:`DataFrame` will not be affected.
Other Deprecations
^^^^^^^^^^^^^^^^^^
- Deprecate... | - [x] closes #24362
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This matches the union behavior, which we deprecated in 1.3.0
(closing #24362 is p... | https://api.github.com/repos/pandas-dev/pandas/pulls/45357 | 2022-01-14T00:20:33Z | 2022-01-17T01:56:24Z | 2022-01-17T01:56:24Z | 2022-01-17T01:56:55Z |
BUG: Series[Interval[int]][1] = np.nan incorrect coercion/raising | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ecf31c93c5fa9..1a164c8b4ad79 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -154,6 +154,7 @@ Interval
Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`Data... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45356 | 2022-01-13T23:46:31Z | 2022-01-14T17:15:21Z | null | 2022-01-14T17:15:26Z |
CI: Ensure GHA uses major versions of actions | diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml
index ad2e2b4278dd2..f3946aeb84a63 100644
--- a/.github/workflows/asv-bot.yml
+++ b/.github/workflows/asv-bot.yml
@@ -65,7 +65,7 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
echo "REGEX=$REGEX" >> $GITHUB_ENV
- - uses: actions... | * Change `@master` to `@<major version>` for more stability
* Change specifically pinned version to `@<major version>` to ensure bug & security changes are picked up
* Bump actions/github-script from `@v4` to `@v5`
| https://api.github.com/repos/pandas-dev/pandas/pulls/45355 | 2022-01-13T23:25:02Z | 2022-01-14T17:32:18Z | 2022-01-14T17:32:17Z | 2022-01-20T20:02:26Z |
TST: xfail test_arrowparquet_options for windows | diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py
index e3e8358aa6340..0648c60eb5016 100644
--- a/pandas/tests/io/test_fsspec.py
+++ b/pandas/tests/io/test_fsspec.py
@@ -1,8 +1,10 @@
import io
+import sys
import numpy as np
import pytest
+from pandas.compat import is_platform_windows
... | - [x] xref #45344
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
xfailing for now to get the CI to green | https://api.github.com/repos/pandas-dev/pandas/pulls/45354 | 2022-01-13T23:08:44Z | 2022-01-14T12:19:02Z | 2022-01-14T12:19:02Z | 2022-01-14T17:29:12Z |
REF: use standard coerce pattern in Block.shift | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index d8543a15b1ea0..88d00c41bb8ac 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -42,7 +42,6 @@
infer_dtype_from,
maybe_downcast_numeric,
maybe_downcast_to_dtype,
- maybe_upcast,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45353 | 2022-01-13T22:19:06Z | 2022-01-16T17:02:30Z | 2022-01-16T17:02:30Z | 2022-01-16T17:26:30Z |
BUG: df.iloc[:, 0] = df.iloc[::-1, 0] not setting inplace for EAs | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index a35ca589065d8..22f34707e5037 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -316,6 +316,7 @@ Indexing
- Bug in :meth:`loc.__getitem__` with a list of keys causing an internal inconsistency that could... | - [x] closes #35417
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45352 | 2022-01-13T21:42:11Z | 2022-03-01T03:36:29Z | 2022-03-01T03:36:29Z | 2022-03-01T04:20:48Z |
REF: Share Block.setitem | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index d8543a15b1ea0..0aec64562bd31 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -886,6 +886,12 @@ def _maybe_squeeze_arg(self, arg: np.ndarray) -> np.ndarray:
"""
return arg
+ d... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45348 | 2022-01-13T17:19:39Z | 2022-01-16T17:05:53Z | 2022-01-16T17:05:53Z | 2022-01-16T17:23:37Z |
Update cheatsheet | diff --git a/doc/cheatsheet/Cheat_Sheet_Pandas.pdf b/doc/cheatsheet/Cheat_Sheet_Pandas.pdf
new file mode 100644
index 0000000000000..2d815966c51e6
Binary files /dev/null and b/doc/cheatsheet/Cheat_Sheet_Pandas.pdf differ
diff --git a/doc/cheatsheet/Cheat_Sheet_Pandas.pptx b/doc/cheatsheet/Cheat_Sheet_Pandas.pptx
new fi... | This PR contributes the following items to the cheatsheet:
- List of frequently used options shown here: https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html#frequently-used-options
- I/O: A whole section showing a variety of popular IO usage (CSV, Excel, SQL, HTML), and also output file formats (feat... | https://api.github.com/repos/pandas-dev/pandas/pulls/45347 | 2022-01-13T15:06:56Z | 2022-02-19T01:28:12Z | null | 2022-02-19T01:28:13Z |
Ko ya346/update import doc | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index 83c2668242129..a513d41b61c85 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -200,8 +200,6 @@ def union_categoricals(
Examples
--------
- >>> from pandas.api.types import union_categoricals
-
... | - [x] DOCS: Update import statements in docstrings #21749
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45346 | 2022-01-13T14:09:10Z | 2022-01-22T00:45:41Z | 2022-01-22T00:45:41Z | 2022-01-22T06:24:08Z |
Backport PR #45334 on branch 1.4.x (DEPR: un-deprecate errors kwd reverts #44294) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ac638e6bd3c6e..64d8e36177051 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -614,7 +614,6 @@ Other Deprecations
- Deprecated silent dropping of columns that raised a ``TypeError``, ``DataError``, and... | Backport PR #45334: DEPR: un-deprecate errors kwd reverts #44294 | https://api.github.com/repos/pandas-dev/pandas/pulls/45343 | 2022-01-13T13:22:35Z | 2022-01-15T13:35:34Z | 2022-01-15T13:35:34Z | 2022-01-15T13:35:35Z |
REF: improve rendering of categories in CategoricalIndex | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ecf31c93c5fa9..edfa68a3968e9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -30,7 +30,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
--
+- Improved the rendering of ``categories`` in :cla... | - [x] closes #45218
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45340 | 2022-01-13T04:23:43Z | 2022-01-13T13:46:19Z | 2022-01-13T13:46:19Z | 2022-01-13T16:57:23Z |
DEPR: SparseArray.astype(dtype) respect non-sparse dtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 2152b640e67f5..8eab16714d2f6 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -140,6 +140,7 @@ Slicing on a :class:`DataFrame` will not be affected.
Other Deprecations
^^^^^^^^^^^^^^^^^^
- Deprecated... | - [x] closes #34457
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45339 | 2022-01-13T03:37:31Z | 2022-01-17T13:45:25Z | 2022-01-17T13:45:25Z | 2022-01-17T16:08:35Z |
Backport PR #45336 on branch 1.4.x (CI/DOC: replace master -> main branch) | diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 805413d79aae2..36bc8dcf02bae 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -17,7 +17,7 @@ body:
[latest version](https://pandas.pydata.org/docs/whatsnew/i... | Backport PR #45336: CI/DOC: replace master -> main branch | https://api.github.com/repos/pandas-dev/pandas/pulls/45338 | 2022-01-13T00:38:51Z | 2022-01-13T03:10:34Z | 2022-01-13T03:10:34Z | 2022-01-13T03:10:34Z |
CI/DOC: replace master -> main branch | diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 805413d79aae2..36bc8dcf02bae 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -17,7 +17,7 @@ body:
[latest version](https://pandas.pydata.org/docs/whatsnew/i... | Follow-up on https://github.com/pandas-dev/pandas/issues/39577 | https://api.github.com/repos/pandas-dev/pandas/pulls/45336 | 2022-01-12T19:31:06Z | 2022-01-13T00:38:43Z | 2022-01-13T00:38:43Z | 2022-01-13T15:14:12Z |
CI: Change master -> main | diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 805413d79aae2..36bc8dcf02bae 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -17,7 +17,7 @@ body:
[latest version](https://pandas.pydata.org/docs/whatsnew/i... | Change needed to get GHA and Azure running again after the branch renaming.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45335 | 2022-01-12T19:23:38Z | 2022-01-12T19:56:00Z | null | 2022-01-12T19:57:00Z |
DEPR: un-deprecate errors kwd reverts #44294 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ac638e6bd3c6e..64d8e36177051 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -614,7 +614,6 @@ Other Deprecations
- Deprecated silent dropping of columns that raised a ``TypeError``, ``DataError``, and... | reverts #44294 | https://api.github.com/repos/pandas-dev/pandas/pulls/45334 | 2022-01-12T19:01:53Z | 2022-01-13T13:21:45Z | 2022-01-13T13:21:45Z | 2022-01-13T16:59:34Z |
DEPR: df.iloc[:, foo] = bar attempt to set inplace | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 9916f13e015dd..0adb937de2b8b 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -328,6 +328,7 @@ Setting values by position:
Setting by assigning with a NumPy array:
.. ipython:: python
+ :okwar... | - [x] closes #44353
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45333 | 2022-01-12T17:32:33Z | 2022-05-23T23:51:16Z | 2022-05-23T23:51:16Z | 2022-05-24T01:20:13Z |
TYP: offsets.pyi | diff --git a/pandas/_libs/tslibs/ccalendar.pyi b/pandas/_libs/tslibs/ccalendar.pyi
index 993f18a61d74a..5d5b935ffa54b 100644
--- a/pandas/_libs/tslibs/ccalendar.pyi
+++ b/pandas/_libs/tslibs/ccalendar.pyi
@@ -8,5 +8,7 @@ def get_firstbday(year: int, month: int) -> int: ...
def get_lastbday(year: int, month: int) -> in... | This PR and #44922 are the last parts of #43744. | https://api.github.com/repos/pandas-dev/pandas/pulls/45331 | 2022-01-12T15:59:23Z | 2022-02-27T22:01:16Z | 2022-02-27T22:01:16Z | 2022-03-09T02:56:24Z |
Backport PR #45087 on branch 1.4.x (BUG: Timestamp.to_pydatetime losing 'fold') | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5dd6fa0d4f72d..ac638e6bd3c6e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -724,6 +724,7 @@ Datetimelike
- ``np.maximum.reduce`` and ``np.minimum.reduce`` now correctly return :class:`Timestamp` and... | Backport PR #45087: BUG: Timestamp.to_pydatetime losing 'fold' | https://api.github.com/repos/pandas-dev/pandas/pulls/45330 | 2022-01-12T13:49:43Z | 2022-01-12T18:24:59Z | 2022-01-12T18:24:59Z | 2022-01-12T18:25:00Z |
DOC: fix a typo | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index f94f86b4eea58..d64b36f1dbffe 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1100,7 +1100,7 @@
" - [.highlight_null][nullfunc]: for use with identifying missing data. \n",
" - [.... | "based or their" -> "based on their"
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45327 | 2022-01-12T03:54:10Z | 2022-01-12T04:40:06Z | 2022-01-12T04:40:06Z | 2022-01-12T04:44:16Z |
TST: Split/parameterize indexing tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 9009484f8d386..f8aeba6f82d43 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1751,6 +1751,14 @@ def indexer_al(request):
return request.param
+@pytest.fixture(params=[tm.iat, tm.iloc])
+def indexer_ial(request):
+ """
+ Parametrize o... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45325 | 2022-01-12T02:40:58Z | 2022-01-13T13:24:20Z | 2022-01-13T13:24:20Z | 2022-01-13T22:22:37Z |
DEPR: inconsistent series[i:j] slicing with Int64Index GH#45162 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9a6455d4d012f..90a2ccf9ab202 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -94,6 +94,50 @@ Other API changes
Deprecations
~~~~~~~~~~~~
+
+.. _whatsnew_150.deprecations.int_slicing_series:
+
+In a... | - [x] closes #45162
- [x] closes #7501
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45324 | 2022-01-12T02:26:05Z | 2022-01-16T16:20:39Z | 2022-01-16T16:20:38Z | 2022-01-16T17:44:15Z |
CI: Fix concurrency group for min versions posix builds | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index e28878c2a03d8..7f4d3e4534278 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -52,7 +52,7 @@ jobs:
COVERAGE: ${{ !contains(matrix.settings[0], 'pypy') }}
concurrency:
# https://github.community/t... | - [x] tests added / passed
In the effort of sharing more dependency yaml files, the concurrency group definition will need to change since separate builds won't be unique on these yaml files anymore | https://api.github.com/repos/pandas-dev/pandas/pulls/45323 | 2022-01-12T01:11:46Z | 2022-01-12T04:09:09Z | 2022-01-12T04:09:09Z | 2022-01-20T18:51:02Z |
DEPR: Series/DataFrame/HDFStore.iteritems() | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index 71aef4fdd75f6..edeebe2e8678c 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -275,6 +275,7 @@ column names and dtypes. That's because Dask hasn't actually read the data yet.
Rather than executing ... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45321 | 2022-01-12T00:26:23Z | 2022-01-16T16:17:20Z | 2022-01-16T16:17:20Z | 2022-01-19T01:30:03Z |
ENH: Add allow_duplicates to MultiIndex.to_frame | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..dec0ede2cddf3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -31,6 +31,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
+- :meth:`MultiIndex.to_frame` now supports the argume... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Part of issue #45245 for multi-indexes with repeated level names.
Old behavior was to remove columns wi... | https://api.github.com/repos/pandas-dev/pandas/pulls/45318 | 2022-01-11T19:19:20Z | 2022-01-22T00:14:34Z | 2022-01-22T00:14:34Z | 2022-01-22T10:30:00Z |
BUG/ENH: Translate CSS border properties for `Styler.to_excel` | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index c3ff0ec286968..96589b74fcf6b 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1577,6 +1577,9 @@
"Some support (*since version 0.20.0*) is available for exporting styled `DataFrames` to... | - [x] checks an item on #42276 ("Border styles bug")
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45312 | 2022-01-11T13:27:06Z | 2022-02-11T00:56:17Z | 2022-02-11T00:56:17Z | 2022-02-11T00:56:23Z |
BUG: Float64Index.astype('u8') returns Int64Index | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..e975bdda4047b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -138,6 +138,8 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in constructing a :class:`Series` from a float-containing list or a ... | - [x] closes #45151
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
We _could_ deprecate the casting instead of raising. Or could decide we're OK allowi... | https://api.github.com/repos/pandas-dev/pandas/pulls/45309 | 2022-01-11T06:05:53Z | 2022-01-16T17:09:59Z | 2022-01-16T17:09:59Z | 2022-01-16T17:50:29Z |
BUG: Timestamp(2020,1, 1, tzinfo=foo) GH#31929 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..1c820f6df60df 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -119,6 +119,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :func:`to_datetime` with sequences of ``np.str_`` objects... | - [x] closes #31929
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45308 | 2022-01-11T04:17:17Z | 2022-01-12T13:57:20Z | 2022-01-12T13:57:19Z | 2022-01-12T16:30:20Z |
Backport PR #45244 on branch 1.4.x (TYP: Ignore numpy related issues) | diff --git a/environment.yml b/environment.yml
index a901d6f2e9f57..15dd329f80deb 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
# required
- - numpy>=1.18.5, <1.22.0
+ - numpy>=1.18.5
- python=3.8
- python-dateutil>=2.8.1
- pytz
diff --git a/p... | cc @jreback
Backport PR #45244 | https://api.github.com/repos/pandas-dev/pandas/pulls/45306 | 2022-01-11T03:02:38Z | 2022-01-15T13:51:55Z | 2022-01-15T13:51:55Z | 2022-01-28T10:26:39Z |
CLN: assorted, privatize, easy issues | diff --git a/LICENSE b/LICENSE
index a0cc369f725b8..d4e49a140f1cb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -3,7 +3,7 @@ BSD 3-Clause License
Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
All rights reserved.
-Copyright (c) 2011-2021, Open source contributors.
+C... | - [x] closes #38795
- [x] closes #45296
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45305 | 2022-01-11T00:39:33Z | 2022-01-11T15:15:41Z | 2022-01-11T15:15:41Z | 2022-01-11T17:04:56Z |
REF: implement find_result_type | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 27b4539488e40..3ea716d93aca0 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1418,6 +1418,58 @@ def ensure_nanosecond_dtype(dtype: DtypeObj) -> DtypeObj:
return dtype
+# TODO: other value-dependent functions... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
find_result_type is to np.result_type as our find_common_type is to np.find_common_typ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45304 | 2022-01-11T00:35:00Z | 2022-01-12T13:47:57Z | 2022-01-12T13:47:57Z | 2022-01-12T16:36:37Z |
DEPR: line_terminator->lineterminator GH#9569 | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index f3be3277003ee..d5af33721c354 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1851,7 +1851,7 @@ function takes a number of arguments. Only the first is required.
* ``mode`` : Python write mode, default 'w'
*... | - [x] closes #9568
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
From the original issue it seemed like "do nothing" was also an option. | https://api.github.com/repos/pandas-dev/pandas/pulls/45302 | 2022-01-10T19:26:28Z | 2022-01-12T13:46:15Z | 2022-01-12T13:46:15Z | 2022-01-30T12:25:56Z |
BUG: hash_array TypeError instead of AttributeError on Index GH#42003 | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index 02899bac14bb2..892fa83f98755 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -24,6 +24,7 @@
)
from pandas.core.dtypes.generic import (
ABCDataFrame,
+ ABCExtensionArray,
ABCIndex,
ABCMultiIndex... | - [x] closes #42003
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45301 | 2022-01-10T18:41:27Z | 2022-01-16T16:21:32Z | 2022-01-16T16:21:32Z | 2022-01-16T17:27:59Z |
BUG: Categorical.view not accepting integer dtypes GH#25464 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ff3e018779b02..fa856f7a2a1d3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -158,6 +158,7 @@ Bug fixes
Categorical
^^^^^^^^^^^
+- Bug in :meth:`Categorical.view` not accepting integer dtypes (:iss... | - [x] closes #25464
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45300 | 2022-01-10T17:20:25Z | 2022-02-05T19:03:00Z | 2022-02-05T19:02:59Z | 2022-02-05T19:16:55Z |
BUG: .asof casting bool results to float64 GH#16063 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..6898b2e8a8064 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -209,6 +209,8 @@ Styler
Other
^^^^^
+- Bug in :meth:`Series.asof` and :meth:`DataFrame.asof` incorrectly casting bool-dt... | - [x] closes #16063
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45299 | 2022-01-10T16:56:01Z | 2022-01-16T17:08:33Z | 2022-01-16T17:08:33Z | 2022-01-16T17:27:06Z |
Backport PR #45274 on branch 1.4.x (Fix groupby any/all on an empty series/frame) | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 9ceb50611f1c5..e4c5541468629 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1750,7 +1750,9 @@ def objs_to_bool(vals: ArrayLike) -> tuple[np.ndarray, type]:
if is_object_dtype(vals.dtype)... | Backport PR #45274: Fix groupby any/all on an empty series/frame | https://api.github.com/repos/pandas-dev/pandas/pulls/45297 | 2022-01-10T13:12:56Z | 2022-01-10T15:34:45Z | 2022-01-10T15:34:45Z | 2022-01-10T15:34:45Z |
Backport PR #45227 on branch 1.4.x (BUG: raise on wrong keyword arguments in Timedelta) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 12bd51cba47a3..5dd6fa0d4f72d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -734,7 +734,7 @@ Timedelta
^^^^^^^^^
- Bug in division of all-``NaT`` :class:`TimeDeltaIndex`, :class:`Series` or :class:`... | Backport PR #45227 | https://api.github.com/repos/pandas-dev/pandas/pulls/45295 | 2022-01-10T11:48:16Z | 2022-01-10T13:12:54Z | 2022-01-10T13:12:54Z | 2023-02-22T11:40:53Z |
BUG: DataFrame[dt64].quantile(axis=1) when empty returning f8 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..031c095a553d0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -118,6 +118,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :meth:`DataFrame.quantile` with datetime-like dtypes an... | - [x] closes #41544
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45294 | 2022-01-10T06:00:34Z | 2022-01-13T13:47:47Z | 2022-01-13T13:47:47Z | 2022-01-13T17:01:30Z |
REF: fewer simple_new calls in DTA._generate_range GH#24562 | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 10cb4aba5047d..f2618b92b3ffb 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -442,53 +442,53 @@ def _generate_range(
end = end.tz_localize(None)
if isinstance(fr... | - [x] closes #24562
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
The _simple_new calls are cheaper than they were back then, so we won't see that much... | https://api.github.com/repos/pandas-dev/pandas/pulls/45293 | 2022-01-10T05:58:16Z | 2022-01-10T13:30:06Z | 2022-01-10T13:30:06Z | 2022-01-10T16:25:03Z |
Bump stale GHA | diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml
index 2f55a180bc88c..1c233faf561fb 100644
--- a/.github/workflows/stale-pr.yml
+++ b/.github/workflows/stale-pr.yml
@@ -8,11 +8,10 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- - uses: actions/stale@v3
+ - uses: actions/st... | From the 4.0 release onwardd, only need to specify `stale-pr-message` now.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45292 | 2022-01-10T04:36:09Z | 2022-01-10T13:31:10Z | 2022-01-10T13:31:10Z | 2022-01-10T16:33:43Z |
TST: implement xfailed test for #18415 | diff --git a/pandas/tests/frame/indexing/test_coercion.py b/pandas/tests/frame/indexing/test_coercion.py
new file mode 100644
index 0000000000000..8b2bc60953e3e
--- /dev/null
+++ b/pandas/tests/frame/indexing/test_coercion.py
@@ -0,0 +1,183 @@
+"""
+Tests for values coercion in setitem-like operations on DataFrame.
+
+... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Collect DataFrame-specific coercion tests; ideally we'll make a pattern for these simi... | https://api.github.com/repos/pandas-dev/pandas/pulls/45290 | 2022-01-10T00:24:56Z | 2022-01-10T13:20:38Z | 2022-01-10T13:20:38Z | 2022-01-10T16:20:32Z |
ENH: add kwargs `rename` to `Styler.format_index` for overwriting index labels | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index c85a087835b80..9a9362d66be88 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -38,6 +38,8 @@ Styler
^^^^^^
- New method :meth:`.Styler.to_string` for alternative customisable output methods (:issu... | In methods such as `DataFrame.to_latex` and `DataFrame.to_html` the `header` keyword arg was implemented to provide aliases for column headers, instead of using the underlying DataFrame labels.
Currently `Styler.format_index` allows adding a generic formatter to change the display of index labels but this is not an ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45288 | 2022-01-09T20:16:10Z | 2022-07-25T05:50:30Z | null | 2022-07-25T05:50:31Z |
BUG: frame[x].loc[y] inconsistent with frame.at[x, y] GH#22372 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..47d81ced8a2db 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -152,6 +152,7 @@ Interval
Indexing
^^^^^^^^
+- Bug in :meth:`loc.__getitem__` with a list of keys causing an internal in... | - [x] closes #22372
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45287 | 2022-01-09T18:39:32Z | 2022-01-16T16:27:12Z | 2022-01-16T16:27:12Z | 2022-01-16T17:48:04Z |
BUG: setitem into complex64 overflow | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..0e78e230f8ee4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -154,7 +154,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` wit... | - [x] closes #32878
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45285 | 2022-01-09T17:16:44Z | 2022-01-16T16:33:59Z | 2022-01-16T16:33:59Z | 2022-01-16T17:31:45Z |
BUG: do not replace all nulls with "NaN"-string in Series index | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 47427620c8ece..1ca4e8cc97df0 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -1050,6 +1050,7 @@ Other
- Bug in :meth:`Series.replace` raising ``ValueError`` when using ``regex=True`` with a :class:`Se... | - [x] closes #45263, #45222
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
After this, the example
```
import pandas as pd
import numpy as np
s... | https://api.github.com/repos/pandas-dev/pandas/pulls/45283 | 2022-01-09T06:58:27Z | 2022-01-19T14:07:23Z | 2022-01-19T14:07:22Z | 2022-01-19T14:07:24Z |
TST: Split / parameterize resample PT 2 | diff --git a/pandas/tests/resample/test_resample_api.py b/pandas/tests/resample/test_resample_api.py
index bb49450b8414e..86e0411ee3334 100644
--- a/pandas/tests/resample/test_resample_api.py
+++ b/pandas/tests/resample/test_resample_api.py
@@ -142,21 +142,21 @@ def test_attribute_access(test_frame):
tm.assert_ser... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45282 | 2022-01-09T05:05:49Z | 2022-01-10T13:22:21Z | 2022-01-10T13:22:21Z | 2022-01-10T16:34:29Z |
TST: Parameterize / split resample tests | diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py
index 2dae9ee48a90a..22c487cc338db 100644
--- a/pandas/tests/resample/test_base.py
+++ b/pandas/tests/resample/test_base.py
@@ -223,14 +223,14 @@ def test_resample_empty_dtypes(index, dtype, resample_method):
@all_ts
-def test_app... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45281 | 2022-01-09T01:04:16Z | 2022-01-10T13:22:57Z | 2022-01-10T13:22:57Z | 2022-01-10T16:34:16Z |
BUG: pd.to_datetime([np.str_ objects]) GH#32264 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 2cbc7b06b89df..f8283bd61aee7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -118,7 +118,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
--
+- Bug in :func:`to_datetime` with sequences of ``np.str_`` ob... | - [x] closes #32264
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45280 | 2022-01-08T23:43:49Z | 2022-01-10T13:23:45Z | 2022-01-10T13:23:45Z | 2022-01-10T16:23:35Z |
Revert "ENH: Index[complex]" | diff --git a/pandas/_libs/index.pyi b/pandas/_libs/index.pyi
index 52427550915bc..446a980487cde 100644
--- a/pandas/_libs/index.pyi
+++ b/pandas/_libs/index.pyi
@@ -29,8 +29,6 @@ class IndexEngine:
class Float64Engine(IndexEngine): ...
class Float32Engine(IndexEngine): ...
-class Complex128Engine(IndexEngine): ...
... | Reverts pandas-dev/pandas#45256
was merged prematurely | https://api.github.com/repos/pandas-dev/pandas/pulls/45279 | 2022-01-08T23:08:29Z | 2022-01-09T06:11:55Z | 2022-01-09T06:11:55Z | 2022-01-09T06:12:02Z |
TST: Split / parameterize reshaping tests | diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py
index 8a83cdcbdefb0..ff8e5d56cdc93 100644
--- a/pandas/tests/reshape/test_melt.py
+++ b/pandas/tests/reshape/test_melt.py
@@ -75,7 +75,8 @@ def test_value_vars(self):
)
tm.assert_frame_equal(result4, expected4)
- d... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45278 | 2022-01-08T22:36:30Z | 2022-01-10T13:15:37Z | 2022-01-10T13:15:37Z | 2022-01-10T16:35:10Z |
TST: Parameterize & split | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 948eeeecb2ce4..94b1f5d2717a4 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -666,20 +666,25 @@ def test_float_comparison_bin_op(self, dtype):
res = df.eval("-5 > x... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/45276 | 2022-01-08T21:51:00Z | 2022-01-10T13:14:43Z | 2022-01-10T13:14:43Z | 2022-01-10T16:34:55Z |
Backport PR #45125 on branch 1.4.x (BUG: Operations with SparseArray return SA with wrong indices) | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index db1cd1ac39790..fdd48e5a353fb 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -1704,13 +1704,14 @@ def _cmp_method(self, other, op) -> SparseArray:
op_name = op.__name__.str... | Backport PR #45125: BUG: Operations with SparseArray return SA with wrong indices | https://api.github.com/repos/pandas-dev/pandas/pulls/45275 | 2022-01-08T21:01:04Z | 2022-01-09T14:59:14Z | 2022-01-09T14:59:14Z | 2022-01-09T14:59:15Z |
Fix groupby any/all on an empty series/frame | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 9ceb50611f1c5..e4c5541468629 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1750,7 +1750,9 @@ def objs_to_bool(vals: ArrayLike) -> tuple[np.ndarray, type]:
if is_object_dtype(vals.dtype)... | - [x] closes #45231
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
Confirmed this issue did not exist on 1.3.x, so no whatsnew entry necessary. | https://api.github.com/repos/pandas-dev/pandas/pulls/45274 | 2022-01-08T20:15:14Z | 2022-01-10T13:12:27Z | 2022-01-10T13:12:27Z | 2022-01-10T21:41:49Z |
BUG: can_hold_element size checks on ints/floats | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 2cbc7b06b89df..730e09c12e2a8 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -154,6 +154,7 @@ Interval
Indexing
^^^^^^^^
- Bug in :meth:`Series.__setitem__` with a non-integer :class:`Index` when us... | - [x] closes #26049
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45273 | 2022-01-08T18:45:26Z | 2022-01-10T13:24:15Z | 2022-01-10T13:24:14Z | 2022-01-10T16:21:30Z |
BUG: DataFrame.astype preserve subclasses GH#40810 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0173807cb9bd0..f89ea6dd184ee 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -137,6 +137,7 @@ Numeric
Conversion
^^^^^^^^^^
+- Bug in :meth:`DataFrame.astype` not preserving subclasses (:issue:`408... | - [x] closes #40810
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/45272 | 2022-01-08T16:46:09Z | 2022-01-16T16:26:27Z | 2022-01-16T16:26:27Z | 2022-01-16T17:25:49Z |
Backport PR #45261 on branch 1.4.x (Added note in docs for giving the developer the option of choosing be…) | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 02017c5900ca0..51624dfb3e17d 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1251,10 +1251,29 @@ class Timedelta(_Timedelta):
Notes
-----
+ The constructor may take in e... | Backport PR #45261: Added note in docs for giving the developer the option of choosing be… | https://api.github.com/repos/pandas-dev/pandas/pulls/45271 | 2022-01-08T15:55:42Z | 2022-01-08T20:24:20Z | 2022-01-08T20:24:20Z | 2022-01-08T20:24:20Z |
Backport PR #45203 on branch 1.4.x (DOC: fix doctests for depr `closed` arg) | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 5a3da9b65d03b..004d860b20a6f 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1022,22 +1022,23 @@ def date_range(
'2018-01-05 00:00:00+09:00'],
dtype='dat... | Backport PR #45203: DOC: fix doctests for depr `closed` arg | https://api.github.com/repos/pandas-dev/pandas/pulls/45270 | 2022-01-08T15:54:55Z | 2022-01-08T20:03:44Z | 2022-01-08T20:03:44Z | 2022-01-08T20:03:44Z |
Backport PR #45212 on branch 1.4.x (CLN: suppress warnings) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 3ee34a158902b..a12fbcd549bd1 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -815,7 +815,7 @@ Indexing
Missing
^^^^^^^
-- Bug in :meth:`DataFrame.fillna` with limit and no method ignores axis='colu... | Backport PR #45212: CLN: suppress warnings | https://api.github.com/repos/pandas-dev/pandas/pulls/45269 | 2022-01-08T15:47:54Z | 2022-01-08T19:09:24Z | 2022-01-08T19:09:24Z | 2022-01-08T19:09:24Z |
Backport PR #45237 on branch 1.4.x (DOC: Improve doc summaries in series.rst) | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 7e83cc93bb5a5..3114908485b13 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1360,7 +1360,7 @@ def remove_unused_categories(self, inplace=no_default):
def map(self, mapper):
... | Backport PR #45237: DOC: Improve doc summaries in series.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/45268 | 2022-01-08T15:40:24Z | 2022-01-08T18:52:36Z | 2022-01-08T18:52:36Z | 2022-01-08T18:52:36Z |
Backport PR #45228 on branch 1.4.x (DOC: comprehensive example of `Styler.to_latex` features) | diff --git a/doc/source/_static/style/latex_stocks.png b/doc/source/_static/style/latex_stocks.png
new file mode 100644
index 0000000000000..c8906c33b810b
Binary files /dev/null and b/doc/source/_static/style/latex_stocks.png differ
diff --git a/doc/source/_static/style/latex_stocks_html.png b/doc/source/_static/style/... | Backport PR #45228: DOC: comprehensive example of `Styler.to_latex` features | https://api.github.com/repos/pandas-dev/pandas/pulls/45267 | 2022-01-08T15:37:06Z | 2022-01-08T17:47:01Z | 2022-01-08T17:47:01Z | 2022-01-08T17:47:01Z |
Backport PR #45242 on branch 1.4.x (CLN/PERF: avoid double-checks) | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 7e83cc93bb5a5..3c5395dd5888b 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1994,7 +1994,7 @@ def _formatter(self, boxed: bool = False):
# Defer to CategoricalFormatter's formatt... | Backport PR #45242: CLN/PERF: avoid double-checks | https://api.github.com/repos/pandas-dev/pandas/pulls/45266 | 2022-01-08T15:34:33Z | 2022-01-08T17:30:19Z | 2022-01-08T17:30:19Z | 2022-01-08T17:30:19Z |
Backport PR #45214 on branch 1.4.x (REGR: Index(pd.array(foo), dtype=object)) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1b1ad4bb64987..a7925365a6170 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -453,6 +453,9 @@ def __new__(
if dtype is not None:
return result.astype(dtype, copy=False)
... | Backport PR #45214: REGR: Index(pd.array(foo), dtype=object) | https://api.github.com/repos/pandas-dev/pandas/pulls/45265 | 2022-01-08T15:33:10Z | 2022-01-08T17:30:00Z | 2022-01-08T17:30:00Z | 2022-01-08T17:30:00Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.