title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
CLN: remove trailing commas
diff --git a/pandas/tests/groupby/transform/test_numba.py b/pandas/tests/groupby/transform/test_numba.py index fcaa5ab13599a..3a184bdd007c7 100644 --- a/pandas/tests/groupby/transform/test_numba.py +++ b/pandas/tests/groupby/transform/test_numba.py @@ -131,7 +131,7 @@ def func_1(values, index): @td.skip_if_no("numba...
#35925 Checked the following file to make sure they are ready for black : - pandas/tests/groupby/transform/test_numba.py CC @MarcoGorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/36441
2020-09-18T04:10:34Z
2020-09-18T06:55:30Z
2020-09-18T06:55:30Z
2020-09-18T08:06:31Z
REGR: Series[numeric] comparison with str raising on numexpr path
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 3f8413bd492ca..1d386fa372ce1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -34,7 +34,7 @@ Fixed regressions - Fixed regression in :meth:`Series.__getitem__` incorrectly raising when the input was a ...
- [x] closes #36377, closes #35700 - [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/36440
2020-09-18T03:57:06Z
2020-09-18T21:55:07Z
2020-09-18T21:55:06Z
2020-09-19T08:12:40Z
REF: share insert between DTI/TDI/PI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 122977eee99fb..1ab40a76b30ff 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -575,6 +575,50 @@ def delete(self, loc): arr = type(self._data)._simple_new(new_i8s, dtype=self...
https://api.github.com/repos/pandas-dev/pandas/pulls/36439
2020-09-18T02:25:08Z
2020-09-18T13:05:10Z
2020-09-18T13:05:09Z
2020-09-18T14:24:39Z
REF: collect IntervalArray methods by topic
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a5b91afac338d..026aad5ad6eb7 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -67,6 +67,15 @@ DTScalarOrNaT = Union[DatetimeLikeScalar, NaTType] +class InvalidComparison(Exception):...
cosmetic edits I find myself tempted to do on a bunch of branches
https://api.github.com/repos/pandas-dev/pandas/pulls/36438
2020-09-18T00:50:43Z
2020-09-18T13:01:35Z
2020-09-18T13:01:35Z
2020-09-18T14:27:30Z
DOC: read_excel skiprows documentation matches read_csv (#36435)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 45da2d7d28fab..604b7e12ec243 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -120,8 +120,12 @@ Values to consider as True. false_values : list, default None Values to consider as False. -skiprows : list-like - R...
- [x] closes #36435 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Updated `read_excel` documentation to match `read_csv` for the `skiprows` parameter. Changed `test_read_excel_skiprows_list` to `test_read_excel_s...
https://api.github.com/repos/pandas-dev/pandas/pulls/36437
2020-09-18T00:08:52Z
2020-09-18T12:50:06Z
2020-09-18T12:50:06Z
2020-09-18T14:02:19Z
REF: pandas/io/formats/format.py
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 77f2a53fc7fab..7eb31daa894c9 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -10,6 +10,7 @@ from functools import partial from io import StringIO import math +from operator import itemgetter import re from sh...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Partially addresses https://github.com/pandas-dev/pandas/issues/36407 Before splitting ``DataFrameFormatter`` into more dedicated classes, I decid...
https://api.github.com/repos/pandas-dev/pandas/pulls/36434
2020-09-17T19:34:09Z
2020-09-19T22:05:38Z
2020-09-19T22:05:37Z
2020-09-25T19:10:18Z
[DOC]: Add warning about rolling sums with large values
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 151ef36be7c98..10e27606a1415 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -229,6 +229,15 @@ see the :ref:`groupby docs <groupby.transform.window_resample>`. The API...
- [x] closes #11645 - [x] closes #28244 (probably closes that one too) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a warning within the user guide.
https://api.github.com/repos/pandas-dev/pandas/pulls/36433
2020-09-17T18:53:37Z
2020-09-18T21:59:25Z
2020-09-18T21:59:24Z
2020-09-18T22:11:36Z
PERF: construct DataFrame with string array and dtype=str
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index 2023858181baa..d8b35abb94b9d 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -13,13 +13,20 @@ class Construction: param_names = ["dtype"] def setup(self, dtype): - self.data = tm...
Avoid inefficient call to `arr.astype()` when dtype is `str`, and use ensure_string_array instead. Performance example: ```python >>> x = np.array([str(u) for u in range(1_000_000)], dtype=object).reshape(500_000, 2) >>> %timeit pd.DataFrame(x, dtype=str) 391 ms ± 17.7 ms per loop # master 11.9 ms ± 131 µs p...
https://api.github.com/repos/pandas-dev/pandas/pulls/36432
2020-09-17T18:06:58Z
2020-09-19T19:54:17Z
2020-09-19T19:54:17Z
2020-09-19T20:06:51Z
BUG: get_indexer returned dtype
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8b18b56929acd..4241e2266fd8b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -290,6 +290,7 @@ Indexing - Bug in :meth:`PeriodIndex.get_loc` incorrectly raising ``ValueError`` on non-datelike strings...
- [x] closes #36359 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Changed the return dtype of IndexEngine’s `get_indexer()` and `get_indexer_non_unique()`. I decided to not include tests because dtypes are already ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36431
2020-09-17T16:35:37Z
2020-09-19T19:56:06Z
2020-09-19T19:56:05Z
2020-09-19T20:24:21Z
Update isort version in pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78e28aad5865b..309e22e71a523 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - file args: [--append-config=flake8/cython-template.cfg] - repo: https://github.com/pre-commit/mirrors-iso...
Previously, a mismatch between the isort versions specified by pre-commit and by the files used on CI made it impossible to make a commit which passed both pre-commit and CI lints. See #36426 . This is not a complete solution as the flake8 version differences are intentional and hopefully temporary (see https://gi...
https://api.github.com/repos/pandas-dev/pandas/pulls/36428
2020-09-17T14:06:12Z
2020-09-17T16:34:11Z
2020-09-17T16:34:11Z
2020-09-17T16:34:16Z
DOC: Fix typo in docstring 'handler' --> 'handle'
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 46327daac2e43..45da2d7d28fab 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -50,7 +50,7 @@ If you want to pass in a path object, pandas accepts any ``os.PathLike``. By file-like object, we refer to objects with a...
https://api.github.com/repos/pandas-dev/pandas/pulls/36427
2020-09-17T13:46:49Z
2020-09-17T21:20:06Z
2020-09-17T21:20:06Z
2020-09-17T21:20:13Z
DEPR: Index.to_native_types
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6436b2eceb33f..c6bb6f628efda 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -212,6 +212,7 @@ Deprecations - Deprecated parameter ``dtype`` in :~meth:`Index.copy` on method all index classes. Use the ...
Closes #28867
https://api.github.com/repos/pandas-dev/pandas/pulls/36418
2020-09-17T06:46:25Z
2020-09-19T02:13:31Z
2020-09-19T02:13:31Z
2020-09-19T07:38:07Z
REF: use BlockManager.to_native_types in formatting code
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 3f446874ffd0e..865412f159ea1 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -631,6 +631,13 @@ def replace_list( bm._consolidate_inplace() return bm + def to_native_t...
Small follow-up on https://github.com/pandas-dev/pandas/pull/36150
https://api.github.com/repos/pandas-dev/pandas/pulls/36417
2020-09-17T06:21:39Z
2020-09-17T16:07:49Z
2020-09-17T16:07:49Z
2020-09-17T18:40:47Z
REF: re-use _maybe_promote for _is_convertible_to_index_for_join
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 5ba5732c710f7..dc427495b6cb1 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -865,11 +865,11 @@ def join( """ See Index.join """ - if self._is_conv...
https://api.github.com/repos/pandas-dev/pandas/pulls/36416
2020-09-17T04:05:15Z
2020-09-17T16:08:30Z
2020-09-17T16:08:30Z
2020-09-17T17:07:09Z
REF: re-use validate_listlike for _convert_arr_indexer
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 5ba5732c710f7..de9f5b178c650 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -8,7 +8,6 @@ from pandas._libs import NaT, Timedelta, iNaT, join as libjoin, lib from pandas._libs.t...
https://api.github.com/repos/pandas-dev/pandas/pulls/36415
2020-09-17T04:04:58Z
2020-09-17T16:06:48Z
2020-09-17T16:06:48Z
2020-09-17T16:54:33Z
REF: _validate_foo pattern for IntervalArray
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 436a7dd062c4a..028472ad93e52 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -640,17 +640,10 @@ def fillna(self, value=None, method=None, limit=None): if limit is not None: raise ...
Makes clear that these have very similar logic, can be shared after a few tweaks.
https://api.github.com/repos/pandas-dev/pandas/pulls/36414
2020-09-17T03:32:13Z
2020-09-17T16:10:35Z
2020-09-17T16:10:35Z
2020-09-17T16:52:21Z
fix inconsistent index naming with union/intersect #35847
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index da16aaf5b3a56..eeac0ed4837dd 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -154,6 +154,14 @@ functionality below. frames = [ process_your_file(f) for f in files ] result = pd.conc...
- [X] closes #35847 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This takes care of some inconsistency in how names are handled by `Index` functions `union` and `intersection`, as discussed in #35847. I believe th...
https://api.github.com/repos/pandas-dev/pandas/pulls/36413
2020-09-17T03:12:58Z
2020-10-07T11:33:29Z
2020-10-07T11:33:29Z
2020-10-07T18:46:01Z
Bump flake8 version in pre-commit-config.yaml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcd0ecdc9fcd2..78e28aad5865b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: black language_version: python3 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.7 + rev: 3.8.3 ...
The flake8 version used in pre-commit-config.yaml seems to emit spurious errors when there are mypy comments for ignoring specific kinds of type errors. Bumping to the latest version of flake8 seems to fix this. ``` flake8...................................................................Failed - hook id: flake8 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36412
2020-09-17T03:11:47Z
2020-09-17T08:11:01Z
2020-09-17T08:11:01Z
2020-09-17T12:13:21Z
CLN: sql static method
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 51888e5021d80..42f97f19456ab 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1079,7 +1079,8 @@ def _sqlalchemy_type(self, col): return Text - def _get_dtype(self, sqltype): + @staticmethod + def _get_dtype(sqltype): from sqla...
- [ ] 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/36410
2020-09-16T23:08:35Z
2020-09-19T10:15:10Z
null
2020-09-19T10:15:10Z
BUG: Concat typing
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index dd4bcf77641ef..a07c7b49ac55b 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -31,6 +31,7 @@ if TYPE_CHECKING: from pandas import DataFrame + from pandas.core.generic import NDFrame # --------...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @simonjayhawkins Attempting to add typing to results in aggregation.transform. Here, the obj can be a Series but the list passed into concat c...
https://api.github.com/repos/pandas-dev/pandas/pulls/36409
2020-09-16T23:08:20Z
2020-09-19T00:56:48Z
2020-09-19T00:56:48Z
2020-09-19T11:37:54Z
CLN: Clean series/test_arithmetic.py
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index a420a1f7d6bca..8fad6ee1cca8b 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -260,73 +260,59 @@ def test_sub_datetimelike_align(self): class TestSeriesFlexCompariso...
https://api.github.com/repos/pandas-dev/pandas/pulls/36406
2020-09-16T20:01:22Z
2020-09-17T16:36:46Z
2020-09-17T16:36:46Z
2020-09-17T16:39:49Z
BUG: Categorical.sort_values inplace breaking views
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 25073282ec0f6..ba7534082d0d6 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1541,7 +1541,7 @@ def sort_values( sorted_idx = nargsort(self, ascending=ascending, na_position=na_pos...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36404
2020-09-16T19:37:25Z
2020-09-17T16:38:35Z
2020-09-17T16:38:34Z
2020-09-17T17:06:36Z
BLD/CI fix arm64 build #36397
diff --git a/.travis.yml b/.travis.yml index 93c8238bb5059..a38e90bbce8ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,7 @@ matrix: - arch: arm64 env: - - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" + ...
- [x] closes #36397 and closes #34149 and closes #30041
https://api.github.com/repos/pandas-dev/pandas/pulls/36403
2020-09-16T18:22:07Z
2020-09-17T23:11:44Z
2020-09-17T23:11:43Z
2020-12-22T19:02:35Z
BLD/CI: support for 3.9
diff --git a/.travis.yml b/.travis.yml index b016cf386098e..1e5ea21b0f2d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,9 +62,6 @@ matrix: - arch: arm64 env: - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" - -...
backport #36393 to 1.1.x
https://api.github.com/repos/pandas-dev/pandas/pulls/36402
2020-09-16T17:27:27Z
2020-09-18T21:58:01Z
2020-09-18T21:58:01Z
2022-11-18T02:21:07Z
TYP: alias IndexLabel without Optional
diff --git a/pandas/_typing.py b/pandas/_typing.py index 7aef5c02e290f..16d81c0d39cbe 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -83,7 +83,7 @@ Axis = Union[str, int] Label = Optional[Hashable] -IndexLabel = Optional[Union[Label, Sequence[Label]]] +IndexLabel = Union[Label, Sequence[Label]] Level = ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Previously in ``_typing.py`` we had the alias ``IndexLabel``, which contained ``Optional``. The present PR eliminates ``Optional`` from the alias, b...
https://api.github.com/repos/pandas-dev/pandas/pulls/36401
2020-09-16T17:12:58Z
2020-09-17T16:39:10Z
2020-09-17T16:39:10Z
2020-12-03T07:52:52Z
REF: implement putmask for CI/DTI/TDI/PI
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 25073282ec0f6..418140c82da08 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1171,6 +1171,11 @@ def map(self, mapper): # ------------------------------------------------------------- ...
Avoids casting to ndarray which in some cases means an object-dtype cast.
https://api.github.com/repos/pandas-dev/pandas/pulls/36400
2020-09-16T16:34:35Z
2020-09-17T16:40:49Z
2020-09-17T16:40:49Z
2020-09-17T23:20:00Z
CLN: remove trailing commas for black update
diff --git a/pandas/tests/arrays/integer/test_arithmetic.py b/pandas/tests/arrays/integer/test_arithmetic.py index f549a7caeab1d..cf382dd5e37e0 100644 --- a/pandas/tests/arrays/integer/test_arithmetic.py +++ b/pandas/tests/arrays/integer/test_arithmetic.py @@ -279,9 +279,7 @@ def test_unary_minus_nullable_int(any_signe...
Working on: CLN remove unnecessary trailing commas to get ready for new version of black #35925. Checked the following files to make sure they are ready for black : pandas/tests/scalar/timestamp/test_arithmetic.py pandas/tests/scalar/timestamp/test_constructors.py pandas/tests/series/methods/test_argsort.py pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/36399
2020-09-16T16:32:48Z
2020-09-16T17:59:18Z
2020-09-16T17:59:18Z
2020-09-16T17:59:27Z
Backport PR #36378: DOC: move release note for #36175 (pt1)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 7f5340b7022ce..7efffffcf9d32 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,7 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
#36378
https://api.github.com/repos/pandas-dev/pandas/pulls/36398
2020-09-16T15:30:46Z
2020-09-18T15:30:54Z
2020-09-18T15:30:54Z
2020-09-18T15:31:05Z
Backport PR #36371 on branch 1.1.x (BUG: Fix MultiIndex column stacking with dupe names)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 7f5340b7022ce..0ffa86def4376 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -30,6 +30,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
Backport PR #36371: BUG: Fix MultiIndex column stacking with dupe names
https://api.github.com/repos/pandas-dev/pandas/pulls/36396
2020-09-16T09:53:39Z
2020-09-19T10:18:19Z
2020-09-19T10:18:19Z
2020-09-19T10:18:19Z
CLN: remove unnecessary _convert_index_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 15944565cb254..2eed73d11ba74 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3252,7 +3252,7 @@ def _convert_listlike_indexer(self, keyarr): Return tuple-safe keys. """ if isinstance...
https://api.github.com/repos/pandas-dev/pandas/pulls/36394
2020-09-16T02:55:20Z
2020-09-17T16:47:21Z
2020-09-17T16:47:21Z
2020-09-17T16:51:05Z
BLD/CI: fix py39 ci #36296
diff --git a/.travis.yml b/.travis.yml index 2e98cf47aea3e..93c8238bb5059 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,9 +62,6 @@ matrix: - arch: arm64 env: - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" - -...
closes #36296 Need #36298 first.
https://api.github.com/repos/pandas-dev/pandas/pulls/36393
2020-09-16T01:12:16Z
2020-09-16T15:06:58Z
2020-09-16T15:06:57Z
2020-09-23T19:39:34Z
REF: share __getitem__ for Categorical/PandasArray/DTA/TDA/PA
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 284dd31ffcb59..a947ab64f7380 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -2,6 +2,7 @@ import numpy as np +from pandas._libs import lib from pandas.compat.numpy import function as nv from pandas....
https://api.github.com/repos/pandas-dev/pandas/pulls/36391
2020-09-15T21:54:39Z
2020-09-17T16:46:12Z
2020-09-17T16:46:12Z
2020-09-17T16:51:50Z
CLN: Clean test_arithmetic.py
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index c937e357b9dbc..a420a1f7d6bca 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -271,7 +271,6 @@ def test_comparison_flex_basic(self): tm.assert_series_equal(left....
General cleaning (i.e., replacing for loops) trying to make these easier to follow / debug
https://api.github.com/repos/pandas-dev/pandas/pulls/36390
2020-09-15T21:38:34Z
2020-09-15T23:08:23Z
2020-09-15T23:08:23Z
2020-09-15T23:25:07Z
[TST]: Groupby raised error with duplicate column names
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 313b0ea2434f9..1bb40b322cd48 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2126,3 +2126,14 @@ def test_groupby_column_index_name_lost(func): df_grouped = df.groupby([1])...
- [x] closes #31735 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a test to avoid regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36389
2020-09-15T20:41:42Z
2020-09-15T22:33:48Z
2020-09-15T22:33:48Z
2020-09-16T11:58:56Z
CLN: Made final changes to /pandas/tests/scalar
diff --git a/pandas/tests/scalar/test_na_scalar.py b/pandas/tests/scalar/test_na_scalar.py index 0a7dfbee4e672..e1e94fcfe6b81 100644 --- a/pandas/tests/scalar/test_na_scalar.py +++ b/pandas/tests/scalar/test_na_scalar.py @@ -93,8 +93,8 @@ def test_comparison_ops(): np.int_(0), np.float_(0), n...
https://api.github.com/repos/pandas-dev/pandas/pulls/36388
2020-09-15T20:24:54Z
2020-09-22T13:45:05Z
null
2020-09-22T13:45:06Z
Updated files inside the pandas/tests/scalar folder
diff --git a/pandas/tests/scalar/test_na_scalar.py b/pandas/tests/scalar/test_na_scalar.py index 0a7dfbee4e672..e1e94fcfe6b81 100644 --- a/pandas/tests/scalar/test_na_scalar.py +++ b/pandas/tests/scalar/test_na_scalar.py @@ -93,8 +93,8 @@ def test_comparison_ops(): np.int_(0), np.float_(0), n...
Successfully removed the unnecessary trailing commas from the below files: 1. pandas/tests/scalar/test_na_scalar.py 2. pandas/tests/scalar/timestamp/test_arithmetic.py 3. pandas/tests/scalar/timestamp/test_constructors.py
https://api.github.com/repos/pandas-dev/pandas/pulls/36387
2020-09-15T19:26:03Z
2020-09-15T20:17:40Z
null
2020-09-15T20:23:16Z
CI/BLD: Restrict ci/code_checks.sh to tracked repo files
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 54aa830379c07..762c162858824 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -25,6 +25,26 @@ BASE_DIR="$(dirname $0)/.." RET=0 CHECK=$1 + +# Get lists of files tracked by git: + +function quote_if_needed { + awk '{ print $0 ~ /.*\s+.*/ ? "\""$0"\...
- [x] closes #36368 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Previously, some of the checks in `code_checks.sh` ran unrestricted on all the contents of the repository root (recursively), so that if any files extraneous to the repo were present (e.g. a virtual environment directory, or...
https://api.github.com/repos/pandas-dev/pandas/pulls/36386
2020-09-15T19:05:11Z
2020-11-03T14:42:09Z
null
2020-11-03T14:42:09Z
BUG: Always cast to Categorical in lexsort_indexer
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8ead78a17e9c2..2cf93667354d0 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -29,6 +29,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
- [x] closes #36383 - [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/36385
2020-09-15T16:06:37Z
2020-09-17T02:31:09Z
2020-09-17T02:31:09Z
2020-09-19T19:39:03Z
REF: _is_compatible_with_other -> _can_union_without_object_cast
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6923b42d3340b..33a5b016a293f 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -367,7 +367,7 @@ Other - Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Changes the behavior in one test where ATM we behave differently for Series/ndarray than we do for Index arg
https://api.github.com/repos/pandas-dev/pandas/pulls/36384
2020-09-15T15:07:29Z
2020-09-18T22:18:03Z
2020-09-18T22:18:03Z
2020-09-18T23:18:17Z
ADMIN: Update stale PR action
diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml index 0cbe4b7dd4582..a6aece34478d9 100644 --- a/.github/workflows/stale-pr.yml +++ b/.github/workflows/stale-pr.yml @@ -12,9 +12,9 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: "This pull req...
I think also that it could be good to skip the PR message for when debugging is turned off and only label / manually review the labeled PRs to start (until we're comfortable with the tagging logic and message)
https://api.github.com/repos/pandas-dev/pandas/pulls/36382
2020-09-15T12:13:44Z
2020-09-17T22:03:04Z
2020-09-17T22:03:04Z
2020-09-17T22:03:07Z
DOC: move release note for #36175 (pt2)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8b18b56929acd..26e9cb7b900f8 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -312,10 +312,9 @@ I/O - In :meth:`read_csv` `float_precision='round_trip'` now handles `decimal` and `thousands` parameters...
xref https://github.com/pandas-dev/pandas/pull/36363#pullrequestreview-488151435
https://api.github.com/repos/pandas-dev/pandas/pulls/36379
2020-09-15T07:40:23Z
2020-09-16T15:09:45Z
2020-09-16T15:09:45Z
2020-09-16T15:23:57Z
DOC: move release note for #36175 (pt1)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..7efffffcf9d32 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
xref https://github.com/pandas-dev/pandas/pull/36363/files#r488227748
https://api.github.com/repos/pandas-dev/pandas/pulls/36378
2020-09-15T07:36:25Z
2020-09-16T15:09:11Z
2020-09-16T15:09:11Z
2020-09-16T15:31:17Z
CLN: Numba internal routines
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index d4e673d2e538c..a931221ef3ce1 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -74,12 +74,11 @@ get_groupby, group_selection_context, ) -from pandas.core.groupby.numba_ import generate_numba_f...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - Remove some leftover implementation after https://github.com/pandas-dev/pandas/pull/36240 - Delegate numba func caching to methods in `numba_.py` - Combine some helper methods
https://api.github.com/repos/pandas-dev/pandas/pulls/36376
2020-09-15T06:48:02Z
2020-09-16T15:08:34Z
2020-09-16T15:08:34Z
2020-09-16T16:54:58Z
BUG: FooIndex.insert casting datetimelike NAs incorrectly
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 028472ad93e52..706b089e929a9 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -37,7 +37,7 @@ ABCPeriodIndex, ABCSeries, ) -from pandas.core.dtypes.missing import isna, notna +from pandas.core...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36374
2020-09-15T03:10:16Z
2020-09-17T23:20:30Z
2020-09-17T23:20:30Z
2020-09-17T23:50:12Z
REF: de-duplicate IntervalIndex compat code
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3d177e08bb0f5..3bdc8d3c4bb19 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3331,7 +3331,7 @@ def _can_reindex(self, indexer): ValueError if its a duplicate axis """ # trying to reinde...
cc @jschendel can you suggest a sentence for a docstring on why is_overlapping is the relevant check for these behaviors? Maybe something related to `index.get_loc(some_int)` can be a non-integer?
https://api.github.com/repos/pandas-dev/pandas/pulls/36372
2020-09-14T21:41:47Z
2020-09-17T23:21:40Z
2020-09-17T23:21:40Z
2020-09-17T23:49:47Z
BUG: Fix MultiIndex column stacking with dupe names
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..8ead78a17e9c2 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -29,6 +29,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
- [x] closes #36353 - [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/36371
2020-09-14T21:06:39Z
2020-09-15T22:35:41Z
2020-09-15T22:35:41Z
2020-09-16T09:53:02Z
DOC: Add dataframe_sql to eco system page
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index de231e43918f8..624c0551de607 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -303,6 +303,13 @@ HTTP API, and also provides several convenient methods for parsing and analyzing fredapi makes use of pandas and returns data in ...
Adds dataframe_sql, a package for querying pandas dataframes with SQL, to the ECO system page. Also closes #30480
https://api.github.com/repos/pandas-dev/pandas/pulls/36370
2020-09-14T20:53:47Z
2020-09-15T22:40:56Z
2020-09-15T22:40:55Z
2020-09-15T22:40:59Z
DOC: Enhance asfreq docs
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 257baf20ce911..8523ff77aef9e 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -27,7 +27,7 @@ period_asfreq_arr, ) from pandas._typing import AnyArrayLike -from pandas.util._decorators import cache_readon...
- [n/a] closes #xxxxx - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] tests added Enhanced some docstrings for time-series related methods; mainly `asfreq`. Namely: - Converted `NDFrame.asfreq` into a template to use the specific `klass` in `Series.asfreq` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36369
2020-09-14T20:02:42Z
2020-12-21T20:14:39Z
2020-12-21T20:14:39Z
2020-12-21T20:15:23Z
REF: _assert_can_do_op -> _validate_scalar
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3d177e08bb0f5..15944565cb254 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2250,7 +2250,7 @@ def fillna(self, value=None, downcast=None): DataFrame.fillna : Fill NaN values of a DataFrame. Ser...
We have a lot of methods that do something like this; trying to consolidate them with consistent naming conventions.
https://api.github.com/repos/pandas-dev/pandas/pulls/36367
2020-09-14T18:39:08Z
2020-09-15T02:01:37Z
2020-09-15T02:01:37Z
2020-09-15T02:29:00Z
REF: share code for __setitem__
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index e9d8671b69c78..284dd31ffcb59 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -9,6 +9,7 @@ from pandas.core.algorithms import take, unique from pandas.core.array_algos.transforms import shift from pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/36366
2020-09-14T18:20:09Z
2020-09-15T02:02:28Z
2020-09-15T02:02:28Z
2020-09-15T02:28:19Z
BUG: Python Parser skipping over items if BOM present in first element of header
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6923b42d3340b..6534172a41384 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -318,6 +318,7 @@ I/O - :meth:`to_csv` did not support zip compression for binary file object not having a filename (:issue:...
- [x] closes #36343 - [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/36365
2020-09-14T17:44:48Z
2020-09-19T20:14:06Z
2020-09-19T20:14:06Z
2020-09-20T03:35:30Z
DOC: Added docstring for storage_options GH36361
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 2780b1a7f86c9..0f1cce273a146 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -341,6 +341,15 @@ values. The options are `None` or `high` for the ordinary converter, `legacy` for the original lower precision pandas converter, and ...
DOC: Added docstring for storage_options GH36361 - [x] closes #36361 - [ ] 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/36364
2020-09-14T17:31:20Z
2020-09-14T20:26:01Z
2020-09-14T20:26:01Z
2020-09-15T01:33:00Z
DOC: move release note for #36175
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..7f5340b7022ce 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
xref https://github.com/pandas-dev/pandas/pull/36175#issuecomment-691994652
https://api.github.com/repos/pandas-dev/pandas/pulls/36363
2020-09-14T16:57:09Z
2020-09-15T07:19:17Z
null
2020-09-15T07:19:17Z
REF: _unbox_scalar, _unbox_listlike for Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 45623f182144b..b6cd0e325f8a6 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -93,7 +93,7 @@ def func(self, other): if is_scalar(other): if other in self.categories: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36362
2020-09-14T16:40:52Z
2020-09-15T02:00:29Z
2020-09-15T02:00:29Z
2020-09-15T02:29:36Z
Fix documentation for new float_precision on read_csv
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 0f1cce273a146..43ffbe6bdd66c 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -338,9 +338,12 @@ option can improve performance because there is no longer any I/O overhead. float_precision : str, optional Specifies which converter t...
- [x] closes https://github.com/pandas-dev/pandas/pull/36228#discussion_r487587534 - [ ] tests added / passed N/A - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry N/A A followup to PR #36228 to get the documentation string right for...
https://api.github.com/repos/pandas-dev/pandas/pulls/36358
2020-09-14T14:25:26Z
2020-09-17T22:39:42Z
2020-09-17T22:39:42Z
2020-09-18T11:32:37Z
REF: Dispatch string methods to ExtensionArray
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 54aa830379c07..b8f6bd53d4a59 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -335,7 +335,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Doctests strings.py' ; echo $MSG - pytest -q --d...
This is a large refactor of our string methods. The goal is to have the `Series.str` accessor dispatch the actual compute down to the ExtensionArray. The motivation is to allow a Series backed by Arrow memory to use the Arrow string kernel (e.g. `Series.str.lower()` on an Arrow-backed StringArray should eventually call...
https://api.github.com/repos/pandas-dev/pandas/pulls/36357
2020-09-14T13:17:27Z
2020-09-30T12:22:26Z
2020-09-30T12:22:25Z
2020-10-15T13:44:06Z
DOC: Example for natural sort using key argument
diff --git a/environment.yml b/environment.yml index 4622aac1dc6f8..badb0ba94a670 100644 --- a/environment.yml +++ b/environment.yml @@ -106,6 +106,7 @@ dependencies: - cftime # Needed for downstream xarray.CFTimeIndex test - pyreadstat # pandas.read_spss - tabulate>=0.8.3 # DataFrame.to_markdown + - natso...
- [x] closes #36286 - [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/36356
2020-09-14T13:12:14Z
2020-09-15T22:32:26Z
2020-09-15T22:32:26Z
2020-09-15T22:59:54Z
Backport PR #36175: BUG: read_excel for ods files raising UnboundLocalError in certain cases
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..7f5340b7022ce 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
#36175
https://api.github.com/repos/pandas-dev/pandas/pulls/36355
2020-09-14T11:44:37Z
2020-09-14T13:47:59Z
2020-09-14T13:47:59Z
2020-09-15T13:18:14Z
BUG: DataFrameGroupBy.transform with axis=1 fails (#36308)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 09cb024cbd95c..1aa88e56689c2 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -552,7 +552,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.median` and :meth:`Rolling.quantile` returned wrong value...
- [x] closes #36308 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Updated `pandas.core.groupby.generic._wrap_transformed_output` as suggested by @rhshadrach but also had to modify `pandas.core.groupby.groupby.pct_...
https://api.github.com/repos/pandas-dev/pandas/pulls/36350
2020-09-14T01:21:44Z
2020-11-14T16:50:19Z
2020-11-14T16:50:19Z
2020-11-14T16:50:23Z
ADMIN: Auto-label PRs for review
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7c3870470f074..5e4d3b4ec38e4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,9 @@ +--- + +labels: "Needs Review" + +--- + - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `...
Not certain this will work, but nonetheless I think something like this would be helpful (analogous to "Needs Triage" for issues)
https://api.github.com/repos/pandas-dev/pandas/pulls/36349
2020-09-14T01:01:07Z
2020-09-18T22:08:58Z
2020-09-18T22:08:58Z
2020-09-18T22:11:03Z
[BUG]: Implement Kahan summation for rolling().mean() to avoid numerical issues
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bbee0062cf0ce..d4464b5edd850 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -105,6 +105,7 @@ Other enhancements - :class:`Index` with object dtype supports division and multiplication (:issue:`34160`...
- [x] closes #36031 - [x] closes #32761 - [x] closes #10319 - [x] xref #11645 (fixes the issue expect the 0, will add an additional pr about the doc) - [x] closes #13254 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew en...
https://api.github.com/repos/pandas-dev/pandas/pulls/36348
2020-09-13T22:50:51Z
2020-09-15T22:20:49Z
2020-09-15T22:20:48Z
2020-09-16T11:59:19Z
Backport PR #36174 on branch 1.1.x (BUG: Ensure read_spss accepts pathlib Paths (GH33666))
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index d789518f93f6d..8e283aec39786 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -26,6 +26,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``p...
Backport PR #36174: BUG: Ensure read_spss accepts pathlib Paths (GH33666)
https://api.github.com/repos/pandas-dev/pandas/pulls/36347
2020-09-13T20:33:46Z
2020-09-13T21:42:34Z
2020-09-13T21:42:34Z
2020-09-13T21:42:34Z
ENH/BUG: consistently cast strs to datetimelike for searchsorted
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3992e697db7e4..55e960de5e9d1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -119,6 +119,7 @@ Other enhancements - :meth:`DataFrame.explode` and :meth:`Series.explode` now support exploding of sets (:...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ATM we are pretty inconsistent in how we handle strings for (DTI|TDI|PI|Series).searchsorted. The underlying EAs will cast scalar strings but not Se...
https://api.github.com/repos/pandas-dev/pandas/pulls/36346
2020-09-13T20:18:21Z
2020-09-17T02:41:14Z
2020-09-17T02:41:14Z
2020-09-17T02:51:57Z
PERF: styler uuid control and security
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6436b2eceb33f..80fbd459fc7f1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -225,6 +225,7 @@ Performance improvements - Performance improvement in :meth:`GroupBy.agg` with the ``numba`` engine (:issu...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `Styler` uuid is randomly generated from 16bytes, or 128bit entropy, which is poorly formatted for data transmission over the web. `Styler` uuid1 is super-ceded by uuid...
https://api.github.com/repos/pandas-dev/pandas/pulls/36345
2020-09-13T20:04:13Z
2020-09-19T15:21:56Z
2020-09-19T15:21:56Z
2020-09-19T16:42:45Z
CLN: remove CategoricalIndex._create_from_codes
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 4fa6b73932aa4..27e0a198b62a2 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1376,7 +1376,7 @@ def value_counts(self, dropna=True): count = np.bincount(np.where(mask, code, nc...
Update some constructor calls in Categorical
https://api.github.com/repos/pandas-dev/pandas/pulls/36342
2020-09-13T19:00:02Z
2020-09-13T20:19:41Z
2020-09-13T20:19:41Z
2020-09-13T20:26:17Z
REF: move ShallowMixin to groupby.base
diff --git a/pandas/core/base.py b/pandas/core/base.py index 53378c0e0e252..4d5cddc086b2a 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -4,7 +4,7 @@ import builtins import textwrap -from typing import Any, Callable, Dict, FrozenSet, List, Optional, Union +from typing import Any, Callable, Dict, Froz...
Rename GroupByMixin -> GotItemMixin
https://api.github.com/repos/pandas-dev/pandas/pulls/36341
2020-09-13T18:16:12Z
2020-09-13T20:20:57Z
2020-09-13T20:20:57Z
2020-09-13T20:25:32Z
Backport PR #36231: BUG: Fixe unintentionally added suffix in DataFrame.apply/agg and Series.apply/agg
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 2457d00eb2173..d789518f93f6d 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
#36231
https://api.github.com/repos/pandas-dev/pandas/pulls/36340
2020-09-13T18:12:29Z
2020-09-13T19:21:22Z
2020-09-13T19:21:22Z
2020-09-13T19:21:29Z
REF: use check_setitem_lengths in DTA.__setitem__
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 6f0e2a6a598fc..377996344dbbc 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1,6 +1,6 @@ from datetime import datetime, timedelta import operator -from typing import Any, Callable, O...
Turning this into a two-line check will make it easy to add to `PandasArray.__setitem__` and `Categorical.__setitem__`, at which point we'll be able to move these methods up to `NDArrayBackedExtensionArray.__setitem__`
https://api.github.com/repos/pandas-dev/pandas/pulls/36339
2020-09-13T16:16:57Z
2020-09-14T06:28:55Z
2020-09-14T06:28:55Z
2020-09-14T15:58:27Z
DOC/CLN: remove versionadded/changed:: 0.23
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index 1e6b2c646fdfd..46c2cbbe39b34 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -73,8 +73,6 @@ applies only to certain dtypes. Extension types --------------- -.. versionadded:...
released 3 Aug 2018 https://github.com/pandas-dev/pandas/releases/tag/v0.23.4
https://api.github.com/repos/pandas-dev/pandas/pulls/36338
2020-09-13T15:51:36Z
2020-09-13T20:21:17Z
2020-09-13T20:21:17Z
2020-09-13T20:31:11Z
BUG: iloc.__setitem__ with DataFrame value, multiple blocks, non-unique columns
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 64da27a6574a6..9ecad335e2c3c 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1690,18 +1690,42 @@ def _setitem_with_indexer(self, indexer, value): sub_indexer = list(indexer) multiindex_i...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36337
2020-09-13T15:32:48Z
2020-09-13T20:37:19Z
2020-09-13T20:37:19Z
2020-09-14T00:31:00Z
CI: Add stale PR action
diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml new file mode 100644 index 0000000000000..0cbe4b7dd4582 --- /dev/null +++ b/.github/workflows/stale-pr.yml @@ -0,0 +1,21 @@ +name: "Stale PRs" +on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: ...
Adding a GitHub Action for ~closing stale PRs~ labeling PRs as stale which I think could help in managing the backlog https://github.com/actions/stale
https://api.github.com/repos/pandas-dev/pandas/pulls/36336
2020-09-13T15:06:43Z
2020-09-15T02:04:47Z
2020-09-15T02:04:47Z
2020-09-16T18:32:16Z
ERR: Cartesian product error
diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py index a1bf3f8ee4119..d2c08712abacd 100644 --- a/pandas/core/reshape/util.py +++ b/pandas/core/reshape/util.py @@ -39,6 +39,9 @@ def cartesian_product(X): lenX = np.fromiter((len(x) for x in X), dtype=np.intp) cumprodX = np.cumproduct(lenX)...
- [x] closes #31355 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a test to trigger the reported error using code from the issue. An if statement was included to return a more helpful error message - borrowing the solution from th...
https://api.github.com/repos/pandas-dev/pandas/pulls/36335
2020-09-13T13:32:56Z
2020-09-13T20:22:37Z
2020-09-13T20:22:37Z
2020-09-13T20:41:16Z
Backport PR #36316 on branch 1.1.x (BUG: Don't overflow with large int scalar)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..5cbd160f29d66 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -25,6 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswit...
Backport PR #36316: BUG: Don't overflow with large int scalar
https://api.github.com/repos/pandas-dev/pandas/pulls/36334
2020-09-13T13:29:10Z
2020-09-13T15:52:02Z
2020-09-13T15:52:02Z
2020-09-13T15:52:02Z
Backport PR #36303 on branch 1.1.x (REGR: Fix IntegerArray unary ops regression)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..c78adcf42f56b 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :class:`In...
Backport PR #36303: REGR: Fix IntegerArray unary ops regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36333
2020-09-13T13:28:28Z
2020-09-13T15:52:28Z
2020-09-13T15:52:28Z
2020-09-13T15:52:28Z
Backport PR #36147 on branch 1.1.x (REGR: Series access with Index of tuples/frozenset)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..5aca33869bca1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Ser...
Backport PR #36147: REGR: Series access with Index of tuples/frozenset
https://api.github.com/repos/pandas-dev/pandas/pulls/36332
2020-09-13T12:30:03Z
2020-09-13T13:27:22Z
2020-09-13T13:27:22Z
2020-09-13T13:27:22Z
Backport PR #36249 on branch 1.1.x (BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..c06990e3f2051 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -22,7 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`Series.str.startswith` and :meth:`Series.str.en...
Backport PR #36249: BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/36331
2020-09-13T12:26:20Z
2020-09-13T13:07:50Z
2020-09-13T13:07:50Z
2020-09-13T13:07:50Z
Backport PR #36323 on branch 1.1.x (CI: install numpy from pip #36296)
diff --git a/ci/build39.sh b/ci/build39.sh index f85e1c7def206..b9c76635df99b 100755 --- a/ci/build39.sh +++ b/ci/build39.sh @@ -3,16 +3,9 @@ sudo apt-get install build-essential gcc xvfb pip install --no-deps -U pip wheel setuptools -pip install python-dateutil pytz pytest pytest-xdist hypothesis +pip install nump...
Backport PR #36323: CI: install numpy from pip #36296
https://api.github.com/repos/pandas-dev/pandas/pulls/36328
2020-09-13T11:17:33Z
2020-09-13T12:32:36Z
2020-09-13T12:32:35Z
2020-09-13T12:32:36Z
[TST]: Groupy raised ValueError for ffill with duplicate column names
diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py index 42945be923fa0..ab736b55b5743 100644 --- a/pandas/tests/groupby/test_function.py +++ b/pandas/tests/groupby/test_function.py @@ -495,51 +495,6 @@ def test_idxmin_idxmax_returns_int_types(func, values): tm.assert_frame_e...
- [x] closes #25610 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Was fixed in the past. Added test to avoid regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36326
2020-09-13T09:10:35Z
2020-09-13T22:18:22Z
2020-09-13T22:18:22Z
2020-09-13T22:23:02Z
PERF: StringArray construction
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f398af6e4dd5e..278fb7274bd9b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -219,7 +219,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ -- Performance improvements when creatin...
Currently, when constructing through `Series(data, dtype="string")`, pandas first converts to strings/NA, then does a check that all scalars are actually strings or NA. The check is not needed in cases where we explicitly already have converted. Performance example: ```python >>> x = np.array([str(u) for u in ra...
https://api.github.com/repos/pandas-dev/pandas/pulls/36325
2020-09-13T06:52:50Z
2020-09-17T16:51:00Z
2020-09-17T16:51:00Z
2020-09-17T17:10:26Z
CI: install numpy from pip #36296
diff --git a/ci/build39.sh b/ci/build39.sh index f85e1c7def206..b9c76635df99b 100755 --- a/ci/build39.sh +++ b/ci/build39.sh @@ -3,16 +3,9 @@ sudo apt-get install build-essential gcc xvfb pip install --no-deps -U pip wheel setuptools -pip install python-dateutil pytz pytest pytest-xdist hypothesis +pip install nump...
Part of #36296
https://api.github.com/repos/pandas-dev/pandas/pulls/36323
2020-09-13T04:42:13Z
2020-09-13T11:17:05Z
2020-09-13T11:17:05Z
2020-09-15T15:15:02Z
REF: de-duplicate get_indexer_non_unique
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 7aceb898f5ccf..c31428e78dab5 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2512,10 +2512,6 @@ def get_indexer(self, target, method=None, limit=None, tolerance=None): return ensure_platform_int(in...
https://api.github.com/repos/pandas-dev/pandas/pulls/36322
2020-09-13T03:08:51Z
2020-09-13T12:40:55Z
2020-09-13T12:40:55Z
2020-09-13T15:05:25Z
REF: _convert_for_op -> _validate_fill_value
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0aed08d46657e..b0f9f8ac8b2fd 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4047,9 +4047,10 @@ def _to_safe_for_reshape(self): """ return self - def _convert_for_op(self, value): + def ...
It will also turn out that _coerce_scalar_to_index is effectively another alias for this, though it has slightly different behavior i need to check/fix/test before replacing it
https://api.github.com/repos/pandas-dev/pandas/pulls/36318
2020-09-12T23:45:34Z
2020-09-13T12:26:22Z
2020-09-13T12:26:22Z
2021-11-20T23:21:23Z
PERF: constructing string Series
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2b230d2fde645..fe8473665603b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -205,7 +205,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ -- Performance improvements when creatin...
Avoid needless call to `lib.infer_dtype`, when string dtype. Performance example: ```python >>> x = np.array([str(u) for u in range(1_000_000)], dtype=object) >>> %timeit pd.Series(x, dtype=str) 344 ms ± 59.7 ms per loop # v1.1.0 157 ms ± 7.04 ms per loop # after #35519 22.6 ms ± 191 µs per loop # after #...
https://api.github.com/repos/pandas-dev/pandas/pulls/36317
2020-09-12T23:02:45Z
2020-09-13T12:39:59Z
2020-09-13T12:39:59Z
2020-09-13T13:25:51Z
BUG: Don't overflow with large int scalar
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..5cbd160f29d66 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -25,6 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswit...
- [x] closes #36291 - [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/36316
2020-09-12T22:58:41Z
2020-09-13T12:34:52Z
2020-09-13T12:34:52Z
2020-09-13T13:33:14Z
REF: separate out helpers from iLoc._setitem_with_indexer
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 51031d9ab1153..64da27a6574a6 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -34,7 +34,7 @@ from pandas.core.indexes.api import Index if TYPE_CHECKING: - from pandas import DataFrame # noqa:F401 + from pandas import Da...
https://api.github.com/repos/pandas-dev/pandas/pulls/36315
2020-09-12T22:29:30Z
2020-09-13T12:28:16Z
2020-09-13T12:28:16Z
2020-09-13T15:04:15Z
REF: de-duplicate _wrap_joined_index in MultiIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0aed08d46657e..12c2405f6f340 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3876,7 +3876,10 @@ def _join_monotonic(self, other, how="left", return_indexers=False): return join_index def _wrap...
Follow-up to #36282 We'll also be able to clean up MultiIndex special-casing in _reindex_non_unique. I expect others but cant say for sure yet.
https://api.github.com/repos/pandas-dev/pandas/pulls/36313
2020-09-12T21:02:03Z
2020-09-13T12:31:18Z
2020-09-13T12:31:18Z
2020-09-13T15:03:15Z
PERF: JoinUnit.is_na
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 163500525dbd8..d2e4974741b88 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -9,7 +9,7 @@ from pandas._libs import lib import pandas._libs.missing as libmissing -from pandas._libs.tslibs import NaT, iN...
This along with #36309 gets #34683 to performance parity with master.
https://api.github.com/repos/pandas-dev/pandas/pulls/36312
2020-09-12T19:48:43Z
2020-09-12T21:20:30Z
2020-09-12T21:20:30Z
2020-09-12T21:29:35Z
DOC: Fix DataFrame.query contradiction on use of Python keywords as identifiers
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b03593ad8afe1..b8b49156a0967 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3238,11 +3238,12 @@ def query(self, expr, inplace=False, **kwargs): in the environment by prefixing them with an '@' character like ``@a ...
- [ ] closes #35989
https://api.github.com/repos/pandas-dev/pandas/pulls/36311
2020-09-12T19:46:28Z
2020-09-12T21:31:59Z
2020-09-12T21:31:59Z
2020-09-13T01:14:44Z
REF: Back IntervalArray by array instead of Index
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e810fc0239b40..82a360442f8c0 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -280,6 +280,7 @@ Performance improvements - Performance improvement in :meth:`GroupBy.transform` with the ``numba`` engine ...
The benefit I have in mind here is that we could back it by a single 2xN array and a) avoid the kludge needed to make `__setitem__` atomic, b) do a view to get native types for e.g uniqueness checks, c) possibly share some methods with NDarrayBackedExtensionArray. Also just in principle having EAs not depend on Inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/36310
2020-09-12T19:04:34Z
2020-10-02T23:34:11Z
2020-10-02T23:34:11Z
2020-10-03T07:21:22Z
PERF: get_dtype_kinds
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index dd005752a4832..07904339b93df 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -1,7 +1,7 @@ """ Utility functions related to concat. """ -from typing import cast +from typing import Set, cast import numpy ...
Upshot: avoid doing lots of non-performant is_foo_dtype checks. This fixes a little more than half of the performance hit in the benchmark discussed in #34683.
https://api.github.com/repos/pandas-dev/pandas/pulls/36309
2020-09-12T18:49:45Z
2020-09-12T20:40:21Z
2020-09-12T20:40:21Z
2020-09-12T20:55:51Z
ENH: Support MultiIndex columns in parquet (#34777)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 454098f4ace04..a3b5ba616b258 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -238,6 +238,7 @@ Other enhancements - - Added methods :meth:`IntegerArray.prod`, :meth:`IntegerArray.min`, and :meth:`Inte...
- [x] closes #34777 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Support MultiIndex for columns in parquet format by updating value column names check to handle MultiIndexes.
https://api.github.com/repos/pandas-dev/pandas/pulls/36305
2020-09-12T12:46:15Z
2020-11-19T02:09:10Z
2020-11-19T02:09:10Z
2021-07-23T21:26:09Z
PERF: creating string Series/Arrays from sequence with many strings
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e65daa439a225..9b7a96e367af3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -205,6 +205,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ +- Performance improvements when creatin...
Improves performance of `pandas._libs.lib.ensure_string_array` is cases with many string elements. Examples: ```python >>> x = np.array([str(u) for u in range(1_000_000)], dtype=object) >>> %timeit pd.Series(x, dtype=str) 344 ms ± 59.7 ms per loop # v1.1.0 157 ms ± 7.04 ms per loop # v1.1.1 and master 22.6...
https://api.github.com/repos/pandas-dev/pandas/pulls/36304
2020-09-12T12:17:42Z
2020-09-12T21:21:16Z
2020-09-12T21:21:16Z
2020-09-12T21:33:08Z
REGR: Fix IntegerArray unary ops regression
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..c78adcf42f56b 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :class:`In...
- [x] closes #36063 - [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/36303
2020-09-12T04:06:22Z
2020-09-13T12:44:16Z
2020-09-13T12:44:16Z
2020-09-13T13:28:19Z
REF: de-duplicate sort_values
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 67456096e8681..bccc2e0c52568 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4444,8 +4444,8 @@ def asof_locs(self, where, mask): def sort_values( self, - return_indexer=False, - asce...
https://api.github.com/repos/pandas-dev/pandas/pulls/36301
2020-09-12T03:13:10Z
2020-09-12T20:33:53Z
2020-09-12T20:33:53Z
2020-09-12T20:56:09Z
[DOC]: Improve drop docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 59cf4c0e2f81d..4548118a61f92 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4092,8 +4092,11 @@ def drop( Remove rows or columns by specifying label names and corresponding axis, or by specifying directly index or column...
- [x] xref#36293 Improved the docstring a bit in case of multi-index and no level given.
https://api.github.com/repos/pandas-dev/pandas/pulls/36300
2020-09-12T01:35:07Z
2020-11-26T19:05:43Z
null
2021-12-10T09:23:36Z
BUG: Index.union() inconsistent with non-unique Indexes
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 41db72612a66b..9fc111eb203e3 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -419,6 +419,8 @@ Interval Indexing ^^^^^^^^ + +- Bug in :meth:`Index.union` dropping duplicate ``Index`` values when ``I...
- [x] closes #36289 - [x] closes #31326 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The else-block was pretty buggy in case of non unique indexes (was dependent on order of indexes and if one was subset of the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36299
2020-09-11T23:26:44Z
2021-03-04T02:01:10Z
2021-03-04T02:01:10Z
2021-03-04T21:57:04Z
Py39 Support - Remove Deprecated Unicode Length Check
diff --git a/ci/build39.sh b/ci/build39.sh index b9c76635df99b..b37d65fb981d7 100755 --- a/ci/build39.sh +++ b/ci/build39.sh @@ -4,7 +4,7 @@ sudo apt-get install build-essential gcc xvfb pip install --no-deps -U pip wheel setuptools pip install numpy python-dateutil pytz pytest pytest-xdist hypothesis -pip install c...
- [X] closes #36279 - [ ] 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/36298
2020-09-11T22:47:30Z
2020-09-16T12:04:31Z
null
2023-04-12T20:17:40Z
BUG: fix duplicate entries in LaTeX List of Tables when using longtable environments
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 9c2e5427fcd3f..e1fd0ddf99336 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -321,6 +321,7 @@ I/O - :meth:`to_csv` did not support zip compression for binary file object not having a filename (:issue:...
- [x] closes #34360 - [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/36297
2020-09-11T22:15:58Z
2020-09-19T22:05:12Z
2020-09-19T22:05:12Z
2020-09-19T22:05:15Z
CLN: Remove trailing commas
diff --git a/pandas/tests/series/methods/test_interpolate.py b/pandas/tests/series/methods/test_interpolate.py index cba9443005f2f..4b03c60fc223a 100644 --- a/pandas/tests/series/methods/test_interpolate.py +++ b/pandas/tests/series/methods/test_interpolate.py @@ -26,8 +26,7 @@ "from_derivatives", "pc...
Working on: CLN remove unnecessary trailing commas to get ready for new version of black #35925. Updated the following files: pandas/tests/series/methods/test_interpolate.py pandas/tests/series/methods/test_unstack.py pandas/tests/series/test_cumulative.py pandas/tests/test_algos.py - [ ] closes #xxxx - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/36295
2020-09-11T20:11:48Z
2020-09-20T01:17:40Z
null
2020-09-20T01:17:40Z
[DOC]: Update deprecation warnings, which were already removed
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index cac18f5bf39cd..74abbc9503db0 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -313,8 +313,10 @@ Selection by label .. warning:: - Starting in 0.21.0, pandas will show a ``FutureWa...
- [x] closes #36258 Updated the deprecation warnings.
https://api.github.com/repos/pandas-dev/pandas/pulls/36292
2020-09-11T15:59:32Z
2020-09-11T21:33:03Z
2020-09-11T21:33:03Z
2020-09-11T22:29:09Z