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 |
|---|---|---|---|---|---|---|---|
Fixing scatter plot size (#32904) | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 57c625ced8a43..d78419c12ce0d 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -223,27 +223,27 @@ def time_series_datetimeindex_repr(self):
class All:
- params = [... | This fixes the marker size in scatter plots (see https://github.com/pandas-dev/pandas/issues/32904).
- [x] closes #32904
- [ ] 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/32937 | 2020-03-23T16:55:53Z | 2020-03-28T22:04:48Z | null | 2020-03-28T22:04:48Z |
DOC: Fixed examples in pandas/tseries | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 15b4128424eb1..ded965e6049b8 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -325,6 +325,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests generic.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/generic.py
R... | - [ ] 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/32935 | 2020-03-23T16:31:47Z | 2020-03-27T21:08:04Z | 2020-03-27T21:08:04Z | 2020-03-29T09:24:16Z |
REF: "bare_pytest_raises" to use the ast module | diff --git a/scripts/validate_unwanted_patterns.py b/scripts/validate_unwanted_patterns.py
index c4be85ffe7306..613423b3a9a35 100755
--- a/scripts/validate_unwanted_patterns.py
+++ b/scripts/validate_unwanted_patterns.py
@@ -11,6 +11,7 @@
"""
import argparse
+import ast
import os
import sys
import token
@@ -83,2... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
There is also a performance boost:
```
In [1]: import os ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32932 | 2020-03-23T15:57:17Z | 2020-03-29T16:08:42Z | 2020-03-29T16:08:42Z | 2020-03-29T16:34:50Z |
TST: bare pytest raises in tests/scalar | diff --git a/pandas/tests/scalar/interval/test_interval.py b/pandas/tests/scalar/interval/test_interval.py
index b51429d0338e3..b21e98827ca92 100644
--- a/pandas/tests/scalar/interval/test_interval.py
+++ b/pandas/tests/scalar/interval/test_interval.py
@@ -49,7 +49,8 @@ def test_equal(self):
assert Interval(0,... | - [ ] ref #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
https://github.com/pandas-dev/pandas/issues/30999
| https://api.github.com/repos/pandas-dev/pandas/pulls/32929 | 2020-03-23T13:43:27Z | 2020-03-24T17:04:29Z | 2020-03-24T17:04:29Z | 2020-03-24T17:47:31Z |
Backport PR #32827 on branch 1.0.x (DOC: Fixed contributors for bugfix releases) | diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py
index 839970febda2c..3acc313fe1374 100755
--- a/doc/sphinxext/announce.py
+++ b/doc/sphinxext/announce.py
@@ -68,8 +68,21 @@ def get_authors(revision_range):
revision_range = f"{lst_release}..{cur_release}"
# authors, in current release ... | Backport PR #32827: DOC: Fixed contributors for bugfix releases | https://api.github.com/repos/pandas-dev/pandas/pulls/32928 | 2020-03-23T13:42:17Z | 2020-03-23T14:14:06Z | 2020-03-23T14:14:06Z | 2020-03-23T14:14:06Z |
Added file paths to ignore in linter scripts/validate_unwanted_patterns.py | diff --git a/scripts/validate_unwanted_patterns.py b/scripts/validate_unwanted_patterns.py
index c4be85ffe7306..6a52d6d486b3d 100755
--- a/scripts/validate_unwanted_patterns.py
+++ b/scripts/validate_unwanted_patterns.py
@@ -18,6 +18,7 @@
from typing import IO, Callable, Iterable, List, Tuple
FILE_EXTENSIONS_TO_CHE... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
While running ```./ci/code_checks.sh lint``` on my local machine I got the output of:
```
Check for use of not concatenated strings
./asv... | https://api.github.com/repos/pandas-dev/pandas/pulls/32927 | 2020-03-23T12:53:59Z | 2020-03-29T16:09:28Z | 2020-03-29T16:09:28Z | 2020-03-29T16:36:14Z |
Renamed `validate_string_concatenation.py` to `validate_unwanted_patterns.py` | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7b223a553e114..15b4128424eb1 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -102,17 +102,17 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
MSG='Check for use of not concatenated strings' ; echo $MSG
if [[ "$GITHUB_ACTIONS" == "true" ]]... | Follow up for #30755
| https://api.github.com/repos/pandas-dev/pandas/pulls/32926 | 2020-03-23T10:38:22Z | 2020-03-23T11:13:29Z | 2020-03-23T11:13:29Z | 2020-03-23T12:06:39Z |
DOC: Fix formatting in documentation | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e8137a2277c92..8deeb415c17c9 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6900,7 +6900,7 @@ def apply(self, func, axis=0, raw=False, result_type=None, args=(), **kwds):
2 [1, 2]
dtype: object
- Passing resul... | - [ ] 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/32925 | 2020-03-23T10:19:38Z | 2020-03-23T11:10:29Z | 2020-03-23T11:10:29Z | 2020-03-23T11:10:44Z |
TYP: Annotate groupby/ops.py | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 89e1c0fea2b32..f84ca6c05f40f 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -257,7 +257,7 @@ class Grouping:
index : Index
grouper :
obj Union[DataFrame, Series]:
- name :
+ name ... | Adding a few type annotations to this file. I think the `values` arguments here should be `ndarrays` but am not positive. | https://api.github.com/repos/pandas-dev/pandas/pulls/32921 | 2020-03-23T01:57:20Z | 2020-04-27T00:18:49Z | 2020-04-27T00:18:49Z | 2021-03-30T20:16:48Z |
REF: misplaced to_datetime, date_range tests | diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py
index 9bcd1839662e5..b8200bb686aad 100644
--- a/pandas/tests/indexes/datetimes/test_date_range.py
+++ b/pandas/tests/indexes/datetimes/test_date_range.py
@@ -9,6 +9,7 @@
import pytz
from pytz import time... | https://api.github.com/repos/pandas-dev/pandas/pulls/32920 | 2020-03-23T01:57:02Z | 2020-03-23T10:30:46Z | 2020-03-23T10:30:46Z | 2020-03-23T15:29:03Z | |
CLN: Remove unused is_datetimelike arg | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 577c874c9cbbe..742de397956c0 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -525,9 +525,7 @@ def _cython_operation(
np.empty(out_shape, dtype=out_dtype), fill_value=np.nan
)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32919 | 2020-03-23T01:39:39Z | 2020-03-24T19:46:15Z | 2020-03-24T19:46:15Z | 2020-03-24T19:56:57Z | |
TST: move to indices fixture instead of create_index | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 903e1a5dec132..b609c7636a98c 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -368,6 +368,17 @@ def _create_multiindex():
return mi
+def _create_mi_with_dt64tz_level():
+ """
+ MultiIndex with a level that is a tzaware DatetimeIndex.
+... | https://api.github.com/repos/pandas-dev/pandas/pulls/32916 | 2020-03-23T01:04:52Z | 2020-03-24T19:48:47Z | 2020-03-24T19:48:47Z | 2020-04-05T17:33:07Z | |
DOC: Modify validate_rst_title_capitalization.py script | diff --git a/scripts/validate_rst_title_capitalization.py b/scripts/validate_rst_title_capitalization.py
index 17752134e5049..783e5dab5d677 100755
--- a/scripts/validate_rst_title_capitalization.py
+++ b/scripts/validate_rst_title_capitalization.py
@@ -10,12 +10,11 @@
"""
import argparse
-import sys
-import re
-imp... | - [ ] 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/32915 | 2020-03-22T22:25:19Z | 2020-03-23T17:56:32Z | null | 2020-03-23T18:20:28Z |
BUG: Fix min_count issue for groupby.sum | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9c424f70b1ee0..aeb0200bca3f2 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -714,6 +714,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupby.transform` produces incorrect result with transf... | - [x] closes #32861
- [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/32914 | 2020-03-22T20:58:06Z | 2020-05-09T21:54:28Z | 2020-05-09T21:54:28Z | 2020-05-11T13:09:02Z |
REF: misplaced arithmetic tests | diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py
index 2150e1da9e8ad..9e0b51767df2c 100644
--- a/pandas/tests/frame/test_arithmetic.py
+++ b/pandas/tests/frame/test_arithmetic.py
@@ -530,6 +530,15 @@ def test_arith_flex_zero_len_raises(self):
with pytest.raises(NotImpl... | https://api.github.com/repos/pandas-dev/pandas/pulls/32912 | 2020-03-22T19:44:33Z | 2020-03-24T19:55:26Z | 2020-03-24T19:55:26Z | 2020-03-24T19:59:16Z | |
ENH: Add ods writer | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 60aa1759958f6..ec3af524083c3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -316,6 +316,7 @@ Other enhancements
- :meth:`~pandas.io.gbq.read_gbq` now supports the ``max_results`` kwarg from ``pandas-... | - [x] closes #27222
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- [x] add support for startrow and startcol parameters | https://api.github.com/repos/pandas-dev/pandas/pulls/32911 | 2020-03-22T19:42:30Z | 2020-06-24T15:13:58Z | 2020-06-24T15:13:58Z | 2020-06-27T14:01:15Z |
CLN: Split integer array tests | diff --git a/pandas/tests/arrays/integer/__init__.py b/pandas/tests/arrays/integer/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/arrays/integer/conftest.py b/pandas/tests/arrays/integer/conftest.py
new file mode 100644
index 0000000000000..994fccf837f08
--- /dev/null
+++ ... | Follow-up to https://github.com/pandas-dev/pandas/pull/32780 (as with that PR there shouldn't be any changes to testing logic here) | https://api.github.com/repos/pandas-dev/pandas/pulls/32910 | 2020-03-22T19:26:12Z | 2020-03-24T19:53:31Z | 2020-03-24T19:53:31Z | 2020-03-24T19:57:08Z |
TST: collect .insert tests | diff --git a/pandas/tests/frame/indexing/test_insert.py b/pandas/tests/frame/indexing/test_insert.py
new file mode 100644
index 0000000000000..622c93d1c2fdc
--- /dev/null
+++ b/pandas/tests/frame/indexing/test_insert.py
@@ -0,0 +1,68 @@
+"""
+test_insert is specifically for the DataFrame.insert method; not to be
+confu... | https://api.github.com/repos/pandas-dev/pandas/pulls/32909 | 2020-03-22T19:07:25Z | 2020-03-24T19:56:09Z | 2020-03-24T19:56:09Z | 2020-03-24T19:58:52Z | |
WIP: Draft strawman implementation of draft strawman data frame "__dataframe__" interchange protocol for discussion | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6c36c7e71759c..dc0e68f36c877 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -129,6 +129,7 @@
)
from pandas.core.ops.missing import dispatch_fill_zeros
from pandas.core.series import Series
+from pandas.protocol.wrapper import DataFrame a... | xref https://github.com/wesm/dataframe-protocol/pull/1 | https://api.github.com/repos/pandas-dev/pandas/pulls/32908 | 2020-03-22T16:54:47Z | 2020-05-22T10:44:07Z | null | 2020-05-22T10:44:08Z |
TST: Avoid bare pytest.raises in mult files | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index f5997a13e785d..b4b7fb36ee4d0 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -188,7 +188,9 @@ def ensure_python_int(value: Union[int, np.integer]) -> int:
TypeError: if the value isn't an int or can't be ... | * [x] ref #30999
* [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/32906 | 2020-03-22T15:23:04Z | 2020-03-24T19:59:40Z | 2020-03-24T19:59:40Z | 2020-03-24T20:00:53Z |
Fix to _get_nearest_indexer for pydata/xarray#3751 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0ebe57bfbb3a1..2ee5b153b60bd 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -336,6 +336,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc.__setitem__` on a :class:`DataFrame` with duplicate columns incorr... | @jbrockmendel thanks for encouraging me to submit a PR. I'm totally open to any suggested changes; this is just a sketch of something that would work for our needs and hopefully not break anything in pandas.
To those not familiar, some changes introduced in https://github.com/pandas-dev/pandas/pull/31511 broke some... | https://api.github.com/repos/pandas-dev/pandas/pulls/32905 | 2020-03-22T14:57:14Z | 2020-03-26T22:59:45Z | 2020-03-26T22:59:45Z | 2020-05-06T14:32:23Z |
EHN: to_{html, string} col_space col specific | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 10522ff797c59..c1ab04a136e0f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -294,6 +294,7 @@ Other enhancements
- :meth:`~pandas.io.json.read_json` now accepts `nrows` parameter. (:issue:`33916`).
-... | - [ ] closes #28917
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
In to_html, to_latex and to_string, ```col_space``` arg now accepts a list or dict where we can mention the column name to change only a specific co... | https://api.github.com/repos/pandas-dev/pandas/pulls/32903 | 2020-03-22T06:07:56Z | 2020-06-18T15:21:38Z | 2020-06-18T15:21:38Z | 2020-06-20T11:08:08Z |
DOC: Fix EX02 in pandas.Series.factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 9afdb82467f90..d04fc6cb2c1d4 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -556,7 +556,7 @@ def factorize(
>>> codes, uniques = pd.factorize(['b', 'b', 'a', 'c', 'b'])
>>> codes
- array([0, 0, 1, 2, 0])
+... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
output of `python scripts/validate_docstrings.py pandas.Series.factorize`:
```
#############################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32901 | 2020-03-22T04:49:12Z | 2020-04-01T15:15:54Z | 2020-04-01T15:15:54Z | 2020-04-01T15:16:04Z |
DOC: Fix EX02 in pandas.Series.factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 5b324bc5753ec..8735121f704d2 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -556,7 +556,7 @@ def factorize(
>>> codes, uniques = pd.factorize(['b', 'b', 'a', 'c', 'b'])
>>> codes
- array([0, 0, 1, 2, 0])
+... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
output of `python scripts/validate_docstrings.py pandas.Series.factorize`:
```
#############################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32900 | 2020-03-22T04:14:41Z | 2020-03-22T04:42:04Z | null | 2020-03-22T04:42:15Z |
Timedeltas: Understand µs | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 4044fb2d3fa09..e084f61769489 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -256,7 +256,7 @@ Timedelta
- Bug in constructing a :class:`Timedelta` with a high precision integer that would round the ... | - [ ] closes #xxxx
- [X] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
These are emitted by golangs `time.Duration` printing: https://github.com/golang/go/blob/36b815edd6cd23d5aabdb488c24db2033bbdeea2/src/time/time.go#... | https://api.github.com/repos/pandas-dev/pandas/pulls/32899 | 2020-03-22T00:21:26Z | 2020-03-24T20:24:34Z | 2020-03-24T20:24:34Z | 2020-03-24T20:24:39Z |
TST: test that the .copy method on indexes copy the cache | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 43f696e0b13db..1473058b2a0a9 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -912,6 +912,19 @@ def test_contains_requires_hashable_raises(self):
with pytest.raises(TypeError):
{} ... | In #32883 I made a PR to fix an issue that ``MultiIndex.copy`` didn't copy the ``_cache``.
This adds a test for this for all index types (there's no futher issue, but it should still be tested for). | https://api.github.com/repos/pandas-dev/pandas/pulls/32898 | 2020-03-21T21:26:36Z | 2020-03-22T00:17:11Z | 2020-03-22T00:17:11Z | 2020-03-22T01:15:15Z |
CLN: Avoiding casting | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index ebdf7a1e29216..51202eea60a25 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -577,8 +577,8 @@ def try_parse_date_and_time(object[:] dates, object[:] times,
object[:] result
n = len(... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
Follow up to https://github.com/pandas-dev/pandas/pull/32794#discussion_r394045101
| https://api.github.com/repos/pandas-dev/pandas/pulls/32897 | 2020-03-21T20:58:54Z | 2020-03-22T20:40:46Z | 2020-03-22T20:40:45Z | 2020-03-23T18:36:08Z |
CLN: Fix common spelling mistakes | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index f7e1e395a76bc..5133bbd285b50 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -11,7 +11,7 @@ class Methods:
["int", "float"],
["median", "mean", "max", "min", "std", "count", "skew... | I applied [this awesome automatic spell fixer](https://github.com/vlajos/misspell-fixer) to our codebase. I needed to do a manual review as it was attempting to fix some names, but the false-positive rate was pretty low!
They also provide a GitHub action for automatic checks on PRs. Might be helpful, especially for ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32895 | 2020-03-21T19:43:03Z | 2020-03-21T22:59:56Z | 2020-03-21T22:59:56Z | 2020-03-21T23:00:05Z |
[BUG] Sum of grouped bool has inconsistent dtype | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index dcbfe6aeb9a12..667e5b9ff390a 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -370,6 +370,8 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.apply` raises ``ValueError`` when the ``by`` axis is no... | - [x] closes #7001
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Would appreciate any feedback on this attempt.
The strategy is to modify the dtype after the aggregation is computed in certain cases when casting... | https://api.github.com/repos/pandas-dev/pandas/pulls/32894 | 2020-03-21T19:22:49Z | 2020-03-26T23:45:57Z | 2020-03-26T23:45:57Z | 2020-07-11T16:02:15Z |
Added `const` where avaible | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 57483783faf9f..a318bea14b52b 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -595,8 +595,12 @@ cdef inline void localize_tso(_TSObject obj, tzinfo tz):
obj.tzinfo = tz
-cdef in... | - [ ] 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/32893 | 2020-03-21T19:10:46Z | 2020-03-23T21:08:44Z | 2020-03-23T21:08:44Z | 2020-03-23T22:27:08Z |
REF: simplify should_extension_dispatch, remove dispatch_to_extension_op | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 3153a9ac28c10..2ed931cd62e08 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -3,18 +3,17 @@
This is not a public API.
"""
-import datetime
import operator
-from typing import TYPE_CHECKING, Optional, Set, Tup... | dispatch_to_extension_op was needed back before we got rid of integer-addition for DTA/TDA/Timestamp/Timedelta. Now it reduces to a one-liner, which this inlines.
This also consolidates all of the casting/checks up-front, which in turn avoids a runtime import and simplifies the check for should_extension_dispatch. | https://api.github.com/repos/pandas-dev/pandas/pulls/32892 | 2020-03-21T18:50:01Z | 2020-03-22T00:21:50Z | 2020-03-22T00:21:50Z | 2020-03-22T00:37:14Z |
CLN: unnecessary ABCClasses | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 51c94d5059f8b..d852ea4f584c9 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -29,7 +29,6 @@
ABCDatetimeIndex,
ABCExtensionArray,
ABCIndexClass,
- ABCInterval,
ABCIntervalIndex,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32891 | 2020-03-21T18:19:01Z | 2020-03-21T20:22:11Z | 2020-03-21T20:22:11Z | 2020-03-21T21:02:28Z | |
BUG: Fix replacing in `string` series with NA (pandas-dev#32621) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 584e21e87390d..21a470d9b0bce 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -452,8 +452,8 @@ Indexing
Missing
^^^^^^^
-
- Calling :meth:`fillna` on an empty Series now correctly returns a shallow... | The pd.NA values are replaced with np.nan before comparing the arrays/scalars
- [X] closes #32621
- [X] tests passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32890 | 2020-03-21T17:21:51Z | 2020-04-10T17:40:51Z | 2020-04-10T17:40:51Z | 2020-04-12T08:04:40Z |
TST: organize tests in test_timeseries | diff --git a/pandas/tests/frame/test_to_csv.py b/pandas/tests/frame/test_to_csv.py
index a49da7a5ec2fc..a9d9d0ace8701 100644
--- a/pandas/tests/frame/test_to_csv.py
+++ b/pandas/tests/frame/test_to_csv.py
@@ -1352,3 +1352,12 @@ def test_gz_lineend(self):
result = f.read().decode("utf-8")
ass... | https://api.github.com/repos/pandas-dev/pandas/pulls/32889 | 2020-03-21T16:26:33Z | 2020-03-21T19:59:41Z | 2020-03-21T19:59:41Z | 2020-03-21T21:19:49Z | |
CLN: pandas/_libs/tslibs/nattype.pyx | diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx
index 7fec4ba5e7d25..ec397a470f2ec 100644
--- a/pandas/_libs/tslibs/nattype.pyx
+++ b/pandas/_libs/tslibs/nattype.pyx
@@ -1,10 +1,20 @@
from cpython.object cimport (
+ Py_EQ,
+ Py_GE,
+ Py_GT,
+ Py_LE,
+ Py_LT,
+ Py_NE,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
This PR is doing basicly two things:
* Getting rid of ```noqa: E128``` comments.
* Unifying use of```util.foo```
in some places there... | https://api.github.com/repos/pandas-dev/pandas/pulls/32888 | 2020-03-21T16:01:03Z | 2020-03-21T20:31:08Z | 2020-03-21T20:31:08Z | 2020-03-23T18:36:59Z |
TST: Using ABCMultiIndex in isinstance checks | diff --git a/pandas/tests/base/test_factorize.py b/pandas/tests/base/test_factorize.py
index 415a8b7e4362f..ea14ee7da88d9 100644
--- a/pandas/tests/base/test_factorize.py
+++ b/pandas/tests/base/test_factorize.py
@@ -1,6 +1,8 @@
import numpy as np
import pytest
+from pandas.core.dtypes.generic import ABCMultiIndex
... | A follow-up on [#32483 (comment)](https://github.com/pandas-dev/pandas/pull/32483#discussion_r388795102) by @MomIsBestFriend
- [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/32887 | 2020-03-21T15:23:34Z | 2020-03-21T15:33:39Z | null | 2020-03-21T15:33:39Z |
TST: Replace tm.all_index_generator with indices fixture | diff --git a/pandas/_testing.py b/pandas/_testing.py
index f96e3872eb8bd..a0995d88f85db 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1683,32 +1683,6 @@ def _make_timeseries(start="2000-01-01", end="2000-12-31", freq="1D", seed=None)
return df
-def all_index_generator(k=10):
- """
- Genera... | Inspired by #30999
- [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/32886 | 2020-03-21T15:06:29Z | 2020-03-22T00:12:06Z | 2020-03-22T00:12:06Z | 2020-03-22T00:12:11Z |
fix bare pytest raises in indexes/datetimes | diff --git a/pandas/tests/indexes/datetimes/test_constructors.py b/pandas/tests/indexes/datetimes/test_constructors.py
index b293c008d6683..0247947ff19c5 100644
--- a/pandas/tests/indexes/datetimes/test_constructors.py
+++ b/pandas/tests/indexes/datetimes/test_constructors.py
@@ -415,7 +415,8 @@ def test_construction_d... | - [ ] ref #30999
- [ ] 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/32884 | 2020-03-21T13:47:18Z | 2020-03-21T20:04:41Z | 2020-03-21T20:04:41Z | 2020-03-23T13:42:02Z |
PERF/REF: MultiIndex.copy | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 303fc62d6ad35..e4ea63111bcea 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -987,12 +987,38 @@ def _constructor(self):
return MultiIndex.from_tuples
@Appender(Index._shallow_copy.__doc__)
- ... | Makes ``MultiIndex.copy`` call ``MultiIndex._shallow_copy`` rather than the other way around. This is cleaner and let's us copy the existing ``.cache``, so may give performance boost when operating on copied MultiIndexes:
```python
>>> n = 100_000
>>> df = pd.DataFrame({'a': range(n), 'b': range(1, n+1)})
>>> mi... | https://api.github.com/repos/pandas-dev/pandas/pulls/32883 | 2020-03-21T13:33:34Z | 2020-03-21T20:06:06Z | 2020-03-21T20:06:06Z | 2020-03-21T20:49:05Z |
DOC: Fix errors in pandas.DataFrame.melt | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d1ba85c50d91d..fbbaa2a67bf35 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6449,10 +6449,12 @@ def unstack(self, level=-1, fill_value=None):
See Also
--------
- %(other)s
- pivot_table
- DataFrame.pivot
- Series.ex... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
output of `python scripts/validate_docstrings.py pandas.DataFrame.melt`:
```
#############################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32881 | 2020-03-21T06:42:35Z | 2020-03-23T02:50:47Z | 2020-03-23T02:50:47Z | 2020-03-23T02:50:58Z |
DOC: Fix errors in pandas.DataFrame.sort_index | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d1ba85c50d91d..84a601fa9d6cf 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4824,6 +4824,9 @@ def sort_index(
"""
Sort object by labels (along an axis).
+ Returns a new DataFrame sorted by label if `inplace` argu... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
output of `python scripts/validate_docstrings.py pandas.DataFrame.sort_index`:
```
#########################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32880 | 2020-03-21T06:05:14Z | 2020-03-23T02:51:38Z | 2020-03-23T02:51:38Z | 2020-03-23T02:51:54Z |
TST: Avoid bare pytest.raises in test_series.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e19021762792f..9d9eee5070377 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -367,7 +367,7 @@ def _get_axis_name(cls, axis):
return cls._AXIS_NAMES[axis]
except KeyError:
pass
- r... | * [x] ref #30999
* [x] tests added / passed
* [x] passes `black pandas`
* [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Please note that this file had an error message that was pretty ugly, so I changed
it to only include the class name as I have done for other tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/32879 | 2020-03-21T02:55:48Z | 2020-03-22T00:15:45Z | 2020-03-22T00:15:45Z | 2020-03-22T01:57:40Z |
REF: collect to_xarray tests | diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py
index 178782c299483..31501f20db453 100644
--- a/pandas/tests/generic/test_frame.py
+++ b/pandas/tests/generic/test_frame.py
@@ -1,27 +1,15 @@
from copy import deepcopy
-from distutils.version import LooseVersion
from operator import ... | I'm split on where to put test_to_xarray. Since its testing one method, tests/generic/methods/ makes sense. BUT we could try to reserve that directory for tests that are nicely parametrized over Series/DataFrame, which these are not. Thoughts? | https://api.github.com/repos/pandas-dev/pandas/pulls/32877 | 2020-03-21T00:01:58Z | 2020-03-22T20:31:05Z | 2020-03-22T20:31:05Z | 2020-03-22T20:58:28Z |
TST: misplaced Series.get test | diff --git a/pandas/tests/generic/test_series.py b/pandas/tests/generic/test_series.py
index 388bb8e3f636d..bfdfd6d319b3f 100644
--- a/pandas/tests/generic/test_series.py
+++ b/pandas/tests/generic/test_series.py
@@ -176,6 +176,9 @@ def finalize(self, other, method=None, **kwargs):
Series._metadata = _metadata... | small unrelated cleanup in test_timeseries | https://api.github.com/repos/pandas-dev/pandas/pulls/32876 | 2020-03-20T22:44:11Z | 2020-03-21T20:14:05Z | 2020-03-21T20:14:05Z | 2020-03-21T21:03:30Z |
CLN: Period tests | diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py
index 3846274dacd75..1fee40c2a902b 100644
--- a/pandas/tests/scalar/period/test_period.py
+++ b/pandas/tests/scalar/period/test_period.py
@@ -347,10 +347,18 @@ def test_period_from_ordinal(self):
assert p == res
... | Pretty much re-wrote the comparison tests to match the patterns we use elsewhere, avoided bare pytest.raises.
A bunch of tests use `Period("NaT", freq)` which ends up being very duplicative. Cut that down a bit and marked a couple tests that belong elsewhere, will move in a separate pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/32875 | 2020-03-20T21:21:23Z | 2020-03-22T00:16:45Z | 2020-03-22T00:16:45Z | 2020-03-22T00:41:08Z |
BUG/TST: Add searchsorted tests | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index c3e79f40e7451..3d6a4e6c734d4 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -846,14 +846,14 @@ def searchsorted(self, value, side="left", sorter=None):
elif isinstance(value, ... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
xref: https://github.com/pandas-dev/pandas/issues/32845 | https://api.github.com/repos/pandas-dev/pandas/pulls/32874 | 2020-03-20T19:53:29Z | 2020-03-22T22:02:15Z | null | 2020-03-22T22:02:33Z |
Modification of validate_rst_title_capitalization.py script | diff --git a/scripts/validate_rst_title_capitalization.py b/scripts/validate_rst_title_capitalization.py
index 17752134e5049..2aec4be6b301e 100755
--- a/scripts/validate_rst_title_capitalization.py
+++ b/scripts/validate_rst_title_capitalization.py
@@ -72,7 +72,24 @@ def correct_title_capitalization(title: str) -> str:... | - [ ] 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/32873 | 2020-03-20T18:07:03Z | 2020-03-20T18:22:43Z | null | 2020-03-22T22:19:05Z |
Modification of validate_rst_title_capitalization.py script | diff --git a/scripts/validate_rst_title_capitalization.py b/scripts/validate_rst_title_capitalization.py
index 17752134e5049..e6be7ab9f1055 100755
--- a/scripts/validate_rst_title_capitalization.py
+++ b/scripts/validate_rst_title_capitalization.py
@@ -72,7 +72,24 @@ def correct_title_capitalization(title: str) -> str:... | - [ ] 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/32872 | 2020-03-20T17:55:24Z | 2020-03-20T18:00:07Z | null | 2020-03-20T18:00:07Z |
REF: misplaced Timedelta tests | diff --git a/pandas/tests/indexes/timedeltas/test_scalar_compat.py b/pandas/tests/indexes/timedeltas/test_scalar_compat.py
index 44f4a2adedaad..1b86cd1df5a7a 100644
--- a/pandas/tests/indexes/timedeltas/test_scalar_compat.py
+++ b/pandas/tests/indexes/timedeltas/test_scalar_compat.py
@@ -69,3 +69,67 @@ def test_tdi_rou... | some parametrization along the way | https://api.github.com/repos/pandas-dev/pandas/pulls/32871 | 2020-03-20T17:49:25Z | 2020-03-21T20:18:16Z | 2020-03-21T20:18:16Z | 2020-03-21T21:02:57Z |
DOC: Remove latest whatsnew from header | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index 7eb25790f6a7a..4aba8f709fba0 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -119,7 +119,6 @@ programming language.
:titlesonly:
{% endif %}
{% if not single_doc %}
- What's New in 1.1.0 <whatsne... | In favor of going via the "Release notes" which stays in the header.
Closes https://github.com/pandas-dev/pandas/issues/32748 | https://api.github.com/repos/pandas-dev/pandas/pulls/32870 | 2020-03-20T16:48:07Z | 2020-03-20T22:22:05Z | 2020-03-20T22:22:05Z | 2020-05-05T15:28:10Z |
Update 03_subset_data.rst | diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
index 7a4347905ad8d..f328d7b05b5b6 100644
--- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst
+++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
@@ ... | IIUC, type() will report pandas.core.series.Series to me
- [ ] 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/32868 | 2020-03-20T14:53:32Z | 2020-03-20T15:56:39Z | 2020-03-20T15:56:39Z | 2020-03-20T15:56:46Z |
ENH/PERF: enable column-wise reductions for EA-backed columns | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5f93e08d51baa..2f23de6a45516 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1149,6 +1149,7 @@ ExtensionArray
- Fixed bug that `DataFrame(columns=.., dtype='string')` would fail (:issue:`27953`, :iss... | Currently, for reductions on a DataFrame, we convert the full DataFrame to a single "interleaved" array and then perform the operation. That's the default, but when `numeric_only=True` is specified, it is done block-wise.
Enabling column-wise reductions (or block-wise for EAs):
- Gives better performance in commo... | https://api.github.com/repos/pandas-dev/pandas/pulls/32867 | 2020-03-20T14:47:53Z | 2021-06-16T14:00:02Z | null | 2021-06-16T14:00:02Z |
TST: add test for non UTC datetime split #14042 | diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py
index 6217f225d496e..12c4abe7a1b00 100644
--- a/pandas/tests/indexes/datetimes/test_datetime.py
+++ b/pandas/tests/indexes/datetimes/test_datetime.py
@@ -425,3 +425,11 @@ def test_index_map(self, name):
... | - [x] closes #14042
- [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/32866 | 2020-03-20T14:13:52Z | 2020-03-21T20:19:05Z | 2020-03-21T20:19:05Z | 2020-03-21T20:19:10Z |
Fix wrong type checking in concat | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 692df075f25cb..1269176253f29 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -385,8 +385,10 @@ Reshaping
- :meth:`DataFrame.replace` and :meth:`Series.replace` will raise a ``TypeError`` if ``to_repla... | While the documentation of ``pandas.DataFrame.concat`` specifies that
any mapping of ``Label`` to ``FrameOrSeries`` is acceptable as the first
argument, but the code actually checks for an instance of ``dict``.
This changeset fixes that restriction.
- [x] closes #32863
- [x] tests added / passed
- [x] passes `... | https://api.github.com/repos/pandas-dev/pandas/pulls/32864 | 2020-03-20T13:16:23Z | 2020-03-25T00:19:17Z | null | 2020-03-25T08:49:10Z |
PERF: allow to skip validation/sanitization in DataFrame._from_arrays | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b9e43b1cd9b05..d1ba85c50d91d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1889,8 +1889,41 @@ def to_records(
return np.rec.fromarrays(arrays, dtype={"names": names, "formats": formats})
@classmethod
- def _from_arrays(... | For cases where you know to have valid data (eg you just created them yourself, or they are already validated), it can be useful to skip the validation checks when creating a DataFrame from arrays.
Use case is for example https://github.com/pandas-dev/pandas/pull/32825
From investigating https://github.com/pandas... | https://api.github.com/repos/pandas-dev/pandas/pulls/32858 | 2020-03-20T09:48:39Z | 2020-03-20T20:06:03Z | 2020-03-20T20:06:03Z | 2020-03-20T20:06:07Z |
PERF: faster placement creating extension blocks from arrays | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index 2b24bab85bc57..dc6f45f810f3d 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -1,5 +1,6 @@
import numpy as np
+import pandas as pd
from pandas import DataFrame, MultiIndex, Series, T... | When creating a DataFrame from many arrays stored in ExtensionBlocks, it seems quite some time is taken inside BlockPlacement using `np.require` on the passed list. Specifying the placement as a slice instead gives a much faster creation of the BlockPlacement. This delays the conversion to an array, though, but afterwa... | https://api.github.com/repos/pandas-dev/pandas/pulls/32856 | 2020-03-20T09:13:09Z | 2020-03-21T20:20:58Z | 2020-03-21T20:20:58Z | 2020-03-21T21:05:19Z |
BUG: Improved error msg | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 88bf0e005a221..23ec28d6f5818 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -843,6 +843,7 @@ Indexing
- Bug in :meth:`DataFrame.truncate` and :meth:`Series.truncate` where index was assumed to be mon... | - [x] closes #9259
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Hopefully this is a more informative message. The original bug report mentions that the index key also fails for Series but didn't report the error t... | https://api.github.com/repos/pandas-dev/pandas/pulls/32855 | 2020-03-20T06:18:23Z | 2020-06-09T22:50:28Z | null | 2020-06-09T22:50:28Z |
ENH: Add numba engine to groupby.transform | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 28e0dcc5d9b13..eb637c78806c0 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -626,4 +626,38 @@ def time_first(self):
self.df_nans.groupby("key").transform("first")
+class TransformEngi... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In the same spirit of https://github.com/pandas-dev/pandas/issues/31845, adding `engine` and `engine_kwargs` arguments to `groupby.transform` (which was easier to tackle... | https://api.github.com/repos/pandas-dev/pandas/pulls/32854 | 2020-03-20T04:39:44Z | 2020-04-16T19:43:25Z | 2020-04-16T19:43:25Z | 2020-04-16T19:57:01Z |
CLN: avoid .setitem in tests | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index ab9916eea8e5a..82d6b1df19393 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -16,7 +16,7 @@
import pytest
import pytz
-from pandas._libs import iNaT, lib, missing as lib... | Make a few tests marginally clearer, avoid some clutter when grepping for `.getitem` | https://api.github.com/repos/pandas-dev/pandas/pulls/32852 | 2020-03-20T03:14:09Z | 2020-03-21T20:35:26Z | 2020-03-21T20:35:26Z | 2020-03-21T21:05:19Z |
BUG: is_scalar_indexer | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index 71fd5b6aab821..3d0e3699264a8 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -65,18 +65,26 @@ def is_list_like_indexer(key) -> bool:
return is_list_like(key) and not (isinstance(key, tuple) and type(key) is not tuple)
-d... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
ATM we go through the wrong path when setting a listlike entry in a single position.
The broader goal: separate out the cases where setitem is inp... | https://api.github.com/repos/pandas-dev/pandas/pulls/32850 | 2020-03-20T02:43:02Z | 2020-03-20T20:40:28Z | 2020-03-20T20:40:28Z | 2020-03-20T20:40:44Z |
REF: implement _with_freq, use _from_sequence less | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index b2bff0b0142e2..098feb9f1290f 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -396,6 +396,34 @@ def floor(self, freq, ambiguous="raise", nonexistent="raise"):
def ceil(self, freq, a... | This makes method-chaining a little bit nicer.
Moving away from using _from_sequence and towards using the constructors where feasible. This will make it easier to stricten what we accept in these _from_sequence methods.
We also should be inferring freq _less_ in arithmetic methods, but that is a behavior chan... | https://api.github.com/repos/pandas-dev/pandas/pulls/32849 | 2020-03-20T01:18:59Z | 2020-03-22T00:12:46Z | 2020-03-22T00:12:46Z | 2020-03-23T20:25:07Z |
Backport PR #32840 on branch 1.0.x (DOC: use new pydata-sphinx-theme name) | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 6891f7d82d6c1..5ea76c2f9c39f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -194,7 +194,7 @@
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = "pandas_s... | Manual Backport of #32840 | https://api.github.com/repos/pandas-dev/pandas/pulls/32848 | 2020-03-20T00:48:31Z | 2020-03-20T07:09:07Z | 2020-03-20T07:09:07Z | 2020-03-21T14:41:49Z |
Backport PR #32833 on branch 1.0.x (DOC: FutureWarning in Sphinx build when calling read_parquet) | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index 43bb4966ec5bf..61fa24bb77cfc 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -246,6 +246,7 @@ We'll import ``dask.dataframe`` and notice that the API feels similar to pandas.
We can use Dask's ``r... | Backport PR #32833: DOC: FutureWarning in Sphinx build when calling read_parquet | https://api.github.com/repos/pandas-dev/pandas/pulls/32847 | 2020-03-20T00:22:58Z | 2020-03-20T07:07:16Z | 2020-03-20T07:07:16Z | 2020-03-20T07:07:16Z |
REF: pass align_keys to BlockManager.apply | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 66e96af05eb71..e83b71bd966cc 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -27,7 +27,7 @@
)
from pandas.core.dtypes.concat import concat_compat
from pandas.core.dtypes.dtypes import Ex... | The upcoming branch that implements the last frame-with-series arithmetic ops block-wise is going to need this | https://api.github.com/repos/pandas-dev/pandas/pulls/32846 | 2020-03-19T23:33:08Z | 2020-03-21T20:40:12Z | 2020-03-21T20:40:11Z | 2020-03-21T21:15:37Z |
Switch dataframe constructor to use dispatch | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 720ce7af47a18..d4e1539404ead 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -70,6 +70,8 @@ Other enhancements
- :func:`timedelta_range` will now infer a frequency when passed ``start``, ``stop``, and... | This is an attempt to add extensibility to the `DataFrame` constructor so that third party libraries can register their own ways of converting to a Pandas Dataframe. It does this by creating a [`singledispatch` function](https://docs.python.org/3/library/functools.html#functools.singledispatch) that is used in the cons... | https://api.github.com/repos/pandas-dev/pandas/pulls/32844 | 2020-03-19T21:55:08Z | 2020-06-14T15:42:03Z | null | 2020-06-15T14:06:22Z |
DOC: Fix capitalization among headings in documentation files (#32550) | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 1c99b341f6c5a..e61e2debb538a 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -160,7 +160,7 @@ backticks. It is considered inl... | - [x] closes #32550
- [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/32843 | 2020-03-19T21:37:48Z | 2020-03-23T17:24:45Z | null | 2020-03-23T17:26:56Z |
BUG: Fix segfault in GroupBy.count and DataFrame.count | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 570a5e3ce97ab..35501be97dc10 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -305,7 +305,7 @@ Numeric
- Bug in :meth:`to_numeric` with string argument ``"uint64"`` and ``errors="coerce"`` silently fai... | - [x] closes #32841
- [x] closes #21824
- [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/32842 | 2020-03-19T21:33:52Z | 2020-04-04T00:01:47Z | 2020-04-04T00:01:46Z | 2020-04-04T00:01:54Z |
DOC: use new pydata-sphinx-theme name | diff --git a/doc/source/conf.py b/doc/source/conf.py
index a95cd4ab696f7..35833627f6c05 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -195,7 +195,7 @@
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = "pandas_s... | Following https://github.com/pandas-dev/pydata-sphinx-theme/issues/102, need to use the new package name
We could actually also start using the released version. But going to merge this soon when CI passes (as I think doc build in other PRs will start to fail) | https://api.github.com/repos/pandas-dev/pandas/pulls/32840 | 2020-03-19T21:31:13Z | 2020-03-19T22:20:36Z | 2020-03-19T22:20:35Z | 2020-04-06T09:26:08Z |
BUG: Fix read_csv IndexError crash for c engine with header=None and 2 (or more) extra columns | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 4044fb2d3fa09..193dda97c31b7 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -349,6 +349,7 @@ I/O
- Bug in :meth:`read_csv` was causing a file descriptor leak on an empty file (:issue:`31488`)
- Bug ... | - [x] closes #26218
- [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/32839 | 2020-03-19T21:11:33Z | 2020-03-22T20:30:22Z | 2020-03-22T20:30:22Z | 2020-03-25T20:36:11Z |
DOC: Remove `# doctest: +SKIP` | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 143e4543e7ab8..8973706bee70e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9631,7 +9631,7 @@ def describe(
Describing all columns of a ``DataFrame`` regardless of data type.
- >>> df.describe(include='all') # ... | - [x] closes #32528
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
I want to be sure that the output of describe is deterministic, I will rebase regularly and if it passes all the times, I will mark it as rea... | https://api.github.com/repos/pandas-dev/pandas/pulls/32837 | 2020-03-19T20:59:46Z | 2020-04-16T22:57:37Z | null | 2021-05-03T14:06:21Z |
ERR: Better error message for missing columns in aggregate | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 4044fb2d3fa09..e3a002238d26e 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -380,7 +380,7 @@ Reshaping
- :meth:`DataFrame.replace` and :meth:`Series.replace` will raise a ``TypeError`` if ``to_replac... | More descriptive SpecificationError message that reports to user non-existing columns causing error
- [x] closes #32755
- [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/32836 | 2020-03-19T20:18:08Z | 2020-03-22T20:34:44Z | 2020-03-22T20:34:44Z | 2020-03-29T05:06:01Z |
added cut as method to Series | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 12164a4b8ff6b..a541ed89e98af 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -327,6 +327,7 @@ def __init__(
self.name = name
self._set_axis(0, index, fastpath=True)
+
def _init_dict(self, data, index=None, dtype=... | - [x] closes #28925
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Not sure if we need to totally re-implement cut. Please feel free to give any advice, I am new to contributing. | https://api.github.com/repos/pandas-dev/pandas/pulls/32834 | 2020-03-19T19:24:45Z | 2020-04-03T04:08:40Z | null | 2020-04-03T04:08:56Z |
DOC: FutureWarning in Sphinx build when calling read_parquet | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index 43bb4966ec5bf..61fa24bb77cfc 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -246,6 +246,7 @@ We'll import ``dask.dataframe`` and notice that the API feels similar to pandas.
We can use Dask's ``r... | - [x] closes #32832
- [ ] 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/32833 | 2020-03-19T19:09:43Z | 2020-03-20T00:22:27Z | 2020-03-20T00:22:27Z | 2020-03-20T00:40:23Z |
BUG: ExtensionBlock.set not setting values inplace | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index fec8639f5a44d..987535072a2bf 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -11,6 +11,7 @@
import pandas._libs.internals as libinternals
from pandas._libs.tslibs import Timedelta, conversion
fr... | In trying to figure out the difference between Block.set vs Block.setitem I found that ExtensionBlock.set is not inplace like it is supposed to be. Traced this back to a problem in CategoricalBlock.should_store, which this fixes+tests.
In separate passes I would like to
- rename set and setitem to something like "... | https://api.github.com/repos/pandas-dev/pandas/pulls/32831 | 2020-03-19T18:14:57Z | 2020-03-21T21:00:31Z | 2020-03-21T21:00:31Z | 2020-04-10T17:11:36Z |
STY: Correct whitespace placement | diff --git a/pandas/tests/indexes/test_common.py b/pandas/tests/indexes/test_common.py
index 6f0920c11a6e6..a220ae6361b79 100644
--- a/pandas/tests/indexes/test_common.py
+++ b/pandas/tests/indexes/test_common.py
@@ -307,13 +307,13 @@ def test_drop_duplicates(self, indices, keep):
pytest.skip("MultiIndex i... | - [x] ref #30755
- [ ] 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/32830 | 2020-03-19T17:57:06Z | 2020-03-20T16:09:27Z | 2020-03-20T16:09:27Z | 2020-03-21T15:17:51Z |
TYP: update setup.cfg | diff --git a/setup.cfg b/setup.cfg
index 42c507a2b6b01..87802190ea26a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -196,9 +196,6 @@ check_untyped_defs=False
[mypy-pandas.core.indexes.multi]
check_untyped_defs=False
-[mypy-pandas.core.indexing]
-check_untyped_defs=False
-
[mypy-pandas.core.internals.blocks]
check_unt... | https://api.github.com/repos/pandas-dev/pandas/pulls/32829 | 2020-03-19T16:51:31Z | 2020-03-19T18:23:41Z | 2020-03-19T18:23:41Z | 2020-03-19T18:50:47Z | |
CLN: Update docstring decorator from Appender to doc | diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py
index e8333606ec54c..3058e1d6073f3 100644
--- a/pandas/core/arrays/numpy_.py
+++ b/pandas/core/arrays/numpy_.py
@@ -6,7 +6,7 @@
from pandas._libs import lib
from pandas.compat.numpy import function as nv
-from pandas.util._decorators import Ap... | - [ ] xref #31942
- [ ] 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/32828 | 2020-03-19T16:49:21Z | 2020-03-19T18:56:22Z | 2020-03-19T18:56:22Z | 2020-03-19T18:56:42Z |
DOC: Fixed contributors for bugfix releases | diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py
index 0084036f1e75c..9c175e4e58b45 100755
--- a/doc/sphinxext/announce.py
+++ b/doc/sphinxext/announce.py
@@ -68,8 +68,21 @@ def get_authors(revision_range):
revision_range = f"{lst_release}..{cur_release}"
# authors, in current release ... | Previously we showed just contributors who manually backported commits
to the maintenance branch.
```
Contributors
============
A total of 8 people contributed patches to this release. People with a
"+" by their names contributed a patch for the first time.
* Daniel Saxton
* Joris Van den Bossche
* Mees... | https://api.github.com/repos/pandas-dev/pandas/pulls/32827 | 2020-03-19T14:30:12Z | 2020-03-23T13:41:35Z | 2020-03-23T13:41:35Z | 2020-03-23T13:43:00Z |
PERF: skip non-consolidatable blocks when checking consolidation | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 963c2f3d53138..8021e0babe4e0 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -268,7 +268,6 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
Indices: array([2,... | This skips the non-consolidatable blocks to determine if the blocks are consolidated. So meaning that if you have multiple EA columns with the same dtype, we do not do an unnecessary consolidation.
From investigating https://github.com/pandas-dev/pandas/issues/32196#issuecomment-600824238
@rth this should give an... | https://api.github.com/repos/pandas-dev/pandas/pulls/32826 | 2020-03-19T13:51:36Z | 2020-03-19T20:16:31Z | 2020-03-19T20:16:31Z | 2020-03-20T10:30:19Z |
PERF: optimize DataFrame.sparse.from_spmatrix performance | diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py
index ac78ca53679fd..7a09b03648fa7 100644
--- a/asv_bench/benchmarks/sparse.py
+++ b/asv_bench/benchmarks/sparse.py
@@ -45,7 +45,6 @@ def time_sparse_array(self, dense_proportion, fill_value, dtype):
class SparseDataFrameConstructor:
def... | This optimizes `DataFrame.sparse.from_spmatrix` performance, using an approach proposed by @jorisvandenbossche in https://github.com/pandas-dev/pandas/issues/32196#issuecomment-600824238
Bulds on top of https://github.com/pandas-dev/pandas/pull/32821 and adds another ~4.5x speed up in addition to that PR. Benchmarks... | https://api.github.com/repos/pandas-dev/pandas/pulls/32825 | 2020-03-19T11:59:13Z | 2020-03-22T20:33:47Z | 2020-03-22T20:33:47Z | 2020-03-22T20:33:51Z |
DOC: Updating capitalization in folder doc/source/reference | - [X] xref #32550
| https://api.github.com/repos/pandas-dev/pandas/pulls/32824 | 2020-03-19T11:25:46Z | 2020-04-06T12:51:41Z | null | 2020-04-06T14:49:43Z | |
DOC: Partial fix SA04 errors in docstrings #28792 (feedback needed) | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index fc40f1db1918a..b6ca19bde8009 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -211,7 +211,9 @@ def _register_accessor(name, cls):
See Also
--------
- {others}
+ register_dataframe_accessor : Register a custom acc... | - [x] xref #28792
Would like feedback on a few issues before continuing to work on this issue :
- File pandas/core/accessor.py . How to handle multiline text? Couldn't find anywhere good recomendations.
- File pandas/core/ops/docstrings.py . Changed logic of templates. Is this okay? Also new lines with formatted t... | https://api.github.com/repos/pandas-dev/pandas/pulls/32823 | 2020-03-19T11:13:11Z | 2020-03-31T15:18:11Z | 2020-03-31T15:18:11Z | 2020-04-02T12:38:22Z |
PERF: fix SparseArray._simple_new object initialization | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 93091555201e8..963c2f3d53138 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -399,7 +399,7 @@ def __init__(
def _simple_new(
cls, sparse_array: np.ndarray, sparse_index: S... | Apart from this being more idiomatic, it also avoids creating a SparseArray through the normal machinery (including validation of the input etc) for the empty list.
With this PR:
```
In [1]: data = np.array([1, 2, 3], dtype=float)
In [2]: index = pd.core.arrays.sparse.IntIndex(5, np.array([0, 2, 4]))
In ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32821 | 2020-03-19T07:26:36Z | 2020-03-19T10:47:16Z | 2020-03-19T10:47:16Z | 2020-03-19T12:02:46Z |
See also | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 006a98a6cddcb..aaaeadc0cf618 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1692,6 +1692,10 @@ def count(self, level=None):
int or Series (if level specified)
Number of non-null values in the Series.
+ Se... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
Output for pandas.Series.corr, pandas.Series.cov, pandas.Series.count:
```
#################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32820 | 2020-03-19T06:46:40Z | 2020-03-19T11:09:03Z | 2020-03-19T11:09:03Z | 2020-03-19T11:09:03Z |
TST: bare pytest raises | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index 8732d4063d74c..b1502ed3f3c09 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -426,7 +426,8 @@ def test_reader_dtype(self, read_ext):
expected["c"] = ["001", "002", ... | GH30999
- [ ] ref #30999
- [ ] 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/32817 | 2020-03-19T04:11:32Z | 2020-03-20T10:29:24Z | 2020-03-20T10:29:24Z | 2020-03-20T14:18:28Z |
TST: Avoid bare pytest.raises in multiple files | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 83df09d6b2cf3..e19021762792f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -354,7 +354,7 @@ def _get_axis_number(cls, axis):
return cls._AXIS_NUMBERS[axis]
except KeyError:
pass
- ... | * [x] ref #30999
* [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/32816 | 2020-03-19T01:44:27Z | 2020-03-21T09:44:44Z | 2020-03-21T09:44:44Z | 2020-03-21T17:23:32Z |
PERF: Using Numpy C-API for left-join calls | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index cbe0e71153565..18cb999076110 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -4,6 +4,7 @@ from cython import Py_ssize_t
import numpy as np
cimport numpy as cnp
from numpy cimport (
+ NPY_INTP,
float32_t,
float64_t,
i... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
#### Benchmarks:
This is the setup:
```python
import pandas as pd
df1 = pd.DataFrame(
{
"Customer_id": pd.Series([1, 2... | https://api.github.com/repos/pandas-dev/pandas/pulls/32814 | 2020-03-18T22:03:46Z | 2020-03-19T13:40:09Z | null | 2020-03-19T13:43:09Z |
fstring format added in pandas//tests/io/test_common.py:144: | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index 730043e6ec7d7..0c79ef4378b66 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -141,7 +141,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
pytest.importorskip(module)... | I'm completely new to this. I hope i didn't do anything wrong here
https://github.com/pandas-dev/pandas/issues/29547
| https://api.github.com/repos/pandas-dev/pandas/pulls/32813 | 2020-03-18T20:51:53Z | 2020-03-18T22:09:45Z | 2020-03-18T22:09:45Z | 2020-03-18T22:09:51Z |
Nested list multi index (#14467) | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 57ed2555761be..927baf59a4a6a 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -576,11 +576,16 @@ def _convert_object_array(content, columns, coerce_float=False, dtype=None):
... | - [ ] closes #14467
- [ ] 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/32812 | 2020-03-18T20:13:50Z | 2020-06-14T22:53:09Z | null | 2020-06-14T22:53:10Z |
Nested list multi-index fix | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 57ed2555761be..0af123b287681 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -1,619 +1,626 @@
-"""
-Functions for preparing various inputs passed to the DataFrame or Series
... | - [ ] closes #14467
- [ ] 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/32811 | 2020-03-18T19:35:29Z | 2020-03-18T19:54:43Z | null | 2020-03-18T19:54:54Z |
TYP: annotate to_numpy | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 6aa303dd04703..c42c1539daa5a 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -356,7 +356,9 @@ def __iter__(self):
for i in range(len(self)):
yield self[i]
- def to_numpy(self, dtype=None, co... | https://api.github.com/repos/pandas-dev/pandas/pulls/32809 | 2020-03-18T17:23:27Z | 2020-03-18T19:25:00Z | 2020-03-18T19:25:00Z | 2020-03-18T19:32:30Z | |
ERR: Better error message | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 2110f782330fb..c11eea603bc64 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -1852,14 +1852,20 @@ def objects_to_datetime64ns(
yearfirst=yearfirst,
require_iso8601=require... | When invalid value for pd.to_datetime or pd.to_timedelta is passed
- [x] closes #10720
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
Resurrection of #31118
| https://api.github.com/repos/pandas-dev/pandas/pulls/32808 | 2020-03-18T17:02:44Z | 2020-03-18T18:08:04Z | null | 2020-03-23T20:42:21Z |
[ENH] Add "fullmatch" matching mode to Series.str [#32806] | diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst
index 2e4d0fecaf5cf..234c12ce79822 100644
--- a/doc/source/user_guide/text.rst
+++ b/doc/source/user_guide/text.rst
@@ -641,21 +641,40 @@ You can check whether elements contain a pattern:
.. ipython:: python
pattern = r'[0-9][a-z]'
- ... | - [X] closes #32806
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This is my first PR against this project, so apologies if I've missed any steps in the process. I'm assuming that I'm supposed to fill in the checkl... | https://api.github.com/repos/pandas-dev/pandas/pulls/32807 | 2020-03-18T15:54:11Z | 2020-03-24T21:33:02Z | 2020-03-24T21:33:02Z | 2020-03-24T21:33:11Z |
PERF: Using Numpy C-API when calling `np.arange` | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 5545302fcbfc4..63f076b7ee993 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -308,7 +308,10 @@ cdef slice_getitem(slice slc, ind):
return slice(s_start, s_stop, s_step)
else:
- return np.ara... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
Somewhat of a follow up to #32681.
---
I could not benchmark this change as this function is ```cdef``` and not ```def``` or ```cpdef```... | https://api.github.com/repos/pandas-dev/pandas/pulls/32804 | 2020-03-18T13:22:04Z | 2020-03-18T19:24:43Z | 2020-03-18T19:24:43Z | 2020-03-18T23:51:12Z |
CLN/STY: pandas/_libs/internals.pyx | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 3bebd7e23fb5a..d69b417f6e056 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -20,7 +20,6 @@ cdef class BlockPlacement:
cdef:
slice _as_slice
object _as_array
-
bint _has_slice, _has_arr... | - [ ] 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/32801 | 2020-03-18T11:17:06Z | 2020-03-26T01:02:25Z | 2020-03-26T01:02:25Z | 2020-03-26T01:11:16Z |
CLN: remove DatetimeLikeArray._add_delta | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 7cf50ff2b88af..473e63dfa7a12 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1129,56 +1129,46 @@ def _sub_period(self, other):
def _add_offset(self, offset):
raise Abstra... | Ultimately we want to 1) avoid using _from_sequence (so we can make that stricter in what it accepts) and 2) be more careful about when we use `freq="infer"`. Splitting up the cases handled by _add_delta will make this more feasible. | https://api.github.com/repos/pandas-dev/pandas/pulls/32799 | 2020-03-18T01:47:10Z | 2020-03-19T21:15:54Z | 2020-03-19T21:15:54Z | 2020-03-19T21:51:33Z |
BUG/API: _values_for_factorize/_from_factorized round-trip | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index d93b5fbc83312..66a7b3ff6e824 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -320,7 +320,8 @@ def _values_for_factorize(self) -> Tuple[np.ndarray, int]:
@classmethod
def _from_factorized(cls, v... | - [x] closes #32673
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
having this round-trip-ability is necessary for implementing an efficient general-case broadcast_to/tile compat method. | https://api.github.com/repos/pandas-dev/pandas/pulls/32798 | 2020-03-18T01:26:05Z | 2020-04-01T23:14:48Z | null | 2021-11-20T23:21:48Z |
Avoid bare pytest.raises in indexes/categorical/test_indexing.py | diff --git a/pandas/tests/indexes/categorical/test_indexing.py b/pandas/tests/indexes/categorical/test_indexing.py
index 507e38d9acac2..1d41e17e327a8 100644
--- a/pandas/tests/indexes/categorical/test_indexing.py
+++ b/pandas/tests/indexes/categorical/test_indexing.py
@@ -65,7 +65,8 @@ def test_take_fill_value(self):
... | * [x] ref #30999
* [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/32797 | 2020-03-18T00:49:39Z | 2020-03-19T10:57:50Z | 2020-03-19T10:57:50Z | 2020-03-19T13:41:03Z |
BUG: created check and warning for merging dataframes on unequal inde… | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index c301d6e7c7155..d532306bc01ab 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -606,10 +606,19 @@ def __init__(
f"right_index parameter must be of type bool, not {type(right_index)}"
... | …x levels (#13094)
- [ ] closes #13094
- [ ] tests added / passed
- [ ] warn users when merging between different index levels
| https://api.github.com/repos/pandas-dev/pandas/pulls/32796 | 2020-03-18T00:41:29Z | 2020-05-22T10:51:43Z | null | 2020-05-22T10:52:20Z |
BLD: Suppressing warnings when compiling pandas/_libs/writers | diff --git a/pandas/_libs/writers.pyx b/pandas/_libs/writers.pyx
index 9e95dea979577..ebf98232da58b 100644
--- a/pandas/_libs/writers.pyx
+++ b/pandas/_libs/writers.pyx
@@ -36,7 +36,7 @@ def write_csv_rows(
"""
# In crude testing, N>100 yields little marginal improvement
cdef:
- Py_ssize_t i, j, k... | - [x] ref #32163
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
This is the error that this PR is getting rid of:
```
pandas/_libs/writers.c: In function ‘__pyx_pw_6pandas_5_libs_7writers_1write_csv_rows’... | https://api.github.com/repos/pandas-dev/pandas/pulls/32795 | 2020-03-18T00:36:35Z | 2020-03-18T02:35:10Z | 2020-03-18T02:35:10Z | 2020-03-18T09:44:28Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.