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 |
|---|---|---|---|---|---|---|---|
Revert "DEPR: ExtensionOpsMixin -> OpsMixin" | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index bb06bcc9b5aa8..873437d917515 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -492,7 +492,6 @@ Deprecations
- Deprecated :meth:`Index.asi8` for :class:`Index` subclasses other than :class:`.DatetimeInd... | Reverts pandas-dev/pandas#38142 (see discussion over there) | https://api.github.com/repos/pandas-dev/pandas/pulls/38158 | 2020-11-29T20:22:52Z | 2020-11-30T01:53:17Z | 2020-11-30T01:53:17Z | 2020-11-30T06:58:07Z |
BUG: assert_frame_equal exception for datetime #37609 | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index c9347b88f2072..6aff4da13b6e6 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -784,6 +784,9 @@ Other
- Passing an array with 2 or more dimensions to the :class:`Series` constructor now raises the more ... | closes #37609
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Working with @richardwong8 on this issue.
This addresses issue #37609 where a check `needs_i8_conversion(left.dtype) or needs_i8_conversion(right.dtype)` in assert_series... | https://api.github.com/repos/pandas-dev/pandas/pulls/38157 | 2020-11-29T19:26:37Z | 2020-12-02T23:31:30Z | 2020-12-02T23:31:30Z | 2020-12-02T23:31:34Z |
CLN: remove _recast_datetimelike_result | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b9226732d5a69..d35e6f900b87f 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -46,7 +46,6 @@
is_integer_dtype,
is_interval_dtype,
is_numeric_dtype,
- is_object_dtype,
is_scalar,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38156 | 2020-11-29T19:14:28Z | 2020-11-30T13:21:03Z | 2020-11-30T13:21:02Z | 2020-11-30T14:51:00Z |
Backport PR #36927: BUG: Fix duplicates in intersection of multiindexes | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 46c4ad4f35fe4..edc2f7327abfc 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.groupby` aggregation with out-of-bounds datetime ob... | Backport PR #36927 | https://api.github.com/repos/pandas-dev/pandas/pulls/38155 | 2020-11-29T19:10:15Z | 2020-11-30T12:13:25Z | 2020-11-30T12:13:25Z | 2020-11-30T12:13:29Z |
CLN: improve is_unique check in Index.intersection | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3f89b0619e600..d1d71e584ae3d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2379,6 +2379,10 @@ def unique(self, level=None):
"""
if level is not None:
self._validate_index_level(le... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
```
before after ratio
[e99e5ab3] [79d6a50f]
<cln_intersection~1> <cln_intersection>
- 918±20ns 819±2ns 0.89 index_object.Range.time_min_trivial
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/38154 | 2020-11-29T18:02:34Z | 2020-12-02T01:48:00Z | 2020-12-02T01:48:00Z | 2022-10-13T00:20:29Z |
BUG: loc raising KeyError for string slices in list-like indexer and DatetimeIndex | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index c9347b88f2072..e2b851d6ea81e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -639,6 +639,7 @@ Indexing
- Bug in :meth:`DataFrame.loc` raising ``TypeError`` when non-integer slice was given to select v... | - [x] closes #27180
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I looked into this and added an implementation for list-like indexers containing slices and DatetimeIndexes. If we want to support this we probably ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38153 | 2020-11-29T16:56:26Z | 2021-01-01T22:34:37Z | null | 2021-01-01T22:34:51Z |
CLN: remove unreachable in maybe_cast_result | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index fe40bc42887c4..cf81e6f173bdd 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -297,7 +297,9 @@ def trans(x):
return result
-def maybe_cast_result(result, obj: "Series", numeric_only: bool = False, how: str = "... | https://api.github.com/repos/pandas-dev/pandas/pulls/38152 | 2020-11-29T16:50:13Z | 2020-11-29T19:37:00Z | 2020-11-29T19:37:00Z | 2020-11-29T19:41:35Z | |
CLN: remove unused coerce arg in NDFrame._convert | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index fe40bc42887c4..e6fd63cda5ed4 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1177,45 +1177,32 @@ def soft_convert_objects(
datetime: bool = True,
numeric: bool = True,
timedelta: bool = True,
- coer... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38151 | 2020-11-29T16:06:47Z | 2020-11-29T21:53:26Z | 2020-11-29T21:53:26Z | 2020-11-29T22:03:29Z |
BUG: loc dropping levels when df has only one row | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 83bff6d7bfb2d..d261f675f3749 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -234,7 +234,7 @@ Indexing
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` when non-uni... | - [x] closes #10521
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Originally this case was dispatched to xs, which dispatched to ``_get_loc_level``, which raised if a slice is not ``slice(None, None)`` and went bac... | https://api.github.com/repos/pandas-dev/pandas/pulls/38150 | 2020-11-29T16:01:18Z | 2020-12-30T13:50:13Z | 2020-12-30T13:50:13Z | 2021-07-04T16:24:03Z |
ENH: Improve performance for df.__setitem__ with list-like indexers | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 74e0a3a434cde..4fd91c8aafe4b 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -358,6 +358,14 @@ def time_assign_with_setitem(self):
for i in range(100):
self.df[i] = np.ran... | - [x] closes #37954
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Reindexing the Block Manager improves the performance significantly. I hope I have not missed anything, concerning the reindexing of the blocks.
T... | https://api.github.com/repos/pandas-dev/pandas/pulls/38148 | 2020-11-29T14:07:15Z | 2020-11-29T21:52:39Z | 2020-11-29T21:52:39Z | 2020-12-01T10:54:21Z |
ENH: add "schema" kwarg to io.sql.get_schema method | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index ac930b3e77785..1cebb8bcf3b1c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -260,6 +260,7 @@ Other enhancements
- Added :meth:`~DataFrame.set_flags` for setting table-wide flags on a Series or DataFr... | - [x] closes #28486
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Picking up #33278 | https://api.github.com/repos/pandas-dev/pandas/pulls/38146 | 2020-11-29T04:41:13Z | 2020-12-08T02:44:48Z | 2020-12-08T02:44:47Z | 2020-12-08T02:45:00Z |
BUG: combine_first does not retain dtypes with Timestamp DataFrames | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 1f8fa1e2072fd..07b37de91daa4 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -536,6 +536,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :meth:`DataFrame.combine_first` that would convert date... | - [x] closes #28481
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Picking up #35514 | https://api.github.com/repos/pandas-dev/pandas/pulls/38145 | 2020-11-29T04:31:12Z | 2020-11-30T13:21:49Z | 2020-11-30T13:21:49Z | 2020-12-01T06:04:26Z |
CLN: remove unnecesary cast.maybe_convert_objects | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index fe40bc42887c4..27c5527536057 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -99,7 +99,6 @@
from pandas import Series
from pandas.core.arrays import ExtensionArray
from pandas.core.indexes.base import I... | https://api.github.com/repos/pandas-dev/pandas/pulls/38144 | 2020-11-29T02:57:19Z | 2020-11-29T18:23:47Z | 2020-11-29T18:23:47Z | 2020-11-29T18:26:33Z | |
REF: refactor out EA dispatch for _cython_operation | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 50c4cc53a12bb..7fc1a053eac57 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -445,36 +445,26 @@ def _get_cython_func_and_vals(
raise
return func, values
- def _cython_operation(
- ... | Make our dispatching/casting explicit and self-contained. | https://api.github.com/repos/pandas-dev/pandas/pulls/38143 | 2020-11-29T01:41:20Z | 2020-11-29T16:24:08Z | null | 2021-11-20T23:22:49Z |
DEPR: ExtensionOpsMixin -> OpsMixin | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6aff4f4bd41e2..eafd77376ac0b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -487,6 +487,7 @@ Deprecations
- Deprecated :meth:`Index.asi8` for :class:`Index` subclasses other than :class:`.DatetimeInd... | - [x] closes #37080
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38142 | 2020-11-28T23:44:03Z | 2020-11-29T19:18:39Z | 2020-11-29T19:18:39Z | 2020-11-29T20:25:44Z |
BUG: do not stringify file-like objects | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index bc7f5b8174573..4906288cc07d9 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -746,6 +746,7 @@ I/O
- :meth:`read_fwf` was inferring compression with ``compression=None`` which was not consistent with t... | - [x] closes #38125
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I will finish this PR (fix the mypy issues) after #38018 is merged.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38141 | 2020-11-28T21:23:29Z | 2020-12-14T01:07:31Z | 2020-12-14T01:07:31Z | 2020-12-14T01:09:00Z |
BUG: Categorical.unique should keep dtype unchanged | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 2b0b62ab7facf..6631a175ecb72 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -230,6 +230,38 @@ Notable bug fixes
These are bug fixes that might have notable behavior changes.
+``Categorical.unique... | - [x] closes #18291
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
We want to keep the same dtype as in the original after applying `unique`. For example:
```python
>>> dtype = pd.CategoricalDtype(['very bad', '... | https://api.github.com/repos/pandas-dev/pandas/pulls/38140 | 2020-11-28T19:59:54Z | 2021-04-16T17:43:33Z | 2021-04-16T17:43:32Z | 2021-04-22T07:50:14Z |
test backportability of #38120 | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 48d4fe65942fe..1f9ba48fb4ef7 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -46,11 +46,13 @@
pandas_dtype,
)
from pandas.core.dtypes.generic import (
+ ABCDatetimeArray,
ABCExtensionArray,
ABCIndex,
... | #38120 | https://api.github.com/repos/pandas-dev/pandas/pulls/38137 | 2020-11-28T19:45:13Z | 2020-11-29T20:21:42Z | null | 2020-11-30T17:34:55Z |
BUG: Categorical[dt64tz].to_numpy() losing tz | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index bb06bcc9b5aa8..3fab4850dd1ec 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -533,7 +533,7 @@ Categorical
- Bug in :meth:`Categorical.__setitem__` that incorrectly raised when trying to set a tuple va... | - [x] closes #26406
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38136 | 2020-11-28T18:37:50Z | 2020-11-30T00:09:10Z | 2020-11-30T00:09:09Z | 2020-11-30T00:11:37Z |
ENH: Categorical.unique can keep same dtype | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f046d3a9379d..61f8b7c6bcc6a 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -254,6 +254,7 @@ Other enhancements
- :func:`read_csv` supports memory-mapping for compressed files (:issue:`37621`)
- Imp... | There are situations where we want to keep the same dtype as in the original after applying `unique` For example
```python
>>> dtype = pd.categoricalDtype(['very good', 'good', 'neutral', 'bad', 'very bad'], ordered=True)
>>> cat = pd.Categorical(['good','good', 'bad', 'bad'], dtype=dtype)
>>> cat
[good, good, b... | https://api.github.com/repos/pandas-dev/pandas/pulls/38135 | 2020-11-28T16:22:31Z | 2020-11-28T19:57:05Z | null | 2020-11-28T19:57:10Z |
REF: de-duplicate Block.__init__ | diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py
index 3fbe324417c60..9d517fe55f808 100644
--- a/pandas/core/internals/api.py
+++ b/pandas/core/internals/api.py
@@ -10,6 +10,7 @@
import numpy as np
+from pandas._libs.internals import BlockPlacement
from pandas._typing import Dtype
from ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38134 | 2020-11-28T16:10:13Z | 2021-03-09T22:07:45Z | 2021-03-09T22:07:45Z | 2021-04-15T02:28:42Z |
test backportability of #36927 | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 46c4ad4f35fe4..edc2f7327abfc 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.groupby` aggregation with out-of-bounds datetime ob... | https://api.github.com/repos/pandas-dev/pandas/pulls/38133 | 2020-11-28T16:02:09Z | 2020-11-28T16:54:01Z | null | 2020-11-28T16:54:01Z | |
DOC: add contibutors to 1.2.0 release notes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 5d36c52da9f0d..12a2d3aecdaf2 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -782,3 +782,5 @@ Other
Contributors
~~~~~~~~~~~~
+
+.. contributors:: v1.1.4..v1.2.0|HEAD
| https://api.github.com/repos/pandas-dev/pandas/pulls/38132 | 2020-11-28T14:58:17Z | 2020-11-28T18:05:06Z | 2020-11-28T18:05:06Z | 2020-11-28T18:25:14Z | |
REF: use np.where instead of maybe_upcast_putmask in nanops | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 80c4cd5b44a92..88662a4fabed8 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -12,7 +12,6 @@
from pandas._typing import ArrayLike, Dtype, DtypeObj, F, Scalar
from pandas.compat._optional import import_optional_dependency
-from pandas.... | This way we make at most one copy. Also we get rid of the only use of maybe_upcast_putmask that has fill_value of anything other than np.nan, so in a follow-up it can be simplified. | https://api.github.com/repos/pandas-dev/pandas/pulls/38130 | 2020-11-28T04:12:17Z | 2020-11-29T19:25:08Z | 2020-11-29T19:25:08Z | 2020-11-29T19:30:25Z |
REF: de-duplicate ndarray[datetimelike] wrapping | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index efb66c9a47a97..757cea2c710b2 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -44,7 +44,11 @@
from pandas.core.arrays.base import ExtensionArray, _extension_array_shared_docs
from pandas.core.arrays.c... | https://api.github.com/repos/pandas-dev/pandas/pulls/38129 | 2020-11-28T04:05:41Z | 2020-11-29T18:15:13Z | 2020-11-29T18:15:13Z | 2020-11-29T18:19:45Z | |
CLN: remove unreachable in core.dtypes | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 0f0e82f4ad4e2..fe40bc42887c4 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -317,10 +317,7 @@ def maybe_cast_result(result, obj: "Series", numeric_only: bool = False, how: st
result : array-like
result ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38128 | 2020-11-28T03:39:58Z | 2020-11-28T17:42:26Z | 2020-11-28T17:42:26Z | 2020-11-28T18:22:09Z | |
CLN: simplify mask_missing | diff --git a/pandas/core/missing.py b/pandas/core/missing.py
index 52536583b9b0d..0afffbc1460e0 100644
--- a/pandas/core/missing.py
+++ b/pandas/core/missing.py
@@ -7,7 +7,7 @@
import numpy as np
from pandas._libs import algos, lib
-from pandas._typing import DtypeObj
+from pandas._typing import ArrayLike, DtypeObj... | https://api.github.com/repos/pandas-dev/pandas/pulls/38127 | 2020-11-28T03:06:49Z | 2020-11-28T17:44:14Z | 2020-11-28T17:44:14Z | 2020-11-28T18:21:24Z | |
ENH: Implement dict-like support for rename and set_names in MultiIndex | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 393866b92771b..1fa6f0aec4c70 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -51,6 +51,7 @@ Other enhancements
- :func:`pandas.read_sql_query` now accepts a ``dtype`` argument to cast the columnar dat... | - [x] closes #20421
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I tried my hand in adding support for dict-like renamings for MultiIndexes. This seemed as the most straight forward way to me, because we do not ha... | https://api.github.com/repos/pandas-dev/pandas/pulls/38126 | 2020-11-28T01:23:22Z | 2021-01-04T18:55:43Z | 2021-01-04T18:55:42Z | 2021-01-04T18:56:29Z |
Backport PR #38087 on branch 1.1.x (BLD: Only enable -Werror in the CI jobs) | diff --git a/ci/setup_env.sh b/ci/setup_env.sh
index 9adb6fe674099..d725075b85fc6 100755
--- a/ci/setup_env.sh
+++ b/ci/setup_env.sh
@@ -111,6 +111,12 @@ fi
echo "activate pandas-dev"
source activate pandas-dev
+# Explicitly set an environment variable indicating that this is pandas' CI environment.
+#
+# This allo... | Backport PR #38087: BLD: Only enable -Werror in the CI jobs | https://api.github.com/repos/pandas-dev/pandas/pulls/38124 | 2020-11-27T20:50:06Z | 2020-11-27T23:35:32Z | 2020-11-27T23:35:32Z | 2020-11-27T23:35:32Z |
Backport PR #38094 on branch 1.1.x (REGR: fix regression in groupby aggregation with out-of-bounds datetimes) | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 29b0e99a3a356..9be1ff7e836ea 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N... | Backport PR #38094: REGR: fix regression in groupby aggregation with out-of-bounds datetimes | https://api.github.com/repos/pandas-dev/pandas/pulls/38123 | 2020-11-27T20:48:34Z | 2020-11-27T22:31:03Z | 2020-11-27T22:31:02Z | 2020-11-27T22:31:03Z |
BUG: Index.intersection casting to object instead of numeric | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 049ccc0e6c4df..0702cb8c70955 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -771,6 +771,7 @@ Other
- Fixed metadata propagation in the :class:`Series.dt`, :class:`Series.str` accessors, :class:`DataF... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38122 | 2020-11-27T20:39:46Z | 2020-11-29T18:15:59Z | 2020-11-29T18:15:59Z | 2020-12-04T13:40:48Z |
API: preserve freq in DTI/TDI.factorize | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index edc2f7327abfc..4770ab37e08d2 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc` and :meth:`Series.loc` for ``__setitem__`` whe... | cc @simonjayhawkins
closes #35563
this is an old branch I resurrected and rebased, so has some excess cruft that would need to be removed if we want to move forward.
LMK if there are any tests you'd like to see added based on the other issue (or just go ahead and push them if you like) | https://api.github.com/repos/pandas-dev/pandas/pulls/38120 | 2020-11-27T19:48:55Z | 2020-11-30T13:40:57Z | 2020-11-30T13:40:56Z | 2021-11-20T23:21:28Z |
BUG: parsed datetime string resolution incorrect | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index f6eeb121b1ac0..53d573e7eed71 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -565,10 +565,11 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed: datetime):
"hour",
... | I was working today with datetime index, you have the reso (resolutions) defined from year to nanosecond, but then you had the lines 560-570 repeating 'minute' and 'second', and working with millisecond or nanosecond raises a KeyIndex error.
- [ ] closes #38121
- [ ] closes #38077
- [ ] tests added / passed
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/38118 | 2020-11-27T17:45:38Z | 2021-01-24T01:22:07Z | null | 2021-01-30T15:32:34Z |
ENH: include conversion to nullable float in convert_dtypes() | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 0f0e82f4ad4e2..1947d681e70f4 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1255,6 +1255,7 @@ def convert_dtypes(
convert_string: bool = True,
convert_integer: bool = True,
convert_boolean: bool = Tru... | xref https://github.com/pandas-dev/pandas/issues/38110
There is one potentially corner case: what with floats that are all "integer"-like? I think we want to keep returning nullable int for that, at least by default, and that is what I did now in this PR But we might want to add a parameter controlling that behaviou... | https://api.github.com/repos/pandas-dev/pandas/pulls/38117 | 2020-11-27T17:07:08Z | 2020-11-29T19:12:55Z | 2020-11-29T19:12:55Z | 2020-11-29T19:29:16Z |
CLN: fix flake8 C408 part 2 | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 68371b782aac2..bfff4301c2220 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -2167,15 +2167,15 @@ def makeCustomIndex(
names = [names]
# specific 1D index type requested?
- idx_func = dict(
- i=makeIntIndex,
- f=make... | followup of #38078 | https://api.github.com/repos/pandas-dev/pandas/pulls/38116 | 2020-11-27T16:58:38Z | 2020-11-28T17:35:09Z | 2020-11-28T17:35:09Z | 2020-12-05T18:52:47Z |
Backport PR #34407 on branch 1.1.x: REGR: revert "CLN: _consolidate_inplace less" / fix regression in fillna() | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index a8bbf692a72e5..29b0e99a3a356 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in metadata propagation for ``groupby`` iterator (:issue:`37343`)
- Fi... | Backport PR #34407 | https://api.github.com/repos/pandas-dev/pandas/pulls/38115 | 2020-11-27T16:44:12Z | 2020-11-27T19:47:55Z | 2020-11-27T19:47:55Z | 2020-11-27T19:48:01Z |
REF: implement _should_compare | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index c49f3f9457161..d3abeeebb5195 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4973,6 +4973,22 @@ def _maybe_promote(self, other: "Index"):
return self, other
+ def _get_other_deep(self, other: "Ind... | Broken off from #38105 so I can start using it to fix inconsistent set ops. | https://api.github.com/repos/pandas-dev/pandas/pulls/38114 | 2020-11-27T16:16:58Z | 2020-11-29T15:31:15Z | null | 2020-11-29T15:31:44Z |
TST: rewrite convert_dtypes test to make it easier extendable | diff --git a/pandas/tests/series/methods/test_convert_dtypes.py b/pandas/tests/series/methods/test_convert_dtypes.py
index 8a915324a72c1..d44667b258414 100644
--- a/pandas/tests/series/methods/test_convert_dtypes.py
+++ b/pandas/tests/series/methods/test_convert_dtypes.py
@@ -8,272 +8,167 @@
import pandas as pd
impor... | I have a branch adding `convert_floating` support for ``convert_dtypes``, and the current way they are written is not really maintainable when adding more keywords (eg the tuples of 4 would become tuples of 5, making it even harder to know what is what, and making the formatting less easy to follow).
In this PR, I j... | https://api.github.com/repos/pandas-dev/pandas/pulls/38113 | 2020-11-27T16:13:11Z | 2020-11-28T14:27:21Z | 2020-11-28T14:27:21Z | 2020-11-28T14:31:45Z |
REF: IntervalIndex._assert_can_do_setop | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index ed92b3dade6a0..bd92926941aa1 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -122,6 +122,7 @@ def setop_check(method):
@wraps(method)
def wrapped(self, other, sort=False):
+ self... | Working towards standardizing+deduplicating set ops across Index subclasses, xref #38111 | https://api.github.com/repos/pandas-dev/pandas/pulls/38112 | 2020-11-27T16:00:40Z | 2020-11-28T18:22:36Z | 2020-11-28T18:22:36Z | 2020-11-28T18:23:50Z |
BUG: name retention in Index.intersection | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9168041a4f474..10c52c00b3c4d 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -801,6 +801,7 @@ Other
- Fixed bug in metadata propagation incorrectly copying DataFrame columns as metadata when the colum... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
its going to take a few passes to get the behavior consistent across all subclasses. once done, we can de-duplicate the boilerplate. | https://api.github.com/repos/pandas-dev/pandas/pulls/38111 | 2020-11-27T15:56:23Z | 2020-12-02T01:46:07Z | 2020-12-02T01:46:06Z | 2020-12-02T01:49:46Z |
DOC: Add behavior for Index argument in DataFrame.loc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 2f0b6ab0662dd..e3c94fa3941c0 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -259,10 +259,11 @@ def loc(self) -> "_LocIndexer":
e.g. ``[True, False, True]``.
- An alignable boolean Series. The index of the key... | - [x] closes #36850
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/38109 | 2020-11-27T12:48:37Z | 2020-11-29T18:06:24Z | 2020-11-29T18:06:24Z | 2020-11-29T18:06:28Z |
BUG: calling at[] on a Series with a single-level MultiIndex returns a Series, not a scalar | diff --git a/pandas/core/series.py b/pandas/core/series.py
index d493ac0a8c051..75f62b20163b3 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -82,7 +82,11 @@
sanitize_array,
)
from pandas.core.generic import NDFrame
-from pandas.core.indexers import deprecate_ndim_indexing, unpack_1tuple
+from ... | - [ ] closes #GH38053
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38108 | 2020-11-27T10:25:00Z | 2020-11-27T10:25:33Z | null | 2020-11-27T10:26:57Z |
BUG in Series.interpolate: limit_area/limit_direction kwargs with method="pad"/"bfill" have no effect | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 84eb3b3f15780..493e5b53a5559 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -670,6 +670,7 @@ Missing
- Bug in :meth:`.SeriesGroupBy.transform` now correctly handles missing values for ``dropna=Fals... | - [x] closes #26796
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Picking up #31048 | https://api.github.com/repos/pandas-dev/pandas/pulls/38106 | 2020-11-27T05:06:06Z | 2020-12-01T22:05:06Z | 2020-12-01T22:05:06Z | 2020-12-01T22:45:17Z |
REF: implement _should_compare | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 09fe885e47754..06b57662149ad 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4937,6 +4937,43 @@ def get_indexer_for(self, target, **kwargs):
indexer, _ = self.get_indexer_non_unique(target)
retu... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Index._is_comparable_dtype is limited because it misses a few cases: object dtype, and sub-dtypes within categorical. This implements Indes._should_... | https://api.github.com/repos/pandas-dev/pandas/pulls/38105 | 2020-11-27T04:11:58Z | 2020-12-02T01:51:11Z | 2020-12-02T01:51:11Z | 2020-12-02T02:35:02Z |
PERF: Index.searchsorted | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index afd6bbb6c57e0..7bae912a070a9 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1804,7 +1804,7 @@ def func(arr, indexer, out, fill_value=np.nan):
# ------------ #
-def searchsorted(arr, value, side="left", sorter=None)... | - [x] closes #38083
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38103 | 2020-11-27T02:44:09Z | 2020-11-27T07:24:04Z | 2020-11-27T07:24:03Z | 2020-11-27T15:25:02Z |
REF: use _validate_fill_value in Index.insert | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 7d2e3746c4b94..3274725016b40 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -20,7 +20,7 @@
import numpy as np
-from pandas._libs import lib, tslib
+from pandas._libs import lib, missing as libmissing, tslib
fro... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38102 | 2020-11-27T01:39:00Z | 2020-12-13T17:38:59Z | 2020-12-13T17:38:59Z | 2020-12-13T18:26:11Z |
BUG: Series.at returning Series with one element instead of scalar | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 27511c96faa5a..8491d939f27ac 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -625,6 +625,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc` and :meth:`Series.iloc` aligning objects in ``__setitem__`` (:iss... | - [x] closes #38053
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I think if we are at this place and len(values) is 1, we want to return a scalar instead of a Series. This happens only because loc is a slice (0,1)... | https://api.github.com/repos/pandas-dev/pandas/pulls/38101 | 2020-11-26T21:44:00Z | 2020-11-29T15:59:11Z | 2020-11-29T15:59:10Z | 2020-11-29T16:04:01Z |
BUG: fix wrong error message in deprecated 2D indexing of Series with datetime values | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 3aaa376242fea..d912c908815f8 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2393,6 +2393,28 @@ def quantile(self, qs, interpolation="linear", axis=0):
aware = self._holder(res_blk.values... | Closes #35527
For most Series types, this was properly raising the deprecation warning about 2D being deprecated, but for Series with datetimetz values, this started raising an AssertionError instead of only raising the warning.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38099 | 2020-11-26T21:37:12Z | 2020-12-01T00:14:53Z | 2020-12-01T00:14:52Z | 2020-12-01T10:02:42Z |
API: CategoricalIndex.append fallback to concat_compat | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6aff4f4bd41e2..61e4a6358de0b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -454,6 +454,7 @@ Other API changes
- Passing an invalid ``fill_value`` to :meth:`Series.shift` with a ``CategoricalDtype`` ... | - [x] closes #14586
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The main thing being changed here is `CategoricalIndex._concat` to better match the behavior of all the other `FooIndex._concat` methods. Everythin... | https://api.github.com/repos/pandas-dev/pandas/pulls/38098 | 2020-11-26T21:26:43Z | 2020-11-29T15:59:57Z | 2020-11-29T15:59:57Z | 2020-11-29T16:17:11Z |
PERF: replace_list | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index f6ff38201fdfa..74b5a184df95d 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -861,7 +861,15 @@ def _replace_list(
"""
See BlockManager._replace_list docstring.
"""
- ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
closes #38086, this gets us back to (very slightly ahead of) 1.1.4 performance for the cases there, will leave to @jorisvandenbossche whether that is... | https://api.github.com/repos/pandas-dev/pandas/pulls/38097 | 2020-11-26T21:19:47Z | 2020-11-27T01:01:26Z | 2020-11-27T01:01:26Z | 2020-11-27T01:20:07Z |
TST: Suppress http logs in tests | diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py
index e9f228b5973b5..bcc666a88e3be 100644
--- a/pandas/tests/io/conftest.py
+++ b/pandas/tests/io/conftest.py
@@ -1,3 +1,4 @@
+import logging
import os
import shlex
import subprocess
@@ -49,6 +50,8 @@ def s3_base(worker_id):
pytest.importors... | - [x] closes #38090
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Confirming that this does the trick. | https://api.github.com/repos/pandas-dev/pandas/pulls/38096 | 2020-11-26T19:32:25Z | 2020-11-28T17:33:57Z | 2020-11-28T17:33:56Z | 2020-11-28T18:33:18Z |
CLN: testing window namespace | diff --git a/pandas/tests/window/moments/test_moments_consistency_rolling.py b/pandas/tests/window/moments/test_moments_consistency_rolling.py
index ceabf71747cb8..802ece77fd36d 100644
--- a/pandas/tests/window/moments/test_moments_consistency_rolling.py
+++ b/pandas/tests/window/moments/test_moments_consistency_rollin... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
It appears we are heading this general direction in pandas imports in tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/38095 | 2020-11-26T19:18:41Z | 2020-11-26T23:04:36Z | 2020-11-26T23:04:36Z | 2020-11-27T18:42:48Z |
REGR: fix regression in groupby aggregation with out-of-bounds datetimes | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index a8bbf692a72e5..b34df1726dd17 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N... | Closes #36003 | https://api.github.com/repos/pandas-dev/pandas/pulls/38094 | 2020-11-26T16:46:02Z | 2020-11-27T20:12:02Z | 2020-11-27T20:12:02Z | 2020-11-27T20:47:55Z |
BUG: merge_ordered fails with list-like left_by or right_by | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f046d3a9379d..6ab9f9a58cb0c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -737,6 +737,7 @@ Reshaping
- Bug in :meth:`DataFrame.apply` not setting index of return value when ``func`` return type is ... | - [x] closes #35269
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38089 | 2020-11-26T15:05:37Z | 2020-11-29T17:45:41Z | 2020-11-29T17:45:40Z | 2020-11-30T00:41:16Z |
DOC: clarify docs related to deprecation of indexing DataFrame with single partial datetime-string | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 169c0cfbbb87e..354c510b843dd 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -588,10 +588,12 @@ would include matching times on an included date:
.. warning::
- Indexing ... | A follow-up on https://github.com/pandas-dev/pandas/pull/36179#discussion_r494830867 (cc @jbrockmendel). Attempt to clarify what is actually deprecated, remove the `:okwarning:` for several cases in the docs that were not actually deprecated, and updated to use the preferred `.loc` for some others. | https://api.github.com/repos/pandas-dev/pandas/pulls/38088 | 2020-11-26T14:15:02Z | 2020-11-26T15:37:27Z | 2020-11-26T15:37:27Z | 2020-11-26T15:44:49Z |
BLD: Only enable -Werror in the CI jobs | diff --git a/ci/setup_env.sh b/ci/setup_env.sh
index 78951c9def7cb..c36422884f2ec 100755
--- a/ci/setup_env.sh
+++ b/ci/setup_env.sh
@@ -108,6 +108,12 @@ fi
echo "activate pandas-dev"
source activate pandas-dev
+# Explicitly set an environment variable indicating that this is pandas' CI environment.
+#
+# This allo... | closes #33315
closes #33314
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38087 | 2020-11-26T13:34:40Z | 2020-11-27T20:03:58Z | 2020-11-27T20:03:58Z | 2020-12-01T16:41:28Z |
TST : Categorical DataFrame.at overwritting row | diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py
index c721ba2e6daad..fbf33999386e6 100644
--- a/pandas/tests/indexing/test_at.py
+++ b/pandas/tests/indexing/test_at.py
@@ -3,7 +3,7 @@
import numpy as np
import pytest
-from pandas import DataFrame, Series, Timestamp
+from pandas impo... | - [ ] closes #37763
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38085 | 2020-11-26T13:27:48Z | 2020-11-26T18:08:12Z | 2020-11-26T18:08:12Z | 2020-12-03T13:54:21Z |
BLD: Use conda(-forge) compilers | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index ced0554c51fdf..3c5a88333be56 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -146,7 +146,7 @@ Creating a development environment
----------------------------------
... | Use the compiler setup from conda-forge inside a conda environment. The compilers in conda-forge can be different and slightly incompatible with the system ones causing some headaches. Also this hopefully helps with initial setup of new contributors.
Is this worth a whatsnew entry?
- [ ] closes #xxxx
- [ ] tests... | https://api.github.com/repos/pandas-dev/pandas/pulls/38084 | 2020-11-26T13:24:34Z | 2020-11-26T19:13:32Z | 2020-11-26T19:13:32Z | 2020-11-26T19:13:32Z |
Backport PR #38064 on branch 1.1.x (DOC: tidy 1.1.5 release notes) | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index dd88f79371d65..a8bbf692a72e5 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -14,10 +14,13 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Regression in addition of a ... | Backport PR #38064: DOC: tidy 1.1.5 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/38081 | 2020-11-26T13:04:16Z | 2020-11-26T13:56:29Z | 2020-11-26T13:56:29Z | 2020-11-26T13:56:29Z |
DOC: Clean .ix references in indexing.rst | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index d456289c5c3f4..817ea3445f995 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -584,48 +584,20 @@ without using a temporary variable.
(bb.groupby(['year', 'team']).sum()
.loc[l... | `DataFrame.ix` is removed from the code base, so rephrase a section in the docs that was referencing it. | https://api.github.com/repos/pandas-dev/pandas/pulls/38080 | 2020-11-26T11:17:31Z | 2020-11-26T16:18:51Z | 2020-11-26T16:18:51Z | 2020-11-26T16:43:45Z |
TST: mark all plotting tests as slow | diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py
index 77a4c4a8faf5e..dc2aaf9292040 100644
--- a/pandas/tests/plotting/frame/test_frame.py
+++ b/pandas/tests/plotting/frame/test_frame.py
@@ -21,6 +21,8 @@
from pandas.io.formats.printing import pprint_thing
import pand... | - [ ] xref https://github.com/pandas-dev/pandas/pull/37735#issuecomment-732530791
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Marked all plotting tests as slow globally at the top of each module. | https://api.github.com/repos/pandas-dev/pandas/pulls/38079 | 2020-11-26T04:45:52Z | 2020-11-28T17:36:37Z | 2020-11-28T17:36:37Z | 2020-11-30T03:11:16Z |
CLN: fix flake8 C406, C409, and some of C408 | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 22f002e6cb79a..6ce63ff8badca 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -486,7 +486,7 @@ def setup(self):
tmp2 = (np.random.random(10000) * 10.0).astype(np.float32)
tmp = np.... | https://api.github.com/repos/pandas-dev/pandas/pulls/38078 | 2020-11-26T03:29:26Z | 2020-11-26T17:54:02Z | 2020-11-26T17:54:02Z | 2020-12-05T18:53:01Z | |
BUG: raise consistent exception on slicing failure | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index c074ae2c066f6..c49f3f9457161 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3433,11 +3433,11 @@ def _convert_list_indexer(self, keyarr):
return None
@final
- def _invalid_indexer(self, form: s... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38077 | 2020-11-26T03:25:46Z | 2020-11-26T22:25:03Z | 2020-11-26T22:25:03Z | 2020-11-27T17:41:13Z |
CLN: inconsistent namespace usage in tests.indexes | diff --git a/pandas/tests/indexes/datetimes/test_astype.py b/pandas/tests/indexes/datetimes/test_astype.py
index ad9a2f112caac..2f22236d55ff3 100644
--- a/pandas/tests/indexes/datetimes/test_astype.py
+++ b/pandas/tests/indexes/datetimes/test_astype.py
@@ -172,7 +172,7 @@ def test_astype_object(self):
@pytest.ma... | Finding these annoying while doing other work in this directory.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38076 | 2020-11-26T03:00:39Z | 2020-11-26T16:05:02Z | 2020-11-26T16:05:02Z | 2020-11-26T16:15:46Z |
PERF: fix regression in tz_convert_from_utc | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index f08a86b1262e6..1049682af08e8 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -426,7 +426,7 @@ def tz_convert_from_utc(const int64_t[:] vals, tzinfo tz):
int64 ndarray of co... | - [x] closes #35803
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry - N/A I believe
Get rid of an unnecessary copy. | https://api.github.com/repos/pandas-dev/pandas/pulls/38074 | 2020-11-25T23:10:32Z | 2020-11-26T15:35:30Z | 2020-11-26T15:35:30Z | 2020-11-26T15:35:34Z |
BUG: Series.where casting dt64 to int64 | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 77bc080892e6c..da262993ca858 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -191,6 +191,8 @@ Datetimelike
- Bug in :meth:`DataFrame.first` and :meth:`Series.first` returning two months for offset one... | - [x] closes #37682
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This sits on top of #38021 | https://api.github.com/repos/pandas-dev/pandas/pulls/38073 | 2020-11-25T22:43:24Z | 2020-12-29T18:09:25Z | 2020-12-29T18:09:25Z | 2020-12-29T18:13:45Z |
TST/REF: take things out of Base tests | diff --git a/pandas/tests/indexes/categorical/test_category.py b/pandas/tests/indexes/categorical/test_category.py
index b2b3f76824b9e..2e03c00638a5c 100644
--- a/pandas/tests/indexes/categorical/test_category.py
+++ b/pandas/tests/indexes/categorical/test_category.py
@@ -28,81 +28,6 @@ def test_can_hold_identifiers(se... | Trying to clear up the confusing:
common.py defines Base
test_base.py imports Base from common
test_common does not
and try to get away from the create_index usage to just use the index fixture
Small steps.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38072 | 2020-11-25T22:15:45Z | 2020-11-26T17:57:57Z | 2020-11-26T17:57:57Z | 2020-11-26T18:48:31Z |
BUG: DataFrame.loc returning empty result with negative stepsize for MultiIndex | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 84ac2d0c17676..ac7a2ddd477c9 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -659,6 +659,7 @@ Indexing
- Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :class:`MultiIndex` and a lev... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This was easier than thought. Should I add a whatsnew note for this? | https://api.github.com/repos/pandas-dev/pandas/pulls/38071 | 2020-11-25T21:19:03Z | 2020-12-02T18:38:54Z | 2020-12-02T18:38:54Z | 2020-12-02T18:43:00Z |
BUG: Index.drop raising Error when Index has duplicates | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 17cdb7538dad2..5479ac4df6afb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -689,6 +689,7 @@ MultiIndex
- Bug in :meth:`DataFrame.reset_index` with ``NaT`` values in index raises ``ValueError`` with ... | - [x] closes #38051
- [x] closes #33494
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@jbrockmendel This should deal with duplicates. For MultiIndex sometimes a slice with stepzize greater than zero was given, wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/38070 | 2020-11-25T20:11:11Z | 2020-12-02T23:28:05Z | 2020-12-02T23:28:04Z | 2020-12-03T22:14:42Z |
ENH: NDArrayBackedExtensionArray.__array_function__ | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index a2444b7ba5a0d..671ec653d6484 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -62,9 +62,25 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
return np.array(arr, *args, **kwargs)
+de... | motivated by getting np.delete and np.repeat working, had to implement a few others to get the tests passing.
If we go down this path, I plan to incrementally add support for others, some of which (e.g. vstack) will avoid some object-dtype casting.
cc @TomAugspurger @shoyer @seberg any suggestions to clean the im... | https://api.github.com/repos/pandas-dev/pandas/pulls/38068 | 2020-11-25T18:32:41Z | 2020-12-21T21:37:43Z | null | 2021-03-02T15:54:21Z |
DOC: tidy 1.1.5 release notes | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index dd88f79371d65..a8bbf692a72e5 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -14,10 +14,13 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Regression in addition of a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38064 | 2020-11-25T13:34:43Z | 2020-11-26T13:03:39Z | 2020-11-26T13:03:39Z | 2020-11-26T13:07:33Z | |
DOC: move info docs to DataFrameInfo | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 803d1c914c954..8c85c4e961d99 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -206,8 +206,8 @@
format as fmt,
)
from pandas.io.formats.info import (
- BaseInfo,
DataFrameInfo,
+ frame_sub_kwargs,
)
import pandas.plotting
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Precursor for #37320
Move ``info`` docstring from ``pandas/core/frame.py`` to class ``DataFrameInfo`` using ``doc`` decorator.
@simonjayhawkins n... | https://api.github.com/repos/pandas-dev/pandas/pulls/38062 | 2020-11-25T12:12:54Z | 2021-11-29T14:46:59Z | 2021-11-29T14:46:59Z | 2021-11-29T14:47:03Z |
Backport PR #38041 on branch 1.1.x: BUG: pytables in py39 (#38041) | diff --git a/ci/deps/azure-39.yaml b/ci/deps/azure-39.yaml
index 67edc83a9d738..c4c84e73fa684 100644
--- a/ci/deps/azure-39.yaml
+++ b/ci/deps/azure-39.yaml
@@ -15,3 +15,8 @@ dependencies:
- numpy
- python-dateutil
- pytz
+
+ # optional dependencies
+ - pytables
+ - scipy
+ - pyarrow=1.0
diff --git a/doc/s... | Backport PR #38041 on branch 1.1.x | https://api.github.com/repos/pandas-dev/pandas/pulls/38061 | 2020-11-25T11:58:01Z | 2020-11-25T12:48:13Z | 2020-11-25T12:48:13Z | 2020-11-25T12:48:18Z |
Backport PR #37039: CI: move py39 build to conda #33948 | diff --git a/.travis.yml b/.travis.yml
index 1e5ea21b0f2d9..f43f4a1d16ff8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,14 +29,6 @@ matrix:
fast_finish: true
include:
- # In allowed failures
- - dist: bionic
- python: 3.9-dev
- env:
- - JOB="3.9-dev" PATTERN="(not slow and not network... | Backport PR #37039 | https://api.github.com/repos/pandas-dev/pandas/pulls/38059 | 2020-11-25T10:33:24Z | 2020-11-25T11:51:02Z | 2020-11-25T11:51:02Z | 2020-11-25T11:51:18Z |
PERF: fix regression in creation of resulting index in RollingGroupby | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 79a33c437ea5c..5a36cff7908f0 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -225,6 +225,20 @@ def time_rolling_offset(self, method):
getattr(self.groupby_roll_offset, method)()
+class... | Closes #38038
TODO: fix corner cases, add benchmark, .. | https://api.github.com/repos/pandas-dev/pandas/pulls/38057 | 2020-11-25T09:03:16Z | 2020-12-01T09:12:37Z | 2020-12-01T09:12:37Z | 2020-12-08T14:36:41Z |
CI: Renable window tests on Windows | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 78d24c814840a..924ece4a60b26 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -25,7 +25,7 @@ PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile -s
if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then
# GH#37455 windows py38... | - [x] closes #37535
- [ ] tests added / passed
Checking if the recent cleanup of the `tests/window` directory had any impact.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38056 | 2020-11-25T06:05:21Z | 2020-11-25T21:10:38Z | null | 2020-11-25T21:10:43Z |
CLN: remove ABCIndex | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 24680fc855b0d..cdcbc43055052 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -24,12 +24,7 @@
is_extension_array_dtype,
is_integer,
)
-from pandas.core.dtypes.generic import (
- ABCExtensionArray,
- ABCIndex,
- ABCInde... | It's a footgun.
BTW I expect the CI to fail until #38020 goes in, which will [demonstrate](https://github.com/pandas-dev/pandas/pull/38020#discussion_r529159757) that there is a test case that uses MultiIndex. | https://api.github.com/repos/pandas-dev/pandas/pulls/38055 | 2020-11-25T03:20:37Z | 2020-11-26T00:30:57Z | 2020-11-26T00:30:57Z | 2020-11-26T15:34:43Z |
TST: tighten assert_index_equal calls | diff --git a/pandas/tests/frame/methods/test_reset_index.py b/pandas/tests/frame/methods/test_reset_index.py
index 56fd633f5f22b..5864b547a552b 100644
--- a/pandas/tests/frame/methods/test_reset_index.py
+++ b/pandas/tests/frame/methods/test_reset_index.py
@@ -130,7 +130,7 @@ def test_reset_index(self, float_frame):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38054 | 2020-11-25T02:53:57Z | 2020-11-26T23:02:44Z | 2020-11-26T23:02:44Z | 2020-11-26T23:07:43Z | |
BUG: get_indexer_non_unique not excluding boolean like get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b5900ead246f3..fac4940c0b573 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4896,6 +4896,14 @@ def set_value(self, arr, key, value):
@Appender(_index_shared_docs["get_indexer_non_unique"] % _index_doc_kwarg... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
There's a check in get_indexer that is missing from get_indexer_non_unique, which this adds. This is going to make some de-duplication easier.
Ha... | https://api.github.com/repos/pandas-dev/pandas/pulls/38052 | 2020-11-25T02:26:54Z | 2020-11-26T17:56:18Z | 2020-11-26T17:56:18Z | 2020-11-26T18:48:00Z |
TST/REF: collect Index formatting tests | diff --git a/pandas/tests/indexes/base_class/test_formats.py b/pandas/tests/indexes/base_class/test_formats.py
new file mode 100644
index 0000000000000..f07b06acbfbdb
--- /dev/null
+++ b/pandas/tests/indexes/base_class/test_formats.py
@@ -0,0 +1,134 @@
+import numpy as np
+import pytest
+
+import pandas._config.config ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38050 | 2020-11-25T01:36:22Z | 2020-11-25T21:01:58Z | 2020-11-25T21:01:58Z | 2020-11-25T21:37:08Z |
REF: share argmax axis validation test across all indexes | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 62e508c491740..5353969d9a556 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1956,6 +1956,7 @@ def min(self, *, skipna=True, **kwargs):
-------
min : the minimum of this ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38049 | 2020-11-25T00:10:51Z | 2020-11-26T17:55:27Z | 2020-11-26T17:55:27Z | 2020-11-26T18:52:17Z | |
ENH: adding support for Py3.6+ memory tracing for khash-maps | diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx
index cc080a87cfb5b..963fddd4d5af9 100644
--- a/pandas/_libs/hashtable.pyx
+++ b/pandas/_libs/hashtable.pyx
@@ -13,10 +13,14 @@ cnp.import_array()
from pandas._libs cimport util
-from pandas._libs.khash cimport kh_str_t, khiter_t
+from pandas._li... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Tracemalloc is a standard tool for tracing of memory consumption in Python. Until now khash-maps were invisible for this tool.
This PR follows more or less numpy's a... | https://api.github.com/repos/pandas-dev/pandas/pulls/38048 | 2020-11-24T22:48:40Z | 2020-11-26T17:43:44Z | 2020-11-26T17:43:44Z | 2020-11-27T08:15:07Z |
DOC: Remove repeated words and wrong /it's/ usage | diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst
index ced5b686b8246..f8e6bda2085d8 100644
--- a/doc/source/development/policies.rst
+++ b/doc/source/development/policies.rst
@@ -35,7 +35,7 @@ We will not introduce new deprecations in patch releases.
Deprecations will only be enfo... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Remove (manually reviewed) repeated words from documentation/comments as well as wrong usage of `it's` (replaced by `its` where appropriated). | https://api.github.com/repos/pandas-dev/pandas/pulls/38047 | 2020-11-24T19:30:11Z | 2020-11-26T17:37:58Z | 2020-11-26T17:37:58Z | 2020-11-26T18:55:15Z |
CLN: dont mix Int64Index into PeriodIndex | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index e25119162368f..0f9a0052c18d0 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -65,7 +65,7 @@ def _new_PeriodIndex(cls, **d):
wrap=True,
)
@inherit_names(["is_leap_year", "_format_native_types"], Peri... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38045 | 2020-11-24T18:07:05Z | 2020-11-26T17:34:48Z | 2020-11-26T17:34:48Z | 2020-11-26T18:50:07Z |
CLN: Remove .values from groupby.sem | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 6e26e9a43bb2a..ae3612c99d5cd 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1600,10 +1600,8 @@ def sem(self, ddof: int = 1):
cols = result.columns.get_indexer_for(
resul... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Closure of #22046 allows removing the workaround. | https://api.github.com/repos/pandas-dev/pandas/pulls/38044 | 2020-11-24T17:58:15Z | 2020-11-26T16:17:44Z | 2020-11-26T16:17:44Z | 2020-12-06T14:03:54Z |
TYP: Add cast to ABC Index-like types | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 7bae912a070a9..713d58b4df5be 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -168,6 +168,7 @@ def _ensure_data(
elif is_categorical_dtype(values.dtype) and (
is_categorical_dtype(dtype) or dtype is None
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @simonjayhawkins
For the added type-ignore, the attribute `inferred_freq` is added dynamically onto the index instance. | https://api.github.com/repos/pandas-dev/pandas/pulls/38043 | 2020-11-24T17:40:31Z | 2020-11-28T17:46:03Z | 2020-11-28T17:46:03Z | 2020-12-06T14:03:54Z |
BUG: pytables in py39 | diff --git a/ci/deps/azure-39.yaml b/ci/deps/azure-39.yaml
index 67edc83a9d738..c4c84e73fa684 100644
--- a/ci/deps/azure-39.yaml
+++ b/ci/deps/azure-39.yaml
@@ -15,3 +15,8 @@ dependencies:
- numpy
- python-dateutil
- pytz
+
+ # optional dependencies
+ - pytables
+ - scipy
+ - pyarrow=1.0
diff --git a/doc/s... | There are failures I'm getting locally since homebrew bumped up to py39. I'm not seeing them on the CI, but they _did_ appear around the same time as these [different](https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=48423&view=logs&j=2d7fb38a-2053-50f3-a67c-09f6e91d3121&t=449937cc-3d50-56b5-5662-e489f41... | https://api.github.com/repos/pandas-dev/pandas/pulls/38041 | 2020-11-24T17:26:35Z | 2020-11-25T03:58:19Z | 2020-11-25T03:58:19Z | 2020-11-25T15:28:59Z |
BUG: Series constructor drops nanoseconds of Timedelta scalar | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9168041a4f474..9f6ef102b6a29 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -575,6 +575,7 @@ Datetimelike
- Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` in... | - [x] closes #38032
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38040 | 2020-11-24T16:22:30Z | 2020-12-11T08:49:23Z | null | 2021-03-22T20:24:55Z |
Backport PR #37986 on branch 1.1.x: REGR: fix inplace operations for EAs with non-EA arg | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 323342cb43950..609c3650c8cc2 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -17,7 +17,7 @@ Fixed regressions
- Regression in addition of a timedelta-like scalar to a :class:`DatetimeIndex` raising in... | Backport PR #37986 | https://api.github.com/repos/pandas-dev/pandas/pulls/38035 | 2020-11-24T09:36:48Z | 2020-11-25T10:52:56Z | 2020-11-25T10:52:56Z | 2020-11-25T10:53:11Z |
ENH: preserve RangeIndex in factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 4c9817f3c3dc6..afd6bbb6c57e0 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -51,6 +51,7 @@
ABCExtensionArray,
ABCIndexClass,
ABCMultiIndex,
+ ABCRangeIndex,
ABCSeries,
)
from pandas.core.dtypes.m... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38034 | 2020-11-24T05:17:15Z | 2020-11-26T22:24:31Z | 2020-11-26T22:24:31Z | 2020-11-26T22:30:49Z |
BUG: NumericIndex.insert(0, False) casting to int | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 0c7cd31a10acb..d0a00e286aad5 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -621,6 +621,7 @@ Indexing
- Bug in :meth:`DataFrame.xs` ignored ``droplevel=False`` for columns (:issue:`19056`)
- Bug in ... | - [x] closes #36319
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #16277
| https://api.github.com/repos/pandas-dev/pandas/pulls/38030 | 2020-11-24T04:02:27Z | 2020-11-26T17:26:00Z | 2020-11-26T17:26:00Z | 2020-11-26T19:00:04Z |
BUG: unstack with missing levels results in incorrect index names | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 53f254aee2e0e..811b31edf301a 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -267,7 +267,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug in :meth:`DataFrame.unstack` with missing levels... | - [x] closes #37510
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38029 | 2020-11-24T03:07:32Z | 2020-12-31T19:11:28Z | 2020-12-31T19:11:28Z | 2021-01-01T01:35:55Z |
BUG: RangeIndex.difference with mismatched step | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 08edc7531bcd6..4f1f54af2dd6a 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -772,6 +772,7 @@ Other
- Bug in :meth:`Index.union` behaving differently depending on whether operand is an :class:`Index` ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38028 | 2020-11-24T02:59:02Z | 2020-11-26T22:26:51Z | 2020-11-26T22:26:51Z | 2020-11-26T22:33:20Z |
REF: Share code between NumericIndex subclasses | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b5900ead246f3..7827cd9bfe332 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5523,6 +5523,17 @@ def _cmp_method(self, other, op):
"""
Wrapper used to dispatch comparison operations.
"""... | https://api.github.com/repos/pandas-dev/pandas/pulls/38027 | 2020-11-24T00:03:27Z | 2020-11-26T16:20:06Z | 2020-11-26T16:20:06Z | 2020-11-26T16:26:45Z | |
Bug in loc raising KeyError when MultiIndex columns has only one level | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 48561b50f66ae..ad5af5df710ba 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -621,6 +621,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc` and :meth:`Series.iloc` aligning objects in ``__setitem__`` (:iss... | - [x] closes #29749
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@jbrockmendel I think we should check for MultiIndex instead of level number here | https://api.github.com/repos/pandas-dev/pandas/pulls/38026 | 2020-11-23T23:07:42Z | 2020-11-25T03:18:36Z | 2020-11-25T03:18:36Z | 2020-11-25T18:50:52Z |
Revert "REF: back IntervalArray by a single ndarray (#37047)" | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 46a7351443883..efb66c9a47a97 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1,7 +1,7 @@
import operator
from operator import le, lt
import textwrap
-from typing import TYPE_CHECKING, Optional, Seq... | This reverts commit 9cb372376fc78aa66e2559de919592007b74cfaa.
See discussion in https://github.com/pandas-dev/pandas/pull/37047/
@jbrockmendel can you give this a check? (there were already several conflicts) | https://api.github.com/repos/pandas-dev/pandas/pulls/38024 | 2020-11-23T20:32:49Z | 2020-11-24T17:35:58Z | 2020-11-24T17:35:58Z | 2020-11-24T19:22:32Z |
ENH: support 2D in DatetimeArray._from_sequence | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 7c6b38d9114ab..effce6fc464b0 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -2065,20 +2065,24 @@ def objects_to_datetime64ns(
# if str-dtype, convert
data = np.array(data, copy=False, dt... | Broken off from a branch that fixes #37682, the constraint on which is that _validate_setitem_value needs to handle 2D. | https://api.github.com/repos/pandas-dev/pandas/pulls/38021 | 2020-11-23T18:01:58Z | 2020-12-17T13:52:44Z | 2020-12-17T13:52:44Z | 2020-12-17T15:44:46Z |
BUG: algos.isin numeric vs datetimelike | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index b79905796f7cd..c315a5c03256c 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -49,7 +49,6 @@
)
from pandas.core.dtypes.generic import (
ABCExtensionArray,
- ABCIndex,
ABCIndexClass,
ABCMultiIndex,
... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38020 | 2020-11-23T16:28:22Z | 2020-11-25T22:05:48Z | 2020-11-25T22:05:48Z | 2020-11-25T22:11:40Z |
TST/REF: collect Index setops tests | diff --git a/pandas/tests/indexes/base_class/test_setops.py b/pandas/tests/indexes/base_class/test_setops.py
index b571ff7f63f58..9a6a892307da8 100644
--- a/pandas/tests/indexes/base_class/test_setops.py
+++ b/pandas/tests/indexes/base_class/test_setops.py
@@ -1,3 +1,5 @@
+from datetime import datetime
+
import numpy ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38019 | 2020-11-23T16:13:30Z | 2020-11-24T13:26:16Z | 2020-11-24T13:26:16Z | 2020-11-24T15:26:27Z |
Using os.PathLike instead of pathlib.Path (#37979) | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 7f01bcaa1c50e..09c490e64957d 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta, tzinfo
from io import BufferedIOBase, RawIOBase, TextIOBase, TextIOWrapper
from mmap import mmap
-from pathlib import ... | - [x] closes #37979
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Replaces `pathlib.Path` with `os.PathLike` to bring behaviour further in-line with the [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv... | https://api.github.com/repos/pandas-dev/pandas/pulls/38018 | 2020-11-23T16:07:29Z | 2020-12-02T02:02:32Z | 2020-12-02T02:02:32Z | 2020-12-02T02:02:37Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.