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 |
|---|---|---|---|---|---|---|---|
BUG: Index(categorical, dtype=object) not returning object dtype | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 7449c62a5ad31..a4c991dcc166c 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -103,7 +103,7 @@ Bug fixes
Categorical
^^^^^^^^^^^
-
+- Bug when passing categorical data to :class:`Index` constructor ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In master we get a `CategoricalIndex` back.
Fixing this turns out to be pre-requisite to fixing a bug in `CategoricalDtype._from_values_or_dtype`,... | https://api.github.com/repos/pandas-dev/pandas/pulls/32167 | 2020-02-22T00:21:01Z | 2020-02-23T15:50:38Z | 2020-02-23T15:50:38Z | 2020-02-23T17:12:53Z |
REGR: preserve freq in DTI/TDI outer join | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index f491774991090..e91bab0925bf7 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression where :func:`read_pickle` raised a ``UnicodeDecodeError`` when reading ... | - [x] closes #32157
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
also just a nice cleanup, hoping to get this into ExtensionIndex before long | https://api.github.com/repos/pandas-dev/pandas/pulls/32166 | 2020-02-22T00:09:16Z | 2020-02-26T12:36:36Z | 2020-02-26T12:36:36Z | 2020-02-27T15:34:46Z |
CLN: Fix exception causes in datetimelike.py | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index e39d1dc03adf5..ce1d01e139540 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -775,8 +775,10 @@ def searchsorted(self, value, side="left", sorter=None):
if isinstance(value, str... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32164 | 2020-02-21T21:21:34Z | 2020-02-25T01:52:33Z | 2020-02-25T01:52:33Z | 2020-02-25T01:52:38Z |
Error on C Warnings | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index 811025a4b5764..11eecc46b335d 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -193,7 +193,7 @@ cdef class StringVector:
append_data_string(self... | Using Clang and latest numpy locally looks like we can use `-Werror`. WIP as I think there may still be things with gcc and older numpy versions to sort out
Note that there is also a warning emitted by cython for unreachable code in groupby, but -Werror wouldn't affect the "cythonization" step.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32163 | 2020-02-21T20:39:06Z | 2020-03-19T21:29:19Z | 2020-03-19T21:29:19Z | 2020-03-19T21:31:19Z |
Backport PR #32155 on branch 1.0.x (TST: add test for DataFrame.reindex on nearest tz-aware DatetimeIndex) | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index bb81a1cd64541..4418dee66c092 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -1618,6 +1618,14 @@ def test_reindex_nearest_tz(self, tz_aware_fixtu... | xref #32155
| https://api.github.com/repos/pandas-dev/pandas/pulls/32161 | 2020-02-21T19:45:00Z | 2020-02-21T21:13:22Z | 2020-02-21T21:13:22Z | 2020-02-29T13:37:02Z |
Backport PR #32152 on branch 1.0.x (TST: add test for get_loc on tz-aware DatetimeIndex) | diff --git a/pandas/tests/indexes/datetimes/test_indexing.py b/pandas/tests/indexes/datetimes/test_indexing.py
index 4c600e510790a..7a396f8148f9f 100644
--- a/pandas/tests/indexes/datetimes/test_indexing.py
+++ b/pandas/tests/indexes/datetimes/test_indexing.py
@@ -343,6 +343,19 @@ def test_take_fill_value_with_timezone... | xref #32152
@jbrockmendel with tests moving around, is this OK for the backport. i.e. in the same place as on master. | https://api.github.com/repos/pandas-dev/pandas/pulls/32160 | 2020-02-21T19:37:32Z | 2020-02-21T21:12:58Z | 2020-02-21T21:12:58Z | 2020-02-29T13:34:06Z |
Backport PR #32121 on branch 1.0.x (REG: dont call func on empty input) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index da79f651b63a9..910389f648b60 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`rolling(..).corr() <pandas.core.window.Rolling.corr>` when us... | Backport PR #32121: REG: dont call func on empty input | https://api.github.com/repos/pandas-dev/pandas/pulls/32159 | 2020-02-21T18:38:44Z | 2020-02-21T19:25:50Z | 2020-02-21T19:25:50Z | 2020-02-21T19:25:50Z |
TST: Fixed bare pytest.raises in test_window.py | diff --git a/pandas/tests/window/test_window.py b/pandas/tests/window/test_window.py
index cc29ab4f2cd62..41b9d9e84f27e 100644
--- a/pandas/tests/window/test_window.py
+++ b/pandas/tests/window/test_window.py
@@ -29,14 +29,15 @@ def test_constructor(self, which):
c(win_type="boxcar", window=2, min_periods=1, c... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32158 | 2020-02-21T16:52:19Z | 2020-02-23T15:16:22Z | 2020-02-23T15:16:22Z | 2020-02-23T19:29:02Z |
TST: add test for DataFrame.reindex on nearest tz-aware DatetimeIndex | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index fcf0a41e0f74e..636cca0df9d4e 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -1623,6 +1623,14 @@ def test_reindex_nearest_tz(self, tz_aware_fixtu... | - [ ] closes #31964
- [ ] 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/32155 | 2020-02-21T14:56:29Z | 2020-02-21T18:36:10Z | 2020-02-21T18:36:09Z | 2020-02-21T19:40:51Z |
Backport PR #32055 on branch 1.0.x (REGR: read_pickle fallback to encoding=latin_1 upon a UnicodeDecodeError) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..57ed6adf667c8 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | Backport PR #32055: REGR: read_pickle fallback to encoding=latin_1 upon a UnicodeDecodeError | https://api.github.com/repos/pandas-dev/pandas/pulls/32154 | 2020-02-21T14:52:34Z | 2020-02-21T16:07:24Z | 2020-02-21T16:07:24Z | 2020-02-21T16:07:24Z |
Backport PR #32126 on branch 1.0.x (BUG: Fix for convert_dtypes with mix of int and string) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..e0d2de634bf3d 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -45,6 +45,7 @@ Bug fixes
- Fix bug in :meth:`DataFrame.convert_dtypes` for columns that were already using the ``"string"... | Backport PR #32126: BUG: Fix for convert_dtypes with mix of int and string | https://api.github.com/repos/pandas-dev/pandas/pulls/32153 | 2020-02-21T14:49:02Z | 2020-02-21T16:07:01Z | 2020-02-21T16:07:01Z | 2020-02-21T16:07:01Z |
TST: add test for get_loc on tz-aware DatetimeIndex | diff --git a/pandas/tests/indexes/datetimes/test_indexing.py b/pandas/tests/indexes/datetimes/test_indexing.py
index c358e72538788..ceab670fb5041 100644
--- a/pandas/tests/indexes/datetimes/test_indexing.py
+++ b/pandas/tests/indexes/datetimes/test_indexing.py
@@ -423,6 +423,17 @@ def test_get_loc(self):
with ... | - [ ] closes #32140
- [ ] 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/32152 | 2020-02-21T14:32:40Z | 2020-02-21T18:35:15Z | 2020-02-21T18:35:15Z | 2020-02-21T19:39:31Z |
DOC: move whatsnew to sync master with Backport PR #31511 | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..c9717fa5998c7 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -29,6 +29,10 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+**Datetimelike**
+
+- Bug in :meth:`DataFrame.reindex` and :meth:... | xref #32150 | https://api.github.com/repos/pandas-dev/pandas/pulls/32151 | 2020-02-21T14:10:39Z | 2020-02-21T19:06:46Z | 2020-02-21T19:06:45Z | 2020-02-21T19:27:42Z |
Backport PR #31511 on branch 1.0.x (BUG: fix reindexing with a tz-awre index and method='nearest') | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..c9717fa5998c7 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -29,6 +29,10 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+**Datetimelike**
+
+- Bug in :meth:`DataFrame.reindex` and :meth:... | with whatsnew moved to doc/source/whatsnew/v1.0.2.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/32150 | 2020-02-21T14:07:13Z | 2020-02-21T19:06:21Z | 2020-02-21T19:06:21Z | 2020-02-21T19:28:49Z |
Backport PR #32148 on branch 1.0.x (CI: skip geopandas downstream test (Anaconda installation issue)) | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index ee006233c4c1b..d4d7803a724e2 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -107,6 +107,7 @@ def test_pandas_datareader():
# importing from pandas, Cython import warning
@pytest.mark.filterwar... | Backport PR #32148: CI: skip geopandas downstream test (Anaconda installation issue) | https://api.github.com/repos/pandas-dev/pandas/pulls/32149 | 2020-02-21T13:12:05Z | 2020-02-21T13:47:28Z | 2020-02-21T13:47:28Z | 2020-02-21T13:47:28Z |
CI: skip geopandas downstream test (Anaconda installation issue) | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index 122ef1f47968e..b2a85b539fd86 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -107,6 +107,7 @@ def test_pandas_datareader():
# importing from pandas, Cython import warning
@pytest.mark.filterwar... | xref #32144 | https://api.github.com/repos/pandas-dev/pandas/pulls/32148 | 2020-02-21T12:20:08Z | 2020-02-21T13:11:35Z | 2020-02-21T13:11:35Z | 2020-02-21T13:12:11Z |
Add ecosystem link to pandas-tfrecords project | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index fb06ee122ae88..b7e53b84f0e02 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -56,6 +56,11 @@ joining paths, replacing file extensions, and checking if files exist are also a
Statistics and machine learning
-----------------... | to understand tfrecords format requires quite much time and finally its details are not so needed in daily work with data. [pandas-tfrecords](https://pypi.org/project/pandas-tfrecords/) hides low-level details and provides easy human-usable api to convert pandas to tfrecords and restore back. | https://api.github.com/repos/pandas-dev/pandas/pulls/32143 | 2020-02-21T08:16:09Z | 2020-02-26T05:50:36Z | 2020-02-26T05:50:36Z | 2020-02-26T05:50:43Z |
Import OptionError in pandas.errors | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 13827e8fc4c33..9e40c28db004b 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -43,7 +43,7 @@ Other enhancements
- :class:`Styler` may now render CSS more efficiently where multiple cells have the sam... | - [x] closes #27553
- [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/32142 | 2020-02-21T07:10:00Z | 2020-02-24T16:32:47Z | 2020-02-24T16:32:46Z | 2020-02-24T16:32:50Z |
REF: standardize CategoricalIndex._shallow_copy usage | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index adb2ed9211bfe..caa6a9a93141f 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -264,10 +264,14 @@ def _simple_new(cls, values, name=None, dtype=None):
# -----------------------------------------... | The dtype keyword is akward, so this removes the one usage.
In turn this will allow us to simplify `_simple_new` and tighten up what it expects. Saved for separate PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/32141 | 2020-02-21T02:42:26Z | 2020-02-22T16:12:43Z | 2020-02-22T16:12:43Z | 2020-02-22T16:34:04Z |
TST: show_versions test with unmerged commits | diff --git a/pandas/tests/util/test_show_versions.py b/pandas/tests/util/test_show_versions.py
index 0d2c81c4ea6c7..e36ea662fac8b 100644
--- a/pandas/tests/util/test_show_versions.py
+++ b/pandas/tests/util/test_show_versions.py
@@ -1,8 +1,26 @@
import re
+import pytest
+
import pandas as pd
+@pytest.mark.filte... | - [x] closes #32120
- [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/32139 | 2020-02-20T22:19:56Z | 2020-02-26T01:37:31Z | 2020-02-26T01:37:30Z | 2020-02-26T01:41:32Z |
CLN: make tm.N, tm.K private | diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst
index bbec9a770477d..58733b852e3a1 100644
--- a/doc/source/user_guide/reshaping.rst
+++ b/doc/source/user_guide/reshaping.rst
@@ -17,7 +17,6 @@ Reshaping by pivoting DataFrame objects
:suppress:
import pandas._testing as tm... | AFAICT this gets rid of the last two places where we set `tm.N` externally. With those gone, this privatizes these variables in the hopes of not falling back into that pattern. | https://api.github.com/repos/pandas-dev/pandas/pulls/32138 | 2020-02-20T21:47:02Z | 2020-02-21T18:34:11Z | 2020-02-21T18:34:11Z | 2020-02-21T18:34:34Z |
CLN: remove unused tm.isiterable | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 7ebf2c282f8c9..c7c2e315812ac 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -806,10 +806,6 @@ def assert_is_valid_plot_return_object(objs):
assert isinstance(objs, (plt.Artist, tuple, dict)), msg
-def isiterable(obj):
- return hasat... | https://api.github.com/repos/pandas-dev/pandas/pulls/32137 | 2020-02-20T21:16:20Z | 2020-02-21T02:15:04Z | 2020-02-21T02:15:04Z | 2020-02-21T02:15:08Z | |
used f-strings in docs | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index bd19b35e8d9e8..c34247a49335d 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3815,7 +3815,7 @@ The right-hand side of the sub-expression (after a comparison operator) can be:
.. code-block:: ipython
... | - [x] xref #32039
- [ ] 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/32133 | 2020-02-20T17:39:09Z | 2020-02-22T16:33:47Z | 2020-02-22T16:33:47Z | 2020-02-22T16:33:51Z |
CLN: NDFrame.__init__ unnecessary code | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9fe1ec7b792c8..fdb8aad680115 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -514,7 +514,7 @@ def __init__(
else:
raise ValueError("DataFrame constructor not properly called!")
- NDFrame.__init__(self, ... | Make methods into classmethods where feasible, annotate in a couple of places.
Removes nonsense test (constructs an invalid NDFrame)
Preparatory for making a potential fastpath _from_mgr constructor.
`attrs` is never passed. Is there a plan to do so @TomAugspurger ? | https://api.github.com/repos/pandas-dev/pandas/pulls/32131 | 2020-02-20T17:12:27Z | 2020-02-22T16:10:24Z | 2020-02-22T16:10:24Z | 2020-02-22T16:39:02Z |
PERF: IntegerIndex._shallow_copy (and by extension, indexing) | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 877b3d1d2ba30..367870f0ee467 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -103,11 +103,16 @@ def _maybe_cast_slice_bound(self, label, side, kind):
return self._maybe_cast_indexer(label)
... | ```
In [2]: idx = pd.Index(range(1000)).insert(-1, 1)
In [3]: %timeit idx[:5] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32130 | 2020-02-20T16:32:29Z | 2020-02-22T16:09:15Z | 2020-02-22T16:09:14Z | 2020-02-22T16:40:45Z |
CLN: auto-inherit specified Index method docstrings | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ae2387f0fd7b4..2d5a642b83018 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5439,6 +5439,32 @@ def shape(self):
# overridden in MultiIndex.shape to avoid materializing the values
return self._v... | When working on indexing methods, I find myself grepping for the names, and having the extra Appender lines is a small-but-repeated nuisance.
In py36+ we can use `__init_subclass_` to automatically inherit docstrings without needing to repeat these Appenders.
This PR only does this for a few methods as a proof of... | https://api.github.com/repos/pandas-dev/pandas/pulls/32128 | 2020-02-20T15:23:09Z | 2020-03-13T22:37:15Z | null | 2021-03-07T16:55:45Z |
BUG: Fix for convert_dtypes with mix of int and string | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..e0d2de634bf3d 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -45,6 +45,7 @@ Bug fixes
- Fix bug in :meth:`DataFrame.convert_dtypes` for columns that were already using the ``"string"... | - [x] closes #32117
- [x] tests added / passed
- added new cases for `test_convert_dtypes`
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- placed in v1.0.2 whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/32126 | 2020-02-20T13:52:45Z | 2020-02-21T14:48:51Z | 2020-02-21T14:48:51Z | 2023-02-13T20:50:48Z |
BUG: Avoid ambiguous condition in GroupBy.first / last | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index affe019d0ac86..82d603cfb8c15 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -76,6 +76,7 @@ Bug fixes
- Fix bug in :meth:`DataFrame.convert_dtypes` for columns that were already using the ``"string"... | - [x] closes #32123
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This comparison `val == val` happens in a lot of these groupby operations but only seems to raise here in the presence of `NA`. Are we just always /... | https://api.github.com/repos/pandas-dev/pandas/pulls/32124 | 2020-02-20T01:37:52Z | 2020-02-23T14:59:00Z | 2020-02-23T14:59:00Z | 2020-02-23T15:07:44Z |
CLN: Replace old string formatting syntax with f-strings for scripts/validate_docstrings.py | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index d43086756769a..051bd5b9761ae 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -243,14 +243,12 @@ def pandas_validate(func_name: str):
"EX03",
error_code=err.err... |
- [ ] xref #29547
- [ ] 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/32122 | 2020-02-19T22:08:21Z | 2020-02-20T01:06:00Z | 2020-02-20T01:06:00Z | 2020-02-20T01:06:05Z |
REG: dont call func on empty input | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..88a343664f304 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in :meth:`pandas.core.groupby.RollingGroupby.apply` where the ``raw`` p... | - [x] closes #31760
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Could use confirmation from OP that this does in fact close #31760. | https://api.github.com/repos/pandas-dev/pandas/pulls/32121 | 2020-02-19T21:35:24Z | 2020-02-21T18:38:13Z | 2020-02-21T18:38:13Z | 2020-02-21T18:40:03Z |
REF: make pd._testing directory, split out asserters | diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst
index bbec9a770477d..58733b852e3a1 100644
--- a/doc/source/user_guide/reshaping.rst
+++ b/doc/source/user_guide/reshaping.rst
@@ -17,7 +17,6 @@ Reshaping by pivoting DataFrame objects
:suppress:
import pandas._testing as tm... | Scattered throughout the tests we have other helpers like assert_block_equal that probably belong in `tm`. Before trying to collect all of these, it makes sense to split this already-cumbersome module. | https://api.github.com/repos/pandas-dev/pandas/pulls/32118 | 2020-02-19T20:37:12Z | 2020-02-21T02:15:45Z | null | 2021-01-04T06:20:41Z |
REF: collect arithmetic benchmarks | diff --git a/asv_bench/benchmarks/binary_ops.py b/asv_bench/benchmarks/arithmetic.py
similarity index 51%
rename from asv_bench/benchmarks/binary_ops.py
rename to asv_bench/benchmarks/arithmetic.py
index 64e067d25a454..d1e94f62967f4 100644
--- a/asv_bench/benchmarks/binary_ops.py
+++ b/asv_bench/benchmarks/arithmetic.p... | ATM these are scattered, making it tough to a) run just arithmetic-relevant benchmarks and b) determine what we have good benchmark coverage for.
This collects the scattered benchmarks in one place, cleaning up and fleshing these out is for a separate pass.
I also intend to do something analogous for indexing ben... | https://api.github.com/repos/pandas-dev/pandas/pulls/32116 | 2020-02-19T18:53:09Z | 2020-02-22T16:06:41Z | 2020-02-22T16:06:41Z | 2020-02-22T16:08:29Z |
add test for "Allow definition of `pd.CategoricalDtype` with a specific `categories.dtype`" | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 8aaebe89871b6..70e677411b4a9 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -175,6 +175,8 @@ class CategoricalDtype(PandasExtensionDtype, ExtensionDtype):
----------
categories : sequence, optional
... | - [x] closes #32096
- [x] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/32115 | 2020-02-19T17:17:23Z | 2020-03-02T15:30:18Z | 2020-03-02T15:30:18Z | 2020-03-02T15:30:34Z |
REF/TST: implement test_interpolate for Series | diff --git a/pandas/tests/series/methods/test_interpolate.py b/pandas/tests/series/methods/test_interpolate.py
new file mode 100644
index 0000000000000..6844225a81a8f
--- /dev/null
+++ b/pandas/tests/series/methods/test_interpolate.py
@@ -0,0 +1,673 @@
+import numpy as np
+import pytest
+
+import pandas.util._test_deco... | https://api.github.com/repos/pandas-dev/pandas/pulls/32112 | 2020-02-19T16:34:58Z | 2020-02-22T16:01:54Z | 2020-02-22T16:01:54Z | 2020-02-22T16:49:18Z | |
REF: misplaced Series.combine_first tests | diff --git a/pandas/tests/series/methods/test_combine_first.py b/pandas/tests/series/methods/test_combine_first.py
index aed6425e50117..1ee55fbe39513 100644
--- a/pandas/tests/series/methods/test_combine_first.py
+++ b/pandas/tests/series/methods/test_combine_first.py
@@ -1,6 +1,9 @@
+from datetime import datetime
+
i... | https://api.github.com/repos/pandas-dev/pandas/pulls/32111 | 2020-02-19T16:18:36Z | 2020-02-20T12:44:52Z | 2020-02-20T12:44:52Z | 2020-02-20T15:00:13Z | |
TST: method-specific files for DataFrame assign, interpolate | diff --git a/pandas/tests/frame/methods/test_assign.py b/pandas/tests/frame/methods/test_assign.py
new file mode 100644
index 0000000000000..63b9f031de188
--- /dev/null
+++ b/pandas/tests/frame/methods/test_assign.py
@@ -0,0 +1,82 @@
+import pytest
+
+from pandas import DataFrame
+import pandas._testing as tm
+
+
+clas... | https://api.github.com/repos/pandas-dev/pandas/pulls/32110 | 2020-02-19T16:05:16Z | 2020-02-22T16:03:21Z | 2020-02-22T16:03:21Z | 2020-02-22T16:48:55Z | |
DataFrame: Ctor from non abc.Iterable 2-d array like | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9fe1ec7b792c8..5afd527113fa6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -511,6 +511,10 @@ def __init__(
mgr = init_ndarray(
values, index, columns, dtype=values.dtype, copy=False
)
... | In case we pass a 2d array like that do not use __iter__ but the
__getitem__ interface, it falls outside the collection.abc.Iterable case
and throw.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entr... | https://api.github.com/repos/pandas-dev/pandas/pulls/32109 | 2020-02-19T15:56:14Z | 2020-02-26T07:34:02Z | null | 2020-02-26T17:43:30Z |
BUG: Allow addition of Timedelta to Timestamp interval | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index cd1cb0b64f74a..8a05d0d36cd2f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -525,6 +525,7 @@ Indexing
- Bug in :class:`Index` constructor where an unhelpful error message was raised for ``numpy`` sca... | - [x] closes #32023
- [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/32107 | 2020-02-19T14:53:31Z | 2020-04-25T23:58:52Z | 2020-04-25T23:58:52Z | 2020-04-26T00:06:54Z |
Added in a error message | diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py
index b1b5a9482e34f..f42b16cf18f20 100644
--- a/pandas/tests/arrays/test_array.py
+++ b/pandas/tests/arrays/test_array.py
@@ -291,7 +291,7 @@ class DecimalArray2(DecimalArray):
@classmethod
def _from_sequence(cls, scalars, dtyp... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Added in an error message
| https://api.github.com/repos/pandas-dev/pandas/pulls/32105 | 2020-02-19T14:01:05Z | 2020-02-27T19:31:58Z | 2020-02-27T19:31:57Z | 2020-02-27T21:00:45Z |
BUG: Pickle NA objects | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1b6098e6b6ac1..808e6ae709ce9 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -74,6 +74,7 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | According to
https://docs.python.org/3/library/pickle.html#object.__reduce__,
> If a string is returned, the string should be interpreted as the name
> of a global variable. It should be the object’s local name relative to
> its module; the pickle module searches the module namespace to determine
> the object’s ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32104 | 2020-02-19T13:46:22Z | 2020-03-02T23:13:33Z | 2020-03-02T23:13:33Z | 2020-03-03T12:44:06Z |
added msg to TypeError test_to_boolean_array_error | diff --git a/pandas/tests/arrays/test_boolean.py b/pandas/tests/arrays/test_boolean.py
index cb9b07db4a0df..d14d6f3ff0c41 100644
--- a/pandas/tests/arrays/test_boolean.py
+++ b/pandas/tests/arrays/test_boolean.py
@@ -131,7 +131,8 @@ def test_to_boolean_array_missing_indicators(a, b):
)
def test_to_boolean_array_error... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Fixed bare pytest.raises (#30999) for test_to_boolean_array_error in test_boolean.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/32103 | 2020-02-19T12:52:58Z | 2020-02-20T15:01:13Z | 2020-02-20T15:01:13Z | 2020-02-25T10:48:57Z |
TST: Fix bare pytest.raises in test_parsing.py | diff --git a/pandas/tests/tslibs/test_parsing.py b/pandas/tests/tslibs/test_parsing.py
index 1ba7832c47e6c..dc7421ea63464 100644
--- a/pandas/tests/tslibs/test_parsing.py
+++ b/pandas/tests/tslibs/test_parsing.py
@@ -2,6 +2,7 @@
Tests for Timestamp parsing, aimed at pandas/_libs/tslibs/parsing.pyx
"""
from datetime ... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Fixes bare pytest.raises issue for `test_parsing.py`. | https://api.github.com/repos/pandas-dev/pandas/pulls/32102 | 2020-02-19T12:52:56Z | 2020-02-20T16:39:44Z | 2020-02-20T16:39:44Z | 2020-02-20T16:39:53Z |
TYP: check_untyped_defs core.tools.datetimes | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 6d45ddd29d783..b10b736b9134e 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -2,7 +2,7 @@
from datetime import datetime, time
from functools import partial
from itertools import islice
-from typing ... | pandas\core\tools\datetimes.py:299: error: Item "DatetimeIndex" of "Union[DatetimeArray, DatetimeIndex]" has no attribute "tz_convert"
pandas\core\tools\datetimes.py:310: error: Item "DatetimeIndex" of "Union[DatetimeArray, DatetimeIndex]" has no attribute "tz_localize"
pandas\core\tools\datetimes.py:829: error: Inco... | https://api.github.com/repos/pandas-dev/pandas/pulls/32101 | 2020-02-19T12:33:10Z | 2020-02-20T01:24:38Z | 2020-02-20T01:24:38Z | 2020-02-20T09:40:16Z |
TYP: check_untyped_defs arrays.sparse.array | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index b17a4647ffc9f..542cfd334b810 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -4,7 +4,7 @@
from collections import abc
import numbers
import operator
-from typing import Any, Callable... | pandas\core\arrays\sparse\array.py:807: error: Need type annotation for 'result' (hint: "result: List[<type>] = ...") | https://api.github.com/repos/pandas-dev/pandas/pulls/32099 | 2020-02-19T11:51:01Z | 2020-02-20T22:37:25Z | 2020-02-20T22:37:25Z | 2020-02-21T08:16:55Z |
TYP: check_untyped_defs core.arrays.interval | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index ab3ee5bbcdc3a..bb8817c3a7fa2 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1,5 +1,6 @@
from operator import le, lt
import textwrap
+from typing import Any, Sequence, Tuple
import numpy as np
... | pandas\core\arrays\interval.py:438: error: Need type annotation for 'left' (hint: "left: List[<type>] = ...")
pandas\core\arrays\interval.py:438: error: Need type annotation for 'right' (hint: "right: List[<type>] = ...") | https://api.github.com/repos/pandas-dev/pandas/pulls/32098 | 2020-02-19T11:32:43Z | 2020-02-20T11:32:37Z | null | 2020-02-20T11:32:37Z |
TYP: check_untyped_defs core.arrays.categorical | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index d469b574820f9..a5048e3aae899 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -341,10 +341,7 @@ def __init__(
values = _convert_to_list_like(values)
# By ... | pandas\core\arrays\categorical.py:347: error: Incompatible types in assignment (expression has type "None", variable has type "str")
pandas\core\arrays\categorical.py:1550: error: "argsort" of "ExtensionArray" gets multiple values for keyword argument "ascending"
pandas\core\arrays\categorical.py:1550: error: "argsor... | https://api.github.com/repos/pandas-dev/pandas/pulls/32097 | 2020-02-19T11:22:04Z | 2020-02-19T22:29:57Z | 2020-02-19T22:29:57Z | 2020-02-20T09:38:34Z |
Backport PR #31841: BUG: Fix rolling.corr with time frequency | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1622a6dc8ce56..19358689a2186 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issue:... | https://github.com/pandas-dev/pandas/pull/31841 | https://api.github.com/repos/pandas-dev/pandas/pulls/32094 | 2020-02-19T07:40:21Z | 2020-02-19T09:58:57Z | 2020-02-19T09:58:57Z | 2020-02-19T10:01:25Z |
Backport PR #31842 on branch 1.0.x (BUG: Fix raw parameter not being respected in groupby.rolling.apply) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 805f87b63eef8..1622a6dc8ce56 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issu... | Backport PR #31842: BUG: Fix raw parameter not being respected in groupby.rolling.apply | https://api.github.com/repos/pandas-dev/pandas/pulls/32093 | 2020-02-19T07:35:30Z | 2020-02-19T08:15:47Z | 2020-02-19T08:15:47Z | 2020-02-19T08:15:47Z |
TST: parametrize and de-duplicate timedelta64 arithmetic tests | diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py
index abdeb1b30b626..300e468c34e65 100644
--- a/pandas/tests/arithmetic/test_timedelta64.py
+++ b/pandas/tests/arithmetic/test_timedelta64.py
@@ -25,6 +25,19 @@
get_upcast_box,
)
+
+def assert_dtype(obj, expec... | https://api.github.com/repos/pandas-dev/pandas/pulls/32091 | 2020-02-19T03:45:07Z | 2020-02-23T15:56:30Z | 2020-02-23T15:56:30Z | 2020-02-23T17:05:17Z | |
Series append raises TypeError | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 57c53f73962dc..7c68005144cbc 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -327,6 +327,7 @@ Reshaping
- Bug in :func:`crosstab` when inputs are two Series and have tuple names, the output will keep ... | - [ ] closes #31413
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Series.append now raises TypeError when a DataFrame or a sequence containing DataFrame is passed.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32090 | 2020-02-19T02:18:53Z | 2020-03-04T14:17:16Z | 2020-03-04T14:17:16Z | 2020-03-04T21:07:57Z |
BUG: DataFrame.iat incorrectly wrapping datetime objects | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 13827e8fc4c33..add046674e9dc 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -160,6 +160,7 @@ Indexing
- Bug in :meth:`PeriodIndex.is_monotonic` incorrectly returning ``True`` when containing leading ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32089 | 2020-02-19T02:08:53Z | 2020-02-22T15:56:04Z | 2020-02-22T15:56:04Z | 2020-02-22T15:58:16Z | |
"Backport PR #31679 on branch 1.0.x" | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 19358689a2186..c9031ac1ae9fe 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | #31679 | https://api.github.com/repos/pandas-dev/pandas/pulls/32088 | 2020-02-19T01:33:22Z | 2020-02-19T11:05:40Z | 2020-02-19T11:05:39Z | 2020-02-19T15:55:41Z |
REF: remove compute_reduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index b27072aa66708..fdcce6ad1df9e 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -27,126 +27,6 @@ cdef _check_result_array(object obj, Py_ssize_t cnt):
raise ValueError('Function does not reduce')
-cdef class... | Along with #32083, #32086 this gets rid of _libs.reduction.
Now, time to run some asvs | https://api.github.com/repos/pandas-dev/pandas/pulls/32087 | 2020-02-19T01:20:55Z | 2020-02-20T02:46:09Z | null | 2020-08-27T20:18:21Z |
REF: remove fast_apply | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index b27072aa66708..db897014a1061 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -454,142 +454,6 @@ cdef class Slider:
self.buf.strides[0] = self.orig_stride
-class InvalidApply(Exception):
- pass
-
-
-def... | xref #32083, one more coming that i think finishes off libreduction | https://api.github.com/repos/pandas-dev/pandas/pulls/32086 | 2020-02-19T01:19:21Z | 2020-02-20T02:46:29Z | null | 2020-08-27T20:18:08Z |
BUG: Fix incorrect _is_scalar_access check in iloc | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 579daae2b15c6..ac03843a0e27d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3467,13 +3467,13 @@ def _get_item_cache(self, item):
res._is_copy = self._is_copy
return res
- def _iget_item_cache(self, item):... | We only have two test cases that make it to the _take_with_is_copy line in _iget_item_cache | https://api.github.com/repos/pandas-dev/pandas/pulls/32085 | 2020-02-19T00:08:20Z | 2020-02-22T16:08:23Z | 2020-02-22T16:08:23Z | 2020-02-22T16:10:24Z |
POC/REF: remove SeriesBinGrouper, SeriesGrouper | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index b27072aa66708..382a5c6692b55 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -147,253 +147,6 @@ cdef class Reducer:
return result
-cdef class _BaseGrouper:
- cdef _check_dummy(self, dummy):
- # ... | Maintenance of libreduction is a PITA, so I want to see how big a performance hit we take if we rip it out.
I get a test failure locally because apparently something in resample behaves differently if we go through the python path, which itself should be considered a bug. cc @mroeschke any ideas how to fix the fail... | https://api.github.com/repos/pandas-dev/pandas/pulls/32083 | 2020-02-18T21:00:12Z | 2020-02-20T02:45:47Z | null | 2020-08-27T20:18:36Z |
CLN: indexing comments and cleanups | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index c53e690b5f46c..a614c731df879 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -732,14 +732,15 @@ def _getitem_lowerdim(self, tup: Tuple):
raise IndexingError("Too many indexers. handle elsewhere")
for i, ke... | https://api.github.com/repos/pandas-dev/pandas/pulls/32082 | 2020-02-18T19:57:15Z | 2020-02-23T15:52:04Z | 2020-02-23T15:52:04Z | 2020-02-23T17:10:08Z | |
REGR: Series.str.encode("base64") | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 19358689a2186..025924b1c0a5a 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,7 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | - [ ] closes #32048
- [ ] 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/32080 | 2020-02-18T18:15:58Z | 2020-02-18T19:32:06Z | null | 2020-02-18T19:32:06Z |
BUG: fix in categorical merges | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 705c335acfb48..822b7dc2e5caa 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -103,9 +103,10 @@ Bug fixes
Categorical
^^^^^^^^^^^
+
+- Bug where :func:`merge` was unable to join on non-unique catego... | test adapted (at this point kind of loosely) from #28296
- [x] closes #28189
- [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/32079 | 2020-02-18T18:12:14Z | 2020-02-27T23:07:26Z | 2020-02-27T23:07:26Z | 2020-10-10T14:14:58Z |
REF: de-nest Series.__setitem__ | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 12164a4b8ff6b..e3f4261eb0b73 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -978,14 +978,15 @@ def __setitem__(self, key, value):
key = com.apply_if_callable(key, self)
cacher_needs_updating = self._check_is_chained_as... | Splitting this into a couple of steps for readability. The two main things I have in mind here are a) de-nesting, b) try to parallel the structure of `__getitem__` | https://api.github.com/repos/pandas-dev/pandas/pulls/32078 | 2020-02-18T17:32:32Z | 2020-03-07T11:18:57Z | 2020-03-07T11:18:57Z | 2020-03-07T15:16:18Z |
CI: Remove docs build from pipelines | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d87fa5203bd52..7493be34d10c7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -154,6 +154,39 @@ jobs:
echo "region = BHS" >> $RCLONE_CONFIG_PATH
if: github.event_name == 'push'
- - name: Sync web
+ - na... | - [X] closes #29472
At the moment we're building the web and the docs from both Actions and Pipelines. While is still under discussion where things should be hosted, it's probably worth to just build on Actions for now, and publish from there to both the OVH cloud, and to GitHub pages.
**This needs the GitHub pag... | https://api.github.com/repos/pandas-dev/pandas/pulls/32074 | 2020-02-18T10:18:24Z | 2020-02-26T21:08:06Z | 2020-02-26T21:08:05Z | 2020-02-26T21:08:06Z |
CLN: Remove unused script find_commits_touching_func.py | diff --git a/scripts/find_commits_touching_func.py b/scripts/find_commits_touching_func.py
deleted file mode 100755
index 85675cb6df42b..0000000000000
--- a/scripts/find_commits_touching_func.py
+++ /dev/null
@@ -1,244 +0,0 @@
-#!/usr/bin/env python3
-# copyright 2013, y-p @ github
-"""
-Search the git history for all ... | - [X] xref #31039
I've been trying the script `find_commits_touching_func.py` and doesn't seem to be working. Tried for many existing functions, and never get any result. I guess it doesn't work with newer git versions, or with the latest dependencies. And if nobody realized of this before, I assume nobody is using ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32071 | 2020-02-18T09:17:07Z | 2020-02-20T01:04:11Z | 2020-02-20T01:04:11Z | 2020-02-20T01:04:20Z |
TST: corrwith and tshift in groupby/groupby.transform | diff --git a/pandas/tests/groupby/test_transform.py b/pandas/tests/groupby/test_transform.py
index 740103eec185a..73a99f2dd4402 100644
--- a/pandas/tests/groupby/test_transform.py
+++ b/pandas/tests/groupby/test_transform.py
@@ -1,4 +1,5 @@
""" test with the .transform """
+from datetime import timedelta
from io impo... | This PR tests `corrwith` and `tshift`, so not sure if it fully closes the original issue or not, but the other functions`backfill`, `pad` and `cumcount` don't seem to be supported in `groupby.transform` as reported in issues #27472 and #31269.
- [x] closes #27905
- [x] tests added / passed
- [x] passes `black pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/32069 | 2020-02-18T01:54:52Z | 2020-03-03T15:45:24Z | null | 2020-03-03T15:45:25Z |
DOC: Add example for multiindex series and dataframe merge | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index 8fdcd8d281a41..8302b5c5dea60 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -724,6 +724,27 @@ either the left or right tables, the values in the joined table will be
labels=['le... | - [x] closes #12550
| https://api.github.com/repos/pandas-dev/pandas/pulls/32068 | 2020-02-18T00:05:32Z | 2020-02-27T21:42:40Z | 2020-02-27T21:42:39Z | 2020-03-02T11:41:50Z |
Backport PR #32064 on branch 1.0.x (DOC: pin gitdb2) | diff --git a/environment.yml b/environment.yml
index e244350a0bea0..0d624c3c716a0 100644
--- a/environment.yml
+++ b/environment.yml
@@ -26,6 +26,7 @@ dependencies:
# documentation
- gitpython # obtain contributors from git for whatsnew
+ - gitdb2=2.0.6 # GH-32060
- sphinx
- numpydoc>=0.9.0
diff --gi... | Backport PR #32064: DOC: pin gitdb2 | https://api.github.com/repos/pandas-dev/pandas/pulls/32066 | 2020-02-17T21:35:32Z | 2020-02-17T22:57:28Z | 2020-02-17T22:57:27Z | 2020-02-17T22:57:28Z |
DOC: Use container directives instead of raw html for the doc "cards" | diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css
index bb24761cdb159..58d633245937d 100644
--- a/doc/source/_static/css/getting_started.css
+++ b/doc/source/_static/css/getting_started.css
@@ -66,6 +66,7 @@
}
/* reference to user guide */
+
.gs-torefguide {
al... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The PR is a follow up of #31156 and #31148 translating the raw html to docutils/sphinx directives, making it more _readable_.
Furthermore, it fix... | https://api.github.com/repos/pandas-dev/pandas/pulls/32065 | 2020-02-17T19:12:24Z | 2020-05-25T08:54:50Z | null | 2020-05-25T08:54:51Z |
DOC: pin gitdb2 | diff --git a/environment.yml b/environment.yml
index 5f1184e921119..cbdaf8e6c4217 100644
--- a/environment.yml
+++ b/environment.yml
@@ -26,6 +26,7 @@ dependencies:
# documentation
- gitpython # obtain contributors from git for whatsnew
+ - gitdb2=2.0.6 # GH-32060
- sphinx
# documentation (jupyter no... | ref #32060 | https://api.github.com/repos/pandas-dev/pandas/pulls/32064 | 2020-02-17T18:44:41Z | 2020-02-17T21:35:22Z | 2020-02-17T21:35:22Z | 2020-02-17T21:35:25Z |
CLN: GH29547 replace old string formatting | diff --git a/pandas/tests/tslibs/test_parsing.py b/pandas/tests/tslibs/test_parsing.py
index c452d5b12ce01..1ba7832c47e6c 100644
--- a/pandas/tests/tslibs/test_parsing.py
+++ b/pandas/tests/tslibs/test_parsing.py
@@ -42,9 +42,9 @@ def test_parse_time_quarter_with_dash(dashed, normal):
@pytest.mark.parametrize("dashe... | Hi there! I've added some missed f-strings to:
* tests/tslibs
* tests/tseries
- [x] tests passed
- [x] passes `black pandas`
Thank you.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32063 | 2020-02-17T17:06:14Z | 2020-02-18T11:56:22Z | 2020-02-18T11:56:21Z | 2020-02-18T15:18:19Z |
Backport PR #31734 on branch 1.0.x (BUG: list-like to_replace on Categorical.replace is ignored or crash) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 0c012e5c1417b..805f87b63eef8 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -29,6 +29,7 @@ Bug fixes
**Categorical**
- Fixed bug where :meth:`Categorical.from_codes` improperly raised a ``ValueErr... | Backport PR #31734: BUG: list-like to_replace on Categorical.replace is ignored or crash | https://api.github.com/repos/pandas-dev/pandas/pulls/32062 | 2020-02-17T17:00:05Z | 2020-02-19T07:32:30Z | 2020-02-19T07:32:30Z | 2020-02-19T07:32:30Z |
Backport PR #32025 and #32031 silence numpy-dev failures | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 491bcb21f245d..6eda468eed23a 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -25,6 +25,7 @@
_np_version_under1p16,
_np_version_under1p17,
_np_version_under1p18,
+ _is_numpy_dev,
)
try:
diff --git a/pandas/tests/api/test_api.py ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32057 | 2020-02-17T13:20:18Z | 2020-02-17T22:57:40Z | 2020-02-17T22:57:40Z | 2020-02-18T10:54:15Z | |
REGR: read_pickle fallback to encoding=latin_1 upon a UnicodeDecodeError | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index c9031ac1ae9fe..57ed6adf667c8 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | When a reading a pickle with MultiIndex columns generated in py27
`pickle_compat.load()` with `enconding=None` would throw an UnicodeDecodeError
when reading a pickle created in py27. Now, `read_pickle` catches that exception and
fallback to use `latin-1` explicitly.
- [x] closes #31988
- [x] tests added / passe... | https://api.github.com/repos/pandas-dev/pandas/pulls/32055 | 2020-02-17T12:56:42Z | 2020-02-21T14:52:24Z | 2020-02-21T14:52:24Z | 2020-02-21T14:52:39Z |
[#16737] Index type for Series with empty data | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 2e68a0598bb71..45e35b78eb390 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -190,7 +190,7 @@ The sum of an empty or all-NA Series or column of a DataFrame is 0.
p... | - [x] closes #16737
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
---------------------------------
I picked up all the notes from #16737 where it was suggested to use `Index` over `RangeIndex` for empty data.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32053 | 2020-02-17T12:08:01Z | 2020-09-10T18:57:11Z | null | 2020-09-10T18:57:12Z |
Backport PR #31156 on branch 1.0.x (DOC: Update of the 'getting started' pages in the sphinx section of the documentation) | diff --git a/doc/data/air_quality_long.csv b/doc/data/air_quality_long.csv
new file mode 100644
index 0000000000000..6225d65d8e276
--- /dev/null
+++ b/doc/data/air_quality_long.csv
@@ -0,0 +1,5273 @@
+city,country,date.utc,location,parameter,value,unit
+Antwerpen,BE,2019-06-18 06:00:00+00:00,BETR801,pm25,18.0,µg/m³
+An... | Backport PR #31156: DOC: Update of the 'getting started' pages in the sphinx section of the documentation | https://api.github.com/repos/pandas-dev/pandas/pulls/32052 | 2020-02-17T11:51:00Z | 2020-02-18T15:42:01Z | 2020-02-18T15:42:01Z | 2020-02-18T15:42:02Z |
WEB: update blog link to only include my pandas blog posts | diff --git a/web/pandas/config.yml b/web/pandas/config.yml
index 83eb152c9d944..a52c580f23530 100644
--- a/web/pandas/config.yml
+++ b/web/pandas/config.yml
@@ -54,7 +54,7 @@ blog:
- https://dev.pandas.io/pandas-blog/feeds/all.atom.xml
- https://wesmckinney.com/feeds/pandas.atom.xml
- https://tomaugspurger.git... | https://api.github.com/repos/pandas-dev/pandas/pulls/32051 | 2020-02-17T10:42:48Z | 2020-02-18T08:16:33Z | 2020-02-18T08:16:33Z | 2020-02-18T08:16:38Z | |
use numexpr for Series comparisons | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index 1ee4c8e85be6b..d0adf2da04db3 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -510,6 +510,7 @@ def _comp_method_SERIES(cls, op, special):
Wrapper function for Series arithmetic operations, to avoid
code d... | subsumes #31984. | https://api.github.com/repos/pandas-dev/pandas/pulls/32047 | 2020-02-17T03:31:33Z | 2020-02-26T12:53:46Z | 2020-02-26T12:53:46Z | 2020-02-26T15:36:19Z |
Use fixtures in pandas/tests/base | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 7851cba9cd91a..0d3f8b034beb7 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -967,7 +967,7 @@ def __len__(self):
"uint": tm.makeUIntIndex(100),
"range": tm.makeRangeIndex(100),
"float": tm.makeFloatIndex(100),
- "bool": tm.makeBool... | part of #23877
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
**Note:** The diff is a bit inflated. Most changes are just indentation because for loops are replaced by a parametrized fixture. | https://api.github.com/repos/pandas-dev/pandas/pulls/32046 | 2020-02-17T00:50:11Z | 2020-02-23T17:06:03Z | 2020-02-23T17:06:03Z | 2020-02-23T17:46:40Z |
CLN: 29547 replace .format() with f-strings | diff --git a/scripts/find_commits_touching_func.py b/scripts/find_commits_touching_func.py
index 85675cb6df42b..ba2f54dd9bbe3 100755
--- a/scripts/find_commits_touching_func.py
+++ b/scripts/find_commits_touching_func.py
@@ -96,13 +96,7 @@ def get_hits(defname, files=()):
cs = set()
for f in files:
t... | This PR replaces .format() with f-strings as requested in https://github.com/pandas-dev/pandas/issues/29547.
It did this replacement in scripts/find_commits_touching_func.py
- [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/32044 | 2020-02-16T20:58:54Z | 2020-02-18T09:19:41Z | null | 2020-02-18T09:19:42Z |
DOC: Mention black and PEP8 in pandas style guide | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index bcddc033a61f5..17f8783f71bfb 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -9,6 +9,12 @@ pandas code style guide
.. contents:: Table of contents:
:local:
+*pandas* ... | - [ ] closes #31828
- [ ] 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/32043 | 2020-02-16T18:51:03Z | 2020-02-19T01:46:26Z | 2020-02-19T01:46:26Z | 2020-02-19T01:46:33Z |
CLN: clean-up show_versions and consistently use null for json output | diff --git a/pandas/_typing.py b/pandas/_typing.py
index e2858441605f7..3b7392f781525 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -64,7 +64,7 @@
Label = Optional[Hashable]
Level = Union[Label, int]
Ordered = Optional[bool]
-JSONSerializable = Union[PythonScalar, List, Dict]
+JSONSerializable = Optional... | note changes to LC_ALL and LOCALE, null is already used for dependencies on master, see blosc and feather.
master
```
{
"system": {
"commit": "a7ecced88a42c426bf61016c0131cab023c0cdff",
"python": "3.7.5.final.0",
"python-bits": 64,
"OS": "Windows",
"OS-release": "10",
"machine": "A... | https://api.github.com/repos/pandas-dev/pandas/pulls/32042 | 2020-02-16T16:56:07Z | 2020-03-03T03:36:27Z | 2020-03-03T03:36:27Z | 2020-03-03T11:43:14Z |
REGR: show_versions | diff --git a/pandas/tests/test_optional_dependency.py b/pandas/tests/test_optional_dependency.py
index ce527214e55e7..e5ed69b7703b1 100644
--- a/pandas/tests/test_optional_dependency.py
+++ b/pandas/tests/test_optional_dependency.py
@@ -22,12 +22,12 @@ def test_xlrd_version_fallback():
import_optional_dependency("... | regression in #31660 (no need to backport)
master
```
INSTALLED VERSIONS
------------------
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
...
```
this PR
```
INSTALLED VERSIONS
------------------
commit : b11e0647d42a27c279f3c46d5ce26d79bb5f5dec
python : 3.7.4.final.0
python-bi... | https://api.github.com/repos/pandas-dev/pandas/pulls/32041 | 2020-02-16T11:49:56Z | 2020-02-19T01:47:39Z | 2020-02-19T01:47:39Z | 2020-02-19T09:39:44Z |
BUG: GroupBy aggregation of DataFrame with MultiIndex columns breaks with custom function | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 123dfa07f4331..18a431cc2be5e 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issu... | - [x] closes #31777
- [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/32040 | 2020-02-16T11:32:31Z | 2020-03-12T02:32:56Z | 2020-03-12T02:32:55Z | 2020-07-12T09:24:28Z |
BUG: Preserve name in Index.astype | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0ebe57bfbb3a1..c8c078a4e685d 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -410,6 +410,7 @@ Reshaping
- Bug in :func:`crosstab` when inputs are two Series and have tuple names, the output will keep ... | - [x] closes #32013
- [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/32036 | 2020-02-16T03:15:52Z | 2020-03-27T00:00:35Z | 2020-03-27T00:00:34Z | 2020-03-27T01:06:31Z |
CLN: Clean reductions/test_reductions.py | diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py
index 0b312fe2f8990..211d0d52d8357 100644
--- a/pandas/tests/reductions/test_reductions.py
+++ b/pandas/tests/reductions/test_reductions.py
@@ -66,60 +66,64 @@ def test_ops(self, opname, obj):
expected = ex... | Some more parameterizing / splitting up of tests | https://api.github.com/repos/pandas-dev/pandas/pulls/32035 | 2020-02-16T01:27:07Z | 2020-02-17T20:03:06Z | 2020-02-17T20:03:06Z | 2020-02-17T20:05:00Z |
CLN: 29547 replace old string formatting | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index ab3ee5bbcdc3a..b11736248c12a 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1127,8 +1127,8 @@ def __arrow_array__(self, type=None):
subtype = pyarrow.from_numpy_dtype(self.dtype.subtype)... | I splitted PR #31844 in batches, this is the **last**
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547... | https://api.github.com/repos/pandas-dev/pandas/pulls/32034 | 2020-02-16T00:34:51Z | 2020-02-20T23:32:42Z | 2020-02-20T23:32:41Z | 2020-02-21T01:29:53Z |
CI: add pydocstyle to code_checks | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index bb7d8a388e6e2..71aad6347085c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -316,6 +316,13 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
+ echo "pydocstyle --version"
+ pydocstyle --version
+
+ MSG='Valida... | http://www.pydocstyle.org/en/5.0.2/error_codes.html | https://api.github.com/repos/pandas-dev/pandas/pulls/32033 | 2020-02-15T22:21:31Z | 2020-03-17T12:13:37Z | null | 2020-03-17T12:13:38Z |
CLN: 29547 replace old string formatting 8 | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index 02898988ca8aa..122ef1f47968e 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -19,7 +19,7 @@ def import_module(name):
try:
return importlib.import_module(name)
except ModuleNotFou... | I splitted PR #31844 in batches, this is the eighth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](... | https://api.github.com/repos/pandas-dev/pandas/pulls/32032 | 2020-02-15T19:52:37Z | 2020-02-15T23:24:24Z | 2020-02-15T23:24:24Z | 2020-02-21T01:29:55Z |
CI: change np-dev xfails to not strict | diff --git a/pandas/tests/frame/test_cumulative.py b/pandas/tests/frame/test_cumulative.py
index 2466547e2948b..486cbfb2761e0 100644
--- a/pandas/tests/frame/test_cumulative.py
+++ b/pandas/tests/frame/test_cumulative.py
@@ -75,7 +75,9 @@ def test_cumprod(self, datetime_frame):
df.cumprod(1)
@pytest.mar... | follow-up to #32025 | https://api.github.com/repos/pandas-dev/pandas/pulls/32031 | 2020-02-15T19:52:07Z | 2020-02-16T17:43:56Z | 2020-02-16T17:43:56Z | 2020-02-18T10:56:10Z |
CLN: remove unused from MultiIndex | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 02e11c0e71cbe..0a79df0cc9744 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -58,7 +58,6 @@
indexer_from_factorized,
lexsort_indexer,
)
-from pandas.core.util.hashing import hash_tuple, hash_tuples
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32030 | 2020-02-15T19:39:51Z | 2020-02-18T12:38:28Z | 2020-02-18T12:38:28Z | 2020-02-18T15:30:59Z | |
CLN: GH29547 replace old string formatting | diff --git a/pandas/tests/arrays/categorical/test_analytics.py b/pandas/tests/arrays/categorical/test_analytics.py
index 90fcf12093909..0ff7d3e59abb3 100644
--- a/pandas/tests/arrays/categorical/test_analytics.py
+++ b/pandas/tests/arrays/categorical/test_analytics.py
@@ -15,10 +15,10 @@ class TestCategoricalAnalytics:... | Hi there! This is my first contribution. Please let me know if there are any issues, thank you.
- [x] tests passed
- [x] passes `black pandas`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32029 | 2020-02-15T18:27:21Z | 2020-02-15T19:05:32Z | 2020-02-15T19:05:32Z | 2020-02-15T20:10:57Z |
CLN: Clean groupby/test_function.py | diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py
index 176c0272ca527..6205dfb87bbd0 100644
--- a/pandas/tests/groupby/test_function.py
+++ b/pandas/tests/groupby/test_function.py
@@ -26,6 +26,26 @@
from pandas.util import _test_decorators as td
+@pytest.fixture(
+ param... | Some small cleanups (removing unnecessary for loops / adding parameterization) | https://api.github.com/repos/pandas-dev/pandas/pulls/32027 | 2020-02-15T15:56:52Z | 2020-02-20T04:09:21Z | 2020-02-20T04:09:21Z | 2020-02-20T14:21:20Z |
CI: silence numpy-dev failures | diff --git a/pandas/__init__.py b/pandas/__init__.py
index d526531b159b2..2d3d3f7d92a9c 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -25,6 +25,7 @@
_np_version_under1p16,
_np_version_under1p17,
_np_version_under1p18,
+ _is_numpy_dev,
)
try:
diff --git a/pandas/tests/api/test_api.py ... | xref #31992 | https://api.github.com/repos/pandas-dev/pandas/pulls/32025 | 2020-02-15T14:43:34Z | 2020-02-15T18:34:58Z | 2020-02-15T18:34:58Z | 2020-02-18T10:54:50Z |
WEB: Add greeting note to CoC | diff --git a/web/pandas/community/coc.md b/web/pandas/community/coc.md
index bf62f4e00f847..d2af9c3fdd25b 100644
--- a/web/pandas/community/coc.md
+++ b/web/pandas/community/coc.md
@@ -20,6 +20,9 @@ Examples of unacceptable behavior by participants include:
addresses, without explicit permission
* Other unethical o... | I noticed something similar in the [CPython contributing docs](https://cpython-core-tutorial.readthedocs.io/en/latest/diversity.html):
> For example, don’t say “hey guys!” but “hey everyone!”.
and thought it was really nice.
Pushing directly rather than opening as good first issue to avoid invoking a s*******m | https://api.github.com/repos/pandas-dev/pandas/pulls/32024 | 2020-02-15T13:40:06Z | 2020-02-27T23:08:16Z | 2020-02-27T23:08:16Z | 2020-03-26T16:13:32Z |
DOC: Add missing period to parameter description | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index d0c64d54f30d6..018441dacd9a8 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -452,7 +452,7 @@ def format(self, formatter, subset=None, na_rep: Optional[str] = None) -> "Style
``formatter`` is applied to.
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32022 | 2020-02-15T12:05:33Z | 2020-02-15T21:50:43Z | 2020-02-15T21:50:42Z | 2020-02-15T21:50:54Z |
DOC SS06 Make the summery in one line on offsets.py | diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index df1e750b32138..959dd19a50d90 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -1017,8 +1017,7 @@ def __init__(
class CustomBusinessDay(_CustomMixin, BusinessDay):
"""
- DateOffset subclass representing possibly ... | - [ ] 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/32021 | 2020-02-15T12:01:20Z | 2020-02-15T19:07:14Z | 2020-02-15T19:07:14Z | 2020-02-15T19:07:25Z |
DOC: Fix errors in pandas.Series.argmax | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 85424e35fa0e0..b9aeb32eea5c1 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -927,22 +927,50 @@ def max(self, axis=None, skipna=True, *args, **kwargs):
def argmax(self, axis=None, skipna=True, *args, **kwargs):
"""
- Retur... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/18
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output of `python scripts/validate_docstrings.py pandas.Series.argmax`:
```
#####... | https://api.github.com/repos/pandas-dev/pandas/pulls/32019 | 2020-02-15T11:42:12Z | 2020-02-26T20:53:54Z | 2020-02-26T20:53:54Z | 2020-02-27T07:35:55Z |
DOC add extended summary, update parameter types desc, update return types desc, and add whitespaces after commas in list declarations to DataFrame.first in core/generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e6c5ac9dbf733..b039630efc989 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8014,15 +8014,21 @@ def resample(
def first(self: FrameOrSeries, offset) -> FrameOrSeries:
"""
- Method to subset initial periods of... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32018 | 2020-02-15T11:32:50Z | 2020-03-10T21:30:06Z | 2020-03-10T21:30:06Z | 2020-03-11T08:48:54Z |
Fix docstring validation errors in pandas.Index.slice_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 14ee21ea5614c..dc39e2808f62f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4856,6 +4856,8 @@ def _get_string_slice(self, key: str_t, use_lhs: bool = True, use_rhs: bool = Tr
def slice_indexer(self, start... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/6
- [ ] 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/32017 | 2020-02-15T11:28:33Z | 2020-03-20T22:26:23Z | null | 2020-03-20T22:26:23Z |
DOC: Add reference in keywords arguments to Line2D mathplotlib | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index 47a4fd8ff0e95..3788cc447b087 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -280,7 +280,8 @@ def bootstrap_plot(series, fig=None, size=50, samples=500, **kwds):
samples : int, default 500
Number of times the bo... | Keyword arguments in `pandas.plotting.bootstrap_plot` doesn't clearly specify argument options
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32016 | 2020-02-15T11:18:33Z | 2020-02-26T20:52:15Z | null | 2020-02-26T20:52:16Z |
DOC: Improve docstring of Index.delete | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3d549405592d6..14ee21ea5614c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5135,9 +5135,30 @@ def delete(self, loc):
"""
Make new Index with passed location(-s) deleted.
+ Parameters
... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/13
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output from validate_docstrings.py
##############################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32015 | 2020-02-15T11:12:36Z | 2020-02-15T19:08:13Z | 2020-02-15T19:08:13Z | 2020-02-24T15:11:04Z |
DOC: Update pandas.Series.between_time docstring params | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 04e8b78fb1b87..e996c47ac7ad3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7538,16 +7538,22 @@ def between_time(
Parameters
----------
start_time : datetime.time or str
+ Initial time as a tim... | - [x] closes [https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/20](https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/20)
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output f... | https://api.github.com/repos/pandas-dev/pandas/pulls/32014 | 2020-02-15T11:05:41Z | 2020-02-15T19:10:24Z | 2020-02-15T19:10:24Z | 2020-02-15T19:10:34Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.