title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
TST/REF: consolidate hist tests | diff --git a/pandas/tests/plotting/test_hist_method.py b/pandas/tests/plotting/test_hist_method.py
index f700b2934cd8c..e2a36dc5d6a1b 100644
--- a/pandas/tests/plotting/test_hist_method.py
+++ b/pandas/tests/plotting/test_hist_method.py
@@ -162,6 +162,59 @@ def test_hist_with_legend_raises(self, by):
with pyte... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Splitting up #38577, following @ivanovmg's comment. First step moves some `test_hist...` tests from `test_series.py` to `test_hist_method.py`, after this the remainder of `hist` tests in `test_series.py` will be duplica... | https://api.github.com/repos/pandas-dev/pandas/pulls/38618 | 2020-12-21T17:02:52Z | 2020-12-21T22:29:14Z | 2020-12-21T22:29:14Z | 2020-12-21T23:07:37Z |
BUG: remove unused tz keyword from PeriodIndex constructor | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 3fb57daf2a74b..f8a62c6a8e006 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -86,8 +86,6 @@ class PeriodIndex(DatetimeIndexOpsMixin):
hour : int, array, or Series, default None
minute : int, arra... | - [ ] 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/38615 | 2020-12-21T15:48:10Z | 2020-12-22T18:36:20Z | 2020-12-22T18:36:20Z | 2020-12-22T19:05:58Z |
BUG: disallow scalar in CategoricalIndex construtor | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index fbd2c2b5345fc..3a8fa7798a2d5 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -170,7 +170,7 @@ Bug fixes
Categorical
^^^^^^^^^^^
-
+- Bug in :class:`CategoricalIndex` incorrectly failing to raise ``... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38614 | 2020-12-21T15:46:02Z | 2020-12-23T15:53:26Z | 2020-12-23T15:53:26Z | 2021-01-04T13:29:49Z |
CI: move py38 slow to azure #38429 | diff --git a/.travis.yml b/.travis.yml
index 1ddd886699d38..31edc4872e907 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,12 +35,6 @@ matrix:
fast_finish: true
include:
- - env:
- - JOB="3.8, slow" ENV_FILE="ci/deps/travis-38-slow.yaml" PATTERN="slow" SQL="1"
- services:
- - mysql
- ... | xref #38429
We're not testing databases on py38 slow currently. Keep the issue open until we figure out what to do with its SQL tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/38613 | 2020-12-21T15:38:23Z | 2020-12-21T20:02:00Z | 2020-12-21T20:02:00Z | 2020-12-28T21:19:40Z |
Backport PR #38532 on branch 1.2.x (BUG: Regression in logical ops raising ValueError with Categorical columns with unused categories) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index e2521cedb64cc..372dfa0f8ad42 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -859,7 +859,7 @@ Other
- Bug in :meth:`RangeIndex.difference` returning :class:`Int64Index` in some cases where it should r... | Backport PR #38532: BUG: Regression in logical ops raising ValueError with Categorical columns with unused categories | https://api.github.com/repos/pandas-dev/pandas/pulls/38612 | 2020-12-21T13:57:37Z | 2020-12-21T15:28:45Z | 2020-12-21T15:28:45Z | 2020-12-21T15:28:46Z |
Backport PR #38539 on branch 1.2.x (BUG: fix array conversion from Arrow for slided array) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index e2521cedb64cc..4816e45861f4c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -747,6 +747,7 @@ I/O
- :meth:`DataFrame.to_html` was ignoring ``formatters`` argument for ``ExtensionDtype`` columns (:issu... | Backport PR #38539: BUG: fix array conversion from Arrow for slided array | https://api.github.com/repos/pandas-dev/pandas/pulls/38611 | 2020-12-21T13:57:25Z | 2020-12-21T15:28:26Z | 2020-12-21T15:28:26Z | 2020-12-21T15:28:26Z |
Revert "REF: use astype_nansafe in Index.astype" | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6e2bbc5e3a0e6..2a5d6db41a56d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -33,7 +33,6 @@
from pandas.util._decorators import Appender, cache_readonly, doc
from pandas.core.dtypes.cast import (
- astype_n... | Reverts pandas-dev/pandas#38518 | https://api.github.com/repos/pandas-dev/pandas/pulls/38610 | 2020-12-21T13:33:19Z | 2020-12-21T17:27:18Z | 2020-12-21T17:27:17Z | 2020-12-21T17:34:05Z |
TST: GH30999 Add match=msg to all "with pytest.raises" in pandas/tests/io/pytables/test_store.py | diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py
index b35414724d946..274efda55414c 100644
--- a/pandas/tests/io/pytables/test_store.py
+++ b/pandas/tests/io/pytables/test_store.py
@@ -483,11 +483,12 @@ def test_mode(self, setup_path):
def check(mode):
+ ... | This pull request xref #30999 to remove bare `pytest.raises`. It doesn't close that issue as I have only addressed one file: `pandas/tests/io/pytables/test_store.py`. In that file there were 80 instances of bare `pytest.raises`.
`test_append_to_multiple_dropna_false` is marked as failing because it isn't raising the... | https://api.github.com/repos/pandas-dev/pandas/pulls/38609 | 2020-12-21T12:52:25Z | 2020-12-22T23:17:29Z | 2020-12-22T23:17:29Z | 2020-12-24T17:14:23Z |
REF: simplify CategoricalIndex.__new__ | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 27110fe1f8439..413309b3d01ad 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -298,7 +298,13 @@ class Categorical(NDArrayBackedExtensionArray, PandasObject, ObjectStringArrayMi
_can_hol... | Part of a larger goal of making `Index.__new__` share code with `Series.__init__` and `pd.array` | https://api.github.com/repos/pandas-dev/pandas/pulls/38605 | 2020-12-21T04:15:14Z | 2020-12-22T14:09:21Z | 2020-12-22T14:09:21Z | 2020-12-28T16:04:23Z |
Backport PR #38598 on branch 1.2.x (BUG: Temporarily pin the version of Sphinx to 3.3.1 in requirements.) | diff --git a/environment.yml b/environment.yml
index b99b856187fb6..1ac190830c132 100644
--- a/environment.yml
+++ b/environment.yml
@@ -31,7 +31,7 @@ dependencies:
# documentation
- gitpython # obtain contributors from git for whatsnew
- gitdb
- - sphinx
+ - sphinx=3.3.1
# documentation (jupyter noteb... | Backport PR #38598: BUG: Temporarily pin the version of Sphinx to 3.3.1 in requirements. | https://api.github.com/repos/pandas-dev/pandas/pulls/38603 | 2020-12-21T02:59:51Z | 2020-12-21T12:17:18Z | 2020-12-21T12:17:18Z | 2020-12-21T12:17:19Z |
BUG: Temporarily pin the version of Sphinx to 3.3.1 in requirements. | diff --git a/environment.yml b/environment.yml
index 600a20b153ed3..a23e7906a42a0 100644
--- a/environment.yml
+++ b/environment.yml
@@ -31,7 +31,7 @@ dependencies:
# documentation
- gitpython # obtain contributors from git for whatsnew
- gitdb
- - sphinx
+ - sphinx=3.3.1
# documentation (jupyter noteb... | A recent change in Sphinx v3.4.0 is breaking pandas' CI *Build documentation* step.
Until this is resolved, we can temporarily pin Sphinx to the previous version (3.3.1).
_Submitted in response to @jreback in https://github.com/pandas-dev/pandas/issues/38593#issuecomment-748690637_
------
Here's some info t... | https://api.github.com/repos/pandas-dev/pandas/pulls/38598 | 2020-12-21T00:31:14Z | 2020-12-21T02:59:11Z | 2020-12-21T02:59:11Z | 2020-12-21T02:59:21Z |
DEPR: allowing subclass-specific keywords in pd.Index.__new__ | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index fbd2c2b5345fc..53f254aee2e0e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -143,7 +143,7 @@ Other API changes
Deprecations
~~~~~~~~~~~~
-
+- Deprecated allowing subclass-specific keyword argument... | - [x] closes #21311, closes #14093, closes #22315, closes #26974
- [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/38597 | 2020-12-21T00:26:41Z | 2020-12-22T23:45:30Z | 2020-12-22T23:45:29Z | 2020-12-23T00:08:31Z |
CLN: Remove _get_roll_func | diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py
index 0fc6c8a23f5f2..b52b7d384036b 100644
--- a/pandas/core/window/ewm.py
+++ b/pandas/core/window/ewm.py
@@ -335,14 +335,14 @@ def mean(self, *args, **kwargs):
"""
nv.validate_window_func("mean", args, kwargs)
if self.times i... | - [ ] 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/38596 | 2020-12-20T23:30:06Z | 2020-12-21T17:08:06Z | 2020-12-21T17:08:06Z | 2020-12-21T18:20:56Z |
CLN: Window _constructors definitions | diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py
index 0fc6c8a23f5f2..d2de7010fe536 100644
--- a/pandas/core/window/ewm.py
+++ b/pandas/core/window/ewm.py
@@ -273,10 +273,6 @@ def __init__(
self.halflife = None
self.com = get_center_of_mass(com, span, halflife, alpha)
- ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Redefined in more appropriate locations. | https://api.github.com/repos/pandas-dev/pandas/pulls/38595 | 2020-12-20T23:13:19Z | 2020-12-21T17:09:30Z | 2020-12-21T17:09:30Z | 2020-12-21T18:21:03Z |
DOC: Add datatest package to list of third-party extension accessors. | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index e88875a9f679c..390cf214bad00 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -474,15 +474,16 @@ A directory of projects providing
:ref:`extension accessors <extending.register-accessors>`. This is for users to
discover new ... | This change adds the `datatest` package to the list of third-party extension accessors. Since `datatest` supports more than `pandas`, I wasn't sure if it was appropriate to add it to the **Data cleaning and validation** section, so I only added it to the accessors list for now.
Unfortunately, the "Classes" column wa... | https://api.github.com/repos/pandas-dev/pandas/pulls/38593 | 2020-12-20T20:03:46Z | 2020-12-21T16:33:14Z | 2020-12-21T16:33:14Z | 2020-12-21T16:33:20Z |
TST/REF: collect tests by method | diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py
index 077c3ebc56ac4..1aa22fd9bda46 100644
--- a/pandas/tests/indexes/datetimes/test_datetime.py
+++ b/pandas/tests/indexes/datetimes/test_datetime.py
@@ -8,8 +8,6 @@
from pandas import DataFrame, DatetimeInde... | https://api.github.com/repos/pandas-dev/pandas/pulls/38589 | 2020-12-20T03:15:04Z | 2020-12-21T14:47:07Z | 2020-12-21T14:47:06Z | 2020-12-21T15:33:29Z | |
TST: Added tests for ABC classes | diff --git a/pandas/tests/dtypes/test_generic.py b/pandas/tests/dtypes/test_generic.py
index 6c38c8ff19c15..1d0c871eaa0a8 100644
--- a/pandas/tests/dtypes/test_generic.py
+++ b/pandas/tests/dtypes/test_generic.py
@@ -1,6 +1,7 @@
from warnings import catch_warnings
import numpy as np
+import pytest
from pandas.co... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
`test_abc_types` is a subset of the tests added and can be removed in a followup. | https://api.github.com/repos/pandas-dev/pandas/pulls/38588 | 2020-12-19T22:28:46Z | 2020-12-21T14:43:47Z | 2020-12-21T14:43:47Z | 2020-12-27T23:59:35Z |
ENH: Raise ParserWarning when length of names does not match length of data | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index dd95f9088e3da..21383f8eba712 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -246,6 +246,7 @@ Other enhancements
- Improved error message when ``usecols`` and ``names`` do not match for :func:`read_cs... | - [x] closes #21768
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@gfyoung
Raising ParserWarning now. Could change to FutureWarning, if we would like to deprecate for 2.0
As long as we are only raising a Par... | https://api.github.com/repos/pandas-dev/pandas/pulls/38587 | 2020-12-19T21:24:03Z | 2021-06-16T02:14:24Z | 2021-06-16T02:14:23Z | 2021-06-16T08:45:24Z |
TYP: Added cast to ABC EA types | diff --git a/pandas/core/dtypes/generic.py b/pandas/core/dtypes/generic.py
index be78ee7e08421..47a6009590d8b 100644
--- a/pandas/core/dtypes/generic.py
+++ b/pandas/core/dtypes/generic.py
@@ -5,6 +5,7 @@
if TYPE_CHECKING:
from pandas import (
+ Categorical,
CategoricalIndex,
DataFrame,... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is the last set of ABCs to cast. Going out with a whimper, mypy didn't identify any new issues. | https://api.github.com/repos/pandas-dev/pandas/pulls/38586 | 2020-12-19T21:12:24Z | 2020-12-21T18:15:40Z | 2020-12-21T18:15:40Z | 2020-12-27T23:59:27Z |
REF: implement construct_2d_arraylike_from_scalar | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 034fd927a8017..e2dee1e0ba524 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1523,6 +1523,28 @@ def find_common_type(types: List[DtypeObj]) -> DtypeObj:
return np.find_common_type(types, [])
+def construct_2... | - [ ] 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/38583 | 2020-12-19T15:51:13Z | 2020-12-21T23:46:19Z | 2020-12-21T23:46:19Z | 2020-12-22T00:13:10Z |
BUG: MultiIndex.dtypes to handle when no level names | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 78e7a8516178a..5312dfe84cfd8 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -707,7 +707,12 @@ def dtypes(self) -> "Series":
"""
from pandas import Series
- return Series({level.name... | - [X] closes #38580
- [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/38582 | 2020-12-19T14:00:12Z | 2020-12-21T14:49:13Z | 2020-12-21T14:49:13Z | 2020-12-24T18:37:22Z |
DOC:fix of DOCUMENTATION | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index e4b19d844dcab..bc7def817c973 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1091,11 +1091,9 @@ cdef class _Timedelta(timedelta):
>>> td.isoformat()
'P6DT0H50M3.01001... | - [ ] closes #38311
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ Timedelta.isoformat DOC had duplicates i have deleted one of them. And their was two lines with wrong output that i have also fixed.] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38579 | 2020-12-19T09:01:08Z | 2020-12-19T10:23:41Z | 2020-12-19T10:23:41Z | 2020-12-19T11:01:16Z |
TST/REF: io/parser/(test_dtypes.py, test_usecols.py) | diff --git a/pandas/tests/io/parser/dtypes/test_categorical.py b/pandas/tests/io/parser/dtypes/test_categorical.py
new file mode 100644
index 0000000000000..2f569424a82f5
--- /dev/null
+++ b/pandas/tests/io/parser/dtypes/test_categorical.py
@@ -0,0 +1,294 @@
+"""
+Tests dtype specification during parsing
+for all of th... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
#38370 adds a pyarrow engine to the csv reader. Only a fraction of the io/parser tests pass when pyarrow is used and the rest has to be xfailed/skipp... | https://api.github.com/repos/pandas-dev/pandas/pulls/38578 | 2020-12-19T08:08:08Z | 2020-12-31T22:13:39Z | 2020-12-31T22:13:39Z | 2020-12-31T22:13:44Z |
TST: Bare pytest raises | diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py
index 01de64568a011..72b378f75c936 100644
--- a/pandas/tests/arrays/boolean/test_arithmetic.py
+++ b/pandas/tests/arrays/boolean/test_arithmetic.py
@@ -46,7 +46,7 @@ def test_add_mul(left_array, right_array, opn... | - xref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry [N/A]
| https://api.github.com/repos/pandas-dev/pandas/pulls/38576 | 2020-12-19T05:01:24Z | 2020-12-20T21:37:33Z | 2020-12-20T21:37:33Z | 2020-12-30T08:23:49Z |
BUG: construction from dt64/td64 values with td64/dt64 dtype | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 64b9a11b1980d..7c4db6865135a 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -180,7 +180,7 @@ Datetimelike
^^^^^^^^^^^^
- Bug in :class:`DataFrame` and :class:`Series` constructors sometimes dropping... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38575 | 2020-12-19T04:54:05Z | 2020-12-23T20:36:28Z | 2020-12-23T20:36:28Z | 2020-12-23T20:38:53Z |
TST: fix some mpl warnings | diff --git a/pandas/plotting/_matplotlib/misc.py b/pandas/plotting/_matplotlib/misc.py
index a1c62f9fce23c..f519d1e96f5b0 100644
--- a/pandas/plotting/_matplotlib/misc.py
+++ b/pandas/plotting/_matplotlib/misc.py
@@ -144,7 +144,9 @@ def normalize(series):
df = frame.drop(class_column, axis=1).apply(normalize)
... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This change fixes `UserWarning` being emitted in tests calling `autocorrelation_plot`, `andrews_curves`, and `radviz`.
`UserWarning` was caused by calling `plt.gca(xlim=..., ylim=...)` on a potentially already exist... | https://api.github.com/repos/pandas-dev/pandas/pulls/38574 | 2020-12-19T04:17:35Z | 2020-12-22T22:23:51Z | 2020-12-22T22:23:51Z | 2021-04-06T13:13:53Z |
TST/REF: collect datetimelike factorize tests | diff --git a/pandas/tests/indexes/datetimes/methods/test_factorize.py b/pandas/tests/indexes/datetimes/methods/test_factorize.py
new file mode 100644
index 0000000000000..6e095e29e47cd
--- /dev/null
+++ b/pandas/tests/indexes/datetimes/methods/test_factorize.py
@@ -0,0 +1,102 @@
+import numpy as np
+
+from pandas impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/38573 | 2020-12-19T02:42:21Z | 2020-12-21T16:03:31Z | 2020-12-21T16:03:31Z | 2020-12-21T16:12:43Z | |
CLN: DatetimeArray.astype | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index b76051e4dce80..aa1d8f6254e2c 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -31,7 +31,6 @@
is_categorical_dtype,
is_datetime64_any_dtype,
is_datetime64_dtype,
- is_datetime64_ns_... | - [ ] 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/38572 | 2020-12-19T00:50:08Z | 2020-12-22T00:08:50Z | 2020-12-22T00:08:50Z | 2020-12-22T00:12:19Z |
TST: Test Groupby with Categoricals consistent for Series and DataFrame results | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index ad5d2315f7e33..22a23407b2521 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -1193,6 +1193,13 @@ def test_seriesgroupby_observed_apply_dict(df_cat, observed, ind... | - [ ] closes https://github.com/pandas-dev/pandas/issues/20416
- [ ] 1 test added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/29343 | 2019-11-02T12:23:32Z | 2019-11-02T14:17:34Z | 2019-11-02T14:17:34Z | 2019-11-02T14:17:39Z |
TST: add new test - check reindex() and astype() order consistency for Series | diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py
index 6ee120f3bec64..a28977864eb2d 100644
--- a/pandas/tests/series/test_dtypes.py
+++ b/pandas/tests/series/test_dtypes.py
@@ -518,3 +518,13 @@ def test_values_compatibility(self, data):
result = pd.Series(data).values
... | check reindex() and astype() order consistency for Series
- [x] closes #17444
- [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/29342 | 2019-11-02T12:14:13Z | 2019-11-02T14:21:06Z | 2019-11-02T14:21:06Z | 2019-11-02T14:21:15Z |
Fix mypy error messages in pandas/test/tseries/offsets/test_offsets.py | diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py
index 81aff4211440e..bed8d2461f65d 100644
--- a/pandas/tests/tseries/offsets/test_offsets.py
+++ b/pandas/tests/tseries/offsets/test_offsets.py
@@ -1,5 +1,5 @@
from datetime import date, datetime, time as dt_time, ... | Activate and fix mypy for test offsets
- 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/29340 | 2019-11-02T11:53:16Z | 2019-11-07T20:50:12Z | 2019-11-07T20:50:12Z | 2019-11-07T20:50:18Z |
TST: Test Series constructor with dict containing lists and explicit … | diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py
index fb2a8dde96e2b..4cbade2669cc6 100644
--- a/pandas/tests/series/test_constructors.py
+++ b/pandas/tests/series/test_constructors.py
@@ -1035,6 +1035,13 @@ def test_constructor_dict(self):
expected.iloc[1] = 1
... | Add test for series constructor with dict of list with explicit dtype.
- closes #18625
- 1 test added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/29339 | 2019-11-02T11:37:54Z | 2019-11-02T14:23:49Z | 2019-11-02T14:23:49Z | 2019-11-02T14:23:57Z |
TST: Adding to_dict numeric consistency test (#22620) | diff --git a/pandas/tests/frame/test_convert_to.py b/pandas/tests/frame/test_convert_to.py
index 17edd48e36563..e1dda1411edbd 100644
--- a/pandas/tests/frame/test_convert_to.py
+++ b/pandas/tests/frame/test_convert_to.py
@@ -612,3 +612,19 @@ def test_to_dict_wide(self):
result = df.to_dict("records")[0]
... | - [x] closes #22620
- [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/29338 | 2019-11-02T11:01:44Z | 2019-11-05T17:18:22Z | 2019-11-05T17:18:21Z | 2019-11-05T17:18:37Z |
CLN: clean indexes/multi.py | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index dc2abfb0cb6eb..cc838cd09b949 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -704,22 +704,23 @@ def _set_levels(
# This is NOT part of the levels property because it should be
# externally no... | Some minor clean-ups. | https://api.github.com/repos/pandas-dev/pandas/pulls/29337 | 2019-11-02T09:28:29Z | 2019-11-02T11:01:58Z | 2019-11-02T11:01:57Z | 2019-11-02T11:02:01Z |
BUG: Categorical.from_codes should not warn on empty codes | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 4d065bd234e0b..20e666bbc7bdb 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -673,7 +673,7 @@ def from_codes(cls, codes, categories=None, ordered=None, dtype=None):
raise Value... | Empty codes should not warn about float codes:
```python
>>> pd.Categorical.from_codes([], ['a', 'b', 'c'])
C:\Users\TP\Miniconda3\envs\pandas-dev\Scripts\ipython:1: FutureWarning: float codes will be disallowed in the future and raise a ValueError
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/29336 | 2019-11-02T09:08:09Z | 2019-11-02T15:36:34Z | 2019-11-02T15:36:34Z | 2019-11-02T16:13:23Z |
BUG: assignment to multiple columns when some column do not exist | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5b6f70be478c2..caf37a77f8216 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -168,6 +168,37 @@ key and type of :class:`Index`. These now consistently raise ``KeyError`` (:iss
.. -------------------... | - [x] closes #13658
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Previous PR: #26534
In particular, the following code now behaves correctly.
```python
import pandas as pd
df = pd.DataFrame({'a': [0, 1, 2]... | https://api.github.com/repos/pandas-dev/pandas/pulls/29334 | 2019-11-02T03:19:42Z | 2020-03-14T20:31:22Z | 2020-03-14T20:31:22Z | 2020-03-24T18:38:01Z |
CLN: type annotations | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index ad4b4bf8b67ee..06ba2a7e0ccfb 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1089,7 +1089,7 @@ def nsmallest(self):
return self.compute("nsmallest")
@staticmethod
- def is_valid_dtype_n_method(dtype):
... | Separating these out from the non-CLN work going on in/around these functions. | https://api.github.com/repos/pandas-dev/pandas/pulls/29333 | 2019-11-02T03:03:05Z | 2019-11-03T16:38:18Z | 2019-11-03T16:38:18Z | 2019-11-03T17:29:37Z |
maybe_upcast_putmask: require other to be a scalar | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 3e92906be706c..304eeac87f64d 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -232,7 +232,7 @@ def trans(x):
return result
-def maybe_upcast_putmask(result, mask, other):
+def maybe_upcast_putmask(result: np.n... | ATM all places where we use `maybe_upcast_putmask` have `other` as a scalar. By making that into a requirement for the function, we can rule out the possibility of passing non-scalar other into `maybe_promote` (xref #29331).
Note: there are some simplifications within maybe_upcast_putmask that this makes possible t... | https://api.github.com/repos/pandas-dev/pandas/pulls/29332 | 2019-11-02T00:56:50Z | 2019-11-02T15:32:05Z | 2019-11-02T15:32:05Z | 2019-11-02T15:34:00Z |
WEB: Fix extension of about/index | 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
| - [✓] closes #29325
- [✓] whatsnew: the about/index.html file is now about/index.md
| https://api.github.com/repos/pandas-dev/pandas/pulls/29329 | 2019-11-01T22:35:44Z | 2019-11-04T21:00:16Z | 2019-11-04T21:00:16Z | 2019-11-04T23:09:41Z |
CLN: fix mypy warnings/errors | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 2a7fd079679a4..19cb71cdc5528 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -790,7 +790,7 @@ def _get_axes(group):
return group.axes
-def _is_indexed_like(obj, axes):
+def _is_indexed_like(obj, axes) -> ... | When I run `mypy pandas` locally I get a handful of complaints. This fixes about half of them. The other half are about `FixedOffset` which IIRC we are handling elsewhere.
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/29327 | 2019-11-01T21:31:05Z | 2019-11-02T14:25:57Z | 2019-11-02T14:25:57Z | 2019-11-02T15:11:56Z |
Pr09 batch 1 | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 430daa4708001..461561a80a7e5 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -219,7 +219,7 @@ def eval(
More backends may be available in the future.
truediv : bool, optional
- ... | fixing PR09 missing period formatting errors in various parameter descriptions.
Subset of #28602, mainly functions with single parameter's missing periods that didn't make sense to open an entire issue for.
I'm periodically updating the main issue for PR09 with the current list of errors remaining as they're re... | https://api.github.com/repos/pandas-dev/pandas/pulls/29324 | 2019-11-01T18:54:28Z | 2019-11-01T23:16:20Z | 2019-11-01T23:16:20Z | 2020-01-06T16:47:26Z |
release gil more | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 6211734706e37..ea05c4afc8fce 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -24,6 +24,7 @@ def diff_2d(ndarray[diff_t, ndim=2] arr,
Py_ssize_t periods,... | cc @mroeschke since a lot of this touches libwindow | https://api.github.com/repos/pandas-dev/pandas/pulls/29322 | 2019-11-01T16:58:09Z | 2019-11-04T14:59:30Z | 2019-11-04T14:59:30Z | 2019-11-04T15:01:32Z |
CLN: Consistent imports - linting rules | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f704a1018c926..07c99b39e83e8 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -120,9 +120,15 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
# Check for imports from pandas.core.common instead of `import pandas.core.common as com`
# Che... | - [x] closes #29272
- [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/29318 | 2019-11-01T08:22:31Z | 2019-11-01T14:50:59Z | 2019-11-01T14:50:59Z | 2019-11-01T14:51:04Z |
fix bugs cause replacer's dtype not respected | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 98d861d999ea9..bfc5cac7339ca 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -466,6 +466,7 @@ Reshaping
- Better error message in :func:`get_dummies` when `columns` isn't a list-like value (:issue:`28... | - [x] closes #26632
- [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/29317 | 2019-11-01T07:40:33Z | 2019-11-20T05:13:38Z | 2019-11-20T05:13:38Z | 2019-11-20T05:26:02Z |
CLN: assorted cleanups | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 30c9af645da22..e3c7fef6f048f 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -379,13 +379,26 @@ ctypedef fused algos_t:
uint8_t
+def _validate_limit(nobs: int, limit=None) -> int:
+ if limit is None:
+ lim = nobs
+... | https://api.github.com/repos/pandas-dev/pandas/pulls/29314 | 2019-11-01T00:06:31Z | 2019-11-02T15:16:18Z | 2019-11-02T15:16:18Z | 2019-11-02T15:30:35Z | |
Backports for 0.25.3 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 6cfda147da312..fde778449751a 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 0.25
.. toctree::
:maxdepth: 2
+ v0.25.3
v0.25.2
v0.25.1
v0.25.0
diff --git a/doc/so... | This includes pieces of #27826 except for the whatsnew note, which appeared in 0.25.1. Not sure if we want to move that here or keep as is, but test and implementation were included here | https://api.github.com/repos/pandas-dev/pandas/pulls/29313 | 2019-10-31T16:03:09Z | 2019-10-31T18:32:02Z | 2019-10-31T18:32:02Z | 2020-01-16T00:33:38Z |
Fix doc typo | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 63344af63470f..430daa4708001 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -119,7 +119,7 @@ def _convert_expression(expr):
"""
Convert an object to an expression.
- Thus function c... | https://api.github.com/repos/pandas-dev/pandas/pulls/29312 | 2019-10-31T14:44:44Z | 2019-10-31T16:03:48Z | 2019-10-31T16:03:48Z | 2019-10-31T18:20:04Z | |
CLN: Consistent pandas.util.testing imports in remaining test suite | diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py
index 0af8ed0ebf8d5..3a8e263ac2a6d 100644
--- a/pandas/tests/api/test_api.py
+++ b/pandas/tests/api/test_api.py
@@ -2,7 +2,7 @@
import pandas as pd
from pandas import api, compat
-from pandas.util import testing as tm
+import pandas.util.testi... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Fyi: When the remaining PRs of this are merged, I'll add another one to add the linting rule - then we ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29307 | 2019-10-31T09:05:02Z | 2019-10-31T13:09:48Z | 2019-10-31T13:09:48Z | 2019-10-31T13:10:40Z |
TST: Test DataFrame rename with ChainMap | diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py
index 017cbea7ec723..11d73fc37105e 100644
--- a/pandas/tests/frame/test_alter_axes.py
+++ b/pandas/tests/frame/test_alter_axes.py
@@ -1,3 +1,4 @@
+from collections import ChainMap
from datetime import datetime, timedelta
import... | Closes https://github.com/pandas-dev/pandas/issues/23859 | https://api.github.com/repos/pandas-dev/pandas/pulls/29306 | 2019-10-31T06:39:04Z | 2019-10-31T08:06:04Z | 2019-10-31T08:06:03Z | 2019-10-31T08:07:43Z |
CLN: tighten Exception catching in indexing.py | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index dd59a99b3df9e..409791c7530a2 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -93,7 +93,6 @@ Compatibility with MultiIndex
:toctree: api/
Index.set_names
- Index.is_lexsorted_for... | get rid of is_lexsorted_for_tuple while we're at it | https://api.github.com/repos/pandas-dev/pandas/pulls/29305 | 2019-10-31T01:00:28Z | 2019-11-03T20:46:23Z | 2019-11-03T20:46:23Z | 2019-11-03T21:42:27Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/frame - part 4 | diff --git a/pandas/tests/frame/test_sort_values_level_as_str.py b/pandas/tests/frame/test_sort_values_level_as_str.py
index 2bcc115bcd09c..b0287d9180859 100644
--- a/pandas/tests/frame/test_sort_values_level_as_str.py
+++ b/pandas/tests/frame/test_sort_values_level_as_str.py
@@ -4,8 +4,7 @@
from pandas.errors import ... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29303 | 2019-10-30T23:25:14Z | 2019-10-31T08:08:12Z | 2019-10-31T08:08:11Z | 2019-10-31T08:11:23Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/frame - part 3 | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index b9ae4fd4abd4c..04d27f4c12c59 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -9,11 +9,7 @@
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, dat... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29302 | 2019-10-30T23:25:10Z | 2019-10-31T13:11:31Z | 2019-10-31T13:11:30Z | 2019-10-31T13:11:35Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/frame - part 2 | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index 5f99d98c705cb..e215c90d2eb04 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -26,11 +26,6 @@
import pandas.core.common as com
from pandas.core.indexing import IndexingError
impor... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29301 | 2019-10-30T23:25:02Z | 2019-10-31T08:01:49Z | 2019-10-31T08:01:49Z | 2019-10-31T08:01:55Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/frame - part1 | diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py
index d53a3d81ab5f8..50b1dec21c549 100644
--- a/pandas/tests/frame/test_api.py
+++ b/pandas/tests/frame/test_api.py
@@ -16,11 +16,6 @@
timedelta_range,
)
import pandas.util.testing as tm
-from pandas.util.testing import (
- assert_al... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29300 | 2019-10-30T23:24:58Z | 2019-10-31T07:59:32Z | 2019-10-31T07:59:32Z | 2019-10-31T07:59:35Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/io | diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py
index 79fc87a62ad08..e9b4a5d4e430d 100644
--- a/pandas/tests/io/excel/test_openpyxl.py
+++ b/pandas/tests/io/excel/test_openpyxl.py
@@ -1,7 +1,7 @@
import pytest
from pandas import DataFrame
-from pandas.util.testing import... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29299 | 2019-10-30T23:23:16Z | 2019-10-31T08:00:59Z | 2019-10-31T08:00:59Z | 2019-10-31T08:01:36Z |
CLN: unnecessary exception catching | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index f505c0479e944..287a7bb0a7dea 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -170,10 +170,6 @@ cdef class Reducer:
PyArray_SETITEM(result, PyArray_ITER_DATA(it), res)
chunk.data = chu... | adding an index to the exception is a nice thought, but ultimately adds more complication than information.
The `except AssertionError`s were needed back when the lines below were `except Exception`, but those have been made more specific, so these are no longer needed | https://api.github.com/repos/pandas-dev/pandas/pulls/29298 | 2019-10-30T22:54:05Z | 2019-11-07T20:48:25Z | 2019-11-07T20:48:25Z | 2019-11-07T21:01:34Z |
0.25.3 whatsnew | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index fe80cc8bb959a..05c7f72882088 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 0.25
.. toctree::
:maxdepth: 2
+ v0.25.3
v0.25.2
v0.25.1
v0.25.0
diff --git a/doc/so... | - [ ] 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/29296 | 2019-10-30T18:42:05Z | 2019-10-31T01:02:01Z | 2019-10-31T01:02:01Z | 2019-10-31T01:02:04Z |
Fix SS06 formatting errors | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f2606ce1b0d61..40efc4c65476a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -310,10 +310,12 @@
class DataFrame(NDFrame):
"""
- Two-dimensional size-mutable, potentially heterogeneous tabular data
- structure with labeled axes ... | More SS06 (Summary should fit in a single line) errors fixed (#29254):
The following docstrings were examined and fixed:
```
pandas.DataFrame
pandas.DataFrame.transform
pandas.DataFrame.corrwith
pandas.DataFrame.describe
pandas.DataFrame.kurt
pandas.DataFrame.kurtosis
pandas.DataFrame.skew
pandas.DataFrame.... | https://api.github.com/repos/pandas-dev/pandas/pulls/29295 | 2019-10-30T16:48:32Z | 2019-10-31T17:04:09Z | 2019-10-31T17:04:09Z | 2020-02-28T19:57:10Z |
troubleshoot CI | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index c82486532530f..058d65b9464ae 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -2929,7 +2929,7 @@ def _next_iter_line(self, row_num):
if self.warn_bad_lines or self.error_bad_lines:
msg = str(e)
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29294 | 2019-10-30T15:38:02Z | 2019-10-30T18:38:20Z | 2019-10-30T18:38:20Z | 2019-10-30T18:47:28Z | |
Implement safe_ea_cast to avoid catching Exception | diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py
index 868118bac6a7b..03d998707c26b 100644
--- a/pandas/core/arrays/__init__.py
+++ b/pandas/core/arrays/__init__.py
@@ -2,6 +2,7 @@
ExtensionArray,
ExtensionOpsMixin,
ExtensionScalarOpsMixin,
+ try_cast_to_ea,
)
from .categ... | instead of having `except Exception` in many places, we have it in one place, with one helpful comment | https://api.github.com/repos/pandas-dev/pandas/pulls/29293 | 2019-10-30T15:33:56Z | 2019-11-02T15:30:11Z | 2019-11-02T15:30:11Z | 2019-11-02T15:32:27Z |
REF/BENCH: tslibs-specific parts of asvs | diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py
index d822646e712ae..a960f43f46acd 100644
--- a/asv_bench/benchmarks/offset.py
+++ b/asv_bench/benchmarks/offset.py
@@ -1,8 +1,5 @@
-from datetime import datetime
import warnings
-import numpy as np
-
import pandas as pd
try:
@@ -54,24 ... | Motivation: asv runs take way too long. One way to get around that is to make it easier to identify\* which benchmarks to run for a given PR. To that extent, if we can identify benchmarks that don't rely on anything outside of tslibs\**, then a PR that doesn't touch that code can skip those benchmarks. We can do the... | https://api.github.com/repos/pandas-dev/pandas/pulls/29292 | 2019-10-30T14:56:55Z | 2019-10-31T17:45:05Z | 2019-10-31T17:45:04Z | 2019-11-01T03:49:58Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/indexing | diff --git a/pandas/tests/indexing/test_categorical.py b/pandas/tests/indexing/test_categorical.py
index 005a9a24dc597..6c81a00cb8f34 100644
--- a/pandas/tests/indexing/test_categorical.py
+++ b/pandas/tests/indexing/test_categorical.py
@@ -15,8 +15,7 @@
Timestamp,
)
from pandas.api.types import CategoricalDtype... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29291 | 2019-10-30T14:31:30Z | 2019-10-31T07:56:20Z | 2019-10-31T07:56:20Z | 2019-10-31T07:56:24Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/indexes | diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py
index d6055b2b39280..1776538a15fc2 100644
--- a/pandas/tests/indexes/datetimes/test_datetime.py
+++ b/pandas/tests/indexes/datetimes/test_datetime.py
@@ -7,7 +7,6 @@
import pandas as pd
from pandas import Da... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29289 | 2019-10-30T14:19:15Z | 2019-10-31T07:55:23Z | 2019-10-31T07:55:23Z | 2019-10-31T07:55:28Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/groupby | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index 0e30b104bf9d2..ad5d2315f7e33 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -17,7 +17,6 @@
qcut,
)
import pandas.util.testing as tm
-from pandas.util.tes... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29287 | 2019-10-30T14:11:57Z | 2019-10-31T07:52:51Z | 2019-10-31T07:52:50Z | 2019-10-31T07:53:08Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/resample | diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py
index 51e309130e45d..dc72800227c0e 100644
--- a/pandas/tests/resample/test_base.py
+++ b/pandas/tests/resample/test_base.py
@@ -11,12 +11,6 @@
from pandas.core.indexes.period import PeriodIndex, period_range
from pandas.core.indexes.... | Part of #29272
Fyi: the changes were created via a script posted in the issue
- [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/29286 | 2019-10-30T14:02:39Z | 2019-10-31T07:48:57Z | 2019-10-31T07:48:57Z | 2019-10-31T07:49:06Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/reshape | diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py
index 305d7b9781634..925eaac45045d 100644
--- a/pandas/tests/reshape/merge/test_join.py
+++ b/pandas/tests/reshape/merge/test_join.py
@@ -8,7 +8,6 @@
from pandas import DataFrame, Index, MultiIndex, Series, concat, merge
fr... | Part of #29272
Fyi: the changes were created via a script posted in the issue
- [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/29285 | 2019-10-30T13:58:01Z | 2019-10-31T07:47:27Z | 2019-10-31T07:47:27Z | 2019-10-31T07:47:36Z |
DOC: Fix SS06 formatting errors in Styler docstrings | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index abf2caf3914e0..545d6a674411a 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -574,6 +574,7 @@ def __deepcopy__(self, memo):
def clear(self):
"""
Reset the styler, removing any previously applied... | Errors fixed (from the list in #29254 ):
pandas.io.formats.style.Styler.from_custom_template
pandas.io.formats.style.Styler.apply
pandas.io.formats.style.Styler.applymap
pandas.io.formats.style.Styler.set_properties
pandas.io.formats.style.Styler.clear
pandas.io.formats.style.Styler.background_gradient
pandas.io... | https://api.github.com/repos/pandas-dev/pandas/pulls/29283 | 2019-10-30T09:39:08Z | 2019-10-31T08:03:54Z | 2019-10-31T08:03:54Z | 2019-10-31T10:05:03Z |
Remove and from typo. | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 5e16cee1de89c..fa1669b1f3343 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -60,7 +60,7 @@ Previously, strings were typically stored in object-dtype NumPy arrays.
.. warning::
- ``StringDtype``... | - [X] closes #29274
- [ ] tests added / passed
- [ ] 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/29281 | 2019-10-30T08:43:01Z | 2019-10-30T11:56:52Z | 2019-10-30T11:56:51Z | 2019-10-30T12:43:49Z |
CLN: algorithms cleanup, de-duplication, typing | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index ca36546b8937a..98a090ef26f2a 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -77,27 +77,27 @@ def _ensure_data(values, dtype=None):
Returns
-------
- (ndarray, pandas_dtype, algo dtype as a string)
-
+ v... | https://api.github.com/repos/pandas-dev/pandas/pulls/29280 | 2019-10-30T03:01:36Z | 2019-10-30T11:50:18Z | 2019-10-30T11:50:18Z | 2019-10-30T14:33:07Z | |
CLN: Consistent pandas.util.testing imports in pandas/tests/util | diff --git a/pandas/tests/util/test_assert_almost_equal.py b/pandas/tests/util/test_assert_almost_equal.py
index 5a677d629e72d..f430e2893ca33 100644
--- a/pandas/tests/util/test_assert_almost_equal.py
+++ b/pandas/tests/util/test_assert_almost_equal.py
@@ -2,7 +2,7 @@
import pytest
from pandas import DataFrame, Ind... | Part of #29272
Fyi: All changes are generated from a script posted in the issue.
- [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/29278 | 2019-10-30T01:52:40Z | 2019-10-30T11:56:23Z | 2019-10-30T11:56:23Z | 2019-10-30T11:56:26Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/series/indexing | diff --git a/pandas/tests/series/indexing/test_alter_index.py b/pandas/tests/series/indexing/test_alter_index.py
index 331747b6cd056..7509d21b8832f 100644
--- a/pandas/tests/series/indexing/test_alter_index.py
+++ b/pandas/tests/series/indexing/test_alter_index.py
@@ -6,7 +6,6 @@
import pandas as pd
from pandas impor... | Part of #29272
Fyi: the changes were created via a script posted in the issue
- [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/29277 | 2019-10-30T01:41:01Z | 2019-10-30T11:55:01Z | 2019-10-30T11:55:01Z | 2019-10-30T11:55:16Z |
CLN: update imports in tests | diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py
index a1de205afc0e2..bbd97291fab3f 100644
--- a/pandas/tests/scalar/period/test_period.py
+++ b/pandas/tests/scalar/period/test_period.py
@@ -15,7 +15,6 @@
import pandas as pd
from pandas import NaT, Period, Timedelta... | Medium-term goal is to separate out tslibs-only parts of these tests to make sure we have sufficient coverage in isolation. | https://api.github.com/repos/pandas-dev/pandas/pulls/29275 | 2019-10-29T22:12:31Z | 2019-10-31T14:24:03Z | 2019-10-31T14:24:03Z | 2019-10-31T14:43:40Z |
CLN: Consistent pandas.util.testing imports in pandas/tests/series | diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py
index c8e1c04f3e3fb..457c976137c11 100644
--- a/pandas/tests/series/test_analytics.py
+++ b/pandas/tests/series/test_analytics.py
@@ -22,12 +22,6 @@
from pandas.core.indexes.datetimes import Timestamp
from pandas.core.indexes.t... | Part of #29272
- [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/29273 | 2019-10-29T21:22:07Z | 2019-10-29T23:12:03Z | 2019-10-29T23:12:03Z | 2019-10-29T23:12:11Z |
BLD: fix some build warnings | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 0ae8094769f46..c3b0a84067f92 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -22,54 +22,55 @@ ctypedef fused out_t:
def diff_2d(ndarray[diff_t, ndim=2] arr,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29271 | 2019-10-29T20:04:21Z | 2019-10-30T11:53:03Z | 2019-10-30T11:53:03Z | 2019-10-30T14:28:45Z | |
Add simple test for GH 28448 | diff --git a/pandas/tests/extension/test_categorical.py b/pandas/tests/extension/test_categorical.py
index e70e4f2fe501b..528053aa8c7f1 100644
--- a/pandas/tests/extension/test_categorical.py
+++ b/pandas/tests/extension/test_categorical.py
@@ -223,6 +223,26 @@ def test_cast_category_to_extension_dtype(self, expected):... | - [x] closes #28448
- [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/29269 | 2019-10-29T16:07:49Z | 2019-10-31T15:56:19Z | 2019-10-31T15:56:19Z | 2019-10-31T16:03:28Z |
Fix SS06 formatting errors | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d7043a8cda7b2..5a248838810e9 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5251,8 +5251,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
def reorder_levels(self, order, axis=0):
"""
- Rearrange index levels using input... | Errors resolved (from list in #29254):
pandas.DataFrame.filter
pandas.DataFrame.first
pandas.DataFrame.idxmax
pandas.DataFrame.idxmin
pandas.DataFrame.last
pandas.DataFrame.reindex
pandas.DataFrame.pivot_table
pandas.DataFrame.reorder_levels
pandas.DataFrame.unstack
pandas.DataFrame.melt
Validated with `py... | https://api.github.com/repos/pandas-dev/pandas/pulls/29263 | 2019-10-29T09:27:58Z | 2019-10-29T16:57:57Z | 2019-10-29T16:57:57Z | 2021-05-09T00:48:47Z |
TST: Test named aggregations with functions | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index aa80c461a00e7..b56da5fba6f80 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -495,6 +495,33 @@ def test_mangled(self):
t... | Closes https://github.com/pandas-dev/pandas/issues/28467
| https://api.github.com/repos/pandas-dev/pandas/pulls/29262 | 2019-10-29T04:48:49Z | 2019-10-29T13:09:06Z | 2019-10-29T13:09:05Z | 2019-10-29T15:44:08Z |
REF: Pre-empt TypeError in groupby | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 707c0c3571eac..8d13c37270d7a 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -140,15 +140,20 @@ def apply(self, f, data, axis=0):
group_keys = self._get_group_keys()
result_values = None
- #... | cc @WillAyd @jreback, should be orthogonal to #29228. | https://api.github.com/repos/pandas-dev/pandas/pulls/29261 | 2019-10-29T02:03:25Z | 2019-11-02T19:18:16Z | 2019-11-02T19:18:16Z | 2019-11-02T21:07:09Z |
Multiindex recurse error fix | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index efea1fc1f525f..6804cc08a0638 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -946,6 +946,7 @@ Reshaping
- :func:`qcut` and :func:`cut` now handle boolean input (:issue:`20303`)
- Fix to ensure all in... | test and 3 line fix for a small bug mentioned in 2 issues (1 closed). test might be expanded, I only checked for the error disappearing
- [x] closes #25760 (and #28956 )
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entr... | https://api.github.com/repos/pandas-dev/pandas/pulls/29260 | 2019-10-28T22:43:15Z | 2020-01-01T20:46:46Z | 2020-01-01T20:46:46Z | 2020-01-01T20:46:53Z |
DOC: use new logo in the sphinx theme as well | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 13d3324caf249..b4f719b6e64b2 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -218,7 +218,7 @@
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
-# html_logo = None
+html_logo = "../../web/pandas/stati... | With this change (https://github.com/pandas-dev/pandas-sphinx-theme/commit/84134e0804325538918324246f449e694466929b) in the theme, that should work.
However, locally, I am running into the problem that sphinx/html doesn't seem to like the svg logo's .. For local testing I added a converted png which works, but just ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29259 | 2019-10-28T21:07:03Z | 2019-10-29T09:00:40Z | 2019-10-29T09:00:40Z | 2019-10-29T09:00:40Z |
CLN: catch specific exceptions in frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2208a0b878144..620e565aa55c8 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1666,11 +1666,12 @@ def from_records(
else:
try:
index_data = [arrays[arr_columns.get_loc(field)] for field in i... | https://api.github.com/repos/pandas-dev/pandas/pulls/29258 | 2019-10-28T20:58:08Z | 2019-10-29T16:08:29Z | 2019-10-29T16:08:29Z | 2019-10-29T16:22:19Z | |
Timedelta index 29236 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 84a4cbbc0a447..7a6f28a86dee0 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1457,15 +1457,16 @@ def mean(self, skipna=True):
Parameters
----------
skipna : ... | - [ ] closes #29236
only remaining docstring errors are for `TimedeltaIndex.mean`
Parameters {*args, **kwargs} not documented
Unknown parameters {skipna}
| https://api.github.com/repos/pandas-dev/pandas/pulls/29257 | 2019-10-28T20:11:15Z | 2019-10-29T03:16:23Z | 2019-10-29T03:16:23Z | 2020-01-06T16:47:22Z |
DOC: Added whatsnew for GH-29174 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f4761c5663c9f..f704a1018c926 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -171,10 +171,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -R --include="*.py" --include="*.pyx" --include="*.rst" -E "\.\. (autosummary|contents|curre... | follow up to #29174 | https://api.github.com/repos/pandas-dev/pandas/pulls/29256 | 2019-10-28T19:44:16Z | 2019-10-30T07:34:30Z | 2019-10-30T07:34:29Z | 2020-01-16T00:33:41Z |
Fix SS06 formatting errors | diff --git a/pandas/core/arrays/sparse/accessor.py b/pandas/core/arrays/sparse/accessor.py
index 57fd6d284af31..595af6dc08733 100644
--- a/pandas/core/arrays/sparse/accessor.py
+++ b/pandas/core/arrays/sparse/accessor.py
@@ -308,8 +308,7 @@ def to_coo(self):
@property
def density(self) -> float:
"""
... | SS06 (Summary should fit in a single line) errors fixed (#29254) for the following:
```
pandas.DataFrame.slice_shift
pandas.DataFrame.to_period
pandas.DataFrame.plot
pandas.DataFrame.sparse.density
pandas.DataFrame.style
pandas.Series.as_blocks
pandas.Series.ix
pandas.Series.ptp
pandas.DataFrame.as... | https://api.github.com/repos/pandas-dev/pandas/pulls/29255 | 2019-10-28T17:10:48Z | 2019-10-29T03:14:34Z | 2019-10-29T03:14:34Z | 2019-10-30T16:17:55Z |
CLN: remove algorithms.match | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8f72245b1f4eb..5139fdfeeb916 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -226,9 +226,8 @@ def _get_hashtable_algo(values):
-------
htable : HashTable subclass
values : ndarray
- dtype : str or dtype
... | Appears to be dead code, allows for simplification of _get_hashtable_algo. | https://api.github.com/repos/pandas-dev/pandas/pulls/29249 | 2019-10-27T23:02:56Z | 2019-10-28T18:40:57Z | 2019-10-28T18:40:57Z | 2020-02-09T17:05:17Z |
REF: Simplify _cython_functions lookup | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index b4300c162156f..49a335218db96 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -937,7 +937,7 @@ def group_last(rank_t[:, :] out,
def group_nth(rank_t[:, :] out,
int64_t[:] counts,
rank_t[:, :] val... | The remaining two non-trivial cases are ("aggregate", "first") and ("aggregate", "median"). The "first" case I think is straightforward. The "median" case I'm reticent to change because it isn't clear to me why it is a dict at all (cc @WillAyd if you have any ideas) | https://api.github.com/repos/pandas-dev/pandas/pulls/29246 | 2019-10-27T18:05:54Z | 2019-10-31T17:10:31Z | 2019-10-31T17:10:31Z | 2019-10-31T17:13:44Z |
ENH: Styler.background_gradient to accept vmin vmax and dtype Int64 | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index fa1669b1f3343..32602a1ccd24d 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -112,6 +112,7 @@ Other enhancements
- :meth:`read_stata` can read Stata 119 dta files. (:issue:`28250`)
- Added ``encoding... | For `vmin` `vmax` use the same implementation as `Styler.bar`
For dtype `Int64` issue, deprecated `.values` and use `.to_numpy` instead
Here explicitly assign the dtype to float since we are doing normalize
- [x] closes #12145 and #28869
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git d... | https://api.github.com/repos/pandas-dev/pandas/pulls/29245 | 2019-10-27T18:01:55Z | 2019-11-03T12:59:56Z | 2019-11-03T12:59:56Z | 2019-11-03T13:00:00Z |
Follow up PR: #28097 Simplify branch statement | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index f94d012b3aa03..ea4d95f848ce8 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1266,10 +1266,10 @@ def _get_grouper_for_level(self, mapper, level):
# Remove unobserved levels from level_index
... |
xref #28097
This is follow up pr. eliminate branch statement. "grouper" variable is assigned when handle NAs. | https://api.github.com/repos/pandas-dev/pandas/pulls/29243 | 2019-10-27T17:15:37Z | 2020-01-26T01:35:52Z | 2020-01-26T01:35:52Z | 2020-02-05T08:47:25Z |
BENCH: Improve perf of rolling.Apply.time_rolling | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 493f96d46d5e7..7a72622fd5fe3 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -28,15 +28,15 @@ def peakmem_rolling(self, constructor, window, dtype, method):
class Apply:
params = (
[... | Per discussion in #29165, this PR significantly reduces the run time of the `rolling.Apply.time_rolling` benchmark from 8 minutes minimum.
```
$ asv dev -b rolling.Apply.time_rolling
· Discovering benchmarks
· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)
[ 0.00%] ·· Benchmarking existing... | https://api.github.com/repos/pandas-dev/pandas/pulls/29239 | 2019-10-26T21:06:21Z | 2019-10-28T18:40:13Z | 2019-10-28T18:40:13Z | 2019-10-28T19:36:39Z |
Replace _has_complex_internals #29227 | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 6302499b6d153..94b7c59b93563 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -13,7 +13,7 @@
is_list_like,
is_sequence,
)
-from pandas.core.dtypes.generic import ABCSeries
+from pandas.core.dtypes.generic import ABCMultiIndex, ABCS... | closes #29227
Hi, it my first issues within hacktoberfest.
I replaced _has_complex_internals with isinstance/
Is it possible to import ABCMultiIndex?
| https://api.github.com/repos/pandas-dev/pandas/pulls/29237 | 2019-10-26T13:49:24Z | 2019-11-14T18:06:09Z | 2019-11-14T18:06:08Z | 2019-11-14T18:06:17Z |
CLN: assorted cleanups | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index b2ffbb3ecb4f2..6efe5e90f522f 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -146,7 +146,8 @@ def group_cumprod_float64(float64_t[:, :] out,
int ngroups,
bint is_datetimel... | https://api.github.com/repos/pandas-dev/pandas/pulls/29232 | 2019-10-26T01:21:52Z | 2019-10-29T16:06:50Z | 2019-10-29T16:06:50Z | 2020-04-05T17:44:57Z | |
Refresh Aptitude Package Lists in CI | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 62c46b6970969..6fb8241d6d600 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -33,6 +33,7 @@ jobs:
condition: true
- script: |
+ sudo apt-get update
sudo apt-get install -y libc6-dev-i386
ci/setup_env.sh
displayN... | This might fix the intermittent build failures by updating the package lists before trying to install anything via aptitude | https://api.github.com/repos/pandas-dev/pandas/pulls/29230 | 2019-10-25T20:41:52Z | 2019-10-25T21:25:54Z | 2019-10-25T21:25:54Z | 2019-10-25T21:25:58Z |
API/DOC: an ExtensionDtype.__from_arrow__ method to convert pyarrow.Array into ExtensionArray | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index 59ef17e3d121f..cd5064522bf4a 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -63,6 +63,18 @@ class property**.
Added ``_metadata``, ``__hash__``, and changed the default definition
of ``__eq__``.
+ ... | xref the discussion in https://github.com/pandas-dev/pandas/issues/20612, and a companion to my PR in Arrow: https://github.com/apache/arrow/pull/5512
Summary: to support ExtensionArrays in the conversion of an arrow table into a pandas DataFrame, we need some way to convert pyarrow Arrays into pandas ExtensionArray... | https://api.github.com/repos/pandas-dev/pandas/pulls/29229 | 2019-10-25T19:21:18Z | 2019-11-08T14:05:49Z | 2019-11-08T14:05:49Z | 2019-11-08T14:05:54Z |
CLN: prevent libreduction TypeError | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 647eb5a2daa28..f4c3ac970a3ca 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1104,6 +1104,7 @@ def _aggregate_item_by_item(self, func, *args, **kwargs):
# raised in _aggregate_nam... | cc @jreback @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/29228 | 2019-10-25T18:03:35Z | 2019-10-29T16:09:38Z | 2019-10-29T16:09:37Z | 2019-10-29T16:18:40Z |
Remove TestData in frame tests in multiple files - part 3 | diff --git a/pandas/tests/frame/common.py b/pandas/tests/frame/common.py
index 281028b971d1e..463a140972ab5 100644
--- a/pandas/tests/frame/common.py
+++ b/pandas/tests/frame/common.py
@@ -1,127 +1,3 @@
-import numpy as np
-
-from pandas.util._decorators import cache_readonly
-
-import pandas as pd
-import pandas.util.... | Part of #22471
This is removing/replacing TestData usage in the following files:
* `test_query_eval.py`
* `test_indexing.py`
Also removes `TestData` from `pandas/tests/frame/common.py`
--------
- [x] closes #22471
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/ma... | https://api.github.com/repos/pandas-dev/pandas/pulls/29226 | 2019-10-25T16:10:22Z | 2019-10-29T16:16:45Z | 2019-10-29T16:16:44Z | 2019-10-29T16:16:52Z |
TST: Add test for nested JSON normalization | diff --git a/pandas/tests/io/json/test_normalize.py b/pandas/tests/io/json/test_normalize.py
index 3ceddfc3c1db4..aa4f522ef45ba 100644
--- a/pandas/tests/io/json/test_normalize.py
+++ b/pandas/tests/io/json/test_normalize.py
@@ -457,6 +457,14 @@ def test_max_level_with_records_path(self, max_level, expected):
... | Closes https://github.com/pandas-dev/pandas/issues/21537 | https://api.github.com/repos/pandas-dev/pandas/pulls/29225 | 2019-10-25T15:47:28Z | 2019-10-25T16:54:35Z | 2019-10-25T16:54:35Z | 2019-10-25T17:25:54Z |
Remove TestData in frame tests in multiple files - part2 | diff --git a/pandas/tests/frame/test_reshape.py b/pandas/tests/frame/test_reshape.py
index eb654be3f12e6..5ce811712b989 100644
--- a/pandas/tests/frame/test_reshape.py
+++ b/pandas/tests/frame/test_reshape.py
@@ -6,12 +6,11 @@
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Period, Series, Time... | Part of #22471
This is removing/replacing TestData usage in the following files:
* `test_reshape.py`
* `test_sorting.py`
* `test_subclass.py`
* `test_timeseries.py`
* `test_to_csv.py`
--------
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | fla... | https://api.github.com/repos/pandas-dev/pandas/pulls/29222 | 2019-10-25T12:01:46Z | 2019-10-25T12:41:36Z | 2019-10-25T12:41:36Z | 2019-10-25T12:41:39Z |
Remove TestData in series tests indexing | diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py
index 54c931cd60d20..ba7e3c9d38861 100644
--- a/pandas/tests/indexes/datetimes/test_date_range.py
+++ b/pandas/tests/indexes/datetimes/test_date_range.py
@@ -14,7 +14,6 @@
import pandas as pd
from pand... | Part of #22550
* Replaced test_data fixture in `pandas/tests/series/indexing/` with more granular fixtures
* Removed pandas/tests/series/indexing/conftest.py as the test_data fixture is not needed anymore
* Removed pandas/tests/series/common.py as TestData isn't used anymore
- [x] closes #22550
- [x] tests add... | https://api.github.com/repos/pandas-dev/pandas/pulls/29220 | 2019-10-25T09:27:14Z | 2019-10-29T16:18:24Z | 2019-10-29T16:18:24Z | 2019-10-29T16:18:29Z |
ENH: Show column name in assert_frame_equal | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 8febcfc574d75..2050a18cb48bf 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1287,7 +1287,7 @@ def assert_frame_equal(
>>> assert_frame_equal(df1, df2)
Traceback (most recent call last):
...
- AssertionError: Attributes of DataFra... | The output of the AssertionError raised by assert_frame_equal is changed:
- old: `AssertionError: Attributes of DataFrame.iloc[:, 1] are different`
- new: `AssertionError: Attributes of DataFrame.loc[:, 'b'] are different`
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29218 | 2019-10-25T07:17:34Z | 2020-01-07T07:05:19Z | 2020-01-07T07:05:19Z | 2020-01-09T12:59:57Z |
Changing logo in README and removing old logo | diff --git a/README.md b/README.md
index 7786eeb0ec5c7..c299241722b7e 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<div align="center">
- <img src="https://github.com/pandas-dev/pandas/blob/master/doc/logo/pandas_logo.png"><br>
+ <img src="https://dev.pandas.io/static/img/pandas.svg"><br>
</div>
------... | Not sure if anyone prefers to publish the new logo when we release pandas 1.0 and the new website is life. I don't have a strong preference, but I'd say let's change the logo now if nobody cares, so one thing less to think about. I'll change the twitter logo and tweet about it once this is merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/29215 | 2019-10-25T00:31:54Z | 2019-10-25T16:18:35Z | 2019-10-25T16:18:35Z | 2019-10-25T16:18:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.