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 |
|---|---|---|---|---|---|---|---|
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py
index 55465dffd2027..e1ce10970f07b 100644
--- a/pandas/tests/frame/indexing/test_setitem.py
+++ b/pandas/tests/frame/indexing/test_setitem.py
@@ -185,6 +185,53 @@ def test_setitem_extension_types(self, obj, dtype):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37589 | 2020-11-02T15:23:23Z | 2020-11-02T22:24:37Z | 2020-11-02T22:24:37Z | 2020-11-02T22:40:14Z | |
REF: prelims for single-path setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index c2dad928845a7..c5e331a104726 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1592,7 +1592,11 @@ def _setitem_with_indexer(self, indexer, value):
return
# add a new item wit... | Removes a pytest.skip that was supposed to have been removed along with an xfail in a previous step. | https://api.github.com/repos/pandas-dev/pandas/pulls/37588 | 2020-11-02T15:03:04Z | 2020-11-02T21:25:45Z | 2020-11-02T21:25:45Z | 2020-11-02T21:46:43Z |
TST: catch FutureWarnings from Index.__and__ deprecation | diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py
index 4920796f661fb..4bb4d3eeda112 100644
--- a/pandas/tests/series/test_arithmetic.py
+++ b/pandas/tests/series/test_arithmetic.py
@@ -731,17 +731,23 @@ def test_series_ops_name_retention(flex, box, names, all_binary_operators... | https://api.github.com/repos/pandas-dev/pandas/pulls/37587 | 2020-11-02T14:59:50Z | 2020-11-02T17:29:54Z | 2020-11-02T17:29:54Z | 2020-11-02T17:30:19Z | |
CLN refactor rest of core | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 2145551833e90..55863e649078d 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -388,7 +388,6 @@ def validate_func_kwargs(
>>> validate_func_kwargs({'one': 'min', 'two': 'max'})
(['one', 'two'], ['min', 'max'])... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37586 | 2020-11-02T14:17:39Z | 2021-01-20T01:40:49Z | 2021-01-20T01:40:49Z | 2021-01-20T17:36:20Z |
CLN refactor core/computation | diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py
index 82867cf9dcd29..8a8b0d564ea49 100644
--- a/pandas/core/computation/align.py
+++ b/pandas/core/computation/align.py
@@ -38,8 +38,7 @@ def _align_core_single_unary_op(
def _zip_axes_from_type(
typ: Type[FrameOrSeries], new_axes: S... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37585 | 2020-11-02T14:14:55Z | 2020-11-02T23:13:18Z | 2020-11-02T23:13:18Z | 2020-11-03T08:12:52Z |
CLN refactor core dtypes | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 1cfa9957874ac..87f6e73e09d66 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1,6 +1,9 @@
"""
Routines for casting.
"""
+
+from __future__ import annotations
+
from contextlib import suppress
from datetime import... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37584 | 2020-11-02T11:42:28Z | 2021-01-03T17:30:25Z | 2021-01-03T17:30:25Z | 2021-01-03T18:06:10Z |
CLN refactor core/groupby | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index 2387427d15670..8e278dc81a8cc 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -63,9 +63,8 @@ def _gotitem(self, key, ndim, subset=None):
self = type(self)(subset, groupby=groupby, parent=self, **kwargs)
... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37583 | 2020-11-02T11:40:44Z | 2020-11-04T22:57:59Z | 2020-11-04T22:57:59Z | 2020-11-05T07:12:21Z |
CLN refactor core indexes | diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py
index 18981a2190552..d4f22e482af84 100644
--- a/pandas/core/indexes/api.py
+++ b/pandas/core/indexes/api.py
@@ -282,7 +282,4 @@ def all_indexes_same(indexes):
"""
itr = iter(indexes)
first = next(itr)
- for index in itr:
- if ... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37582 | 2020-11-02T11:38:39Z | 2020-12-22T21:06:18Z | 2020-12-22T21:06:18Z | 2020-12-23T08:06:32Z |
CLN refactor core/arrays | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 57f8f11d4d04c..82d79cc47a4ae 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -460,7 +460,7 @@ def astype(self, dtype, copy=True):
if is_dtype_equal(dtype, self.dtype):
if not copy:
... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37581 | 2020-11-02T11:36:17Z | 2020-11-04T13:47:37Z | 2020-11-04T13:47:37Z | 2020-11-04T14:23:02Z |
CLN refactor non-core | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 0b802f2cc9e69..512b638fc4877 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -392,7 +392,7 @@ class option_context(ContextDecorator):
"""
def __init__(self, *args):
- if not (len(args) % 2 == 0 and len(args... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37580 | 2020-11-02T11:33:59Z | 2020-11-02T22:42:17Z | 2020-11-02T22:42:17Z | 2020-11-03T08:14:17Z |
refactor core | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index c64f0bd71cf84..0af855d5a504e 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -387,7 +387,6 @@ def validate_func_kwargs(
>>> validate_func_kwargs({'one': 'min', 'two': 'max'})
(['one', 'two'], ['min', 'max'])... | Some refactorings found by Sourcery https://sourcery.ai/
I've removed the ones of the kind
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37579 | 2020-11-02T11:31:33Z | 2020-11-02T11:43:04Z | null | 2020-11-02T11:43:04Z |
sourcery refactoring | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 0b802f2cc9e69..850394baba240 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -392,7 +392,7 @@ class option_context(ContextDecorator):
"""
def __init__(self, *args):
- if not (len(args) % 2 == 0 and len(args... | I tried applying https://sourcery.ai/github/ , seems like there's some nice suggestions here. I removed the ones where they change things like
```diff
- if param:
- var = a
- else:
- var = b
+ var = a if param else b
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/37578 | 2020-11-02T11:09:14Z | 2020-11-02T13:04:17Z | null | 2020-11-02T14:56:58Z |
DOC: Add windows.rst | diff --git a/doc/source/reference/window.rst b/doc/source/reference/window.rst
index 77697b966df18..a255b3ae8081e 100644
--- a/doc/source/reference/window.rst
+++ b/doc/source/reference/window.rst
@@ -10,8 +10,10 @@ Rolling objects are returned by ``.rolling`` calls: :func:`pandas.DataFrame.roll
Expanding objects are ... | Adding a dedicated `user_guide/windows.rst` for `rolling/expanding/ewm` operations.
Mainly ported over from `computation.rst`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37575 | 2020-11-02T04:30:53Z | 2020-11-14T16:56:36Z | 2020-11-14T16:56:36Z | 2020-11-14T21:16:14Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/frame/methods/test_swapaxes.py b/pandas/tests/frame/methods/test_swapaxes.py
new file mode 100644
index 0000000000000..306f7b2b21cda
--- /dev/null
+++ b/pandas/tests/frame/methods/test_swapaxes.py
@@ -0,0 +1,22 @@
+import numpy as np
+import pytest
+
+from pandas import DataFrame
+import panda... | This is something of an outlier in that it collects iter/iteritems/iterrows/itertuples into a test_iteration file. I think this is a sufficiently clear grouping, akin to test_arithmetic/test_reductions/test_unary, LMK if you disagree. | https://api.github.com/repos/pandas-dev/pandas/pulls/37573 | 2020-11-02T00:07:52Z | 2020-11-02T13:39:08Z | 2020-11-02T13:39:08Z | 2020-11-02T14:29:53Z |
BUG: to_dict should return a native datetime object for NumPy backed dataframes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 9ac3585aa9002..6733a118165ff 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -435,7 +435,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.to_dict` with ``orient='records'`` now retu... | - [x] closes #21256
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added a fix for datetime. Added tests for datetime and for bool | https://api.github.com/repos/pandas-dev/pandas/pulls/37571 | 2020-11-01T23:27:18Z | 2020-11-04T23:50:34Z | 2020-11-04T23:50:34Z | 2020-11-04T23:50:47Z |
TST: avoid/suppress DeprecationWarnings | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 028a0c4684aef..73aa97c832848 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -664,6 +664,11 @@ def _arith_method(self, other, op):
dtype = "bool"
result = np.zeros(len(self._d... | After this, all thats left for me locally is plotting warnings about multiple subplots | https://api.github.com/repos/pandas-dev/pandas/pulls/37570 | 2020-11-01T22:43:18Z | 2020-11-02T00:28:19Z | 2020-11-02T00:28:18Z | 2020-11-02T01:09:51Z |
PERF: faster numeric indexes comparisons when self is identical to other | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 546b90249b5ca..d6f571360b457 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -1,3 +1,4 @@
+import operator
from typing import Any
import numpy as np
@@ -185,6 +186,18 @@ def _union(self, other, sor... | Further performance improvement over #37130, this time improving all numeric indexes. The improvement is larger for `Int64Index`, because that doesn't need to check for `na` values.
Examples:
```python
>>> n = 100_000
>>> idx1 = pd.Int64Index(range(n))
>>> idx2 = idx1.view()
>>> %timeit idx1 == idx2
145 µs ±... | https://api.github.com/repos/pandas-dev/pandas/pulls/37569 | 2020-11-01T22:11:40Z | 2020-11-02T00:32:18Z | 2020-11-02T00:32:18Z | 2021-01-01T22:13:54Z |
BUG: Fix bug in combine_first with string dtype and only NA | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 84f594acf5e4c..980103ad3ad8e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -531,7 +531,7 @@ Reshaping
- Bug in :meth:`Series.transform` would give incorrect results or raise when the argument ``func... | - [x] closes #37519
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This caused bugs in ``Index.union()`` and ``Index.join()`` with ``how=outer`` too, but they are called from combine_first. Could add test, if this ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37568 | 2020-11-01T22:11:31Z | 2020-11-02T00:42:22Z | 2020-11-02T00:42:21Z | 2020-12-13T19:29:30Z |
CLN: de-duplicate asof_locs | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1938722225b98..b9dc8b3014a20 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4490,7 +4490,7 @@ def asof(self, label):
loc = loc.indices(len(self))[-1]
return self[loc]
- def aso... | We might want to deprecate allowing DatetimeIndex `where` in `PeriodIndex.asof_locs`. We only have one test for it, and allowing it is inconsistent with how we treat other comparisons (unless we want to start allowing dt64 in PeriodArray.searchsorted...) | https://api.github.com/repos/pandas-dev/pandas/pulls/37567 | 2020-11-01T21:48:15Z | 2020-11-02T13:38:13Z | 2020-11-02T13:38:13Z | 2020-11-02T14:30:26Z |
ENH: add DataFrame.is_unique method | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 9a1ebc8d670dc..77ec6c723a6f2 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -190,6 +190,7 @@ Reindexing / selection / label manipulation
DataFrame.head
DataFrame.idxmax
DataFrame.idxmin
+ ... | Currently, to see columns with unique values, we have to do `df.apply(lambda x: x.is_unique)`, which is a bit awkward.
IMO checking for unique columns in a DataFrame is a common enough need to justify a method for that specific purpose.
Xref: #11948 | https://api.github.com/repos/pandas-dev/pandas/pulls/37565 | 2020-11-01T19:22:44Z | 2021-07-11T23:30:59Z | null | 2021-07-11T23:30:59Z |
REGR: pd.to_hdf(..., dropna=True) not dropping missing rows | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7111d54d65815..5fedd57cd2bc8 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -492,6 +492,7 @@ I/O
- Bug in output rendering of complex numbers showing too many trailing zeros (:issue:`36799`)
- Bug i... | - [x] closes #35719
- [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/37564 | 2020-11-01T19:19:55Z | 2020-11-04T01:59:22Z | 2020-11-04T01:59:22Z | 2020-11-04T08:07:23Z |
CLN: remove redundant variable in setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3cb9cba01da48..096ce9a791285 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1645,11 +1645,6 @@ def _setitem_with_indexer_split_path(self, indexer, value):
if isinstance(value, ABCSeries):
value = self._ali... | https://api.github.com/repos/pandas-dev/pandas/pulls/37563 | 2020-11-01T18:04:59Z | 2020-11-02T00:22:44Z | 2020-11-02T00:22:44Z | 2020-11-02T00:26:12Z | |
TST: fix xfailing indexing test | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3cb9cba01da48..d831e2e6a6dc5 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1710,6 +1710,9 @@ def _setitem_with_indexer_split_path(self, indexer, value):
self._setitem_single_column(loc, v, plane_indexer)
... | When moving to the always-go-split_path, a bunch of tests fail without this fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/37562 | 2020-11-01T17:54:23Z | 2020-11-02T00:22:09Z | 2020-11-02T00:22:09Z | 2020-11-02T00:27:21Z |
REF: move IntervalIndex.equals up to ExtensionIndex.equals | diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py
index 1f26ceaf2d1b7..90b73da8a53ba 100644
--- a/pandas/core/indexes/extension.py
+++ b/pandas/core/indexes/extension.py
@@ -283,6 +283,17 @@ def astype(self, dtype, copy=True):
def _isnan(self) -> np.ndarray:
return self._dat... | https://api.github.com/repos/pandas-dev/pandas/pulls/37561 | 2020-11-01T17:50:25Z | 2020-11-02T00:33:49Z | 2020-11-02T00:33:49Z | 2020-11-02T17:45:30Z | |
REF: move _wrap_joined_index up to NDarrayBackedExtensionIndex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index c137509a2cd2d..2f2836519d847 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -29,7 +29,6 @@
from pandas.core.indexes.base import Index, _index_shared_docs, maybe_extract_name
from pandas.core.ind... | Small steps towards
a) supporting arbitrary ExtensionIndex
b) using `@final` more in index code | https://api.github.com/repos/pandas-dev/pandas/pulls/37560 | 2020-11-01T17:17:32Z | 2020-11-02T00:35:06Z | 2020-11-02T00:35:05Z | 2020-11-02T15:12:42Z |
Add ss02 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b5d63e259456b..1ec3d25137a71 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -238,8 +238,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,... | - [x] closes #25113, closes https://github.com/pandas-dev/pandas/issues/36745
- [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/37559 | 2020-11-01T16:10:09Z | 2020-11-10T03:38:05Z | 2020-11-10T03:38:04Z | 2020-12-30T08:10:29Z |
ENH: Improve numerical stability for window functions skew and kurt | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index d4d28dde52d58..fab4a8dce8ea8 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -232,6 +232,7 @@ Other enhancements
- :meth:`testing.assert_index_equal` now has a ``check_order`` parameter that allows in... | - [x] closes #6929
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Used the same procedure as in ``DataFrame.skew()`` | https://api.github.com/repos/pandas-dev/pandas/pulls/37557 | 2020-11-01T13:51:37Z | 2020-11-09T21:20:06Z | 2020-11-09T21:20:05Z | 2020-11-09T21:44:11Z |
TYP: Check untyped defs (except vendored) | diff --git a/pandas/_testing.py b/pandas/_testing.py
index ded2ed3141b47..5dcd1247e52ba 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -117,14 +117,24 @@ def set_testing_mode():
# set the testing mode filters
testing_mode = os.environ.get("PANDAS_TESTING_MODE", "None")
if "deprecate" in test... | @jbrockmendel has recently addressed many of the modules that were not previously checked. There are now many less modules outstanding.
There has been a concern in the past that if we add ignores, the issues may not be addressed and sit in the codebase. (from previous experience with other linting tools)
There ar... | https://api.github.com/repos/pandas-dev/pandas/pulls/37556 | 2020-11-01T11:27:00Z | 2020-11-09T12:51:09Z | 2020-11-09T12:51:09Z | 2020-11-09T13:21:17Z |
Fixed the documentation for pandas.DataFrame.set_index inplace parameter | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ba2f11c87369f..a1c17c2ecfc32 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4525,7 +4525,7 @@ def set_index(
append : bool, default False
Whether to append columns to existing index.
inplace : bool, default F... | Fixed the documentation for `pandas.DataFrame.set_index` 's `inplace` parameter.
Added proper explanation for True case.
| https://api.github.com/repos/pandas-dev/pandas/pulls/37555 | 2020-11-01T06:33:52Z | 2020-11-17T17:27:37Z | 2020-11-17T17:27:37Z | 2020-11-17T17:27:47Z |
implemented additionally functionality of formatters_col in to_latex | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 690e6b8f725ad..d10ec18e0898a 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -503,6 +503,9 @@ I/O
- Bug in :class:`HDFStore` was dropping timezone information when exporting :class:`Series` with ``dat... | - [ x] closes #26278
- [ x] tests added / passed
- [ x ] passes `black pandas`
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
Was having some issues rebasing on https://github.com/pandas-dev/pandas/pull/32666 so making a new PR with same changes. Closing other PR as w... | https://api.github.com/repos/pandas-dev/pandas/pulls/37552 | 2020-11-01T02:40:50Z | 2021-02-11T01:41:47Z | null | 2021-02-11T01:41:48Z |
REF: simplify Index.take, MultiIndex.take | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 48dcdfb3ecfff..3d23d454c6a58 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -733,44 +733,36 @@ def take(self, indices, axis=0, allow_fill=True, fill_value=None, **kwargs):
if kwargs:
nv.vali... | https://api.github.com/repos/pandas-dev/pandas/pulls/37551 | 2020-11-01T01:29:42Z | 2020-11-02T00:27:06Z | 2020-11-02T00:27:06Z | 2020-11-02T00:28:09Z | |
TST/REF: collect base tests by method | diff --git a/pandas/tests/base/test_drop_duplicates.py b/pandas/tests/base/test_drop_duplicates.py
deleted file mode 100644
index 8cde7aae5df05..0000000000000
--- a/pandas/tests/base/test_drop_duplicates.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from datetime import datetime
-
-import numpy as np
-import pytest
-
-import pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/37549 | 2020-10-31T22:35:44Z | 2020-11-02T00:23:35Z | 2020-11-02T00:23:35Z | 2020-11-02T00:27:05Z | |
CLN: de-duplicate recode_for_categories | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 499bb364c48a1..79d933c4c1619 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -83,7 +83,9 @@ def func(self, other):
if not self.ordered and not self.categories.equals(other.ca... | Step towards figuring out the small differences between Categorical's _validate_foo methods | https://api.github.com/repos/pandas-dev/pandas/pulls/37548 | 2020-10-31T22:32:38Z | 2020-11-02T00:24:18Z | 2020-11-02T00:24:18Z | 2020-11-02T00:26:48Z |
ENH: Improve error reporting for wrong merge cols | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 690e6b8f725ad..bb8c059d70b60 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -231,6 +231,7 @@ Other enhancements
- :class:`Window` now supports all Scipy window types in ``win_type`` with flexible key... | - [x] closes #16228
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fixed error reporting when double conditions are given. Additionally I found, that something like
```
left = DataFrame({"a": [1, 2], "b": [3, 4]}... | https://api.github.com/repos/pandas-dev/pandas/pulls/37547 | 2020-10-31T22:05:53Z | 2020-11-08T03:08:00Z | 2020-11-08T03:08:00Z | 2020-11-08T12:06:18Z |
ENH: Add dtype argument to read_sql_query (GH10285) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 65bfd8289fe3d..5ddf68cad8baf 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -43,6 +43,7 @@ Other enhancements
- Added ``end`` and ``end_day`` options for ``origin`` in :meth:`DataFrame.resample` (:is... | - [x] closes #10285
- [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/37546 | 2020-10-31T21:44:46Z | 2020-12-23T23:28:23Z | 2020-12-23T23:28:23Z | 2020-12-23T23:50:52Z |
REF: Categorical.is_dtype_equal -> categories_match_up_to_permutation | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f137302d4994..8a092cb6e36db 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -340,6 +340,7 @@ Deprecations
- :meth:`Index.ravel` returning a ``np.ndarray`` is deprecated, in the future this will retur... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There are too many notions of CategoricalDtype equality. This gives a clearer name to one of them. | https://api.github.com/repos/pandas-dev/pandas/pulls/37545 | 2020-10-31T21:21:37Z | 2020-11-02T22:39:27Z | 2020-11-02T22:39:27Z | 2020-11-02T22:48:23Z |
Added example to the aggregate function | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5134529d9c21f..da34f83bfc8a0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7491,6 +7491,31 @@ def _gotitem(
2 8.0
3 NaN
dtype: float64
+ k-hot Encoding
+ >>> df
+ ImageId ClassId
+ 0 0002cc93b.jpg 1... | Added example of k-hot encoding to the aggregate function
- [ ] 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/37543 | 2020-10-31T20:36:47Z | 2020-11-01T05:02:52Z | null | 2020-11-01T06:10:25Z |
DOC Add note about virtualenv and conda | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index b281c7cfc7d39..08d8451127732 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -837,8 +837,14 @@ to run its checks by running::
without having to have done ``pre-co... | xref https://github.com/pandas-dev/pandas/pull/37023#issuecomment-716591356 | https://api.github.com/repos/pandas-dev/pandas/pulls/37542 | 2020-10-31T19:33:36Z | 2020-10-31T20:39:04Z | 2020-10-31T20:39:04Z | 2020-10-31T20:39:14Z |
REF: make EA reductions, nanops funcs keyword-only | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7c850ffedfcab..690bd9bc9704b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -545,6 +545,7 @@ ExtensionArray
- Fixed bug where ``astype()`` with equal dtype and ``copy=False`` would return a new objec... | https://api.github.com/repos/pandas-dev/pandas/pulls/37541 | 2020-10-31T19:30:48Z | 2020-11-01T00:02:14Z | 2020-11-01T00:02:14Z | 2020-11-01T00:03:02Z | |
TYP: PoC for honest ABC | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2244be1b61fc6..f8d54dd154ef3 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -29,6 +29,7 @@
if TYPE_CHECKING:
from pandas._libs import Period, Timedelta, Timestamp
+ from pandas.core.dtypes.abcs import ABCNDFrame # noqa: F401
from panda... | PoC implementation for using honest ABCs for pandas objects. Currently only implements ABCNDFrame. Compare:
```
def foo(obj: ABCNDFrame):
reveal_type(obj.attrs)
def bar(obj: ABCDataFrame):
reveal_type(obj.attrs)
```
In this PR, mypy will output `Revealed type is 'builtins.dict[Union[typing.Hashab... | https://api.github.com/repos/pandas-dev/pandas/pulls/37540 | 2020-10-31T18:38:26Z | 2020-11-06T22:17:55Z | null | 2020-11-08T15:11:08Z |
CI Move unwanted typing checks to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b0f35087dc922..0c1e4e330c903 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -119,6 +119,36 @@ repos:
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
types:... | There's still some grep-based checks left, but running doctests / running mypy can stay in code_checks | https://api.github.com/repos/pandas-dev/pandas/pulls/37539 | 2020-10-31T18:03:26Z | 2020-11-04T11:01:26Z | 2020-11-04T11:01:26Z | 2020-11-04T11:03:01Z |
TST: split up tests/plotting/test_frame.py into subdir & modules #34769 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b0f35087dc922..0c1e4e330c903 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -119,6 +119,36 @@ repos:
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
types:... | - [ ] closes #34769
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I moved the file to a new directory.
What is the best structure for this folder? | https://api.github.com/repos/pandas-dev/pandas/pulls/37538 | 2020-10-31T15:38:12Z | 2020-11-05T21:18:24Z | null | 2020-11-05T21:18:37Z |
Backport PR #37520 on branch 1.1.x (DOC: Start v1.1.5 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index b8abc71ca64a2..ae9228b04f44b 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.1
.. toctree::
:maxdepth: 2
+ v1.1.5
v1.1.4
v1.1.3
v1.1.2
diff --git a/doc/source/... | Backport PR #37520: DOC: Start v1.1.5 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/37537 | 2020-10-31T15:13:59Z | 2020-10-31T18:25:26Z | 2020-10-31T18:25:26Z | 2020-10-31T18:25:26Z |
#37535 pandas-CI: revert disable of windows window tests | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 9b553fbc81a03..fda2005ce7843 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -22,12 +22,6 @@ fi
PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile -s --strict --durations=30 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas"
-i... | - [x] closes #37535
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
removed the restrictions on windows test
| https://api.github.com/repos/pandas-dev/pandas/pulls/37536 | 2020-10-31T15:03:06Z | 2020-10-31T18:54:39Z | null | 2020-10-31T18:54:39Z |
BUG: error raise when column contains percentage | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index bbdcd183f65e1..d34175b9c4feb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -748,6 +748,7 @@ I/O
- Bumped minimum xarray version to 0.12.3 to avoid reference to the removed ``Panel`` class (:issue:`2... | - [x] closes #37157
- [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/37534 | 2020-10-31T13:44:42Z | 2020-12-22T13:57:18Z | 2020-12-22T13:57:17Z | 2020-12-22T16:50:06Z |
TYP: obj in aggregation.py | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2244be1b61fc6..a0578b49d5ecc 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -35,8 +35,11 @@
from pandas.core.arrays.base import ExtensionArray # noqa: F401
from pandas.core.frame import DataFrame
from pandas.core.generic import NDFrame ... | - [ ] 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/37532 | 2020-10-31T02:25:13Z | 2020-10-31T23:21:04Z | 2020-10-31T23:21:04Z | 2020-12-06T14:04:51Z |
CLN/TYP: Alias for aggregation dictionary argument | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a9177106535fc..2244be1b61fc6 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -109,12 +109,14 @@
# types of `func` kwarg for DataFrame.aggregate and Series.aggregate
AggFuncTypeBase = Union[Callable, str]
+AggFuncTypeDict = Dict[Label, Union[AggFuncT... | - [ ] 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/37531 | 2020-10-31T02:11:29Z | 2020-10-31T15:36:33Z | 2020-10-31T15:36:33Z | 2020-12-06T14:04:50Z |
CLN: Use ABCNDFrame instead of ABCDataFrame and ABCSeries | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index c64f0bd71cf84..6299dc596f5ac 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -456,11 +456,9 @@ def transform(
# Functions that transform may return empty Series/DataFrame
# when the dtype is not appropriat... | - [ ] closes #xxxx
- [ ] 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/37530 | 2020-10-31T02:00:13Z | 2020-12-12T13:29:44Z | null | 2021-01-02T14:15:04Z |
REF: share delete, putmask, insert between ndarray-backed EA indexes | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 726ca0ce4d776..3eb4615f1fe3e 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -44,6 +44,10 @@ def _box_func(self, x):
"""
return x
+ def _validate_insert_value(self, value):
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37529 | 2020-10-31T01:27:09Z | 2020-10-31T17:14:09Z | 2020-10-31T17:14:09Z | 2020-10-31T18:09:02Z | |
BUG: isin incorrectly casting ints to datetimes | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 3b65bccd48aee..2db46abca119c 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -2,7 +2,7 @@
import numpy as np
-from pandas import NaT, Series, date_range
+from panda... | - [x] closes #36621
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
De-duplication in follow-up. | https://api.github.com/repos/pandas-dev/pandas/pulls/37528 | 2020-10-30T23:26:50Z | 2020-11-22T02:12:25Z | 2020-11-22T02:12:25Z | 2020-11-22T02:43:22Z |
TYP: use typing.final in indexes.base | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2244be1b61fc6..cebebc7c2a626 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -27,6 +27,8 @@
# and use a string literal forward reference to it in subsequent types
# https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
if TYPE_CHECKI... | cc @simonjayhawkins this imports final conditionally following how you did it with Literal | https://api.github.com/repos/pandas-dev/pandas/pulls/37527 | 2020-10-30T22:42:01Z | 2020-11-01T13:56:23Z | 2020-11-01T13:56:23Z | 2020-11-01T14:47:59Z |
TST/REF: collect tests from test_api into method-specific files | diff --git a/pandas/tests/frame/methods/test_copy.py b/pandas/tests/frame/methods/test_copy.py
new file mode 100644
index 0000000000000..be52cf55fccb2
--- /dev/null
+++ b/pandas/tests/frame/methods/test_copy.py
@@ -0,0 +1,43 @@
+import pytest
+
+from pandas import DataFrame
+import pandas._testing as tm
+
+
+class Test... | I was surprised we didnt already have a test_copy
Also an easter egg:
```
def test_keys(self, datetime_series):
# HACK: By doing this in two stages, we avoid 2to3 wrapping the call
# to .keys() in a list()
getkeys = datetime_series.keys
assert getkeys() is datetime_... | https://api.github.com/repos/pandas-dev/pandas/pulls/37525 | 2020-10-30T20:31:52Z | 2020-10-31T15:28:18Z | 2020-10-31T15:28:18Z | 2020-10-31T16:03:15Z |
BUG: slice_canonize incorrectly raising | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 4f27fde52414a..006fd34632d5a 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -207,7 +207,7 @@ cdef slice slice_canonize(slice s):
Convert slice to canonical bounded form.
"""
cdef:
- Py_ssize_t s... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Doesn't appear to affect anything in master, but stumbled on it when implementing the PR do always return views when indexing on columns. | https://api.github.com/repos/pandas-dev/pandas/pulls/37524 | 2020-10-30T20:21:29Z | 2020-10-31T19:31:24Z | 2020-10-31T19:31:24Z | 2020-10-31T19:32:58Z |
TST/REF: collect Series accessor tests | diff --git a/pandas/tests/series/accessors/__init__.py b/pandas/tests/series/accessors/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/series/accessors/test_cat_accessor.py b/pandas/tests/series/accessors/test_cat_accessor.py
new file mode 100644
index 0000000000000..f561ac... | https://api.github.com/repos/pandas-dev/pandas/pulls/37523 | 2020-10-30T20:19:29Z | 2020-10-31T15:16:04Z | 2020-10-31T15:16:04Z | 2020-10-31T15:19:29Z | |
TST: suppress warnings we cant do anything about | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index c474e67123ef7..e9eaa95ca2ca3 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -21,7 +21,6 @@
"xlrd",
marks=[
td.skip_if_no("xlrd"),
- ... | and remove redundant filterwarnings from excel.test_readers | https://api.github.com/repos/pandas-dev/pandas/pulls/37522 | 2020-10-30T20:01:48Z | 2020-10-30T21:41:34Z | 2020-10-30T21:41:34Z | 2020-10-30T22:08:34Z |
REF: _setitem_with_indexer_split_path | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index e376f930c8c63..3cb9cba01da48 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1625,94 +1625,94 @@ def _setitem_with_indexer(self, indexer, value):
self._setitem_with_indexer_missing(indexer, value)
... | Splitting this off to get a cleaner diff in an upcoming PR(s) that make setitem_with_indexer go through split_path for _all_ DataFrame cases, giving us less special-casing to worry about. | https://api.github.com/repos/pandas-dev/pandas/pulls/37521 | 2020-10-30T19:44:23Z | 2020-10-31T15:12:34Z | 2020-10-31T15:12:34Z | 2020-10-31T15:18:38Z |
DOC: Start v1.1.5 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 848121f822383..310857faec436 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.1
.. toctree::
:maxdepth: 2
+ v1.1.5
v1.1.4
v1.1.3
v1.1.2
diff --git a/doc/source/... | https://api.github.com/repos/pandas-dev/pandas/pulls/37520 | 2020-10-30T15:56:23Z | 2020-10-31T15:13:14Z | 2020-10-31T15:13:14Z | 2020-11-01T16:34:23Z | |
Backport PR #37499 on branch 1.1.x (REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv)) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index ad348db21f8c9..fb8687b8ba42c 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`read_... | Backport PR #37499: REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv) | https://api.github.com/repos/pandas-dev/pandas/pulls/37517 | 2020-10-30T11:03:40Z | 2020-10-30T11:53:33Z | 2020-10-30T11:53:33Z | 2020-10-30T11:53:34Z |
Backport PR #37508: REGR: inplace Series op not actually operating inplace | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..397df3ce96b6b 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :class:`StataReader` which required ``chunksize`` to be manually set... | Backport of https://github.com/pandas-dev/pandas/pull/37508 | https://api.github.com/repos/pandas-dev/pandas/pulls/37515 | 2020-10-30T09:06:46Z | 2020-10-30T10:24:41Z | 2020-10-30T10:24:41Z | 2020-10-30T10:50:13Z |
Backport PR #37502: REGR: revert behaviour of getitem with assigning with a Series | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..7d35e8b12b9b8 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in certain offsets (:meth:`pd.offsets.Day() <pandas.tseries.offsets.Day... | Backport of https://github.com/pandas-dev/pandas/pull/37502 | https://api.github.com/repos/pandas-dev/pandas/pulls/37514 | 2020-10-30T08:42:39Z | 2020-10-30T09:35:45Z | 2020-10-30T09:35:45Z | 2020-10-30T09:35:48Z |
TST: setting value at MultiIndex slice using .loc | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 8fb418ab78307..eb84f771204f6 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -1062,6 +1062,24 @@ def test_loc_getitem_access_none_value_in_multiindex(self):
result = ser.loc[("Leve... | - [x] closes #34870
- [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/37513 | 2020-10-30T03:38:24Z | 2020-10-31T17:19:06Z | 2020-10-31T17:19:06Z | 2020-10-31T17:19:09Z |
BUG: Series.replace does not preserve dtype of original Series | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index ed77a210b6913..342bb595435e7 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1165,6 +1165,13 @@ def coerce_to_target_dtype(self, other):
if is_dtype_equal(self.dtype, dtype):
... | - [x] closes #33484
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Reheating #33622 (stale) | https://api.github.com/repos/pandas-dev/pandas/pulls/37512 | 2020-10-30T03:11:32Z | 2020-11-11T20:46:00Z | null | 2020-11-11T21:06:53Z |
CLN: remove _vendored/typing_extensions | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 315aeb6423254..d9e48ab9b6189 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -104,13 +104,13 @@ repos:
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_import_acros... | - [x] closes #37119
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
As discussed in #37119, the vendored version does not serve its intended purpose. Moreover, #37137 shows a way to get by without it. | https://api.github.com/repos/pandas-dev/pandas/pulls/37511 | 2020-10-30T02:38:57Z | 2020-10-30T13:20:34Z | 2020-10-30T13:20:34Z | 2020-10-30T14:56:51Z |
CLN: assorted cleanups | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 948ffdc1f7c01..726ca0ce4d776 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -233,6 +233,9 @@ def fillna(self: _T, value=None, method=None, limit=None) -> _T:
new_values = self.copy()
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37509 | 2020-10-30T02:25:01Z | 2020-10-30T16:04:08Z | 2020-10-30T16:04:08Z | 2020-10-30T17:01:42Z | |
REGR: inplace Series op not actually operating inplace | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index dc0b5d3976489..0951cfdcc5ec7 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :class:`StataReader` which required ``chunksize`` to be manually set... | - [x] closes #36373
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
alternative to #37497, ensures that Series inplace ops are actually inplace whenever possible. The whatsnew is copied verbatim from #37497, the new... | https://api.github.com/repos/pandas-dev/pandas/pulls/37508 | 2020-10-29T23:52:07Z | 2020-10-30T08:59:45Z | 2020-10-30T08:59:45Z | 2020-10-30T15:00:52Z |
TST/REF: collect indexing tests by method | diff --git a/pandas/tests/frame/methods/test_reset_index.py b/pandas/tests/frame/methods/test_reset_index.py
index 3be45e2d48e19..6aebc23d1c016 100644
--- a/pandas/tests/frame/methods/test_reset_index.py
+++ b/pandas/tests/frame/methods/test_reset_index.py
@@ -8,6 +8,8 @@
import pandas as pd
from pandas import (
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/37507 | 2020-10-29T23:40:42Z | 2020-10-30T17:16:17Z | 2020-10-30T17:16:17Z | 2020-10-30T17:16:48Z | |
TST: pct_change from generic to frame | diff --git a/pandas/tests/frame/methods/test_pct_change.py b/pandas/tests/frame/methods/test_pct_change.py
index 8f3f37fb9fff7..56fb9ab0d8f00 100644
--- a/pandas/tests/frame/methods/test_pct_change.py
+++ b/pandas/tests/frame/methods/test_pct_change.py
@@ -6,6 +6,27 @@
class TestDataFramePctChange:
+ @pytest.ma... | - [ ] 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/37504 | 2020-10-29T22:34:09Z | 2020-10-30T13:24:00Z | 2020-10-30T13:24:00Z | 2020-10-30T14:49:07Z |
Backport PR #37473 on branch 1.1.x (CI: 32 bit maybe_indices_to_slice) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 6bf0aba128e39..7127c57defee3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -36,6 +36,7 @@ from numpy cimport (
float32_t,
float64_t,
int64_t,
+ intp_t,
ndarray,
uint8_t,
uint64_t,
@@ -490,7 +491,7 @@ def ha... | Backport PR #37473: CI: 32 bit maybe_indices_to_slice | https://api.github.com/repos/pandas-dev/pandas/pulls/37503 | 2020-10-29T22:03:15Z | 2020-10-30T10:12:38Z | 2020-10-30T10:12:38Z | 2020-10-30T10:12:38Z |
REGR: revert behaviour of getitem with assigning with a Series | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..7d35e8b12b9b8 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in certain offsets (:meth:`pd.offsets.Day() <pandas.tseries.offsets.Day... | Closes #37427
@jbrockmendel this is reverting part of the clean-up you did in https://github.com/pandas-dev/pandas/pull/33643. I think the behavioural change was unintentional in that PR. We might still want to do it for 1.2, but then with a deprecation first. | https://api.github.com/repos/pandas-dev/pandas/pulls/37502 | 2020-10-29T22:00:13Z | 2020-10-30T08:14:54Z | 2020-10-30T08:14:54Z | 2020-10-30T08:42:59Z |
Backport PR #37496 on branch 1.1.x (DOC: release date for 1.1.4) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..dc0b5d3976489 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_114:
-What's new in 1.1.4 (??)
-------------------------
+What's new in 1.1.4 (October 30, 2020... | Backport PR #37496: DOC: release date for 1.1.4 | https://api.github.com/repos/pandas-dev/pandas/pulls/37500 | 2020-10-29T21:48:21Z | 2020-10-30T10:32:39Z | 2020-10-30T10:32:39Z | 2020-10-30T10:32:39Z |
REGR: fix isin for large series with nan and mixed object dtype (causing regression in read_csv) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..277edd15a9322 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`read_... | Closes #37094
| https://api.github.com/repos/pandas-dev/pandas/pulls/37499 | 2020-10-29T21:33:13Z | 2020-10-30T10:51:29Z | 2020-10-30T10:51:28Z | 2020-10-30T11:02:59Z |
TST: tz_localize/tz_convert unclear test assertions | diff --git a/pandas/tests/frame/methods/test_tz_convert.py b/pandas/tests/frame/methods/test_tz_convert.py
index d2ab7a386a92d..c70e479723644 100644
--- a/pandas/tests/frame/methods/test_tz_convert.py
+++ b/pandas/tests/frame/methods/test_tz_convert.py
@@ -1,7 +1,7 @@
import numpy as np
import pytest
-from pandas i... | kill off tests.series.test_timezones. | https://api.github.com/repos/pandas-dev/pandas/pulls/37498 | 2020-10-29T21:21:54Z | 2020-10-30T13:21:14Z | 2020-10-30T13:21:14Z | 2020-10-30T14:53:02Z |
REGR: fix inplace arithmetic operation on Series no longer updating parent DataFrame | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..397df3ce96b6b 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :class:`StataReader` which required ``chunksize`` to be manually set... | Closes #36373
See discussion at https://github.com/pandas-dev/pandas/pull/36498#issuecomment-708578774 for reverting the original fix (https://github.com/pandas-dev/pandas/pull/30501 for #30484) | https://api.github.com/repos/pandas-dev/pandas/pulls/37497 | 2020-10-29T21:19:41Z | 2020-10-30T09:36:53Z | null | 2020-10-30T09:36:58Z |
DOC: release date for 1.1.4 | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 6cb728800dc68..dc0b5d3976489 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_114:
-What's new in 1.1.4 (??)
-------------------------
+What's new in 1.1.4 (October 30, 2020... | https://api.github.com/repos/pandas-dev/pandas/pulls/37496 | 2020-10-29T20:52:07Z | 2020-10-29T21:47:47Z | 2020-10-29T21:47:47Z | 2020-10-29T22:00:51Z | |
BUG: Series[uintarray] failing to raise KeyError | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 812af544ed9d8..312a850ec3fd1 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -439,6 +439,7 @@ Indexing
- Bug in :meth:`DataFrame.__getitem__` and :meth:`DataFrame.loc.__getitem__` with :class:`Interva... | - [x] closes #37218
- [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/37495 | 2020-10-29T20:24:18Z | 2020-10-30T22:45:57Z | 2020-10-30T22:45:57Z | 2020-10-30T22:49:43Z |
CLN: unify numpy.random-related imports | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 728ffc6f85ba4..3e16ec134db46 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -6,7 +6,6 @@
import warnings
import numpy as np
-from numpy.random import rand, randint, ran... | - [x] closes #37053 ~~(keep this issue open until both #37492 and #37117 are completed)~~
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
# update 2020-10-30
This is the replacement for #37103, since I messed up the git timeline in the p... | https://api.github.com/repos/pandas-dev/pandas/pulls/37492 | 2020-10-29T18:41:55Z | 2020-10-30T13:22:51Z | 2020-10-30T13:22:51Z | 2020-10-30T14:08:07Z |
TST/REF: loc/iloc/at/iat tests go in tests.indexing | diff --git a/pandas/tests/frame/indexing/test_at.py b/pandas/tests/indexing/test_at.py
similarity index 100%
rename from pandas/tests/frame/indexing/test_at.py
rename to pandas/tests/indexing/test_at.py
diff --git a/pandas/tests/frame/indexing/test_iat.py b/pandas/tests/indexing/test_iat.py
similarity index 100%
rename... | not tests.(series|frame).indexing
`(Series|DataFrame).__(getitem|setitem)__` tests go in the tests.(series|frame).indexing
| https://api.github.com/repos/pandas-dev/pandas/pulls/37487 | 2020-10-29T15:54:34Z | 2020-10-30T13:28:08Z | 2020-10-30T13:28:08Z | 2020-10-30T14:44:14Z |
REF: separate out cases in setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index dad9ba446941f..e376f930c8c63 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1673,66 +1673,14 @@ def _setitem_with_indexer(self, indexer, value):
# we have an equal len Frame
if isinstance(val... | Preparatory to fixing a multiple-paths issue in setitem_with_indexer | https://api.github.com/repos/pandas-dev/pandas/pulls/37481 | 2020-10-29T02:50:57Z | 2020-10-30T16:06:06Z | 2020-10-30T16:06:06Z | 2020-10-30T17:10:45Z |
ENH: Fix output of assert_frame_equal if indexes differ and check_like=True | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6f9e8d6a98d80..6f137302d4994 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -228,6 +228,7 @@ Other enhancements
- :class:`Rolling` now supports the ``closed`` argument for fixed windows (:issue:`3431... | - [x] closes #37478
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
As described in #37478 This PR fixes some very misleading output when ```assert_frame_equal``` is called with differing index values and ```check_l... | https://api.github.com/repos/pandas-dev/pandas/pulls/37479 | 2020-10-29T01:04:40Z | 2020-11-02T13:43:42Z | 2020-11-02T13:43:42Z | 2020-11-02T13:43:46Z |
CI: troubleshoot ResourceWarnings | diff --git a/ci/deps/azure-38-numpydev.yaml b/ci/deps/azure-38-numpydev.yaml
index 274be0361c2e5..13aa3247aa74e 100644
--- a/ci/deps/azure-38-numpydev.yaml
+++ b/ci/deps/azure-38-numpydev.yaml
@@ -10,6 +10,8 @@ dependencies:
- hypothesis>=3.58.0
- pytest-azurepipelines
+ - psutil
+
# pandas dependencies
... | https://api.github.com/repos/pandas-dev/pandas/pulls/37476 | 2020-10-28T23:28:30Z | 2020-10-29T02:53:22Z | null | 2020-10-29T02:53:28Z | |
REF: helper to ensure column indexer is iterable | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3d491c7127e38..dad9ba446941f 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1648,10 +1648,7 @@ def _setitem_with_indexer(self, indexer, value):
labels = item_labels[info_idx]
# Ensure we have somethi... | Helper method separated out from upcoming PR to split _setitem_with_indexer into more manageable pieces, which in turn is part of fixing a goes-through-two-separate-paths problem. | https://api.github.com/repos/pandas-dev/pandas/pulls/37475 | 2020-10-28T18:36:05Z | 2020-10-29T01:05:14Z | 2020-10-29T01:05:14Z | 2020-10-29T02:01:27Z |
CLN: Add init files in test folders | diff --git a/pandas/tests/frame/indexing/__init__.py b/pandas/tests/frame/indexing/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/window/moments/__init__.py b/pandas/tests/window/moments/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
| was not sure why they were missing there, so I added them
| https://api.github.com/repos/pandas-dev/pandas/pulls/37474 | 2020-10-28T18:22:07Z | 2020-10-28T21:55:53Z | 2020-10-28T21:55:52Z | 2020-10-28T21:56:29Z |
CI: 32 bit maybe_indices_to_slice | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 2cb4df7e054fe..e493e5e9d41d3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -36,6 +36,7 @@ from numpy cimport (
float32_t,
float64_t,
int64_t,
+ intp_t,
ndarray,
uint8_t,
uint64_t,
@@ -490,7 +491,7 @@ def ha... | - [ ] 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/37473 | 2020-10-28T17:21:27Z | 2020-10-29T21:46:29Z | 2020-10-29T21:46:29Z | 2020-10-29T22:03:06Z |
TST: collect tests by method from test_api | diff --git a/pandas/tests/series/methods/test_copy.py b/pandas/tests/series/methods/test_copy.py
new file mode 100644
index 0000000000000..6201c0f5f7c29
--- /dev/null
+++ b/pandas/tests/series/methods/test_copy.py
@@ -0,0 +1,71 @@
+import numpy as np
+import pytest
+
+from pandas import Series, Timestamp
+import pandas... | - [ ] 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/37472 | 2020-10-28T17:11:17Z | 2020-10-29T01:04:18Z | 2020-10-29T01:04:18Z | 2020-10-29T01:59:23Z |
Backport PR #35875 on branch 1.1.x (COMPAT: Ensure rolling indexers return intp during take operations) | diff --git a/pandas/core/window/indexers.py b/pandas/core/window/indexers.py
index 7cbe34cdebf9f..7c76a8e2a0b22 100644
--- a/pandas/core/window/indexers.py
+++ b/pandas/core/window/indexers.py
@@ -7,6 +7,8 @@
from pandas._libs.window.indexers import calculate_variable_window_bounds
from pandas.util._decorators import... | Backport PR #35875: COMPAT: Ensure rolling indexers return intp during take operations | https://api.github.com/repos/pandas-dev/pandas/pulls/37471 | 2020-10-28T15:57:14Z | 2020-10-28T17:58:00Z | 2020-10-28T17:58:00Z | 2020-10-28T17:58:00Z |
TST/REF: finish collecting sample tests | diff --git a/pandas/tests/frame/methods/test_sample.py b/pandas/tests/frame/methods/test_sample.py
deleted file mode 100644
index 843c44bcf1471..0000000000000
--- a/pandas/tests/frame/methods/test_sample.py
+++ /dev/null
@@ -1,53 +0,0 @@
-import numpy as np
-import pytest
-
-from pandas.compat.numpy import np_version_u... | Parametrizes a few tests from the frame.methods.test_sample file, splits up giant tests from the generic file. | https://api.github.com/repos/pandas-dev/pandas/pulls/37470 | 2020-10-28T15:46:37Z | 2020-10-29T01:02:30Z | 2020-10-29T01:02:30Z | 2020-10-29T01:58:35Z |
BUG: Fix for #37454: allow reversed axis when plotting with TimedeltaIndex | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 62da3c0c5cddc..694a9afa35130 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -642,9 +642,10 @@ Plotting
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-a... | - [x] closes #37454
- [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/37469 | 2020-10-28T13:11:42Z | 2020-11-18T00:55:36Z | 2020-11-18T00:55:36Z | 2020-11-18T00:55:41Z |
BUG: Correct crosstab for categorical inputs | diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py
index 842a42f80e1b7..8fae01cb30d3d 100644
--- a/pandas/core/reshape/pivot.py
+++ b/pandas/core/reshape/pivot.py
@@ -329,8 +329,7 @@ def _all_key(key):
piece = piece.copy()
try:
piece[all_key] ... | Change catch types to reflect error changes
closes #37465
- [X] closes #37465
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry (N/A: Never released, caught in statsmodels pre-release testing)
| https://api.github.com/repos/pandas-dev/pandas/pulls/37468 | 2020-10-28T11:53:26Z | 2020-10-31T15:16:56Z | 2020-10-31T15:16:56Z | 2021-09-10T11:18:13Z |
BUG: Fix .hist and .plot.hist when passing existing figure (#37278) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8dbc6728dccfe..dd3b394bd9d79 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -262,6 +262,7 @@ Other enhancements
- :class:`Index` with object dtype supports division and multiplication (:issue:`34160`... | - [x] closes #37278
- [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/37467 | 2020-10-28T11:09:58Z | 2021-10-04T00:11:07Z | null | 2021-10-04T00:11:07Z |
Backport PR #35898 on branch 1.1.x: CI: docker 32-bit linux build | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 113ad3e338952..b1091ea7f60e4 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -26,3 +26,28 @@ jobs:
parameters:
name: Windows
vmImage: vs2017-win2016
+
+- job: py37_32bit
+ pool:
+ vmImage: ubuntu-18.04
+
+ steps:
+ - script:... | Backport PR #35898 | https://api.github.com/repos/pandas-dev/pandas/pulls/37466 | 2020-10-28T10:46:05Z | 2020-10-28T12:20:33Z | 2020-10-28T12:20:33Z | 2020-10-28T12:22:41Z |
Backport PR #37432 on branch 1.1.x | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 467e3ef00c1a7..6cb728800dc68 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression where slicing :class:`DatetimeIndex` raised :exc:`AssertionError` on ir... | (cherry picked from commit 52925335fe6d5f1ea6c79bb03da70654d9be9668)
Tried to merge it. Hopefully nothing was broken in the process. Run the indexing tests locally, but have to wait for ci
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/37463 | 2020-10-28T08:27:23Z | 2020-10-28T09:27:50Z | 2020-10-28T09:27:50Z | 2020-10-28T09:32:25Z |
BUG: Metadata propagation for groupby iterator | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index cf728d94b2a55..a122154904996 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug in metadata propagation for ``groupby`` iterator (:issue:... | Addresses part of #28283
This PR ensures that `__finalize__` is called for objects returned by iterator over `.groupby`-results.
Based on the discussion and benchmarks in PR #35688 (see https://github.com/pandas-dev/pandas/pull/35688#issuecomment-675367517), `__finalize__` is _not_ called for intermediate objects u... | https://api.github.com/repos/pandas-dev/pandas/pulls/37461 | 2020-10-28T07:30:05Z | 2020-11-04T13:22:55Z | 2020-11-04T13:22:55Z | 2020-11-04T14:19:10Z |
Backport PR #37439 on branch 1.1.x (REGR: fix rank algo for read-only data) | diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst
index 33a52353bed7e..467e3ef00c1a7 100644
--- a/doc/source/whatsnew/v1.1.4.rst
+++ b/doc/source/whatsnew/v1.1.4.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression where :meth:`DataFrame.agg` would fail with :exc:`TypeError` when passe... | Backport PR #37439: REGR: fix rank algo for read-only data | https://api.github.com/repos/pandas-dev/pandas/pulls/37459 | 2020-10-28T02:23:41Z | 2020-10-28T07:24:12Z | 2020-10-28T07:24:12Z | 2020-10-28T07:24:13Z |
CLN: de-duplicate validator | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a6c74294c4c75..cd312b09ab6c1 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -602,10 +602,9 @@ def _validate_listlike(self, value, allow_object: bool = False):
pass
... | - [ ] 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/37458 | 2020-10-28T02:21:57Z | 2020-10-30T16:07:45Z | 2020-10-30T16:07:45Z | 2020-10-30T17:02:31Z |
BUG: BusinessDay.apply_index with offset | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 7c850ffedfcab..281edf1834fb2 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -390,6 +390,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.equals` and :meth:`TimedeltaIndex.equals` incorrectly consideri... | - [ ] 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/37457 | 2020-10-28T01:05:48Z | 2020-11-01T01:50:41Z | 2020-11-01T01:50:41Z | 2020-11-01T02:16:39Z |
TST/REF: misplaced .xs tests | diff --git a/pandas/tests/frame/indexing/test_xs.py b/pandas/tests/frame/indexing/test_xs.py
index 20e8e252615d3..11e076f313540 100644
--- a/pandas/tests/frame/indexing/test_xs.py
+++ b/pandas/tests/frame/indexing/test_xs.py
@@ -3,12 +3,30 @@
import numpy as np
import pytest
-from pandas import DataFrame, Index, Se... | https://api.github.com/repos/pandas-dev/pandas/pulls/37456 | 2020-10-28T00:39:50Z | 2020-10-29T01:01:03Z | 2020-10-29T01:01:03Z | 2020-10-29T01:59:36Z | |
CI: Troubleshoot PY38 windows build | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 5938ba1fd69f5..601a834d6306a 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -16,7 +16,7 @@ jobs:
py38_np18:
ENV_FILE: ci/deps/azure-windows-38.yaml
CONDA_PY: "38"
- PATTERN: "not slow and not network"
+ ... | Some of the error messages look like a OOM, so this is just trying cutting down the number of tests collected/run by ~40% | https://api.github.com/repos/pandas-dev/pandas/pulls/37455 | 2020-10-27T23:07:06Z | 2020-10-31T14:19:49Z | 2020-10-31T14:19:49Z | 2020-10-31T15:20:28Z |
ENH: Improve numerical stability for Pearson corr() and cov() | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index f1f24ab7a101b..53c56fe3f6909 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -219,6 +219,7 @@ Other enhancements
- Where possible :meth:`RangeIndex.difference` and :meth:`RangeIndex.symmetric_differen... | - [x] closes #37448
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Floating number issues when summing the same number often enough... | https://api.github.com/repos/pandas-dev/pandas/pulls/37453 | 2020-10-27T22:19:43Z | 2020-10-30T19:57:22Z | 2020-10-30T19:57:22Z | 2020-10-30T20:03:38Z |
CLN: Breakup agg | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 4ab0c2515f5fa..639b5f31835d1 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -528,133 +528,44 @@ def transform_str_or_callable(
return func(obj, *args, **kwargs)
-def aggregate(obj, arg: AggFuncType, *arg... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Extracted dictionary parts to `agg_dict_like`, and changed from `isinstance(arg, dict)` to `is_dict_like(arg)`. Also renamed `aggregate_multiple_func... | https://api.github.com/repos/pandas-dev/pandas/pulls/37452 | 2020-10-27T22:15:29Z | 2020-10-30T21:55:04Z | 2020-10-30T21:55:04Z | 2020-10-31T02:28:57Z |
TST/REF: collect tests by method from test_io | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index afc271264edbf..890146f0789ae 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -23,13 +23,14 @@
from warnings import catch_warnings, simplefilter
import zipfile
+import numpy as np
import pytest
... | - [ ] 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/37451 | 2020-10-27T18:44:32Z | 2020-10-29T01:00:05Z | 2020-10-29T01:00:05Z | 2020-10-29T02:02:20Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.