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 |
|---|---|---|---|---|---|---|---|
CLN: preempt TypeError for EAs in groupby agg_series | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index c766fcaa4f849..2afb77a619a80 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -264,7 +264,12 @@ def aggregate(self, func=None, *args, **kwargs):
return self._python_agg_general(func, *a... | xref #29144 | https://api.github.com/repos/pandas-dev/pandas/pulls/29186 | 2019-10-23T16:04:42Z | 2019-10-24T12:03:19Z | 2019-10-24T12:03:19Z | 2019-10-25T13:57:13Z |
Debug 38 build | diff --git a/ci/build38.sh b/ci/build38.sh
index 903016536d240..66eb5cad38475 100644
--- a/ci/build38.sh
+++ b/ci/build38.sh
@@ -9,7 +9,7 @@ pip install python-dateutil pytz cython pytest pytest-xdist hypothesis
pip install --pre -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com/ num... | Seeing if this helps with 38 build hanging until something more permanent comes along
@TomAugspurger @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/29185 | 2019-10-23T15:44:56Z | 2019-10-23T21:18:05Z | 2019-10-23T21:18:05Z | 2020-01-16T00:33:42Z |
DOC: Update the LaTeX author. | diff --git a/doc/source/conf.py b/doc/source/conf.py
index cdabf2d470839..13d3324caf249 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -378,7 +378,7 @@
"index",
"pandas.tex",
"pandas: powerful Python data analysis toolkit",
- r"Wes McKinney\n\& PyData Development Team",
+ ... | The LaTeX engine did not like the newlines. It caused an
undefined control sequence. | https://api.github.com/repos/pandas-dev/pandas/pulls/29184 | 2019-10-23T14:55:14Z | 2019-10-23T19:36:23Z | 2019-10-23T19:36:23Z | 2019-10-23T19:36:23Z |
ENH: Add StringArray.__arrow_array__ for conversion to Arrow | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 01a102f269886..5324d145eb3d0 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -102,11 +102,12 @@ Other enhancements
- :meth:`DataFrame.to_string` added the ``max_colwidth`` parameter to control when wi... | Similar as https://github.com/pandas-dev/pandas/pull/28368 (which did this for IntegerArray) | https://api.github.com/repos/pandas-dev/pandas/pulls/29182 | 2019-10-23T13:51:10Z | 2019-10-25T13:34:10Z | 2019-10-25T13:34:10Z | 2019-10-25T13:42:12Z |
TST: Test Series integer mod behavior on string | diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py
index 942ab0db37a57..4514164683015 100644
--- a/pandas/tests/series/test_operators.py
+++ b/pandas/tests/series/test_operators.py
@@ -878,6 +878,17 @@ def test_divmod(self):
assert_series_equal(result[0], expected[0])
... | Closes https://github.com/pandas-dev/pandas/issues/24396 | https://api.github.com/repos/pandas-dev/pandas/pulls/29180 | 2019-10-23T09:31:08Z | 2019-10-23T17:26:16Z | 2019-10-23T17:26:16Z | 2019-10-23T18:40:49Z |
Fix mypy errors in testcommon py | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 466b724f98770..894d6a40280b7 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -1,3 +1,5 @@
+from typing import List
+
import numpy as np
import pytest
@@ -322,9 +324,13 @@ def test_i... | - [x] xref [#28926](https://github.com/pandas-dev/pandas/issues/28926)
- [ ] 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/29179 | 2019-10-23T05:12:29Z | 2019-11-07T16:23:11Z | 2019-11-07T16:23:11Z | 2019-11-07T16:23:23Z |
CLN: Add types in a handful of places | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 255fd85531d14..d9bde2a471e06 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -171,17 +171,17 @@ cdef class IndexEngine:
raise KeyError(val)
- def sizeof(self, deep=False):
+ def sizeof(self, deep: bool = False) -> ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29178 | 2019-10-23T04:01:25Z | 2019-10-25T16:04:19Z | 2019-10-25T16:04:19Z | 2019-10-25T17:35:19Z | |
CLN: don't catch TypeError in _aggregate_item_by_item | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 9c9598273edd3..c766fcaa4f849 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1099,10 +1099,7 @@ def _aggregate_item_by_item(self, func, *args, **kwargs):
cast = self._transform_should_c... | Made possible by #29103 | https://api.github.com/repos/pandas-dev/pandas/pulls/29177 | 2019-10-23T03:52:01Z | 2019-10-23T11:46:42Z | 2019-10-23T11:46:42Z | 2019-10-23T14:38:13Z |
CLN: Assorted cleanups | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index 1cbdb0df6233c..c39d6d60d4ea5 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -13,7 +13,7 @@ from pandas._libs.tslibs.util cimport get_c_string
{{py:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29175 | 2019-10-23T00:30:26Z | 2019-10-23T11:47:41Z | 2019-10-23T11:47:41Z | 2019-10-23T14:34:16Z | |
Removed raise_from_traceback | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 9c778f68727c6..81431db5b867c 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -37,16 +37,6 @@ def set_function_name(f, name, cls):
return f
-def raise_with_traceback(exc, traceback=Ellipsis):
- """
- Raise e... | ref #29170
This is a pretty old compat function that I think actually hides the errors we are looking for when run via load scheduling. I've converted to a mixture of `raise...from` and `raise (e).with_traceback()` depending on what was available. Not sure it matters too much either way
Let's see... | https://api.github.com/repos/pandas-dev/pandas/pulls/29174 | 2019-10-22T23:59:37Z | 2019-10-26T08:29:00Z | 2019-10-26T08:29:00Z | 2019-10-29T07:00:52Z |
Fixed segfaults and incorrect results in GroupBy.quantile with NA Values in Grouping | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 4007ecd5a9412..e375234e88711 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -410,6 +410,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` not offering selection by column name when ``a... | - [X] closes #28882
- [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/29173 | 2019-10-22T22:39:06Z | 2019-10-30T18:29:09Z | 2019-10-30T18:29:08Z | 2019-10-30T18:34:47Z |
Remove TestData in frame tests in multiple files | diff --git a/pandas/tests/frame/test_convert_to.py b/pandas/tests/frame/test_convert_to.py
index c9a7507969f5b..17edd48e36563 100644
--- a/pandas/tests/frame/test_convert_to.py
+++ b/pandas/tests/frame/test_convert_to.py
@@ -13,11 +13,10 @@
Timestamp,
date_range,
)
-from pandas.tests.frame.common import Test... | Part of #22471
This is removing/replacing TestData usage in the following files:
* `test_convert_to.py`
* `test_nonunique_indexes.py`
* `test_query_eval.py`
* `test_replace.py`
* `test_repr_info.py`
--------
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -... | https://api.github.com/repos/pandas-dev/pandas/pulls/29172 | 2019-10-22T20:35:57Z | 2019-10-25T12:50:03Z | 2019-10-25T12:50:02Z | 2019-10-25T12:50:06Z |
TST: Document and test na_filter in read_excel | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 6eb1b9e950dfd..8574c9ad1d425 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -133,8 +133,24 @@
+ fill("', '".join(sorted(_NA_VALUES)), 70, subsequent_indent=" ")
+ """'.
keep_default_na : bool, default True
- ... | Closes https://github.com/pandas-dev/pandas/issues/25453
Picks up where https://github.com/pandas-dev/pandas/pull/26353 left off | https://api.github.com/repos/pandas-dev/pandas/pulls/29171 | 2019-10-22T20:29:37Z | 2019-10-23T20:08:09Z | 2019-10-23T20:08:08Z | 2019-10-23T20:15:57Z |
CI: Avoid passing attrs=None | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 490c574463b9b..5b96ce23515c9 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -889,6 +889,9 @@ def _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs):
flavor = _validate_flavor(flavor)
compiled_match = re.compile(match) # you... | Trying to fix the allowed-failure build on Travis; I haven't been able to reproduce that error locally, so this is a shot in the dark. | https://api.github.com/repos/pandas-dev/pandas/pulls/29170 | 2019-10-22T20:21:48Z | 2019-10-23T00:32:12Z | null | 2019-10-23T00:32:15Z |
CLN: remove simplejson | diff --git a/pandas/io/msgpack/__init__.py b/pandas/io/msgpack/__init__.py
index 7107263c180cb..11407c8282660 100644
--- a/pandas/io/msgpack/__init__.py
+++ b/pandas/io/msgpack/__init__.py
@@ -48,7 +48,7 @@ def packb(o, **kwargs):
return Packer(**kwargs).pack(o)
-# alias for compatibility to simplejson/marshal... | xref https://github.com/pandas-dev/pandas/pull/29022#discussion_r335652936 | https://api.github.com/repos/pandas-dev/pandas/pulls/29169 | 2019-10-22T19:35:39Z | 2019-10-26T09:40:44Z | 2019-10-26T09:40:44Z | 2019-10-26T09:41:07Z |
Clarify referred command for flake8 caveat | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 62e582dffae47..677e28b60c51d 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -618,7 +618,8 @@ from the root of the pandas repository. Now ``black`` and ``flake8`` wi... | Follow-up to: https://github.com/pandas-dev/pandas/pull/27233
With all of the content in-between about pre-commit hooks, the phrase `"This command"` does not make sense any more in the documentation about this `flake8` caveat. | https://api.github.com/repos/pandas-dev/pandas/pulls/29168 | 2019-10-22T19:19:03Z | 2019-10-22T23:11:58Z | 2019-10-22T23:11:58Z | 2019-10-22T23:48:42Z |
Remove unnecessary check for Python >= 3.5 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 86f78d9c0f0ae..cdabf2d470839 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -608,11 +608,7 @@ def linkcode_resolve(domain, info):
return None
try:
- # inspect.unwrap() was added in Python version 3.4
- if sys.versi... | Title is self-explanatory | https://api.github.com/repos/pandas-dev/pandas/pulls/29167 | 2019-10-22T19:15:41Z | 2019-10-22T20:17:30Z | 2019-10-22T20:17:30Z | 2019-10-22T20:17:41Z |
REF: avoid getattr pattern in libgroupby rank functions | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c21528a7082f6..b2ffbb3ecb4f2 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -923,12 +923,6 @@ def group_last(rank_t[:, :] out,
raise RuntimeError("empty group with uint64_t")
-group_last_float64 = group_last["fl... | cc @WillAyd do we need to do anything special w/r/t the comment on L1220 re #19560? | https://api.github.com/repos/pandas-dev/pandas/pulls/29166 | 2019-10-22T18:15:01Z | 2019-10-22T20:18:22Z | 2019-10-22T20:18:22Z | 2019-10-22T20:21:55Z |
TYPING : Series.name -> Optional[Hashable] | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f2074bab276ac..a4d3e7058d7de 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -871,7 +871,7 @@ def style(self):
"""
@Appender(_shared_docs["items"])
- def items(self) -> Iterable[Tuple[Hashable, Series]]:
+ def items(sel... | xref https://github.com/pandas-dev/pandas/pull/29062#discussion_r337644656
cc @WillAyd @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/29164 | 2019-10-22T17:58:33Z | 2019-10-22T21:27:29Z | 2019-10-22T21:27:29Z | 2019-10-23T09:28:09Z |
Update setup.py | diff --git a/setup.py b/setup.py
index 0dd1980088db8..550d822575f6f 100755
--- a/setup.py
+++ b/setup.py
@@ -39,6 +39,7 @@ def is_platform_mac():
"python-dateutil >= 2.6.1",
"pytz >= 2017.2",
"numpy >= {numpy_ver}".format(numpy_ver=min_numpy_ver),
+ "jinja2"
],
"setup_require... | jinja2 in the install_requires list
| https://api.github.com/repos/pandas-dev/pandas/pulls/29163 | 2019-10-22T17:49:43Z | 2019-10-22T18:23:02Z | null | 2019-10-22T18:23:02Z |
BUG: AttributeError raised by map inside groupby reduction | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 695823e29ef1b..80eaa4cbb1ab8 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -262,7 +262,7 @@ def aggregate(self, func=None, *args, **kwargs):
try:
return self._python_a... | Gets the last AttributeError following #29100. | https://api.github.com/repos/pandas-dev/pandas/pulls/29160 | 2019-10-22T15:07:14Z | 2019-10-25T14:28:37Z | null | 2019-11-21T20:00:08Z |
Period 29073 | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 84a41b8757001..aed64aff14e0a 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1709,14 +1709,14 @@ cdef class _Period:
def asfreq(self, freq, how='E'):
"""
- Convert Period to des... | - [ ] closes #29073
- [ ] 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/29159 | 2019-10-22T14:55:02Z | 2019-10-23T16:07:23Z | 2019-10-23T16:07:23Z | 2020-01-06T16:47:24Z |
Update my fork | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ea52736cb11a7..e6c2db152d75c 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -346,6 +346,7 @@ Reshaping
- Bug in :func:`merge`, did not append suffixes correctly with MultiIndex (:issue:`28518`)
- :f... | - [ ] 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/29156 | 2019-10-22T13:32:07Z | 2019-10-22T13:32:26Z | null | 2019-10-22T13:32:26Z |
CLN: replace Dict with Mapping to annotate arguments | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 5afe64f719b8a..445eff9e19e47 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,5 +1,15 @@
from pathlib import Path
-from typing import IO, TYPE_CHECKING, AnyStr, Iterable, Optional, TypeVar, Union
+from typing import (
+ IO,
+ TYPE_CHECKING,
+ ... | xref https://docs.python.org/3/library/typing.html#typing.Dict
cc @WillAyd
| https://api.github.com/repos/pandas-dev/pandas/pulls/29155 | 2019-10-22T13:00:18Z | 2019-10-22T19:03:41Z | 2019-10-22T19:03:41Z | 2019-10-23T09:30:41Z |
Remove TestData from series-tests test_api.py | diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py
index 998f8b6f7d8a4..f2435e8c804db 100644
--- a/pandas/tests/series/test_api.py
+++ b/pandas/tests/series/test_api.py
@@ -24,8 +24,6 @@
import pandas.io.formats.printing as printing
-from .common import TestData
-
class SharedWithSpa... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_api.py` with fixtures
- [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/29153 | 2019-10-22T12:19:29Z | 2019-10-22T18:34:05Z | 2019-10-22T18:34:05Z | 2019-10-22T18:34:14Z |
DOC: attempt to fix contributors for 0.24.0, 0.25.0/1/2 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d9f41d2a75116..42579becd4237 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1933,4 +1933,4 @@ Other
Contributors
~~~~~~~~~~~~
-.. contributors:: v0.23.4..HEAD
+.. contributors:: v0.23.4..v0.2... | This hopefully addresses https://github.com/pandas-dev/pandas/issues/29151, please review!
CC @TomAugspurger @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/29152 | 2019-10-22T12:18:54Z | 2019-10-22T19:42:59Z | 2019-10-22T19:42:58Z | 2019-10-22T19:43:00Z |
Remove TestData from series-tests test_timeseries.py | diff --git a/pandas/tests/series/test_timeseries.py b/pandas/tests/series/test_timeseries.py
index fbe3f929cf5b5..f8c9c06900c3e 100644
--- a/pandas/tests/series/test_timeseries.py
+++ b/pandas/tests/series/test_timeseries.py
@@ -25,7 +25,6 @@
)
from pandas.core.indexes.datetimes import DatetimeIndex
from pandas.core... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_timeseries.py` with fixtures
- [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/29150 | 2019-10-22T12:12:11Z | 2019-10-22T14:59:51Z | 2019-10-22T14:59:50Z | 2019-10-22T14:59:57Z |
Remove TestData from series-tests test_sorting.py | diff --git a/pandas/tests/series/test_sorting.py b/pandas/tests/series/test_sorting.py
index 125f516ab6b09..192b57d2a9007 100644
--- a/pandas/tests/series/test_sorting.py
+++ b/pandas/tests/series/test_sorting.py
@@ -7,11 +7,9 @@
import pandas.util.testing as tm
from pandas.util.testing import assert_almost_equal, as... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_sorting.py` with fixtures
- [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/29149 | 2019-10-22T12:07:51Z | 2019-10-22T13:12:32Z | 2019-10-22T13:12:32Z | 2019-10-22T13:12:37Z |
Remove TestData from series-tests test_repr.py | diff --git a/pandas/tests/series/test_repr.py b/pandas/tests/series/test_repr.py
index 3c6da304dd68d..9f881f5a5aa29 100644
--- a/pandas/tests/series/test_repr.py
+++ b/pandas/tests/series/test_repr.py
@@ -17,10 +17,8 @@
from pandas.core.index import MultiIndex
import pandas.util.testing as tm
-from .common import T... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_repr.py` with fixtures
- [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/29148 | 2019-10-22T12:04:10Z | 2019-10-23T14:23:10Z | 2019-10-23T14:23:10Z | 2019-10-23T14:23:12Z |
Remove TestData from series-tests test_replace.py | diff --git a/pandas/tests/series/test_replace.py b/pandas/tests/series/test_replace.py
index 06a859963cf93..e9d5a4b105a35 100644
--- a/pandas/tests/series/test_replace.py
+++ b/pandas/tests/series/test_replace.py
@@ -4,11 +4,9 @@
import pandas as pd
import pandas.util.testing as tm
-from .common import TestData
-... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_replace.py` with fixtures
- [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/29147 | 2019-10-22T11:56:31Z | 2019-10-22T12:38:17Z | 2019-10-22T12:38:17Z | 2019-10-22T12:38:39Z |
BUG/TST: ensure groupby.agg preserves extension dtype | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 00e7012b40986..e6f4f2f056058 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -672,7 +672,13 @@ def agg_series(self, obj, func):
pass
else:
raise
- return self.... | Closes https://github.com/pandas-dev/pandas/issues/29141
@jbrockmendel this is adding the cases I found in https://github.com/pandas-dev/pandas/issues/29141. It does a small revert of catching an error to get them passing, but then your PR can fix it properly? | https://api.github.com/repos/pandas-dev/pandas/pulls/29144 | 2019-10-22T08:03:53Z | 2019-10-23T15:50:59Z | 2019-10-23T15:50:59Z | 2019-10-25T14:08:22Z |
DOC: Edit MultiIndex.set_levels() docstring to clarify that set_levels() interprets passed values as new components of the .levels attribute (#28294) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index f94d012b3aa03..c1985cdd74b92 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -742,32 +742,47 @@ def set_levels(self, levels, level=None, inplace=False, verify_integrity=True):
Examples
------... | Added documentation on MultiIndex.set_levels to clarify that MultiIndex.set_levels() interprets passed values as new components of the .levels attribute. Continuation of #28797 due to issues with Travis CI for Python 3.8 and subsequent git diff issues resulting from resolution of Travis CI issues.
- [x] closes #2829... | https://api.github.com/repos/pandas-dev/pandas/pulls/29143 | 2019-10-22T04:46:55Z | 2020-01-03T13:12:59Z | 2020-01-03T13:12:59Z | 2020-01-03T13:13:18Z |
BUG: fix non-existent variable in NDFrame.interpolate | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 7c59cbf7cfd1e..1bba01d7a2ecb 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -248,7 +248,6 @@ Performance improvements
Bug fixes
~~~~~~~~~
-- Bug in :meth:`DataFrame.to_html` when using ``formatter... | - [x] closes #29132
- [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/29142 | 2019-10-22T02:35:48Z | 2019-10-25T13:06:31Z | 2019-10-25T13:06:30Z | 2019-10-25T14:08:56Z |
Convert DataFrame.rename to keyword only; simplify axis validation | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 11a6f2628ac52..d7a1e4c0ea9fb 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -292,6 +292,71 @@ New repr for :class:`~pandas.arrays.IntervalArray`
pd.arrays.IntervalArray.from_tuples([(0, 1), (2, ... | - [X] closes #29136 and ref #17963
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
I think we can greatly simplify core if we update our assumptions around the axes of dimensions we deal with. I came to this change t... | https://api.github.com/repos/pandas-dev/pandas/pulls/29140 | 2019-10-21T21:11:20Z | 2020-01-09T21:04:27Z | 2020-01-09T21:04:27Z | 2020-02-13T20:00:23Z |
CLN: remove Block._try_coerce_arg | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 144d555258c50..255fd85531d14 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -18,6 +18,7 @@ cnp.import_array()
cimport pandas._libs.util as util
from pandas._libs.tslibs.conversion cimport maybe_datetimelike_to_i8
+from pandas._l... | Made possible by modernizing `libindex.convert_scalar`
| https://api.github.com/repos/pandas-dev/pandas/pulls/29139 | 2019-10-21T19:56:42Z | 2019-10-24T12:10:07Z | 2019-10-24T12:10:07Z | 2019-10-24T15:37:17Z |
REF: avoid getattr pattern for rank_1d, rank_2d | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index cab8bc8e799d4..30c9af645da22 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -311,7 +311,7 @@ def nancorr_spearman(const float64_t[:, :] mat, Py_ssize_t minp=1):
ranked_mat = np.empty((N, K), dtype=np.float64)
for i in ra... | Also fix incorrectly-typed `nobs` in libgroupby | https://api.github.com/repos/pandas-dev/pandas/pulls/29137 | 2019-10-21T19:11:45Z | 2019-10-22T12:28:16Z | 2019-10-22T12:28:16Z | 2019-10-22T15:09:59Z |
Improve performance of equality comparison between a simple Index and a MultiIndex | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index f1d5209ac65ef..d69799eb70040 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -7,6 +7,7 @@
Float64Index,
Index,
IntervalIndex,
+ MultiIndex,
RangeIndex,
... | Previously, Index.equals(MultiIndex) and MultiIndex.equals(Index) both involved converting the MultiIndex into an ndarray. Since this conversion requires resolving MultiIndex's by-reference structure (i.e. its codes + levels) into ndarray's by-value structure, it can be substantially computationally expensive.
Howev... | https://api.github.com/repos/pandas-dev/pandas/pulls/29134 | 2019-10-21T16:17:58Z | 2019-12-05T19:52:27Z | 2019-12-05T19:52:27Z | 2019-12-05T19:52:48Z |
Reduce Circular Imports with pandas.core.reshape.concat | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a4d3e7058d7de..5a4a4fa114fa9 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -118,6 +118,7 @@
to_arrays,
)
from pandas.core.ops.missing import dispatch_fill_zeros
+from pandas.core.reshape.concat import concat
from pandas.core.series... | While working on #29124 I found a lot of general uses for this, but had to keep importing in the function body to prevent circular imports. By switching the isinstance checks to using ABC classes and moving the import of Index objects those circular imports can *mostly* be done away with
The only thing left that was... | https://api.github.com/repos/pandas-dev/pandas/pulls/29133 | 2019-10-21T16:03:54Z | 2019-11-07T01:39:35Z | null | 2020-01-16T00:33:46Z |
[BUG] Fixed behavior of DataFrameGroupBy.apply to respect _group_selection_context | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 6597b764581a4..80b45fce4cd2c 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -398,6 +398,81 @@ keywords.
df.rename(index={0: 1}, columns={0: 2})
+
+.. _whatsnew_1000.api_breaking.GroupBy.apply:... | - [x] closes #28549
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This issue needs to be addressed before #28541 can be merged
| https://api.github.com/repos/pandas-dev/pandas/pulls/29131 | 2019-10-21T15:27:45Z | 2020-06-14T15:37:45Z | null | 2020-06-14T15:37:45Z |
CLN: remove versionadded:: 0.19.0 and earlier | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index c1575ce4f48b3..50a71d062c63f 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -194,13 +194,10 @@ class Timestamp(_Timestamp):
valid values are 'D', 'h', 'm', 's', 'ms', 'us', an... | xref https://github.com/pandas-dev/pandas/pull/27463#issuecomment-513492615
| https://api.github.com/repos/pandas-dev/pandas/pulls/29127 | 2019-10-21T11:39:19Z | 2019-10-22T09:01:03Z | 2019-10-22T09:01:03Z | 2019-10-22T19:05:15Z |
CLN: remove versionadded:: 0.20 | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 949b6bd475319..62e582dffae47 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -1197,8 +1197,6 @@ submitting a pull request.
For more, see the `pytest <http://docs.... | xref https://github.com/pandas-dev/pandas/pull/27463#issuecomment-513492615 | https://api.github.com/repos/pandas-dev/pandas/pulls/29126 | 2019-10-21T11:38:21Z | 2019-10-22T12:23:12Z | 2019-10-22T12:23:12Z | 2019-10-22T19:05:31Z |
Fixed Inconsistent GroupBy Output Shape with Duplicate Column Labels | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 98d861d999ea9..da651d95b1300 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -453,6 +453,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupby.agg` not able to use lambda function with named ... | - [X] closes #21668 (and potentially a few others)
- [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/29124 | 2019-10-21T05:23:50Z | 2019-11-20T13:00:47Z | 2019-11-20T13:00:46Z | 2020-01-16T00:35:20Z |
Make color validation more forgiving | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b40a64420a0be..29a562aa1a1f2 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -410,6 +410,7 @@ Plotting
- Bug in the ``xticks`` argument being ignored for :meth:`DataFrame.plot.bar` (:issue:`14119`)
-... | The current version throws a false positive if the style string contains `s` or `o`, which are valid marker styles and not colors. For example:
```
style='s', color='C3'
```
should be legal, but currently throws an error.
My suggestion is to check for only the letters that are color codes.
- [ ] closes #... | https://api.github.com/repos/pandas-dev/pandas/pulls/29122 | 2019-10-20T23:48:28Z | 2019-11-10T14:44:10Z | 2019-11-10T14:44:10Z | 2020-04-27T15:34:39Z |
REF: avoid getattr pattern for unstack, assorted cleanups | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index bd5a488722f6d..9dbae8170cbd0 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -146,13 +146,13 @@ def get_dispatch(dtypes):
inner_take_2d_axis0 = inner_take_2d_axis0_... | Remove the only "FIXME" left in the cython code | https://api.github.com/repos/pandas-dev/pandas/pulls/29121 | 2019-10-20T23:14:47Z | 2019-10-22T12:32:51Z | 2019-10-22T12:32:51Z | 2019-10-22T15:04:44Z |
REF: avoid getattr pattern for diff_2d; use fused types | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index eb6d689899073..0ae8094769f46 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -4,32 +4,34 @@ Template for each `dtype` helper function using 1-d template
WARNING: DO... | https://api.github.com/repos/pandas-dev/pandas/pulls/29120 | 2019-10-20T23:12:25Z | 2019-10-22T12:31:51Z | 2019-10-22T12:31:51Z | 2019-10-23T23:08:47Z | |
mypy Fix for tests\frame\test_constructors | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index 583093af6d3e6..aa00cf234d9ee 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -50,13 +50,13 @@ class TestDataFrameConstructors:
lambda: DataFrame({}),
... | - [x] closes one subtask of #28926
- [ ] 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/29119 | 2019-10-20T20:36:12Z | 2019-10-21T06:29:11Z | null | 2019-10-21T06:29:11Z |
ENH: Add built-in function for Styler to format the text displayed for missing values | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 3d155535e2585..24a47336b0522 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -41,6 +41,7 @@ Style application
Styler.set_caption
Styler.set_properties
Styler.set_uuid
+ Styler.set_na_rep
... | As described in the issues, user who wants to control how NA values are printed
while applying styles to the output will have to implement their own formatter.
(so that the underlying data will not change and can be used for styling)
Since the behavior is common in styling (for reports etc.), suggest to add this
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29118 | 2019-10-20T18:49:38Z | 2019-11-25T13:54:22Z | 2019-11-25T13:54:21Z | 2019-11-25T13:54:34Z |
REF: avoid getattr pattern for join_indexer | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index caf730389008a..11c56f784d378 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -290,14 +290,6 @@ def left_join_indexer_unique(join_t[:] left, join_t[:] right):
return indexer
-left_join_indexer_unique_float64 = left_join_indexer_u... | https://api.github.com/repos/pandas-dev/pandas/pulls/29117 | 2019-10-20T17:54:56Z | 2019-10-22T12:34:20Z | 2019-10-22T12:34:20Z | 2019-10-22T15:07:39Z | |
ENH: Implement Keyword Aggregation for DataFrame.agg and Series.agg | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index 838722f60b380..16c4a9f862d79 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -5,12 +5,99 @@
from collections import defaultdict
from functools import partial
-from typing import Any, Callable, DefaultDict, List, S... | - [x] closes #26513, related to #28380
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR basically deals with three issue:
1. implement keyword aggregation for DataFrame.agg
2. implement keyword aggregation... | https://api.github.com/repos/pandas-dev/pandas/pulls/29116 | 2019-10-20T17:27:21Z | 2020-07-10T19:16:29Z | 2020-07-10T19:16:28Z | 2020-07-10T19:32:45Z |
Fix typing errors | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index 583093af6d3e6..aa00cf234d9ee 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -50,13 +50,13 @@ class TestDataFrameConstructors:
lambda: DataFrame({}),
... | - [x] closes a subtask of #28926
- [x] tests 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/29115 | 2019-10-20T16:58:06Z | 2019-10-20T22:26:41Z | 2019-10-20T22:26:41Z | 2019-10-21T17:21:27Z |
Fix typing errors | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index cfa6304909bb7..60afd768195d9 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -75,7 +75,7 @@ def coerce(request):
(iter([1, 2]), True, "iterator"), # noqa: E241
(i... | - [x] closes subtask of #28926
- [x] tests 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/29114 | 2019-10-20T16:52:55Z | 2019-10-20T22:27:42Z | 2019-10-20T22:27:41Z | 2019-10-21T18:08:17Z |
DOC: Add instructions how to activate virtual env under windows with pip | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 949b6bd475319..61f660c23d8d4 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -238,12 +238,15 @@ Creating a Python environment (pip)
If you aren't using conda for yo... | Contributing.rst now correctly describes how to setup dev environment
under Windows when using pip and not conda.
Closes #29112
- [x] closes #29112
- [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/29113 | 2019-10-20T10:42:45Z | 2019-11-01T23:18:32Z | 2019-11-01T23:18:32Z | 2019-11-01T23:18:38Z |
Fix mypy errors tests.dtypes.test_common | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 466b724f98770..ecf6e0e34141d 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -1,3 +1,5 @@
+from typing import List, cast
+
import numpy as np
import pytest
@@ -325,7 +327,7 @@ def t... | xref #28926
- [x] xref #28926
- [x] tests 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/29110 | 2019-10-20T06:41:42Z | 2019-11-17T16:19:11Z | null | 2019-11-17T16:19:12Z |
Fix mypy errors tests.series.test_constructors | diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py
index 65cbf5fcf91d2..ca14f0fd05869 100644
--- a/pandas/tests/series/test_constructors.py
+++ b/pandas/tests/series/test_constructors.py
@@ -45,12 +45,12 @@ class TestSeriesConstructors:
(lambda: Series({}), Tru... | xref #28926
- [x] closes a subtask of #28296
- [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/29108 | 2019-10-20T06:07:17Z | 2019-10-21T06:49:55Z | 2019-10-21T06:49:55Z | 2019-10-21T06:50:04Z |
WEB: Improvements to the contribute page | diff --git a/web/pandas/about/index.html b/web/pandas/about/index.md
similarity index 100%
rename from web/pandas/about/index.html
rename to web/pandas/about/index.md
diff --git a/web/pandas/contribute.md b/web/pandas/contribute.md
index 825a5870bf5a0..9f4ebaf97598c 100644
--- a/web/pandas/contribute.md
+++ b/web/panda... | 
| https://api.github.com/repos/pandas-dev/pandas/pulls/29107 | 2019-10-20T04:05:16Z | 2019-11-04T22:21:27Z | 2019-11-04T22:21:27Z | 2019-11-04T22:21:27Z |
BUG: IndexError in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 7ed131e1c7608..6663ee828bec8 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -248,11 +248,11 @@ cdef class SeriesBinGrouper:
object res
bint initialized = 0
Slider vslider, islid... | cc @WillAyd @jreback another from the groupby-Exception follow-ups. | https://api.github.com/repos/pandas-dev/pandas/pulls/29106 | 2019-10-20T00:39:56Z | 2019-10-25T18:04:42Z | null | 2019-11-21T20:00:16Z |
Added code to check if file exists for read_json. | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 6ce288890b6c7..e71e695e5a5a5 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -1,4 +1,5 @@
from collections import OrderedDict
+from errno import ENOENT
from io import StringIO
from itertools import islice
import os
@@ -708,6 ... | - [x] closes #29102
- [ ] 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/29104 | 2019-10-19T19:08:41Z | 2019-12-10T16:54:07Z | null | 2022-04-08T13:25:58Z |
BUG: fix TypeError raised in maybe_downcast_numeric | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index dd001e78c07de..7fcaf60088ad2 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -202,7 +202,7 @@ def trans(x):
r = result.ravel()
arr = np.array([r[0]])
- if isna(arr).any() or not np.allclose(... | Part of the groupby-Exception whittling; cc @WillAyd @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/29103 | 2019-10-19T18:34:42Z | 2019-10-23T01:38:57Z | 2019-10-23T01:38:57Z | 2019-10-23T01:54:38Z |
[#22550] Remove TestData from series-tests test_rank.py | diff --git a/pandas/tests/series/test_rank.py b/pandas/tests/series/test_rank.py
index 5dd27e4c20dcf..6a79edca01c99 100644
--- a/pandas/tests/series/test_rank.py
+++ b/pandas/tests/series/test_rank.py
@@ -9,12 +9,11 @@
from pandas import NaT, Series, Timestamp, date_range
from pandas.api.types import CategoricalDty... | Part of #22550
* Replaced TestData usage in `pandas/tests/series/test_rank.py` with fixtures
* Switched from class-based test approach to function-based (**Note:** This is why the diff is so big)
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8... | https://api.github.com/repos/pandas-dev/pandas/pulls/29101 | 2019-10-19T17:26:30Z | 2019-10-24T12:10:57Z | 2019-10-24T12:10:57Z | 2019-10-24T12:11:00Z |
BUG: fix AttributeError raised in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 0eac0e94f0beb..7ed131e1c7608 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -203,7 +203,8 @@ cdef class SeriesBinGrouper:
self.f = f
values = series.values
- if not values.flags.c_contiguou... | Bite-sized chunk of the promised "addressing of recently-added TODOs" for groupby Exception un-suppression. cc @WillAyd @jreback. | https://api.github.com/repos/pandas-dev/pandas/pulls/29100 | 2019-10-19T16:23:17Z | 2019-10-22T12:23:59Z | 2019-10-22T12:23:58Z | 2019-10-22T15:05:18Z |
TST: stop suppressing plot test exceptions, xfail broken test | diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py
index f0ba5f14d59c6..82d67d1db3510 100644
--- a/pandas/tests/plotting/common.py
+++ b/pandas/tests/plotting/common.py
@@ -12,6 +12,7 @@
from pandas.core.dtypes.api import is_list_like
+import pandas as pd
from pandas import DataFrame, ... | Taking another stab at #28649. I think there was another discussion somewhere else trying to troubleshoot the test that is xfailed here, but haven't found it yet. | https://api.github.com/repos/pandas-dev/pandas/pulls/29099 | 2019-10-19T16:20:12Z | 2019-10-22T12:39:24Z | 2019-10-22T12:39:23Z | 2019-10-22T15:09:28Z |
BUG: parse_time_string failing to raise TypeError | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index bf0a0ae5a3fe9..796d1400194fd 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -233,7 +233,7 @@ def parse_datetime_string(date_string, freq=None, dayfirst=False,
return dt
-def parse_time_st... | Cleans up one of the TODOs introduced in recent groupby work.
Adds some type annotations along the way. | https://api.github.com/repos/pandas-dev/pandas/pulls/29098 | 2019-10-19T15:22:45Z | 2019-10-19T18:14:22Z | 2019-10-19T18:14:22Z | 2019-10-19T18:30:42Z |
TST: Add a regression test for the timezone issue | diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py
index fe034504b8161..4b7439cd40023 100644
--- a/pandas/tests/frame/test_apply.py
+++ b/pandas/tests/frame/test_apply.py
@@ -1346,3 +1346,17 @@ def test_frequency_is_original(self, num_cols):
df = DataFrame(1, index=index, columns=... | Add a regression test to ensure that the timezone doesn't get removed
when using `df.apply`.
- [x] closes #29052
- [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/29097 | 2019-10-19T13:44:18Z | 2019-10-20T13:49:55Z | 2019-10-20T13:49:55Z | 2019-10-20T13:50:03Z |
[#22550] Remove TestData from series-tests test_quantile.py | diff --git a/pandas/tests/series/test_quantile.py b/pandas/tests/series/test_quantile.py
index b001312fa37f3..1a4a3f523cbbe 100644
--- a/pandas/tests/series/test_quantile.py
+++ b/pandas/tests/series/test_quantile.py
@@ -8,24 +8,22 @@
from pandas.core.indexes.datetimes import Timestamp
import pandas.util.testing as t... | Part of #22550
Replaced TestData usage in `pandas/tests/series/test_quantile.py` with `datetime_series` fixture
- [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/29096 | 2019-10-19T13:08:46Z | 2019-10-19T15:50:57Z | 2019-10-19T15:50:57Z | 2019-10-19T16:55:08Z |
TST: Add regression test for Series index.map failing (#20990) | diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py
index 1776538a15fc2..4a38e3a146c0e 100644
--- a/pandas/tests/indexes/datetimes/test_datetime.py
+++ b/pandas/tests/indexes/datetimes/test_datetime.py
@@ -456,3 +456,15 @@ def test_to_frame_datetime_tz(self):
... | - [x] closes #20990
- [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/29093 | 2019-10-19T08:15:16Z | 2019-11-18T17:06:26Z | 2019-11-18T17:06:26Z | 2019-11-18T17:06:37Z |
CLN: cython and docstring cleanups | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 91599fa223b57..eb6d689899073 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -17,12 +17,11 @@ dtypes = [('float64', 'float64_t', 'float64_t'),
def get_dispatch(dtyp... | Started as simplifying the templating for algos_take_helper. There are some complications that make moving that to fused types non-trivial, but this gets us to a place where its a viable option. | https://api.github.com/repos/pandas-dev/pandas/pulls/29089 | 2019-10-19T03:43:30Z | 2019-10-19T17:13:05Z | 2019-10-19T17:13:05Z | 2019-10-19T17:15:52Z |
CLN: Exception in _aggregate_frame | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 8191c3519a36a..a78857423e7e0 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1067,14 +1067,9 @@ def _aggregate_frame(self, func, *args, **kwargs):
result = OrderedDict()
if axis !=... | cc @jreback @WillAyd
Next groupby-based branch I'm going to focus on the TODOs that have been introduced over this sequence of PRs before continuing to prune the Exceptions. | https://api.github.com/repos/pandas-dev/pandas/pulls/29088 | 2019-10-19T02:14:48Z | 2019-10-19T17:03:51Z | 2019-10-19T17:03:50Z | 2019-10-19T17:12:04Z |
Correcting Warnings from IPython tab completion tests with async tests | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index dd54001984ec7..8d6a4b0ef7a34 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -22,6 +22,7 @@ dependencies:
- pytest-xdist
- pytest-mock
- pytest-azurepipelines
+ - pytest-asyncio
- pip
- pip:
... | - [ ] closes #29070
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I tried to follow what Tom said in the issue but I don't really know how to integrate with CI. I was in doubt too with how to import pytest-asyncio as well. Maybe both questio... | https://api.github.com/repos/pandas-dev/pandas/pulls/29087 | 2019-10-19T01:36:09Z | 2020-01-04T18:21:28Z | null | 2020-01-04T18:21:28Z |
REF: remove algos_rank_helper | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 0f91f612994c7..cab8bc8e799d4 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -771,7 +771,420 @@ def is_monotonic(ndarray[algos_t, ndim=1] arr, bint timelike):
return is_monotonic_inc, is_monotonic_dec, is_strict_monotonic
+#... | No longer needed since the functions in it use fused types. | https://api.github.com/repos/pandas-dev/pandas/pulls/29086 | 2019-10-19T00:52:00Z | 2019-10-19T17:05:32Z | 2019-10-19T17:05:32Z | 2019-10-19T17:11:28Z |
CLN: Exception in DataFrame._reduce | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 7880acb1b78da..c90bf4ba7151f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -68,7 +68,6 @@
infer_dtype_from_object,
is_bool_dtype,
is_datetime64_any_dtype,
- is_datetime64tz_dtype,
is_dict_like,
is_dtype_equal,
... | one of two in this method | https://api.github.com/repos/pandas-dev/pandas/pulls/29085 | 2019-10-19T00:04:52Z | 2019-10-19T17:06:22Z | 2019-10-19T17:06:22Z | 2019-10-19T17:10:32Z |
[#22550] Remove TestData from series-tests test_operators.py | diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py
index 6bfcc02ca633a..942ab0db37a57 100644
--- a/pandas/tests/series/test_operators.py
+++ b/pandas/tests/series/test_operators.py
@@ -16,8 +16,6 @@
assert_series_equal,
)
-from .common import TestData
-
class TestSerie... | Part of #22550
Replaced TestData usage in `pandas/tests/series/test_operators.py` with`datetime_series` fixture
- [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/29084 | 2019-10-18T22:55:48Z | 2019-10-19T17:07:11Z | 2019-10-19T17:07:11Z | 2019-10-19T17:07:15Z |
TST: 2d index when constructing dataframe (#25416). | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index ebffeeaa3063e..583093af6d3e6 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -424,6 +424,25 @@ def test_constructor_multi_index(self):
df = DataFrame(index=... | - [X] closes #25416
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This change adds a regression test to check for the handling of 2d index when creating a dataframe (#25416).
Since there is no visible change no ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29083 | 2019-10-18T22:31:39Z | 2019-10-19T17:08:36Z | 2019-10-19T17:08:36Z | 2019-10-19T17:08:40Z |
`values=['c']` returns `aggfunc` on all columns, instead of just the passed column | diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py
index d653dd87308cf..b85edad145150 100644
--- a/pandas/core/reshape/pivot.py
+++ b/pandas/core/reshape/pivot.py
@@ -126,6 +126,11 @@ def pivot_table(
to_unstack.append(name)
table = agged.unstack(to_unstack)
+ # Fixe... | - [ ] closes #29080
| https://api.github.com/repos/pandas-dev/pandas/pulls/29081 | 2019-10-18T20:44:46Z | 2020-01-01T21:02:02Z | null | 2020-01-01T21:02:02Z |
CLN: tighten exception catching in indexes | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 526b2c2e2c412..1a08609ccd99a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3142,16 +3142,7 @@ def is_int(v):
elif is_positional:
indexer = key
else:
- try:
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29078 | 2019-10-18T18:21:45Z | 2019-10-19T02:23:00Z | 2019-10-19T02:23:00Z | 2019-10-19T02:27:54Z | |
CLN: catch less in groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 8e53972c95275..8191c3519a36a 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -889,9 +889,23 @@ def aggregate(self, func=None, *args, **kwargs):
result = self._aggregate_multiple_fu... | This is the second place where the DecimalArray case has popped up, will move to fix that before too long. | https://api.github.com/repos/pandas-dev/pandas/pulls/29077 | 2019-10-18T16:13:44Z | 2019-10-18T17:57:55Z | 2019-10-18T17:57:55Z | 2019-10-21T21:15:17Z |
TST: Add regression test for Series dropping uint datatype (#18311) | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index f50b3ddbce7dc..19d3e76f52adf 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -907,3 +907,12 @@ def test_head_tail(test_data):
assert_ser... | - [x] closes #18311
- [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/29071 | 2019-10-18T13:15:58Z | 2019-10-22T12:40:26Z | 2019-10-22T12:40:26Z | 2019-10-22T12:40:30Z |
DOC: updated categorical docstring | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index d34cf3e576beb..795986127cde7 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -295,7 +295,7 @@ class Categorical(ExtensionArray, PandasObject):
See Also
--------
- api.types.C... | - [ ] closes #xxxx
- [ ] tests added / passed *(tests failed even on master)*
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I think `api.types.CategoricalDtype` in *see also* section of [pandas.Categorical](https://pandas.pydata.org/pandas-d... | https://api.github.com/repos/pandas-dev/pandas/pulls/29068 | 2019-10-18T11:02:25Z | 2019-10-18T23:57:38Z | 2019-10-18T23:57:38Z | 2019-10-19T00:10:42Z |
TST: add regression test for all-none-groupby | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 6212a37472000..dff5baa9b5984 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1944,3 +1944,13 @@ def test_shift_bfill_ffill_tz(tz_naive_fixture, op, expected):
result = get... | - [X] closes #21624
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Is the whatsnew entry required if the fix was somewhat silent and only a regression test was added?
| https://api.github.com/repos/pandas-dev/pandas/pulls/29067 | 2019-10-18T09:42:59Z | 2019-10-18T17:32:52Z | 2019-10-18T17:32:52Z | 2019-10-18T17:32:55Z |
CLN: Exception in NDFrame._maybe_update_cacher | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e3e59639de56b..50126cabbacf3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3353,9 +3353,13 @@ def _maybe_update_cacher(self, clear=False, verify_is_copy=True):
if ref is None:
del self._cacher
... | Only need to catch AssertionError | https://api.github.com/repos/pandas-dev/pandas/pulls/29066 | 2019-10-18T02:20:04Z | 2019-10-22T12:41:07Z | 2019-10-22T12:41:07Z | 2019-10-22T15:02:55Z |
CLN: simplify take_2d_multi | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 2e5ab0d182aff..717c2eb26be8b 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1304,7 +1304,7 @@ def get_indexer(current_indexer, other_indexer):
return frame.sort_values(columns, ascending=ascending, kind="merges... | It is only called from one place in `DataFrame._reindex_multi`, so we can rule out a bunch of cases about the args/kwargs.
Separate branches for simplifying algos_take_helper are going to be nice | https://api.github.com/repos/pandas-dev/pandas/pulls/29065 | 2019-10-18T00:56:13Z | 2019-10-18T19:34:45Z | 2019-10-18T19:34:45Z | 2019-10-18T19:44:40Z |
TST: regression test for groupby with datetime and timedelta (#15562) | diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py
index 4d0063b773bc5..1af4768b7381e 100644
--- a/pandas/tests/groupby/test_apply.py
+++ b/pandas/tests/groupby/test_apply.py
@@ -543,6 +543,33 @@ def predictions(tool):
tm.assert_series_equal(expected, result)
+def test_apply_a... | - [X] closes #15562
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This change doesn't add a new feature but adds an regression test for #15562 which has been fixed with pandas 0.20. Hence there is no whatsnew entry... | https://api.github.com/repos/pandas-dev/pandas/pulls/29063 | 2019-10-17T21:19:13Z | 2019-10-19T17:11:16Z | 2019-10-19T17:11:16Z | 2019-10-19T17:11:19Z |
REF: Store metadata in an attrs dict | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 4982edeb7f85b..4b5faed0f4d2d 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -274,6 +274,19 @@ Time series-related
DataFrame.tz_convert
DataFrame.tz_localize
+.. _api.frame.metadata:
+
+Metad... | This aids in the implementation of
https://github.com/pandas-dev/pandas/pull/28394. Over there, I'm having
issues with using `NDFrame.__finalize__` to copy attributes, in part
because getattribute on NDFrame is so complicated.
This simplifies that PR because we only need to look in NDFrame.attrs (name borrowed fr... | https://api.github.com/repos/pandas-dev/pandas/pulls/29062 | 2019-10-17T20:50:41Z | 2019-10-22T12:42:16Z | 2019-10-22T12:42:15Z | 2020-02-13T19:11:27Z |
API: Restore getting name from MultiIndex level | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index b0a1ed0650f7c..fda5c78a61e53 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -639,7 +639,10 @@ def from_frame(cls, df, sortorder=None, names=None):
@property
def levels(self):
- return self.... | xref https://issues.apache.org/jira/browse/ARROW-6922 /
https://github.com/pandas-dev/pandas/pull/27242#issuecomment-543302582
/ https://github.com/pandas-dev/pandas/issues/29032
No docs yet, since it isn't clear how this will eventually sort out. But
we at least want to preserve this behavior for 1.0
cc @jori... | https://api.github.com/repos/pandas-dev/pandas/pulls/29061 | 2019-10-17T19:03:24Z | 2019-10-18T12:43:35Z | 2019-10-18T12:43:35Z | 2019-10-18T21:57:27Z |
Stop catching TypeError in groupby methods | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 4f7488c88630b..68c21139e7384 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -8,7 +8,7 @@ import numpy as np
cimport numpy as cnp
from numpy cimport (ndarray,
int8_t, int16_t, int32_t, int64_t, uint8_t,... | cc @WillAyd @jreback
Note this doesn't touch cython_agg_blocks, I've run out of things to meddle with there.
Open to suggestions for the DecimalArray case. | https://api.github.com/repos/pandas-dev/pandas/pulls/29060 | 2019-10-17T18:49:16Z | 2019-10-17T22:17:14Z | 2019-10-17T22:17:14Z | 2019-10-17T22:55:26Z |
Backport PR #29057 on branch 0.25.x (CI: xfail on numpy 1.18) | diff --git a/ci/build38.sh b/ci/build38.sh
index 5c798c17301e0..903016536d240 100644
--- a/ci/build38.sh
+++ b/ci/build38.sh
@@ -6,13 +6,7 @@ pip install --no-deps -U pip wheel setuptools
pip install python-dateutil pytz cython pytest pytest-xdist hypothesis
# Possible alternative for getting numpy:
-# pip install ... | Backport PR #29057: CI: xfail on numpy 1.18 | https://api.github.com/repos/pandas-dev/pandas/pulls/29059 | 2019-10-17T18:26:13Z | 2019-10-17T19:45:40Z | 2019-10-17T19:45:40Z | 2019-10-17T19:45:40Z |
CI: xfail on numpy 1.18 | diff --git a/ci/build38.sh b/ci/build38.sh
index 5c798c17301e0..903016536d240 100644
--- a/ci/build38.sh
+++ b/ci/build38.sh
@@ -6,13 +6,7 @@ pip install --no-deps -U pip wheel setuptools
pip install python-dateutil pytz cython pytest pytest-xdist hypothesis
# Possible alternative for getting numpy:
-# pip install ... | xref #29053
i think this addresses the failing azure builds, not sure about Travis.
Will open an issue for a longer-term fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/29057 | 2019-10-17T16:48:25Z | 2019-10-17T18:25:48Z | 2019-10-17T18:25:48Z | 2019-10-17T18:50:31Z |
Support customised S3 servers endpoint URL | diff --git a/pandas/io/s3.py b/pandas/io/s3.py
index 7e0a37e8cba20..5c0efefb52b06 100644
--- a/pandas/io/s3.py
+++ b/pandas/io/s3.py
@@ -1,5 +1,6 @@
""" s3 support for remote file interactivity """
-from typing import IO, Any, Optional, Tuple
+import os
+from typing import IO, Any, Dict, Optional, Tuple
from urllib.p... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Add support for customised S3 servers via checking the environment variable `S3_ENDPOINT`.
If set, the value of `S3_ENDPOINT` will be passed to th... | https://api.github.com/repos/pandas-dev/pandas/pulls/29050 | 2019-10-17T10:42:31Z | 2019-10-22T12:57:42Z | null | 2020-01-07T14:24:53Z |
CLN: derivation of nogil param | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index f10061a417c03..e7ee212065c5b 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -12,26 +12,26 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
# na... | This moves the `nogil` parameter of in the template from being hard-coded to being derived from the other parameters.
This changes the parameter value on line 18 (int8/int8) which currently has `nogil=False` which I think is incorrect. | https://api.github.com/repos/pandas-dev/pandas/pulls/29047 | 2019-10-17T02:30:50Z | 2019-10-18T17:27:30Z | 2019-10-18T17:27:30Z | 2019-10-18T17:35:35Z |
CLN: Fixing mypy errors in pandas/conftest.py | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 3b7392f781525..e1b6a5e2e6876 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -11,6 +11,7 @@
List,
Mapping,
Optional,
+ Type,
TypeVar,
Union,
)
@@ -44,7 +45,9 @@
# other
-Dtype = Union[str, np.dtype, "ExtensionDtype"]
+D... | - [x] xref #28926
- [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/29046 | 2019-10-17T00:30:25Z | 2020-03-25T23:51:10Z | 2020-03-25T23:51:10Z | 2020-03-25T23:51:19Z |
REF: use fused types in algos_rank_helper | diff --git a/pandas/_libs/algos_rank_helper.pxi.in b/pandas/_libs/algos_rank_helper.pxi.in
index 1ba1667b687be..d5a31b6a13010 100644
--- a/pandas/_libs/algos_rank_helper.pxi.in
+++ b/pandas/_libs/algos_rank_helper.pxi.in
@@ -8,24 +8,17 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
# rank_1... | https://api.github.com/repos/pandas-dev/pandas/pulls/29044 | 2019-10-16T23:08:34Z | 2019-10-18T21:29:56Z | 2019-10-18T21:29:56Z | 2019-10-18T22:19:12Z | |
Fix mypy in pandas/tests/arithmetic/test_datetime64.py | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index d239687a37757..5ff497cfc2007 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -2161,7 +2161,9 @@ def test_dti_isub_tdi(self, tz_naive_fixture):
[... | GH28926, mypy did not like DatetimeIndex's __new__,
and couldn't find a method
- [x] addresses part of #28926
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/29041 | 2019-10-16T20:32:01Z | 2019-12-27T19:40:43Z | null | 2019-12-27T19:40:44Z |
REF: remove groupby_helper | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 4f7488c88630b..e40487e4f08b1 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -11,6 +11,8 @@ from numpy cimport (ndarray,
uint32_t, uint64_t, float32_t, float64_t)
cnp.import_array()
+cdef extern from "... | no longer necessary now that the funcs there use fused types. | https://api.github.com/repos/pandas-dev/pandas/pulls/29040 | 2019-10-16T19:54:03Z | 2019-10-18T17:28:04Z | 2019-10-18T17:28:03Z | 2019-10-18T17:31:45Z |
BUG: Fix TypeError in _cython_agg_blocks | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index aa817ec451aa5..598a61d727561 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -966,6 +966,11 @@ def _cython_agg_blocks(self, how, alt=None, numeric_only=True, min_count=-1):
# call ou... | and change one of the high-level `except Exception`s in groupby.groupby to `except (TypeError, NotImplementedError)`. The remaining `TypeError` will be addressed in a separate PR. Haven't decided about the remaining NotImplementedError.
cc @jreback @WillAyd. | https://api.github.com/repos/pandas-dev/pandas/pulls/29035 | 2019-10-16T17:02:49Z | 2019-10-17T12:37:48Z | 2019-10-17T12:37:47Z | 2019-10-17T15:27:59Z |
TST: Test key dtype cast after merge | diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py
index 08698133e360d..19555a0c7e4c3 100644
--- a/pandas/tests/reshape/merge/test_merge.py
+++ b/pandas/tests/reshape/merge/test_merge.py
@@ -1437,6 +1437,17 @@ def test_merge_on_ints_floats(self, int_vals, float_vals, exp_va... | - [X] closes #17044
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/29030 | 2019-10-16T15:32:26Z | 2019-10-22T00:34:39Z | 2019-10-22T00:34:37Z | 2019-10-22T00:34:44Z |
Backport PR #29013 on branch 0.25.x (TST: restore xfail for test_apply) | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index b08868f311f76..08719fa21faaa 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -4,7 +4,7 @@
import numpy as np
import pytest
-from pandas.compat import PY37, i... | Backport PR #29013: TST: restore xfail for test_apply | https://api.github.com/repos/pandas-dev/pandas/pulls/29028 | 2019-10-16T13:12:40Z | 2019-10-16T14:42:44Z | 2019-10-16T14:42:44Z | 2019-10-16T14:42:44Z |
fixed issue of mypy for test_ujson | diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py
index d6572ac7b7bfe..20e2690084e2a 100644
--- a/pandas/tests/io/json/test_ujson.py
+++ b/pandas/tests/io/json/test_ujson.py
@@ -1,10 +1,7 @@
-try:
- import json
-except ImportError:
- import simplejson as json
import calendar
i... | - [ ] xref #28926
- [ ] 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/29022 | 2019-10-16T07:09:41Z | 2019-10-18T15:15:30Z | 2019-10-18T15:15:30Z | 2019-10-18T15:15:39Z |
Fix mypy error in pandas\tests\indexes\interval\test_interval_tree.py | diff --git a/pandas/tests/indexes/interval/test_interval_tree.py b/pandas/tests/indexes/interval/test_interval_tree.py
index 87f9eaa209277..85dac5ea35950 100644
--- a/pandas/tests/indexes/interval/test_interval_tree.py
+++ b/pandas/tests/indexes/interval/test_interval_tree.py
@@ -154,14 +154,14 @@ def test_get_indexer_... | - [x] relates to #28926
- [ ] 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/29021 | 2019-10-16T04:32:24Z | 2019-11-07T23:08:14Z | 2019-11-07T23:08:13Z | 2019-11-08T13:04:35Z |
CLN: Use ABC classes where possible | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 9d6487f7a8ae4..21882a8f132d8 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -53,6 +53,7 @@
ABCDataFrame,
ABCDatetimeArray,
ABCDatetimeIndex,
+ ABCExtensionArray,
ABCIndexClass,
ABCMult... | - [x] closes #27353
- [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/29020 | 2019-10-16T04:27:04Z | 2019-12-17T17:23:46Z | null | 2019-12-17T17:23:47Z |
DEPR: remove previously-deprecated broadcast/reduce kwargs from DataFrame.apply | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 7692651db840e..48c1173a372a7 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -227,6 +227,7 @@ Removal of prior version deprecations/changes
- Removed the previously deprecated :meth:`ExtensionArray._f... | xref #18577 (Nov 2017) | https://api.github.com/repos/pandas-dev/pandas/pulls/29017 | 2019-10-15T22:36:45Z | 2019-10-16T23:53:50Z | 2019-10-16T23:53:50Z | 2019-10-16T23:55:34Z |
CLN: fix mypy error pandas/tests/plotting/test_backend.py | diff --git a/pandas/tests/plotting/test_backend.py b/pandas/tests/plotting/test_backend.py
index 6511d94aa4c09..41b1a88b15acb 100644
--- a/pandas/tests/plotting/test_backend.py
+++ b/pandas/tests/plotting/test_backend.py
@@ -9,7 +9,7 @@
import pandas
dummy_backend = types.ModuleType("pandas_dummy_backend")
-dummy_b... | GH28926, mypy didn't like setting non-existant attribute on module.
Dummy function, circumvented with `__setattr__`
- [x] addresses part of #28926
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/29016 | 2019-10-15T22:28:10Z | 2019-10-16T21:24:54Z | 2019-10-16T21:24:53Z | 2019-10-16T21:24:55Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.