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 |
|---|---|---|---|---|---|---|---|
Removed NDFrameSplitter class | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index dcd854ada9d45..7b142eae9e272 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -884,33 +884,10 @@ def _chop(self, sdata, slice_obj):
return sdata._slice(slice_obj, axis=1) # .loc[:, slice_obj]
-class N... | More GroupBy cleanup post Panel removal
| https://api.github.com/repos/pandas-dev/pandas/pulls/26153 | 2019-04-19T17:19:29Z | 2019-04-19T19:48:59Z | 2019-04-19T19:48:59Z | 2019-04-19T20:33:27Z |
Fix Bug with NA value in Grouping for Groupby.nth | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b2a379d9fe6f5..5d611069ebd0a 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -393,6 +393,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.window.Rolling.count` and `pandas.core.window.Exp... | - [X] closes #26011
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Would ideally like to combine first, nth and last implementations. Consider this a precursor
| https://api.github.com/repos/pandas-dev/pandas/pulls/26152 | 2019-04-19T16:54:38Z | 2019-05-05T22:20:01Z | 2019-05-05T22:20:00Z | 2020-01-16T00:34:07Z |
Fix Type Annotation in pandas.core.accessor | diff --git a/mypy.ini b/mypy.ini
index 80c34260acdd1..9d7262213413e 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,15 +11,9 @@ ignore_errors=True
[mypy-pandas.compat.numpy.function]
ignore_errors=True
-[mypy-pandas.core.accessor]
-ignore_errors=True
-
[mypy-pandas.core.api]
ignore_errors=True
-[mypy-pandas.core.ap... | - [x] closes #26146
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26147 | 2019-04-19T07:59:17Z | 2019-04-21T16:04:47Z | 2019-04-21T16:04:47Z | 2019-04-21T16:56:39Z |
Cython Unicode Method Cleanups | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 1fd72cf763e6b..d80cc482be5b3 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -549,41 +549,6 @@ def astype_intsafe(ndarray[object] arr, new_dtype):
return result
-@cython.wraparound(False)
-@cython.boundscheck(False)
-def astype_unic... | Removal of some items that should no longer be required after Py2 drop | https://api.github.com/repos/pandas-dev/pandas/pulls/26138 | 2019-04-18T19:06:22Z | 2019-04-18T19:47:01Z | 2019-04-18T19:47:01Z | 2019-04-18T20:02:55Z |
Deprecate SparseDataFrame and SparseSeries | diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst
index 20962749e2040..8fed29d7a6316 100644
--- a/doc/source/user_guide/sparse.rst
+++ b/doc/source/user_guide/sparse.rst
@@ -6,27 +6,27 @@
Sparse data structures
**********************
-We have implemented "sparse" versions of ``Series`... | Closes https://github.com/pandas-dev/pandas/issues/19239
This currently includes the changes from https://github.com/pandas-dev/pandas/pull/25682, which I think is mergeable.
I think this would be good to have for 0.25.0. I think it's close, but I may not have time to push this across the finish line. Anyone inte... | https://api.github.com/repos/pandas-dev/pandas/pulls/26137 | 2019-04-18T18:32:25Z | 2019-05-29T02:15:24Z | 2019-05-29T02:15:24Z | 2019-05-29T14:06:24Z |
BUG: errors and segfaults in groupby cython transforms (#16771) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 20d4f46348be6..353af98f5b64d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -387,7 +387,8 @@ Groupby/Resample/Rolling
- Ensured that ordering of outputs in ``groupby`` aggregation functions is co... | - [x] closes #16771
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26134 | 2019-04-18T13:02:18Z | 2019-04-20T16:45:02Z | 2019-04-20T16:45:02Z | 2019-04-20T16:45:06Z |
DOC: add deprecated to docstring of Series.data/itemsize/strides/flags/base | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 1d3eb880f32e3..0b3d8b601864d 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -703,6 +703,8 @@ def item(self):
def data(self):
"""
Return the data pointer of the underlying data.
+
+ .. deprecated:: 0.23.0
"... | xref https://github.com/pandas-dev/pandas/issues/20419#issuecomment-481773575 | https://api.github.com/repos/pandas-dev/pandas/pulls/26132 | 2019-04-18T08:28:09Z | 2019-04-18T15:31:40Z | 2019-04-18T15:31:40Z | 2019-04-18T15:31:45Z |
CLN: rename test method parameter name 'object' to 'self' | diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py
index 23d00585f950e..4a37d5097648f 100644
--- a/pandas/tests/arrays/categorical/test_warnings.py
+++ b/pandas/tests/arrays/categorical/test_warnings.py
@@ -18,14 +18,14 @@ def test_tab_complete_warning(self,... | As part of #26128, I saw that in three test methods, their first parameter has been named ``object`` rather than ``self``. This rectifies that. | https://api.github.com/repos/pandas-dev/pandas/pulls/26129 | 2019-04-18T00:25:15Z | 2019-04-18T03:48:23Z | 2019-04-18T03:48:23Z | 2019-04-19T17:13:36Z |
CLN: remove unneeded inheritance from base object | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 74849d330f2bc..45ef47fde0a56 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -13,7 +13,7 @@
pass
-class Factorize(object):
+class Factorize:
params = [[True, False],... | - [x] xref #25725
Bit of a tedious whopper to review (sorry), but this PR removes all instances of inheriting from the base ``object`` from the code base, as dropping Python2 support means that this particular idiom is no longer needed.
Additionally, as part of the above, I've removed the check in code_checks.sh... | https://api.github.com/repos/pandas-dev/pandas/pulls/26128 | 2019-04-17T23:48:09Z | 2019-04-18T21:52:15Z | 2019-04-18T21:52:15Z | 2019-04-19T17:13:24Z |
DOC: bunch of docstring formatting fixes (sphinx warnings) | diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx
index 99f0d77e9bd34..a81941da4a05a 100644
--- a/pandas/_libs/tslibs/nattype.pyx
+++ b/pandas/_libs/tslibs/nattype.pyx
@@ -512,8 +512,8 @@ class NaTType(_NaT):
- 'raise' will raise an AmbiguousTimeError for an ambiguous time
... | WIP towards getting sphinx doc build warning free | https://api.github.com/repos/pandas-dev/pandas/pulls/26117 | 2019-04-17T08:03:47Z | 2019-04-17T12:45:50Z | 2019-04-17T12:45:50Z | 2019-04-17T12:51:00Z |
DOC: fixup code-block directives from GH26076 | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index 3671a5e24bdaa..9d497f2fc658d 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -430,7 +430,7 @@ Updated PyTables Support
- added mixed-dtype support!
- .. ipython:: python
+ .. code-block:: ... | Forgot to change some ipython directives to code-block directives in #26076 (should have checked the travis doc build log there ..) | https://api.github.com/repos/pandas-dev/pandas/pulls/26116 | 2019-04-17T07:25:55Z | 2019-04-17T08:06:44Z | 2019-04-17T08:06:44Z | 2019-04-17T08:06:48Z |
Updated PeriodIndex docstrings #10094 | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 70312f2e61445..b0b87d98ce518 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -439,19 +439,16 @@ def asfreq(self, freq=None, how='E'):
--------
>>> pidx = pd.period_range('2010-01-01', '2015-0... | - [x] closes #10094
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26115 | 2019-04-17T00:31:11Z | 2019-04-17T20:43:59Z | 2019-04-17T20:43:59Z | 2019-04-18T23:17:23Z |
CLN: replace usage internally of .iteritems with .items | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 5008b77d9fb28..e2f6764c76eef 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -115,15 +115,15 @@ def setup(self):
)
self.df4 = DataFrame(np.random.randn(N *... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Now that Python2 is being removed, ``.iteritems`` should be deprecated, and ``.items`` should be used instead.
EDIT: This PR ended up not deprecating .iteritems, but only chang... | https://api.github.com/repos/pandas-dev/pandas/pulls/26114 | 2019-04-16T23:09:29Z | 2019-07-10T19:16:55Z | 2019-07-10T19:16:55Z | 2019-07-10T23:01:51Z |
BUG: GroupBy.size with all-null data raises ValueError | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index da712f84eb1b5..5f6483ede5544 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -381,6 +381,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.DataFrameGroupBy.nunique` in which the na... | - [x] closes #23050
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26112 | 2019-04-16T21:53:06Z | 2019-04-17T12:51:13Z | 2019-04-17T12:51:12Z | 2019-04-17T12:51:16Z |
CLN: remove compat.lfilter | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 7e201920f4331..332b435d33403 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -5,7 +5,7 @@
Cross-compatible functions for different versions of Python.
Key items to import for compatible code:
-* lists: lrange(), lmap(... | - [x] xref #25725
Removes ``compat.lfilter``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26110 | 2019-04-16T15:27:46Z | 2019-04-16T17:17:17Z | 2019-04-16T17:17:16Z | 2019-05-05T06:59:30Z |
Improve documentation for assert_frame|series_equal #26101 | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 9659cb33686d0..0278432117631 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -990,6 +990,12 @@ def assert_series_equal(left, right, check_dtype=True,
Specify comparison precision. Only used when check_exact is False.
... | - [x] closes #26101
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26106 | 2019-04-16T10:58:30Z | 2019-04-22T15:31:40Z | 2019-04-22T15:31:40Z | 2019-04-22T15:31:48Z |
ENH: Add parameter to download BigQuery results with the BigQuery Storage API | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..f2393161e7eac 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -364,6 +364,7 @@ I/O
- Improved the explanation for the failure when value labels are repeated in Stata dta files and s... | pandas-gbq 0.10.0 adds a new `use_bqstorage_api` parameter to speed up downloads of large dataframes.
- [ ] ~closes #xxxx~
- [x] tests added / passed
```
$ pytest pandas/tests/io/test_gbq.py
=============================== test session starts ================================
platform darwin -- Python 3.6.4, p... | https://api.github.com/repos/pandas-dev/pandas/pulls/26104 | 2019-04-15T21:20:55Z | 2019-04-20T18:33:34Z | 2019-04-20T18:33:34Z | 2019-04-22T15:54:34Z |
CI/DOC: fix clipboard on travis | diff --git a/.travis.yml b/.travis.yml
index 022e11b7db950..ce8817133a477 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -86,6 +86,14 @@ install:
- ci/submit_cython_cache.sh
- echo "install done"
+before_script:
+ # display server (for clipboard functionality) needs to be started here,
+ # does not work if don... | - [ ] closes #26075
| https://api.github.com/repos/pandas-dev/pandas/pulls/26103 | 2019-04-15T18:20:37Z | 2019-05-16T13:11:18Z | 2019-05-16T13:11:17Z | 2019-05-17T06:32:24Z |
CLN: remove compat.itervalues | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index e92c053a282bc..7e201920f4331 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,8 +6,6 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterval... | - [x] xref #25725
Removes ``compat.itervalues``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26099 | 2019-04-15T12:47:06Z | 2019-04-15T17:09:20Z | 2019-04-15T17:09:20Z | 2019-04-15T22:22:29Z |
BLD: add __pycache__ to .gitignore | diff --git a/.gitignore b/.gitignore
index f4f64aac23905..56828fa1d9331 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,6 +65,7 @@ coverage_html_report
*.pytest_cache
# hypothesis test database
.hypothesis/
+__pycache__
# OS generated files #
######################
| https://api.github.com/repos/pandas-dev/pandas/pulls/26098 | 2019-04-15T12:28:31Z | 2019-04-15T13:35:36Z | 2019-04-15T13:35:35Z | 2019-04-15T13:35:36Z | |
BUG: _convert_and_box_cache raise ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2030bb4d974c3..02210ed4897f5 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -705,6 +705,8 @@ Datetimelike
- Bug in :func:`date_range` with unnecessary ``OverflowError`` being raised for very larg... | - [x] closes #N/A
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Bug was found there: https://github.com/pandas-dev/pandas/pull/26043#issuecomment-483214458
Reproduction:
```python
import pandas as pd
N = 10
half = int(N / 2)
ts_string_1 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26097 | 2019-04-15T12:22:57Z | 2019-07-03T13:17:59Z | 2019-07-03T13:17:59Z | 2019-07-03T13:18:04Z |
CLN: Remove accidentally added pycache | diff --git a/pandas/tests/io/json/__pycache__/tmp2c7r4efu b/pandas/tests/io/json/__pycache__/tmp2c7r4efu
deleted file mode 100644
index d1258abbcdf40..0000000000000
Binary files a/pandas/tests/io/json/__pycache__/tmp2c7r4efu and /dev/null differ
| Removes this accidentally committed file https://github.com/pandas-dev/pandas/pull/26079/files#diff-0e2f9eb4477870d5461d93c7d8add1ec
| https://api.github.com/repos/pandas-dev/pandas/pulls/26095 | 2019-04-15T05:40:43Z | 2019-04-15T12:25:29Z | 2019-04-15T12:25:29Z | 2019-04-15T17:04:05Z |
STY: Turn on flake8 for pandas/compat/__init__.py | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 54a7afd90a09a..e7ca0d4c846c0 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -14,14 +14,11 @@
Other items:
* platform checker
"""
-# pylint disable=W0611
-# flake8: noqa
-import re
-from distutils.version import Loos... | With all of the great cleanup in this file, let's ensure that it remains nice and tidy. | https://api.github.com/repos/pandas-dev/pandas/pulls/26093 | 2019-04-15T01:21:58Z | 2019-04-15T02:50:04Z | 2019-04-15T02:50:04Z | 2019-04-15T02:50:19Z |
CLN: pylint references | diff --git a/pandas/__init__.py b/pandas/__init__.py
index d3e6d97960fb3..bd367bbe27d5e 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -1,5 +1,3 @@
-# pylint: disable-msg=W0614,W0401,W0611,W0622
-
# flake8: noqa
__docformat__ = 'restructuredtext'
diff --git a/pandas/compat/__init__.py b/pandas/compat/_... | Removing leftover `pylint` references since we exclusively use `flake8` for style checking. | https://api.github.com/repos/pandas-dev/pandas/pulls/26091 | 2019-04-15T00:31:30Z | 2019-04-15T04:07:48Z | 2019-04-15T04:07:48Z | 2019-04-15T05:19:58Z |
Cleanup of GroupBy Code | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b6fc31bb6f015..1c5a69e164c86 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -69,27 +69,6 @@ def _cython_agg_general(self, how, alt=None, numeric_only=True,
how, alt=alt, numeric_only=nume... | Removing some dead code I came across on review of the module which appears in NDFrameGroupBy but is overridden by its only public child class DataFrameGroupBy
FWIW with the removal of PanelGroupBy the NDFrameGroupBy is an unnecessary layer of inheritance and could probably be merged in with DataFrameGroupBy, though... | https://api.github.com/repos/pandas-dev/pandas/pulls/26090 | 2019-04-14T23:54:15Z | 2019-04-16T11:56:03Z | 2019-04-16T11:56:03Z | 2020-01-16T00:34:12Z |
Fix Up Typing in GroupBy | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..20d4f46348be6 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -218,6 +218,7 @@ Other API Changes
- :meth:`Timestamp.strptime` will now rise a ``NotImplementedError`` (:issue:`25016`... | More typing cleanups
Original failures:
```sh
pandas/core/groupby/ops.py:13: error: Module 'pandas._libs' has no attribute 'groupby'
pandas/core/groupby/ops.py:13: error: Module 'pandas._libs' has no attribute 'reduction'
pandas/core/groupby/groupby.py:22: error: Module 'pandas._libs' has no attribute 'groupby... | https://api.github.com/repos/pandas-dev/pandas/pulls/26089 | 2019-04-14T23:49:31Z | 2019-04-17T22:00:11Z | 2019-04-17T22:00:11Z | 2020-01-16T00:34:12Z |
CLN: Misc Python 2 references | diff --git a/LICENSES/SIX b/LICENSES/SIX
deleted file mode 100644
index 6fd669af222d3..0000000000000
--- a/LICENSES/SIX
+++ /dev/null
@@ -1,21 +0,0 @@
-six license (substantial portions used in the python 3 compatibility module)
-===========================================================================
-Copyright (c)... | - [x] xref https://github.com/pandas-dev/pandas/issues/25725#issuecomment-482460520
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The notable change here is removing the SIX license since I think we've removed any borrowed compatibility code. | https://api.github.com/repos/pandas-dev/pandas/pulls/26085 | 2019-04-14T18:42:26Z | 2019-04-15T12:12:58Z | 2019-04-15T12:12:58Z | 2019-04-15T17:03:33Z |
BUG: positional getitem indexing with list on Series with duplicate integer index fails | diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py
index 3cdae198cad31..03916ead17dc3 100644
--- a/pandas/tests/indexing/test_indexing.py
+++ b/pandas/tests/indexing/test_indexing.py
@@ -243,6 +243,14 @@ def test_dups_fancy_indexing2(self):
result = df.loc[[1, 2], ['a'... | Create test case for issue GH17347
- [x] closes #17347
- [x] tests added / passed | https://api.github.com/repos/pandas-dev/pandas/pulls/26083 | 2019-04-14T10:46:53Z | 2019-04-16T11:59:05Z | 2019-04-16T11:59:04Z | 2019-12-06T15:06:35Z |
CLN: collect ordered fixtures in pandas.conftest | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 462ee10f11975..4088697fa6f5f 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -126,6 +126,12 @@ def observed(request):
return request.param
+@pytest.fixture(params=[True, False, None])
+def ordered_fixture(request):
+ """Boolean 'ordered'... | Currently, ``Categorical .ordered``, ``CategoricaDtype.ordered`` and similar is tested using different fixtures + parametrization in some places. This PR collects the ordered fixtures/parametrizations and places a common ``ordered`` fixture in pandas.conftest. | https://api.github.com/repos/pandas-dev/pandas/pulls/26082 | 2019-04-14T09:49:58Z | 2019-04-16T11:47:54Z | 2019-04-16T11:47:54Z | 2019-05-08T04:47:02Z |
CLN: remove compat.iterkeys | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 815f39ef6ebe6..e92c053a282bc 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,7 +6,7 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterkey... | - [x] xref #25725
Removes ``compat.iterkeys``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26081 | 2019-04-14T09:33:37Z | 2019-04-15T12:13:34Z | 2019-04-15T12:13:34Z | 2019-04-15T22:22:41Z |
ERR: better error message on too large excel sheet | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 276812a564e03..1a0df4789f4c7 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -466,6 +466,7 @@ I/O
- Fixed memory leak in :meth:`DataFrame.to_json` when dealing with numeric data (:issue:`24889`)
... | - [ ] closes #26051
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26080 | 2019-04-14T04:21:39Z | 2019-06-01T14:04:15Z | 2019-06-01T14:04:15Z | 2019-06-01T14:04:21Z |
CLN: remove compat.iteritems | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 54a7afd90a09a..549359259bbd4 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -6,7 +6,7 @@
Key items to import for compatible code:
* lists: lrange(), lmap(), lzip(), lfilter()
-* iterable method compatibility: iterite... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes ``compat.iteritems``. | https://api.github.com/repos/pandas-dev/pandas/pulls/26079 | 2019-04-13T21:07:10Z | 2019-04-15T04:05:36Z | 2019-04-15T04:05:36Z | 2019-04-15T22:22:53Z |
BUG: pd.to_datetime() throws if caching is on with Null-like arguments | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c441244b4415d..856fbd1237a03 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -266,7 +266,7 @@ Datetimelike
^^^^^^^^^^^^
- Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueErro... | - [x] closes #22305
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The problem was in contradictory behavior between `pd.Index([pd.NaT, None]).is_unique` that returns `False` and `algorithms.unique([pd.NaT, None])` that returns `array([NaT, Non... | https://api.github.com/repos/pandas-dev/pandas/pulls/26078 | 2019-04-13T18:18:49Z | 2019-04-17T12:48:32Z | 2019-04-17T12:48:31Z | 2022-02-23T14:11:33Z |
DOC: fix errors/warnings in running code blocks | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1b05c53df4516..98cba6969587b 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3565,13 +3565,6 @@ HDFStore will by default not drop rows that are all missing. This behavior can b
os.remove('file.h5')
-.... | Cleaning up errors / warnings in the doc build, related to the ipython code blocks:
- put a section about hdf5 and Panel in verbatim code blocks + added some `:okwarning:` for Panel (will need to be properly cleaned up when Panel is removed)
- fixed cases that raised deprecation warning for `TimedeltaIndex.fillna()... | https://api.github.com/repos/pandas-dev/pandas/pulls/26076 | 2019-04-13T13:33:53Z | 2019-04-16T07:26:01Z | 2019-04-16T07:26:01Z | 2019-04-16T07:26:05Z |
#26065 Fix Type Annotations in pandas.core.arrays | diff --git a/mypy.ini b/mypy.ini
index 2069c736a2eb4..596d71c77317e 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,24 +11,6 @@ ignore_errors=True
[mypy-pandas.core.api]
ignore_errors=True
-[mypy-pandas.core.arrays.array_]
-ignore_errors=True
-
-[mypy-pandas.core.arrays.datetimelike]
-ignore_errors=True
-
-[mypy-pandas... | - [X] closes #26065
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26071 | 2019-04-12T22:53:35Z | 2019-04-30T13:05:48Z | 2019-04-30T13:05:48Z | 2019-04-30T19:32:00Z |
DOC: better document Dtypes docstrings + avoid sphinx warnings | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 4cf8db895f0ac..fb9a95b6736d5 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -146,6 +146,11 @@ If the data are tz-aware, then every value in the array must have the same timez
:toctree: api/
... | - Use ``class_without_autosummary`` template for the dtypes (similar to what `CategoricalDtype` already did) to avoid a bunch of sphinx warnings
- Therefore, explicitly list some attributes in the docstrings (for now, I went with only documenting the dtype-specific "metadata")
- And while at it, I also gave the docst... | https://api.github.com/repos/pandas-dev/pandas/pulls/26067 | 2019-04-12T18:44:44Z | 2019-04-20T16:50:39Z | 2019-04-20T16:50:39Z | 2019-04-22T07:41:41Z |
Add project_urls to setup | diff --git a/setup.py b/setup.py
index 7f7e58088d2ee..d121a54ded2a1 100755
--- a/setup.py
+++ b/setup.py
@@ -203,6 +203,11 @@ def build_extensions(self):
EMAIL = "pydata@googlegroups.com"
URL = "http://pandas.pydata.org"
DOWNLOAD_URL = ''
+PROJECT_URLS = {
+ 'Bug Tracker': 'https://github.com/pandas-dev/pandas/is... | These are used by PyPI and other services.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26066 | 2019-04-12T18:33:16Z | 2019-04-12T21:58:10Z | 2019-04-12T21:58:10Z | 2019-04-12T21:58:15Z |
BUG: prevent overflowing diffs raising error in cut (#26045) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1953132c826ba..68cfaf539c3f1 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -399,6 +399,7 @@ Reshaping
- Bug in :func:`concat` where the resulting ``freq`` of two :class:`DatetimeIndex` with the ... | - [X] closes #26045
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I added a relevant test with the example reported in the issue in `\tests\reshape\test_cut.py`.
I also tested with `grep -rn pandas -e 'np.diff(bins'` if we could have a simil... | https://api.github.com/repos/pandas-dev/pandas/pulls/26063 | 2019-04-12T13:30:10Z | 2019-04-19T01:03:55Z | 2019-04-19T01:03:54Z | 2019-04-19T01:04:06Z |
Docstring fixes for PR06 errors | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 0b35a031bc53f..c8bb0878b564d 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1175,7 +1175,7 @@ def __arrow_array__(self, type=None):
Parameters
----------
- na_tuple : boole... | This contains some small changes that resolve some of the PR06 errors from running `./scripts/validate_docstrings.py --errors=PR06`
- [x] xref #28724
- [ ] 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/31838 | 2020-02-09T22:30:02Z | 2020-02-10T16:20:40Z | 2020-02-10T16:20:40Z | 2020-02-11T00:24:47Z |
REF: make _setitem_with_indexer iloc-only | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index b2e5d04247e81..c7dcccab00d95 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -630,7 +630,10 @@ def __setitem__(self, key, value):
else:
key = com.apply_if_callable(key, self.obj)
indexer = self._get... | some overlap with #31797.
_setitem_with_indexer is used for positional indexers, so it is misleading for it to be in loc anyway.
_setitem_with_indexer is an absolute beast, will be easier to sort out when we dont have to worry about what class we're in.
The diff looks misleading. All this does is
- move _s... | https://api.github.com/repos/pandas-dev/pandas/pulls/31837 | 2020-02-09T21:16:26Z | 2020-02-10T19:45:15Z | 2020-02-10T19:45:15Z | 2020-02-10T19:45:35Z |
Fixed mypy errors in pandas/tests/extension/json/test_json.py | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index dc03a1f1dcf72..f7ca99be2adea 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -79,7 +79,8 @@ class BaseJSON:
# The default assert_series_equal eventually doe... | Part of #28926
- [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/31836 | 2020-02-09T21:11:26Z | 2020-02-09T21:53:46Z | 2020-02-09T21:53:46Z | 2020-02-09T21:54:01Z |
REF: move loc-only validate_read_indexer to Loc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 70092c70a76ad..9c0842f5536cb 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1304,66 +1304,6 @@ def _getitem_nested_tuple(self, tup: Tuple):
return obj
- def _validate_read_indexer(
- self, key, indexer, a... | straight cut/paste | https://api.github.com/repos/pandas-dev/pandas/pulls/31834 | 2020-02-09T19:36:02Z | 2020-02-09T22:29:34Z | 2020-02-09T22:29:34Z | 2020-02-09T23:51:52Z |
DOC Update documentation DataFrame.nsmallest | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e0efa93379bca..817c71cb814d6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5230,7 +5230,7 @@ def nsmallest(self, n, columns, keep="first") -> "DataFrame":
Examples
--------
>>> df = pd.DataFrame({'population': [... | Modified the example, to better demonstrate the use of the nsmallest function.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31833 | 2020-02-09T19:21:26Z | 2020-02-11T04:48:28Z | 2020-02-11T04:48:28Z | 2020-02-11T04:48:43Z |
CLN: disallow kind=None in _convert_slice_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6bc15a5f89e2a..ff026583c5adb 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3152,7 +3152,7 @@ def _validate_positional_slice(self, key: slice):
self._validate_indexer("positional", key.stop, "iloc")
... | The one place where _convert_slice_indexer is currently called without kind is within _setitem_with_indexer, which I've determined should be iloc-only so it is a no-op. With that usage removed, we can be stricter about what gets passed. | https://api.github.com/repos/pandas-dev/pandas/pulls/31832 | 2020-02-09T19:05:30Z | 2020-02-09T22:27:13Z | 2020-02-09T22:27:13Z | 2020-02-09T23:55:35Z |
Test messages test integer | diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py
index 7a0c9300a43a2..9f0e6407c25f0 100644
--- a/pandas/tests/arrays/test_integer.py
+++ b/pandas/tests/arrays/test_integer.py
@@ -330,26 +330,37 @@ def test_error(self, data, all_arithmetic_operators):
opa = getattr(data, op... | - [ ] xref #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31831 | 2020-02-09T18:55:32Z | 2020-02-09T22:28:28Z | 2020-02-09T22:28:28Z | 2020-02-09T22:28:31Z |
CLN: Use self.loc for Series __getitem__ with IntervalIndex | diff --git a/pandas/core/series.py b/pandas/core/series.py
index dd4c1bce5d64c..056cee4caed41 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -916,11 +916,12 @@ def _get_with(self, key):
# Note: The key_type == "boolean" case should be caught by the
# com.is_bool_indexer check in __... | Clarify that by the time we get to the affected code, the relevant task is determing whether to use loc or iloc. | https://api.github.com/repos/pandas-dev/pandas/pulls/31830 | 2020-02-09T18:52:18Z | 2020-02-09T22:17:19Z | 2020-02-09T22:17:19Z | 2020-02-09T23:58:56Z |
DOC: Use consistent casing in headers | diff --git a/doc/source/user_guide/boolean.rst b/doc/source/user_guide/boolean.rst
index 5276bc6142206..4f0ad0e8ceaeb 100644
--- a/doc/source/user_guide/boolean.rst
+++ b/doc/source/user_guide/boolean.rst
@@ -9,7 +9,7 @@
.. _boolean:
**************************
-Nullable Boolean Data Type
+Nullable Boolean data type... | This is super nitty, but in the left side bar of the user guide the nullable Boolean data type section is the only one that uses all caps (other than Frequently Asked Questions, which possibly makes sense), so this might look a bit better.
https://pandas.pydata.org/pandas-docs/stable/user_guide/index.html#user-guide | https://api.github.com/repos/pandas-dev/pandas/pulls/31829 | 2020-02-09T17:41:36Z | 2020-02-09T22:26:19Z | 2020-02-09T22:26:19Z | 2020-02-09T22:28:15Z |
Backport PR #31820 on branch 1.0.x (correct redirections in doc/redirect.csv for rolling) | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 3a990b09e7f7d..ef93955c14fe6 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -271,21 +271,21 @@ generated/pandas.core.window.Expanding.skew,../reference/api/pandas.core.window.
generated/pandas.core.window.Expanding.std,../reference/api/pandas.core.win... | Backport PR #31820: correct redirections in doc/redirect.csv for rolling | https://api.github.com/repos/pandas-dev/pandas/pulls/31826 | 2020-02-09T17:17:34Z | 2020-02-09T18:43:52Z | 2020-02-09T18:43:52Z | 2020-02-09T18:43:52Z |
Backport PR #31788 on branch 1.0.x (BUG: Too aggressive typing in NDFrame.align) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 70aaaa6d0a60d..b055b44274bd8 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwa... | Backport PR #31788: BUG: Too aggressive typing in NDFrame.align | https://api.github.com/repos/pandas-dev/pandas/pulls/31825 | 2020-02-09T17:13:34Z | 2020-02-09T18:23:43Z | 2020-02-09T18:23:43Z | 2020-02-09T18:23:44Z |
Test messages test period | diff --git a/pandas/tests/arithmetic/test_period.py b/pandas/tests/arithmetic/test_period.py
index abb667260f094..4cf1988a33de1 100644
--- a/pandas/tests/arithmetic/test_period.py
+++ b/pandas/tests/arithmetic/test_period.py
@@ -153,14 +153,17 @@ def test_eq_integer_disallowed(self, other):
result = idx == oth... | - [ ] xref #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31824 | 2020-02-09T16:53:58Z | 2020-02-09T18:04:11Z | 2020-02-09T18:04:11Z | 2020-02-09T18:53:08Z |
DOC: Fix style guide typos | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index a295038b5a0bd..bcddc033a61f5 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -119,14 +119,14 @@ For example:
.. code-block:: python
value = str
- f"Unknown recive... | A few minor spelling / grammar edits | https://api.github.com/repos/pandas-dev/pandas/pulls/31822 | 2020-02-09T14:49:47Z | 2020-02-09T17:11:05Z | 2020-02-09T17:11:05Z | 2020-02-09T17:12:14Z |
correct redirections in doc/redirect.csv for rolling | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 3a990b09e7f7d..ef93955c14fe6 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -271,21 +271,21 @@ generated/pandas.core.window.Expanding.skew,../reference/api/pandas.core.window.
generated/pandas.core.window.Expanding.std,../reference/api/pandas.core.win... | - [x] closes #31762
| https://api.github.com/repos/pandas-dev/pandas/pulls/31820 | 2020-02-09T11:40:01Z | 2020-02-09T17:17:25Z | 2020-02-09T17:17:24Z | 2020-02-11T12:59:56Z |
DOC: '10 minutes to pandas' - <TAB> completion section now show a con… | diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst
index 3055a22129b91..a635b5656bd2d 100644
--- a/doc/source/getting_started/10min.rst
+++ b/doc/source/getting_started/10min.rst
@@ -70,17 +70,17 @@ will be completed:
df2.abs df2.boxplot
df2.add ... | …sistent block of suggestions. Solve issue #31526
- [x] closes #31526
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I didn't run those listed tests above, however I doubt it will break something.
This PR only... | https://api.github.com/repos/pandas-dev/pandas/pulls/31818 | 2020-02-09T04:30:31Z | 2020-02-09T17:23:54Z | 2020-02-09T17:23:54Z | 2020-02-09T17:23:57Z |
BUG: Series[dim3array] failing to raise ValueError for some Index subclasses | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 0786674daf874..1b045b986ea01 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -919,7 +919,7 @@ def _get_with(self, key):
indexer = self.index.get_indexer_for(key)
return self.iloc[indexer]
el... | https://api.github.com/repos/pandas-dev/pandas/pulls/31816 | 2020-02-09T04:00:15Z | 2020-02-09T16:45:05Z | 2020-02-09T16:45:05Z | 2020-02-09T17:24:54Z | |
REF: use public indexers in groupby.ops | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 43d253f632f0f..b27072aa66708 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -309,8 +309,7 @@ cdef class SeriesGrouper(_BaseGrouper):
def __init__(self, object series, object f, object labels,
P... | https://api.github.com/repos/pandas-dev/pandas/pulls/31814 | 2020-02-09T02:53:12Z | 2020-02-09T17:43:31Z | 2020-02-09T17:43:31Z | 2020-02-09T17:48:33Z | |
BUG: iloc setitem with 3d indexer not raising | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 85a26179276f5..536aa53c95fba 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -830,6 +830,9 @@ def setitem(self, indexer, value):
"""
transpose = self.ndim == 2
+ if isins... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
also get the exceptions/messages in test_setitem_ndarray_3d to be maximally-specific | https://api.github.com/repos/pandas-dev/pandas/pulls/31813 | 2020-02-09T00:44:16Z | 2020-02-09T16:44:18Z | 2020-02-09T16:44:18Z | 2020-02-09T17:24:29Z |
CLN: tests.indexing.common | diff --git a/pandas/tests/indexing/common.py b/pandas/tests/indexing/common.py
index 3c027b035c2b8..4804172a22529 100644
--- a/pandas/tests/indexing/common.py
+++ b/pandas/tests/indexing/common.py
@@ -1,11 +1,8 @@
""" common utilities """
import itertools
-from warnings import catch_warnings
import numpy as np
-... | A lot of code in there not doing anything, AFAICT leftover from ix cross-comparisons. | https://api.github.com/repos/pandas-dev/pandas/pulls/31812 | 2020-02-08T23:43:54Z | 2020-02-09T15:00:05Z | 2020-02-09T15:00:05Z | 2020-02-09T15:41:21Z |
ENH: add 'origin' and 'offset' arguments to 'resample' and 'pd.Grouper' | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 6ba58310000cb..076c1313eec4e 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -1572,10 +1572,9 @@ end of the interval is closed:
ts.resample('5Min', closed='left').mean()
... | **EDIT:** this PR has changed, now instead of adding `adjust_timestamp` we are adding `origin` and `offset` arguments to `resample` and `pd.Grouper` (see https://github.com/pandas-dev/pandas/pull/31809#issuecomment-583884772)
----
Hello,
This enhancement is an alternative to the `base` argument present in `pd.... | https://api.github.com/repos/pandas-dev/pandas/pulls/31809 | 2020-02-08T19:11:11Z | 2020-05-10T15:52:55Z | 2020-05-10T15:52:54Z | 2020-05-10T16:45:31Z |
CLN: some code cleanups in pandas/_libs/ | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 5f3d946a1e024..b7f17aee35a44 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -7,13 +7,30 @@ from libc.math cimport fabs, sqrt
import numpy as np
cimport numpy as cnp
-from numpy cimport (ndarray,
- NPY_INT64, N... | - [ ] 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/31808 | 2020-02-08T13:40:45Z | 2020-02-22T15:45:31Z | 2020-02-22T15:45:31Z | 2020-02-29T10:27:10Z |
Backport PR #31748: BUG: Fixed encoding of pd.NA with to_json | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 94dc1e0c007ca..70aaaa6d0a60d 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -25,8 +25,9 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
--
+**I/O**
+
+- Using ``pd.NA`` with :meth:`DataFrame.to_json` ... | Backport PR #31748 | https://api.github.com/repos/pandas-dev/pandas/pulls/31804 | 2020-02-08T08:15:36Z | 2020-02-08T10:31:37Z | 2020-02-08T10:31:37Z | 2020-02-08T10:31:41Z |
Added pd.NA to nulls_fixture | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 7851cba9cd91a..d19bf85877140 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -441,7 +441,7 @@ def other_closed(request):
return request.param
-@pytest.fixture(params=[None, np.nan, pd.NaT, float("nan"), np.float("NaN")])
+@pytest.fixture(pa... | @jorisvandenbossche
I think we should do this. Simply xfailed issues up for discussion on how to resolve
| https://api.github.com/repos/pandas-dev/pandas/pulls/31799 | 2020-02-08T00:09:08Z | 2020-02-20T04:51:08Z | 2020-02-20T04:51:08Z | 2023-04-12T20:17:36Z |
CLN: assorted indexing-related cleanups | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e0efa93379bca..c6f77591de033 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2933,12 +2933,12 @@ def __setitem__(self, key, value):
# set column
self._set_item(key, value)
- def _setitem_slice(self, key, value... | - _setitem_with_indexer isnt consistent about whether or not it returns anything, make it always-None
- avoid using private loc method from DataFrame
| https://api.github.com/repos/pandas-dev/pandas/pulls/31797 | 2020-02-07T22:26:40Z | 2020-02-10T10:39:25Z | 2020-02-10T10:39:25Z | 2020-02-10T16:20:43Z |
BUG: Avoid casting Int to object in Categorical.from_codes | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index f4bb8c580fb08..8f04032e1ca09 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -28,6 +28,10 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+**Categorical**
+
+- Fixed bug where :meth:`Categorical.from_code... | - [x] closes #31779
- [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/31794 | 2020-02-07T21:37:33Z | 2020-02-12T12:36:51Z | 2020-02-12T12:36:50Z | 2020-02-12T15:34:46Z |
Some code cleanups | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 85a26179276f5..e6685ea200992 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -85,8 +85,6 @@
import pandas.core.missing as missing
from pandas.core.nanops import nanpercentile
-from pandas.io.fo... | - [ ] 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/31792 | 2020-02-07T20:50:04Z | 2020-02-12T16:09:01Z | 2020-02-12T16:09:01Z | 2020-02-29T10:32:22Z |
CI: fix feather test | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index d7a21b27308e8..404f5a477187b 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -141,24 +141,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
pytest.importorskip(module... | https://api.github.com/repos/pandas-dev/pandas/pulls/31791 | 2020-02-07T20:44:58Z | 2020-02-08T00:13:10Z | 2020-02-08T00:13:10Z | 2020-03-12T13:31:17Z | |
BUG: Too aggressive typing in NDFrame.align | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 70aaaa6d0a60d..b055b44274bd8 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwa... | - [x] closes #31785
The type checking was too aggressive. ``right`` has type ``Any``, so the wrapping in ``_ensure_type`` should not be done. | https://api.github.com/repos/pandas-dev/pandas/pulls/31788 | 2020-02-07T18:50:27Z | 2020-02-09T17:12:59Z | 2020-02-09T17:12:59Z | 2020-02-12T21:49:41Z |
REF: remove iloc case from _convert_slice_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e8ad2bef099a1..c094996f69419 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3142,6 +3142,15 @@ def _convert_scalar_indexer(self, key, kind: str_t):
return key
+ def _validate_positional_slice(sel... | _convert_slice_indexer is turning out to be one of the stickier methods to figure out, xref #31658.
The case with kind=None is only called from one place in core.indexing, and that is not reached in the tests. I'd like to either a) figure out a non-None kind to pass to it, or b) determine that it can never be reach... | https://api.github.com/repos/pandas-dev/pandas/pulls/31786 | 2020-02-07T18:12:27Z | 2020-02-09T17:06:36Z | 2020-02-09T17:06:36Z | 2020-02-10T20:10:01Z |
BUG: fix StringArray/PandasArray setitem with slice | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index f4bb8c580fb08..6d91ba4e43ac1 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -32,6 +32,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Closes #31772 | https://api.github.com/repos/pandas-dev/pandas/pulls/31773 | 2020-02-07T12:03:45Z | 2020-02-12T12:38:27Z | 2020-02-12T12:38:27Z | 2020-02-12T13:14:26Z |
ERR: improve error message for invalid indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e431d0bcf7e9b..e8ad2bef099a1 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3158,9 +3158,9 @@ def _convert_slice_indexer(self, key: slice, kind=None):
# validate iloc
if kind == "iloc":
- ... | Convert the long repr of the Index into just the name. So something like
```
cannot do slice indexing on <class 'pandas.core.indexes.datetimes.DatetimeIndex'> with these indexers [key] of <class 'float'>
```
becomes
```
cannot do slice indexing on DatetimeIndex with these indexers [key] of type float"
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/31769 | 2020-02-07T08:47:08Z | 2020-02-08T10:26:59Z | 2020-02-08T10:26:59Z | 2020-02-08T10:27:06Z |
CLN: trim unreachable indexing code | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e0efa93379bca..c67679b5ecc41 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3011,17 +3011,12 @@ def _set_value(self, index, col, value, takeable: bool = False):
col : column label
value : scalar
takeable : interp... | make _set_value not return anything (the DataFrame docstring in particular is misleading) | https://api.github.com/repos/pandas-dev/pandas/pulls/31768 | 2020-02-07T04:11:11Z | 2020-02-09T20:42:31Z | 2020-02-09T20:42:31Z | 2020-02-09T20:58:48Z |
TST: parametrize some indexing tests | diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py
index 8bb88cd9fd63a..6cc18a3989266 100644
--- a/pandas/tests/indexing/test_floats.py
+++ b/pandas/tests/indexing/test_floats.py
@@ -59,115 +59,117 @@ def test_scalar_error(self, index_func):
with pytest.raises(TypeError, m... | 2/many | https://api.github.com/repos/pandas-dev/pandas/pulls/31767 | 2020-02-07T03:29:37Z | 2020-02-09T16:42:15Z | 2020-02-09T16:42:15Z | 2020-02-09T17:23:42Z |
REF: share _partial_date_slice between PeriodIndex/DatetimeIndex | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index b143ff0aa9c02..d622baf515b82 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -1,6 +1,7 @@
"""
Base and utility classes for tseries type pandas objects.
"""
+from datetime import ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31766 | 2020-02-07T01:51:47Z | 2020-02-09T16:56:08Z | 2020-02-09T16:56:08Z | 2020-02-09T17:29:46Z | |
REF: Remove CategoricalIndex.get_value | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 85229c728848f..7373f41daefa4 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -1,4 +1,4 @@
-from typing import TYPE_CHECKING, Any, List
+from typing import Any, List
import warnings
import numpy... | It is no longer needed following #31724. | https://api.github.com/repos/pandas-dev/pandas/pulls/31765 | 2020-02-07T01:47:17Z | 2020-02-09T14:58:33Z | 2020-02-09T14:58:33Z | 2020-02-09T15:47:49Z |
Backport PR #31729 on branch 1.0.x (BUG: Fix to_excel writers handling of cols) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 07a837829c384..94dc1e0c007ca 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | Backport PR #31729: BUG: Fix to_excel writers handling of cols | https://api.github.com/repos/pandas-dev/pandas/pulls/31764 | 2020-02-06T23:41:26Z | 2020-02-07T00:38:54Z | 2020-02-07T00:38:54Z | 2020-02-07T00:38:54Z |
REF/TST: misplaced tests in tests.indexes.period | diff --git a/pandas/tests/indexes/datetimes/test_astype.py b/pandas/tests/indexes/datetimes/test_astype.py
index 6139726dc34e4..916f722247a14 100644
--- a/pandas/tests/indexes/datetimes/test_astype.py
+++ b/pandas/tests/indexes/datetimes/test_astype.py
@@ -1,7 +1,6 @@
from datetime import datetime
import dateutil
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/31758 | 2020-02-06T20:10:22Z | 2020-02-09T17:04:58Z | 2020-02-09T17:04:58Z | 2020-02-09T17:23:01Z | |
BUG Decode to UTF-8 the dtype string read from a hdf file | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 64f0cb3f2e26d..0ac26ca65f468 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -184,6 +184,7 @@ I/O
- Bug in :meth:`DataFrame.to_parquet` overwriting pyarrow's default for
``coerce_timestamps``; foll... | Fixes GH31750
The dtype value wasn't being decoded to `UTF-8` when reading a DataFrame
from a hdf file. This was a problem when reading a hdf that was
created from python 2 with a fixed format as the dtype was being read as `b'datetime'`
instead of `datetime`, which caused `HDFStore` to read the data as
`int64` ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31756 | 2020-02-06T20:02:14Z | 2020-02-09T21:34:20Z | 2020-02-09T21:34:20Z | 2020-02-10T13:49:36Z |
CLN: misplaced TimedeltaIndex tests | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index ca4d1ff067f3d..19b72d42062aa 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -94,6 +94,14 @@ def test_loc_iterable(self, float_frame, key_type):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/31755 | 2020-02-06T19:24:38Z | 2020-02-09T15:02:58Z | 2020-02-09T15:02:58Z | 2020-02-09T15:39:46Z | |
CLN/TST: organize DatetimeIndex tests | diff --git a/pandas/tests/indexes/datetimes/test_constructors.py b/pandas/tests/indexes/datetimes/test_constructors.py
index 95d14ad4c86f7..1d1d371fcec1e 100644
--- a/pandas/tests/indexes/datetimes/test_constructors.py
+++ b/pandas/tests/indexes/datetimes/test_constructors.py
@@ -950,3 +950,12 @@ def test_datetimeindex... | 1/many | https://api.github.com/repos/pandas-dev/pandas/pulls/31753 | 2020-02-06T18:54:23Z | 2020-02-06T23:48:19Z | 2020-02-06T23:48:19Z | 2020-02-06T23:53:21Z |
F string fixes | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index 04fd4835469a9..78b630bb5ada1 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -60,9 +60,7 @@ def compare_element(result, expected, typ, version=None):
assert result == expected
... | Related to issue https://github.com/pandas-dev/pandas/issues/29547 | https://api.github.com/repos/pandas-dev/pandas/pulls/31751 | 2020-02-06T17:33:01Z | 2020-02-06T21:43:30Z | 2020-02-06T21:43:30Z | 2020-02-06T21:43:36Z |
Backport PR #31745 on branch 1.0.x (CI: Update travis-37.yaml Conda channel ) | diff --git a/ci/deps/travis-37.yaml b/ci/deps/travis-37.yaml
index 73e2c20b31438..682b1016ff3a2 100644
--- a/ci/deps/travis-37.yaml
+++ b/ci/deps/travis-37.yaml
@@ -2,7 +2,6 @@ name: pandas-dev
channels:
- defaults
- conda-forge
- - c3i_test
dependencies:
- python=3.7.*
| Backport PR #31745: CI: Update travis-37.yaml Conda channel | https://api.github.com/repos/pandas-dev/pandas/pulls/31749 | 2020-02-06T15:44:25Z | 2020-02-06T23:41:55Z | 2020-02-06T23:41:55Z | 2020-02-06T23:41:55Z |
BUG: Fixed encoding of pd.NA with to_json | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 07a837829c384..182ad7231983e 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -25,8 +25,9 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
--
+**I/O**
+
+- Using ``pd.NA`` with :meth:`DataFrame.to_json` ... | - [x] closes #31615
- [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/31748 | 2020-02-06T13:57:26Z | 2020-02-08T08:11:34Z | 2020-02-08T08:11:34Z | 2020-02-08T08:17:10Z |
CI: Update travis-37.yaml Conda channel | diff --git a/ci/deps/travis-37.yaml b/ci/deps/travis-37.yaml
index 73e2c20b31438..682b1016ff3a2 100644
--- a/ci/deps/travis-37.yaml
+++ b/ci/deps/travis-37.yaml
@@ -2,7 +2,6 @@ name: pandas-dev
channels:
- defaults
- conda-forge
- - c3i_test
dependencies:
- python=3.7.*
| Remove unrequired channel
- [x] closes #31739
Cc @TomAugspurger
| https://api.github.com/repos/pandas-dev/pandas/pulls/31745 | 2020-02-06T13:36:53Z | 2020-02-06T15:44:12Z | 2020-02-06T15:44:11Z | 2020-02-06T15:44:14Z |
TST: expand tests for ExtensionArray setitem with nullable arrays | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index 590bcd586900a..af70799c0236e 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -4,7 +4,7 @@
import pytest
import pandas as pd
-from pandas.core.arrays.numpy_ import Pa... | Follow-up on https://github.com/pandas-dev/pandas/pull/31484 to add some more test cases (eg also test the validation done in the `check_array_indexer` (wrong length, missing values), as well for nullable integer arrays), similarly to the tests I added for `__getitem__`.
cc @charlesdong1991 | https://api.github.com/repos/pandas-dev/pandas/pulls/31741 | 2020-02-06T10:22:46Z | 2020-02-13T13:39:47Z | 2020-02-13T13:39:47Z | 2020-02-13T13:41:55Z |
Backport PR #31723 on branch 1.0.x (DOC: Add 1.0.2 whatsnew) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index c9495d5b137fd..76d13478612ee 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -18,6 +18,7 @@ Version 1.0
v1.0.0
v1.0.1
+ v1.0.2
Version 0.25
------------
diff --git a/doc/source/whatsnew/v1.... | Backport PR #31723: DOC: Add 1.0.2 whatsnew | https://api.github.com/repos/pandas-dev/pandas/pulls/31737 | 2020-02-06T07:49:29Z | 2020-02-06T11:12:07Z | 2020-02-06T11:12:07Z | 2020-02-06T11:12:07Z |
REF: turn _try_mi into MultiIndex._get_values_for_loc | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3c735fc0309b6..cb827851cc595 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4601,7 +4601,7 @@ def get_value(self, series: "Series", key):
else:
raise
- return self._get_val... | Discussed in #31640. | https://api.github.com/repos/pandas-dev/pandas/pulls/31736 | 2020-02-06T05:18:42Z | 2020-02-09T17:04:00Z | 2020-02-09T17:04:00Z | 2020-02-09T17:26:37Z |
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 0216007ea5ba8..19358689a2186 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -31,6 +31,7 @@ Bug fixes
**Categorical**
- Fixed bug where :meth:`Categorical.from_codes` improperly raised a ``ValueErr... | - [X] closes #31720
- [X] tests added / passed
- [x] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Covers the case where `to_replace` is a list-like and `value` is a string. Other cases, like "`to_replace` is dict and `value` is None", or "`to_rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/31734 | 2020-02-06T04:41:51Z | 2020-02-17T16:59:53Z | 2020-02-17T16:59:53Z | 2020-02-17T17:00:54Z |
Add --quiet option to isort command | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0cc42be42d61e..b46989894ae12 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -113,7 +113,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
# Imports - Check formatting using isort see setup.cfg for settings
MSG='Check import format using... | - [x] closes #30974
- [ ] 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/31733 | 2020-02-06T04:00:01Z | 2020-02-07T06:12:19Z | 2020-02-07T06:12:18Z | 2020-02-07T06:12:44Z |
fixed mypy errors in mypy-pandas.tests.extension.decimal.test_decimal | diff --git a/pandas/tests/extension/base/base.py b/pandas/tests/extension/base/base.py
index 144b0825b39a2..97d8e7c66dbdb 100644
--- a/pandas/tests/extension/base/base.py
+++ b/pandas/tests/extension/base/base.py
@@ -2,8 +2,20 @@
class BaseExtensionTests:
+ # classmethod and different signature is needed
+ #... | Part of #28926
- [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/31730 | 2020-02-06T01:54:12Z | 2020-02-09T17:48:38Z | 2020-02-09T17:48:38Z | 2020-02-09T17:48:39Z |
BUG: Fix to_excel writers handling of cols | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 07a837829c384..94dc1e0c007ca 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | - [x] closes #31677
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry - pending https://github.com/pandas-dev/pandas/pull/31723
Ref: https://github.com/pandas-dev/pandas/pull/31723
cc. @WillAyd @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/31729 | 2020-02-06T00:32:35Z | 2020-02-06T23:41:13Z | 2020-02-06T23:41:13Z | 2020-05-01T22:02:17Z |
TYP: partial typing of masked array | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index db62136947250..590b40b0434e5 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -1,10 +1,11 @@
import numbers
-from typing import TYPE_CHECKING, Any, List, Tuple, Type, Union
+from typing import TYPE_CHECKIN... | https://api.github.com/repos/pandas-dev/pandas/pulls/31728 | 2020-02-05T23:42:50Z | 2020-02-12T01:32:21Z | 2020-02-12T01:32:21Z | 2020-02-12T20:56:43Z | |
TST/CLN: dtype test_construct_from_string | diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py
index 67c4fef7079e2..dd99b81fb6764 100644
--- a/pandas/tests/dtypes/test_dtypes.py
+++ b/pandas/tests/dtypes/test_dtypes.py
@@ -233,27 +233,27 @@ def test_compat(self, dtype):
def test_construction_from_string(self, dtype):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/31727 | 2020-02-05T23:38:33Z | 2020-02-06T08:37:13Z | 2020-02-06T08:37:13Z | 2020-02-06T23:41:32Z | |
API/BUG: make .at raise same exceptions as .loc | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 64f0cb3f2e26d..aea5695a96388 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -63,7 +63,8 @@ Backwards incompatible API changes
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and simil... | - [x] closes #31722
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This also (very) indirectly addresses #31683 which in turn will let us get rid of `CategoricalIndex.get_value` altogether. | https://api.github.com/repos/pandas-dev/pandas/pulls/31724 | 2020-02-05T21:51:48Z | 2020-02-06T23:58:06Z | 2020-02-06T23:58:05Z | 2020-02-07T08:49:26Z |
DOC: Add 1.0.2 whatsnew | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 111caa81f7169..68aabfe76d8de 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -26,6 +26,7 @@ Version 1.0
v1.0.0
v1.0.1
+ v1.0.2
Version 0.25
------------
diff --git a/doc/source/whatsnew/v1.... | - Need this for PR https://github.com/pandas-dev/pandas/issues/31677
cc. @TomAugspurger @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/31723 | 2020-02-05T21:43:43Z | 2020-02-06T07:49:01Z | 2020-02-06T07:49:01Z | 2020-02-06T21:05:06Z |
CLN: inconsistent kwarg name | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index acbf05a74d118..63e4679a85ade 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -599,7 +599,7 @@ def _slice(self, obj, axis: int, kind=None):
def _get_setitem_indexer(self, key):
if self.axis is not None:
- ... | A couple of days ago the "setting" kwarg got introduced in core.indexing, but I should have called it "is_setter" to match the existing pattern in that module. This fixes that. | https://api.github.com/repos/pandas-dev/pandas/pulls/31721 | 2020-02-05T20:58:40Z | 2020-02-06T17:16:23Z | 2020-02-06T17:16:23Z | 2020-04-05T17:34:04Z |
fix type errors in pandas/tests/extension/json/array.py | diff --git a/pandas/tests/extension/json/array.py b/pandas/tests/extension/json/array.py
index 9e741bb7f267c..1ba1b872fa5e2 100644
--- a/pandas/tests/extension/json/array.py
+++ b/pandas/tests/extension/json/array.py
@@ -16,7 +16,7 @@
import random
import string
import sys
-from typing import Type
+from typing impor... | Part of #28926
- [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/31718 | 2020-02-05T19:21:46Z | 2020-02-05T20:59:22Z | 2020-02-05T20:59:22Z | 2020-02-05T20:59:29Z |
REF: organize MultiIndex indexing tests | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 26d120619defc..da27057a783ab 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -167,6 +167,10 @@ def test_create_index_existing_name(self):
def test_numeric_compat(self):
idx = self.creat... | https://api.github.com/repos/pandas-dev/pandas/pulls/31715 | 2020-02-05T18:44:09Z | 2020-02-07T00:01:27Z | 2020-02-07T00:01:27Z | 2020-02-07T00:02:47Z | |
DOC: Fix whatsnew in 1.0.x | diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template
index f3053452b4e6c..820a9d6285e0e 100644
--- a/doc/source/index.rst.template
+++ b/doc/source/index.rst.template
@@ -117,7 +117,7 @@ programming language.
:hidden:
{% endif %}
{% if not single_doc %}
- What's New in 1.0.0 <whatsnew/v1... | Need to figure out a better system for this :/ I've already tagged and pushed 1.0.1, so I'm applying this to my local doc build. | https://api.github.com/repos/pandas-dev/pandas/pulls/31714 | 2020-02-05T18:22:20Z | 2020-02-05T19:08:08Z | 2020-02-05T19:08:08Z | 2020-02-05T19:08:12Z |
REF: Index.get_value call self.get_loc instead of self._engine.get_loc | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 891ae95db65a0..3c735fc0309b6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4590,9 +4590,9 @@ def get_value(self, series: "Series", key):
# If that fails, raise a KeyError if an integer
... | This makes Index.get_value match ExtensionIndex.get_value, so we can remove the latter.
Along with implementing _should_fallback_to_positional, this allows us to rip out Float64Index.get_value. | https://api.github.com/repos/pandas-dev/pandas/pulls/31713 | 2020-02-05T17:41:31Z | 2020-02-06T23:57:36Z | 2020-02-06T23:57:36Z | 2020-02-06T23:58:07Z |
DOC Adds newline to dataframe melt | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8b3fd808957bb..e0efa93379bca 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6557,7 +6557,9 @@ def unstack(self, level=-1, fill_value=None):
@Appender(
_shared_docs["melt"]
% dict(
- caller="df.melt(", vers... | Adds newline before versionadded in `dataframe.melt` so that sphinx/rst can pick it up and render it correctly.
- [ ] closes #xxxx
- [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/31712 | 2020-02-05T17:24:05Z | 2020-02-05T21:06:25Z | 2020-02-05T21:06:25Z | 2020-02-05T21:06:32Z |
CLN: _convert_scalar_indexer only handle "loc" and "getitem" | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3c735fc0309b6..e431d0bcf7e9b 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3100,20 +3100,16 @@ def _filter_indexer_tolerance(
# --------------------------------------------------------------------
# I... | `_convert_scalar_indexer` is called with kind="iloc" from only one place, and in that case
1) the base class method is equivalent to just the 1-liner `self._validate_indexer("positional", key, "iloc")`
2) all subclasses just call the base class method
So by inlining that 1-liner, we can take the "iloc" case out ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31709 | 2020-02-05T16:43:15Z | 2020-02-07T01:46:52Z | 2020-02-07T01:46:52Z | 2020-02-07T01:54:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.