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
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
ENH: add arrow engine to read_csv
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 9bcd125f56bbb..c1fad1efde082 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -1,4 +1,4 @@ -from io import StringIO +from io import BytesIO, StringIO import random import string @@ -146,10 +146,10 @...
- [x] closes #23697 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ASV's, 100,000 rows, 5 columns, for reading from BytesIO & StringIO buffers (running on 2 core machine). ``` [ 75.00%] ··· io.csv.ReadCSVEngine.t...
https://api.github.com/repos/pandas-dev/pandas/pulls/31817
2020-02-09T04:27:30Z
2020-12-08T18:21:40Z
null
2020-12-24T19:55:35Z
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
check parser_dates names in columns
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d87fa5203bd52..a337ccbc98650 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...
if column names are passed in parser_dates, make sure those columns exist in dataframe. - [x] closes #31251 - [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/31815
2020-02-09T02:54:54Z
2020-03-03T03:25:36Z
null
2020-03-03T04:04: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
CI Fix w/o tm helper
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 404f5a477187b..bf03a19762128 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -141,7 +141,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext): pytest.importorskip(module)...
Alternate to #31791
https://api.github.com/repos/pandas-dev/pandas/pulls/31800
2020-02-08T00:24:11Z
2020-02-14T16:55:07Z
null
2023-04-12T20:17:38Z
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
ENH: add Series.info
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 1286577748afa..4636889c37c30 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -118,6 +118,7 @@ Other enhancements - :class:`Index` with object dtype supports division and multiplication (:issue:`34160`...
- [x] initial draft to close #5167 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry screenshot of the example ![image](https://user-images.githubusercontent.com/33491632/74069703-f1754b80-49f6-11ea-8c9e-8ec4e16166f1....
https://api.github.com/repos/pandas-dev/pandas/pulls/31796
2020-02-07T22:12:38Z
2020-10-07T16:39:28Z
null
2020-10-10T14:14:44Z
ENH: add from_dummies
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a797090a83444..1ccd82a894234 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -82,6 +82,7 @@ Other enhancements - :class:`Styler` may now render CSS more efficiently where multiple cells have the same ...
Just a first draft Will close #8745 Screenshot of examples ![image](https://user-images.githubusercontent.com/33491632/74546261-3989f600-4f42-11ea-98e0-14c8ae4658ff.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/31795
2020-02-07T21:59:08Z
2020-05-26T09:43:37Z
null
2020-10-10T14:14:50Z
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
TST: Making use of tm.external_error_raised
diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index aa966caa63238..98e6cbe693111 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -298,7 +298,7 @@ def test_delete(self): newb = self.fblock.copy() - ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry After #31130 got merged, I can do what I couldn't do [here](https://github.com/pandas-dev/pandas/pull/30998#discussion_r368177775)
https://api.github.com/repos/pandas-dev/pandas/pulls/31790
2020-02-07T19:47:34Z
2020-02-20T02:21:16Z
null
2020-02-29T10:32:49Z
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
replaced old format strings
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 3742506a7f8af..67bc51892a4e1 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -639,7 +639,7 @@ cdef inline int64_t parse_iso_format_string(object ts) except? -1: bint have_dot =...
Changed the string formatting to f-strings. ref #29547 - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/31761
2020-02-06T21:36:36Z
2020-03-07T21:17:30Z
null
2020-03-07T21:17:30Z
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
Implement some reductions for string Series
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index f491774991090..bb315987b21d9 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -59,6 +59,10 @@ Previously indexing with a nullable Boolean array containing ``NA`` would raise Bug fixes ~~~~~~~~~ +**E...
- [x] closes #31746, closes #18588 - [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/31757
2020-02-06T20:03:28Z
2020-03-05T02:24:36Z
null
2021-03-30T20:16:50Z
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
REF: _cython_agg_blocks
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index f194c774cf329..dc2e80c4ae371 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1022,9 +1022,32 @@ def _cython_agg_blocks( agg_blocks: List[Block] = [] new_items: List[np.ndarray] = [] ...
This is effectively an alternative approach to #31616, trying to use a 1-pass approach. This does _not_ address the uniqueness problem discussed in #31735. cc @TomAugspurger @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/31752
2020-02-06T17:37:16Z
2020-02-08T00:41:34Z
null
2020-08-27T20:18:58Z
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
fix mypy errors in pandas/tests/arithmetic/test_datetime64.py
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index b67d0dcea0ac6..aff7d6fe988c3 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1,6 +1,6 @@ from datetime import date, datetime, time, timedelta, tzinfo import operator -from typing import Opti...
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/31716
2020-02-05T18:52:59Z
2020-02-19T12:02:59Z
null
2020-02-19T14:09:38Z
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
Manul backport of pr 31666 on 1.0.x
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 1229f2ad061b8..88272da535ab0 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2158,6 +2158,16 @@ def iget(self, key): result = Timedelta(result) return result + def iget(...
Kind of confused, it looks like the test implemented by 31666 already got backported?
https://api.github.com/repos/pandas-dev/pandas/pulls/31707
2020-02-05T16:18:53Z
2020-02-05T16:27:00Z
null
2020-02-05T16:27:11Z
Backport PR #31704 on branch 1.0.x (DOC: fix contributors listing for v1.0.1)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 5863ff7367626..ef3bb8161d13f 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -76,4 +76,4 @@ Bug fixes Contributors ~~~~~~~~~~~~ -.. contributors:: v0.25.3..v1.0.1|HEAD +.. contributors:: v1.0.0..v1...
Backport PR #31704: DOC: fix contributors listing for v1.0.1
https://api.github.com/repos/pandas-dev/pandas/pulls/31706
2020-02-05T15:54:50Z
2020-02-05T15:57:47Z
2020-02-05T15:57:47Z
2020-02-05T15:57:47Z
DOC: fix contributors listing for v1.0.1
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 5863ff7367626..ef3bb8161d13f 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -76,4 +76,4 @@ Bug fixes Contributors ~~~~~~~~~~~~ -.. contributors:: v0.25.3..v1.0.1|HEAD +.. contributors:: v1.0.0..v1...
Follow-up on https://github.com/pandas-dev/pandas/pull/31699
https://api.github.com/repos/pandas-dev/pandas/pulls/31704
2020-02-05T15:28:05Z
2020-02-05T15:54:39Z
2020-02-05T15:54:39Z
2020-02-05T15:54:43Z
Backport PR #31616 on branch 1.0.x (REGR: Fixed AssertionError in groupby)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 222690b2aed8d..6b26e46e7eb55 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`...
Backport PR #31616: REGR: Fixed AssertionError in groupby
https://api.github.com/repos/pandas-dev/pandas/pulls/31703
2020-02-05T14:55:38Z
2020-02-05T15:40:56Z
2020-02-05T15:40:56Z
2020-02-05T15:40:56Z
Backport PR #31699 on branch 1.0.x (DOC: Update 1.0.1 release notes)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 222690b2aed8d..bf9fa5f9d0708 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -1,7 +1,7 @@ .. _whatsnew_101: -What's new in 1.0.1 (??) ------------------------- +What's new in 1.0.1 (February 5, 2020...
Backport PR #31699: DOC: Update 1.0.1 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/31702
2020-02-05T14:43:33Z
2020-02-05T15:22:36Z
2020-02-05T15:22:36Z
2020-02-05T15:22:37Z
started to fixturize pandas/tests/base
diff --git a/pandas/conftest.py b/pandas/conftest.py index 131a011c5a101..78feaa817b531 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -17,6 +17,7 @@ from pandas import DataFrame import pandas._testing as tm from pandas.core import ops +from pandas.core.indexes.api import Index, MultiIndex hypothesis...
Part of #23877 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ------------------------------------------- I didn't apply the fixtures to the rest of `test_ops.py` yet since @jreback voiced some [concerns in this comment](https://github....
https://api.github.com/repos/pandas-dev/pandas/pulls/31701
2020-02-05T14:32:07Z
2020-02-15T01:12:49Z
2020-02-15T01:12:49Z
2020-02-15T01:22:29Z
TYP: remove type:ignore from pandas/io/common.py
diff --git a/pandas/io/common.py b/pandas/io/common.py index e506cc155d48d..c4772895afd1e 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -7,7 +7,19 @@ import mmap import os import pathlib -from typing import IO, Any, AnyStr, Dict, List, Mapping, Optional, Tuple, Union +from typing import ( + IO, + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31700
2020-02-05T14:19:24Z
2020-02-05T15:12:31Z
2020-02-05T15:12:31Z
2020-02-05T15:20:32Z
DOC: Update 1.0.1 release notes
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 222690b2aed8d..bf9fa5f9d0708 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -1,7 +1,7 @@ .. _whatsnew_101: -What's new in 1.0.1 (??) ------------------------- +What's new in 1.0.1 (February 5, 2020...
cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/31699
2020-02-05T13:51:06Z
2020-02-05T14:43:22Z
2020-02-05T14:43:22Z
2020-02-05T15:28:25Z
Backport PR #31596 on branch 1.0.x (BUG: read_csv used in file like object RawIOBase is not recognize encoding option)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 2ca836d9c5508..222690b2aed8d 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -33,6 +33,7 @@ Fixed regressions - Fixed regression in :meth:`qcut` when passed a nullable integer. (:issue:`31389`) - Fix...
Backport PR #31596: BUG: read_csv used in file like object RawIOBase is not recognize encoding option
https://api.github.com/repos/pandas-dev/pandas/pulls/31698
2020-02-05T13:27:18Z
2020-02-05T14:16:20Z
2020-02-05T14:16:20Z
2020-02-05T14:16:21Z
DOC: Removed Notes from DataFrame.applymap
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 83a2a509c0743..9fe3c6aa48ca2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6969,14 +6969,6 @@ def applymap(self, func) -> "DataFrame": -------- DataFrame.apply : Apply a function along input axis of DataFrame. - ...
- closes #31620 Documentation screenshot: ![Screenshot from 2020-02-05 17-08-33](https://user-images.githubusercontent.com/39258575/73838709-5172c300-483a-11ea-96b4-6faa1918b73f.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/31695
2020-02-05T11:40:05Z
2020-06-03T07:53:19Z
null
2020-06-03T07:53:19Z
Backport PR #31690 on branch 1.0.x (TST: add test for regression in groupby with empty MultiIndex level)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index c82a58e5d3c45..2ca836d9c5508 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ...
Backport PR #31690: TST: add test for regression in groupby with empty MultiIndex level
https://api.github.com/repos/pandas-dev/pandas/pulls/31692
2020-02-05T10:17:17Z
2020-02-05T11:09:51Z
2020-02-05T11:09:51Z
2020-02-05T11:09:51Z
TST: add test for regression in groupby with empty MultiIndex level
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index c82a58e5d3c45..2ca836d9c5508 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ...
Closes https://github.com/pandas-dev/pandas/issues/31670 (the actual fix was already in #29243)
https://api.github.com/repos/pandas-dev/pandas/pulls/31690
2020-02-05T09:00:05Z
2020-02-05T10:17:06Z
2020-02-05T10:17:06Z
2020-02-05T10:17:11Z
Backport PR #29243 on branch 1.0.x (Follow up PR: #28097 Simplify branch statement)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 6c125e17e5549..0c57b27f325d0 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1270,10 +1270,10 @@ def _get_grouper_for_level(self, mapper, level): # on the output of a groupby doesn't reflect back...
Backport PR #29243: Follow up PR: #28097 Simplify branch statement
https://api.github.com/repos/pandas-dev/pandas/pulls/31689
2020-02-05T08:47:51Z
2020-02-05T09:47:56Z
2020-02-05T09:47:56Z
2020-02-05T09:47:57Z
Backport PR #31666: BUG: Block.iget not wrapping timedelta64/datetime64
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index be888f1952636..9aa9ece9a5267 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -25,6 +25,7 @@ Fixed regressions - Fixed regression in :meth:`to_datetime` when parsing non-nanosecond resolution datetimes...
Backport of https://github.com/pandas-dev/pandas/pull/31666
https://api.github.com/repos/pandas-dev/pandas/pulls/31688
2020-02-05T08:45:09Z
2020-02-05T09:47:31Z
2020-02-05T09:47:31Z
2020-02-05T09:47:35Z
DOC: fixup v1.0.1 whatsnew entries
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 0e36fd149d9cc..c82a58e5d3c45 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -20,9 +20,12 @@ Fixed regressions - Fixed regression in ``DataFrame.__setitem__`` raising an ``AttributeError`` with a :cla...
Fixing the merge of https://github.com/pandas-dev/pandas/pull/31614
https://api.github.com/repos/pandas-dev/pandas/pulls/31686
2020-02-05T08:36:47Z
2020-02-05T08:39:55Z
2020-02-05T08:39:55Z
2020-02-05T08:40:18Z
Backport PR #31614: REGR: fix non-reduction apply with tz-aware objects
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index be888f1952636..df8cf1932f793 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ...
backport https://github.com/pandas-dev/pandas/pull/31614
https://api.github.com/repos/pandas-dev/pandas/pulls/31685
2020-02-05T08:30:02Z
2020-02-05T09:35:44Z
2020-02-05T09:35:44Z
2020-02-05T09:35:53Z
BUG: string methods with NA
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 70aaaa6d0a60d..ac0a3ae42f6db 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -29,6 +29,10 @@ Bug fixes - Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ...
- [x] closes #31632 - [ ] 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/31684
2020-02-05T06:41:15Z
2020-03-10T14:08:01Z
2020-03-10T14:08:01Z
2020-03-10T14:09:34Z
REF: Use _maybe_cast_indexer and dont override Categorical.get_loc
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 718b6afb70e06..2eda54ec8d4ed 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -439,44 +439,10 @@ def _to_safe_for_reshape(self): """ convert to object if we are a categorical """ r...
https://api.github.com/repos/pandas-dev/pandas/pulls/31681
2020-02-05T03:55:04Z
2020-02-06T23:59:31Z
2020-02-06T23:59:31Z
2020-02-07T00:05:47Z
CLN: remove libindex.get_value_at
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 5ea0108d87c9a..4185cc2084469 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,17 +1,12 @@ -from datetime import datetime, timedelta, date import warnings -import cython - import numpy as np cimport numpy as cnp from numpy cim...
There was a usage in MultiIndex.get_value that was just removed, leaving just the one in sparse.array that this changes to handle in python-space.
https://api.github.com/repos/pandas-dev/pandas/pulls/31680
2020-02-05T03:29:43Z
2020-02-07T00:04:21Z
2020-02-07T00:04:21Z
2020-02-07T00:06:45Z
REGR: fix op(frame, frame2) with reindex
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...
- [x] closes #31623 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @TomAugspurger this is pretty ugly, and I'm not sure how well it will behave if either frame has MultiIndex colums. On the plus side, it could...
https://api.github.com/repos/pandas-dev/pandas/pulls/31679
2020-02-05T00:55:52Z
2020-02-19T00:26:28Z
2020-02-19T00:26:28Z
2020-02-19T10:00:44Z
Backport PR #31668 on branch 1.0.x (REGR: Fixed handling of Categorical in cython ops)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index 20cfcfbde389c..be888f1952636 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`...
Backport PR #31668: REGR: Fixed handling of Categorical in cython ops
https://api.github.com/repos/pandas-dev/pandas/pulls/31678
2020-02-05T00:31:37Z
2020-02-05T07:31:27Z
2020-02-05T07:31:27Z
2020-02-05T07:31:27Z
REF: make _convert_scalar_indexer require a scalar
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 718cd0957cdc6..fe6f8d55baa87 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -398,15 +398,17 @@ def _convert_scalar_indexer(self, key, kind=None): assert kind in ["loc", ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31676
2020-02-04T23:23:40Z
2020-02-05T00:56:42Z
2020-02-05T00:56:42Z
2020-02-05T01:08:33Z
CLN: Remove CategoricalAccessor._deprecations
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 3a6662d3e3ae2..d26ff7490e714 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2504,10 +2504,6 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin): >>> s.ca...
These deprecated attributes have all been removed, so ``._deprecated`` is no longer needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/31675
2020-02-04T23:23:05Z
2020-02-05T00:43:13Z
2020-02-05T00:43:13Z
2020-02-12T21:49:03Z
CLN: assorted cleanups in indexes/
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6a7551391f2a8..ccb4927d9b4b7 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4107,6 +4107,11 @@ def __contains__(self, key: Any) -> bool: bool Whether the key search is in the index. + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31674
2020-02-04T23:14:09Z
2020-02-05T00:42:25Z
2020-02-05T00:42:25Z
2020-02-05T00:45:56Z
CLN: misc tslibs, annotations, unused imports
diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx index c0b20c14e9920..1e0eb7f97ec54 100644 --- a/pandas/_libs/tslibs/resolution.pyx +++ b/pandas/_libs/tslibs/resolution.pyx @@ -27,7 +27,7 @@ cdef: # ---------------------------------------------------------------------- -cpdef re...
https://api.github.com/repos/pandas-dev/pandas/pulls/31673
2020-02-04T23:09:40Z
2020-02-05T00:46:52Z
2020-02-05T00:46:52Z
2020-02-05T00:48:50Z
REF: move convert_scalar out of cython
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index b39afc57f34f6..5ea0108d87c9a 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -535,61 +535,6 @@ cdef class PeriodEngine(Int64Engine): return super(PeriodEngine, self).get_indexer_non_unique(ordinal_array) -cpdef convert_s...
There's nothing about this that particularly benefits from being in cython (I think until recently this was used within index.pyx) and its clearer in python. Plus we get a slightly smaller/faster build.
https://api.github.com/repos/pandas-dev/pandas/pulls/31672
2020-02-04T23:01:56Z
2020-02-05T02:45:09Z
2020-02-05T02:45:09Z
2020-02-05T02:50:39Z
Backport PR #31477 on branch 1.0.x (REGR: Fix TypeError in groupby min / max of period column)
diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst index f9c756b2518af..20cfcfbde389c 100644 --- a/doc/source/whatsnew/v1.0.1.rst +++ b/doc/source/whatsnew/v1.0.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in ``DataFrame.__setitem__`` raising an ``AttributeError`` with a :clas...
Backport PR #31477: REGR: Fix TypeError in groupby min / max of period column
https://api.github.com/repos/pandas-dev/pandas/pulls/31671
2020-02-04T22:53:09Z
2020-02-05T00:22:44Z
2020-02-05T00:22:44Z
2020-02-05T00:22:44Z
CLN: remove kwargs from signature of (Index|MultiIndex).copy
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index e431d0bcf7e9b..38ff3f3c3b871 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -823,20 +823,22 @@ def repeat(self, repeats, axis=None): # -------------------------------------------------------------------- ...
Removes ``**kwargs`` from ``Index.copy`` and ``MultiIndex.copy``.
https://api.github.com/repos/pandas-dev/pandas/pulls/31669
2020-02-04T22:52:42Z
2020-02-09T17:30:24Z
2020-02-09T17:30:24Z
2020-02-12T21:48:50Z