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 |
|---|---|---|---|---|---|---|---|
REF: implement mask_setitem_value | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index bbb3cb3391dfa..074c9ca7b483c 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1239,8 +1239,7 @@ def _convert_to_indexer(self, key, axis: int):
if com.is_bool_indexer(key):
key = check_bool_indexer(... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
cc @phofl I think this is what is needed to get #40380 working (https://github.com/pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/43632 | 2021-09-18T03:36:51Z | 2021-11-17T00:47:32Z | null | 2021-11-17T00:47:38Z |
Backport PR #43467 on branch 1.3.x (Make group_mean compatible with NaT) | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index fb9d17f33029a..e56e481355ac2 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -27,8 +27,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
--
+- Fixed bug in :meth:`.GroupBy.mean` with datetimelike value... | Backport PR #43467: Make group_mean compatible with NaT | https://api.github.com/repos/pandas-dev/pandas/pulls/43630 | 2021-09-18T02:32:19Z | 2021-09-18T13:47:37Z | 2021-09-18T13:47:37Z | 2021-09-18T13:47:37Z |
CLN: remove unused sparse reindex | diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx
index 134883e159407..2adf55fbc91d8 100644
--- a/pandas/_libs/sparse.pyx
+++ b/pandas/_libs/sparse.pyx
@@ -229,45 +229,6 @@ cdef class IntIndex(SparseIndex):
results[mask] = res
return results
- cpdef ndarray reindex(self, ndarray[floa... | The `BlockIndex` reindex method wasn't even returning anything, which raised suspicions :)
(reindexing actually dispatches through take) | https://api.github.com/repos/pandas-dev/pandas/pulls/43627 | 2021-09-17T21:10:40Z | 2021-09-17T23:03:30Z | 2021-09-17T23:03:30Z | 2021-09-17T23:03:33Z |
REF: concat on bm_axis==0 | diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py
index 90b1c03d29d34..e1a51e5783cb8 100644
--- a/pandas/core/internals/concat.py
+++ b/pandas/core/internals/concat.py
@@ -37,7 +37,6 @@
)
from pandas.core.dtypes.dtypes import ExtensionDtype
-import pandas.core.algorithms as algos
from ... | Makes it so we no longer need `indexers` in `JoinUnit` (and in fact, so that JoinUnit is only used for axis==1)
```
asv continuous -E virtualenv -f 1.01 master HEAD --append-samples --record-samples -b join_merge
[...]
before after ratio
[26064f0f] [5dedf170]
<master> ... | https://api.github.com/repos/pandas-dev/pandas/pulls/43626 | 2021-09-17T21:06:07Z | 2021-09-17T23:46:23Z | 2021-09-17T23:46:23Z | 2021-09-18T01:10:21Z |
DOC: add json_normalize in See Also for read_json | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index fdeda868fdb5e..f92fc65f55df6 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -502,6 +502,7 @@ def read_json(
--------
DataFrame.to_json : Convert a DataFrame to a JSON string.
Series.to_json : Convert a Series to a... | I believe this should link https://pandas.pydata.org/pandas-docs/version/1.2.0/reference/api/pandas.json_normalize.html in https://pandas.pydata.org/docs/reference/api/pandas.io.json.read_json.html#pandas.io.json.read_json
`json_normalize` is great and it may help people working with JSON data who are likely to have... | https://api.github.com/repos/pandas-dev/pandas/pulls/43625 | 2021-09-17T20:22:45Z | 2021-09-17T21:35:27Z | 2021-09-17T21:35:27Z | 2021-09-17T21:35:30Z |
PERF: default_index | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index bb4e0dff0f4c7..7d2eb3acf2ed2 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -947,7 +947,7 @@ def mode(values, dropna: bool = True) -> Series:
mode : Series
"""
from pandas import Series
- import pandas.... | Surprisingly big difference here
```
from asv_bench.benchmarks.frame_ctor import *
self3 = FromNDArray()
self3.setup()
%timeit self3.time_frame_from_ndarray()
19.8 µs ± 405 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR
30.9 µs ± 1.38 µs per loop (mean ± std. dev. of 7 runs, 10000 loops ... | https://api.github.com/repos/pandas-dev/pandas/pulls/43623 | 2021-09-17T19:33:49Z | 2021-09-17T21:17:29Z | 2021-09-17T21:17:29Z | 2021-09-17T21:21:14Z |
Backport PR #43597 on branch 1.3.x (BUG: .cat changing dtype inplace) | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 4bbd44b395a35..fb9d17f33029a 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -16,6 +16,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge` with integer and ``NaN`` keys faili... | Backport PR #43597: BUG: .cat changing dtype inplace | https://api.github.com/repos/pandas-dev/pandas/pulls/43622 | 2021-09-17T16:32:56Z | 2021-09-18T00:10:50Z | 2021-09-18T00:10:50Z | 2021-09-18T00:10:50Z |
BUG: Groupby-Apply with modifying dataframe and sorting overwrites group values | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 1ea16939603f9..55258df43e09b 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -171,6 +171,10 @@ class providing the base-class of operations.
The resulting dtype will reflect the return value o... | xref #36602
- [x] closes #36602
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/43620 | 2021-09-17T14:10:41Z | 2021-10-16T20:16:13Z | 2021-10-16T20:16:13Z | 2021-10-16T20:16:33Z |
BUG: dropna changes index even when nothing dropped | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 011b5a5a9ab95..bc0f48b71e916 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -433,6 +433,7 @@ Indexing
- Bug in :meth:`DataFrame.drop` where the error message did not show missing labels with commas w... | - [x] closes #41965
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43618 | 2021-09-17T10:32:32Z | 2021-11-28T20:45:18Z | null | 2021-11-28T20:45:18Z |
CLN: let `codecs` validate the possible values of encoding and encoding errors | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 46be1f9bb09b2..ba1cc82bfea56 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -276,10 +276,6 @@ def _get_filepath_or_buffer(
compression = dict(compression, method=compression_method)
- # uniform encoding names
- if encoding is not... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
This makes the errors checking in `get_handle` simpler and consistent with the XML cod... | https://api.github.com/repos/pandas-dev/pandas/pulls/43616 | 2021-09-17T00:22:23Z | 2021-09-17T13:14:31Z | 2021-09-17T13:14:31Z | 2021-09-22T01:05:38Z |
Backport PR #43613 on branch 1.3.x (CI: Add back CircleCI for ARM64) | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000000..777c2548ab589
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,21 @@
+version: 2.1
+
+jobs:
+ test-arm:
+ machine:
+ image: ubuntu-2004:202101-01
+ resource_class: arm.medium
+ environment:
+ ... | Backport PR #43613: CI: Add back CircleCI for ARM64 | https://api.github.com/repos/pandas-dev/pandas/pulls/43615 | 2021-09-17T00:04:17Z | 2021-09-17T12:19:24Z | 2021-09-17T12:19:24Z | 2021-09-17T12:19:34Z |
Backport PR #43608: REGR: spearman corr raising on 32-bit | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 9387483bd62f5..4bbd44b395a35 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge` with integer and ``NaN`` keys faili... | Backport PR #43608 | https://api.github.com/repos/pandas-dev/pandas/pulls/43614 | 2021-09-16T23:32:25Z | 2021-09-17T16:32:56Z | 2021-09-17T16:32:56Z | 2021-09-18T14:01:42Z |
CI: Add back CircleCI for ARM64 | diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000000000..dc357101e79fd
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,21 @@
+version: 2.1
+
+jobs:
+ test-arm:
+ machine:
+ image: ubuntu-2004:202101-01
+ resource_class: arm.medium
+ environment:
+ ... | - [ ] closes #41829
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Successful run https://app.circleci.com/pipelines/github/lithomas1/pandas/3/workflows... | https://api.github.com/repos/pandas-dev/pandas/pulls/43613 | 2021-09-16T22:20:45Z | 2021-09-16T22:37:50Z | 2021-09-16T22:37:50Z | 2021-09-17T00:04:03Z |
PERF: Improve performance in rolling.mean(engine="numba") | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 6a342c059203b..f6e90a3341424 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -357,7 +357,7 @@ Performance improvements
- Performance improvement in :meth:`GroupBy.quantile` (:issue:`43469`)
- :meth:`... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This also starts to add a shared aggregation function (mean) that can shared between rolling/groupby/DataF... | https://api.github.com/repos/pandas-dev/pandas/pulls/43612 | 2021-09-16T21:50:14Z | 2021-09-23T14:49:35Z | 2021-09-23T14:49:35Z | 2021-09-23T16:11:52Z |
CI: debug azure timeouts | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index cedc2b85c2794..8afaf9154aacf 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -87,7 +87,7 @@ jobs:
uses: ./.github/actions/build_pandas
- name: Test
- run: pytest -m "${{ env.PATTERN ... | More attempts to see what's causing the timeouts.
| https://api.github.com/repos/pandas-dev/pandas/pulls/43611 | 2021-09-16T21:31:31Z | 2021-10-03T23:53:12Z | null | 2021-10-03T23:53:13Z |
Backport PR #43589 on branch 1.3.x (PERF: MultiIndex.equals) | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 519a3ea711f54..9387483bd62f5 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge... | Backport PR #43589: PERF: MultiIndex.equals | https://api.github.com/repos/pandas-dev/pandas/pulls/43610 | 2021-09-16T21:02:44Z | 2021-09-17T12:30:41Z | 2021-09-17T12:30:40Z | 2021-09-17T12:30:41Z |
PERF: Block.apply | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 02326e470962a..e16482c54bedd 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -373,8 +373,7 @@ def apply(self, func, **kwargs) -> list[Block]:
apply the function to my values; return a bloc... | ```
from asv_bench.benchmarks.groupby import *
self = GroupByMethods()
self.setup('object', 'ffill', 'direct', 1)
%timeit self.time_dtype_as_group('object', 'ffill', 'direct', 1)
67.6 µs ± 708 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR
82 µs ± 2.24 µs per loop (mean ± std. dev. of 7 run... | https://api.github.com/repos/pandas-dev/pandas/pulls/43609 | 2021-09-16T20:23:05Z | 2021-09-17T21:35:57Z | 2021-09-17T21:35:57Z | 2021-09-17T22:40:05Z |
REGR: spearman corr raising on 32-bit | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 9387483bd62f5..1ef70fa378adf 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge... | - [x] closes #43588
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This works on master, so this PR just adds a regression test (by removing the unneces... | https://api.github.com/repos/pandas-dev/pandas/pulls/43608 | 2021-09-16T19:47:58Z | 2021-09-16T22:59:28Z | 2021-09-16T22:59:27Z | 2021-09-16T23:33:02Z |
CLN: remove extraneous arg from get_block_type | diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py
index 37e07af71213e..fe0b36a8ef4d1 100644
--- a/pandas/core/internals/api.py
+++ b/pandas/core/internals/api.py
@@ -52,7 +52,7 @@ def make_block(
if klass is None:
dtype = dtype or values.dtype
- klass = get_block_type(value... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43607 | 2021-09-16T19:26:38Z | 2021-09-16T21:04:10Z | 2021-09-16T21:04:10Z | 2021-09-16T21:05:37Z |
REF: implement make_na_array | diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py
index 69b01f0b26be3..2927416e9214e 100644
--- a/pandas/core/internals/concat.py
+++ b/pandas/core/internals/concat.py
@@ -10,7 +10,10 @@
import numpy as np
-from pandas._libs import internals as libinternals
+from pandas._libs import (
... | Will be able to re-use make_na_array for AM and possibly BM._make_na_block | https://api.github.com/repos/pandas-dev/pandas/pulls/43606 | 2021-09-16T15:48:12Z | 2021-09-16T21:07:57Z | 2021-09-16T21:07:57Z | 2021-09-16T21:09:02Z |
DOC : DataFrame.to_parquet doesn't round-trip pyarrow StringDtype #42664 | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1f1556123db17..dfda74a4ff541 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5491,6 +5491,27 @@ The above example creates a partitioned dataset that may look like:
except OSError:
pass
+.. note:... | - [ ] closes #42664
Added a small note, both in _user_guide/text.rst_ and _user_guide/io.rst_ and example.
| https://api.github.com/repos/pandas-dev/pandas/pulls/43604 | 2021-09-16T14:50:33Z | 2021-12-28T20:26:31Z | null | 2021-12-28T20:26:31Z |
Date time index.indexer between time | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 0c841078fe9b4..87dd369a8d9aa 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -338,6 +338,7 @@ Other Deprecations
- Deprecated the ``index`` argument to :class:`SparseArray` construction (:issue:`23089... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Please take a look and let me know if things look fine, I'll make a whatsnew entry the... | https://api.github.com/repos/pandas-dev/pandas/pulls/43602 | 2021-09-16T12:58:29Z | 2021-12-28T20:31:19Z | null | 2021-12-28T20:31:19Z |
Fix mistake in cut() docstring | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 03dc124807f09..b1ecd75c84f4b 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -113,7 +113,7 @@ def cut(
An array-like object representing the respective bin for each value
of `x`. The type depends... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43601 | 2021-09-16T10:24:14Z | 2021-09-16T22:46:40Z | 2021-09-16T22:46:40Z | 2021-09-16T22:46:45Z |
ENH: Add `milliseconds` field support for `pd.DateOffset` | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 6df234a027ee9..b524205ed7679 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -869,6 +869,7 @@ arithmetic operator (``+``) can be used to perform the shift.
friday + two_busi... | - [x] closes #43371
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43598 | 2021-09-16T04:31:25Z | 2022-03-18T00:47:40Z | 2022-03-18T00:47:40Z | 2022-03-18T13:12:45Z |
BUG: .cat changing dtype inplace | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 9387483bd62f5..4beaa7b342839 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -16,6 +16,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge` with integer and ``NaN`` keys faili... | - [x] closes #43232
- [x] closes #43334
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43597 | 2021-09-16T03:26:33Z | 2021-09-17T16:32:02Z | 2021-09-17T16:32:01Z | 2021-09-18T10:57:05Z |
BUG: concat fails if indexes are all the same and keys are not unique | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index f18b3b75ca3d2..25906d52d48ff 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -486,6 +486,7 @@ Reshaping
- Bug in :meth:`DataFrame.append` failing to retain dtypes when appended columns do not match (:... | - [x] closes #43595
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/43596 | 2021-09-16T02:47:12Z | 2021-09-20T14:58:52Z | 2021-09-20T14:58:52Z | 2021-09-20T20:54:18Z |
TST: Adding unit tests for named indexes resulting from empty datafra… | diff --git a/pandas/tests/groupby/test_groupby_shift_diff.py b/pandas/tests/groupby/test_groupby_shift_diff.py
index 3ddb52674c5e9..c989c0e0c94cd 100644
--- a/pandas/tests/groupby/test_groupby_shift_diff.py
+++ b/pandas/tests/groupby/test_groupby_shift_diff.py
@@ -113,3 +113,21 @@ def test_group_diff_object_raises(obje... | …me shifts
- [x] closes #41264
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Tests added for issue: https://github.com/pandas-dev/pandas/issues/4126... | https://api.github.com/repos/pandas-dev/pandas/pulls/43593 | 2021-09-16T01:46:22Z | 2021-10-31T14:58:27Z | 2021-10-31T14:58:26Z | 2021-10-31T14:58:46Z |
REF: avoid having 0 in JoinUnit.indexers | diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py
index 69b01f0b26be3..74134ccd77287 100644
--- a/pandas/core/internals/concat.py
+++ b/pandas/core/internals/concat.py
@@ -1,6 +1,5 @@
from __future__ import annotations
-import copy
import itertools
from typing import (
TYPE_CHECKI... | Separate PR will get 1 out of JoinUnit.indexers. | https://api.github.com/repos/pandas-dev/pandas/pulls/43592 | 2021-09-16T01:01:05Z | 2021-09-16T17:19:26Z | 2021-09-16T17:19:26Z | 2021-09-16T17:51:53Z |
REF: pre-compute JoinUnit.needs_filling | diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py
index 74134ccd77287..a1c91c982abeb 100644
--- a/pandas/core/internals/concat.py
+++ b/pandas/core/internals/concat.py
@@ -290,9 +290,21 @@ def _get_mgr_concatenation_plan(mgr: BlockManager, indexers: dict[int, np.ndarra
assert 0 not i... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43590 | 2021-09-15T21:24:55Z | 2021-09-16T21:26:34Z | 2021-09-16T21:26:33Z | 2021-09-16T21:30:19Z |
PERF: MultiIndex.equals | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 519a3ea711f54..9387483bd62f5 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`merge... | - [x] closes #43549
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
```
from dateutil import tz
import pandas as pd
from time import time
dates = p... | https://api.github.com/repos/pandas-dev/pandas/pulls/43589 | 2021-09-15T20:43:55Z | 2021-09-16T21:02:19Z | 2021-09-16T21:02:18Z | 2021-09-16T21:07:11Z |
PERF: GroupBy.apply | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 82c218af23aea..1ea16939603f9 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1013,11 +1013,12 @@ def reset_identity(values):
if not not_indexed_same:
result = concat(values, ax... | ```
from asv_bench.benchmarks.groupby import *
self = Apply()
self.setup(4)
%timeit self.time_copy_function_multi_col(4)
451 ms ± 2.2 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR
559 ms ± 1.35 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43578 | 2021-09-15T03:48:17Z | 2021-09-15T12:50:33Z | 2021-09-15T12:50:33Z | 2021-09-15T15:02:00Z |
CLN: remove unused concat code | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index 0e342c7855653..f5fbd4cc4a7fc 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -12,7 +12,6 @@
import pandas._libs.missing as libmissing
from pandas._libs.tslibs import (
NaT,
- Period,
iNaT,
... | Follow-up to #43507 | https://api.github.com/repos/pandas-dev/pandas/pulls/43577 | 2021-09-15T03:22:31Z | 2021-09-15T12:48:54Z | 2021-09-15T12:48:54Z | 2021-09-15T15:01:00Z |
PERF: grouped_reduce | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 386a4ef12e6b5..cadd5026daff2 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -1248,6 +1248,7 @@ def grouped_reduce(self: T, func: Callable, ignore_failures: bool = False) -> T:
Blo... | ```
from asv_bench.benchmarks.groupby import *
self = GroupByMethods()
self.setup("int", "std", "transformation", 10)
%timeit self.time_dtype_as_field('int', 'std', 'transformation', 10)
325 µs ± 9.84 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
361 µs ± 2.05 µs per loop (mean ± std. dev. ... | https://api.github.com/repos/pandas-dev/pandas/pulls/43576 | 2021-09-15T02:15:14Z | 2021-09-15T14:10:53Z | 2021-09-15T14:10:53Z | 2021-09-15T15:01:42Z |
CLN: typos | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index a4ae35ef34a9c..e41f185e08443 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -454,6 +454,16 @@ def setup(self, dtype, method, application, ncols):
# DataFrameGroupBy doesn't have these... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43575 | 2021-09-15T02:03:32Z | 2021-09-15T23:24:04Z | 2021-09-15T23:24:04Z | 2021-09-15T23:55:09Z |
REF: Move rest of aggregation into apply | diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
deleted file mode 100644
index b1e7e3c1fda1f..0000000000000
--- a/pandas/core/aggregation.py
+++ /dev/null
@@ -1,395 +0,0 @@
-"""
-aggregation.py contains utility functions to handle multiple named and lambda
-kwarg aggregations in groupby and DataFra... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
Purely a move. I have a PR just about ready to start tackling #41112, but it needs to touch some of the renamer code. It'd be nice to have it all in `core.a... | https://api.github.com/repos/pandas-dev/pandas/pulls/43572 | 2021-09-14T21:01:21Z | 2021-09-14T23:02:40Z | 2021-09-14T23:02:40Z | 2021-09-14T23:18:56Z |
REF: re-use _get_data_to_aggregate in GroupBy methods | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 46e42326d4191..317aa0da7b81d 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -610,10 +610,7 @@ def nunique(self, dropna: bool = True) -> Series:
@doc(Series.describe)
def describe(self, **k... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43571 | 2021-09-14T20:33:02Z | 2021-09-15T00:56:53Z | 2021-09-15T00:56:53Z | 2021-09-15T21:44:30Z |
ENH: make ``levels`` consistent and name responsive | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index ed142017a066b..97126975dc194 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1814,7 +1814,7 @@ def set_sticky(
self,
axis: Axis = 0,
pixel_size: int | None = None,
- levels: list[int... | - [x] closes #43483
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43570 | 2021-09-14T20:29:40Z | 2021-09-14T21:36:46Z | 2021-09-14T21:36:46Z | 2021-09-15T18:36:47Z |
ENH: Allow pairwise calcuation when comparing the column with itself … | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index e13e6380905f2..d4eb797047c78 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -178,6 +178,7 @@ Other enhancements
- :meth:`DataFrame.__pos__`, :meth:`DataFrame.__neg__` now retain ``ExtensionDtype`` dt... | …(#25781)
- [x] closes #25781
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43569 | 2021-09-14T16:00:34Z | 2021-10-29T05:39:53Z | null | 2023-01-31T05:15:51Z |
Backport PR #43553 on branch 1.3.x (REGR: Outer merge failing with integer and NaN keys) | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 273686f0aaa8f..519a3ea711f54 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | Backport PR #43553: REGR: Outer merge failing with integer and NaN keys | https://api.github.com/repos/pandas-dev/pandas/pulls/43566 | 2021-09-14T14:36:22Z | 2021-09-14T16:09:19Z | 2021-09-14T16:09:19Z | 2021-09-14T16:09:19Z |
TST: Add test for masking timedelta (#39548) | diff --git a/pandas/tests/frame/indexing/test_mask.py b/pandas/tests/frame/indexing/test_mask.py
index ac80426883dd5..70ec02a2334af 100644
--- a/pandas/tests/frame/indexing/test_mask.py
+++ b/pandas/tests/frame/indexing/test_mask.py
@@ -9,6 +9,7 @@
DataFrame,
Series,
StringDtype,
+ Timedelta,
isn... | - [x] closes #39548
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43562 | 2021-09-14T05:50:33Z | 2021-09-14T12:56:52Z | 2021-09-14T12:56:52Z | 2021-09-14T12:56:56Z |
PERF: Series.to_frame | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 7592ce54e3712..155dd6f8e13a0 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -27,6 +27,19 @@ def time_constructor(self, data):
Series(data=self.data, index=self... | ```
import pandas as pd
ser = pd.Series(range(5))
%timeit ser.to_frame()
%prun -s cumtime for n in range(10000): ser.to_frame()
9.71 µs ± 501 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR
33.2 µs ± 651 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43558 | 2021-09-13T23:36:14Z | 2021-09-14T12:43:19Z | 2021-09-14T12:43:19Z | 2021-09-14T16:20:39Z |
CLN/TST: Remove agg test from groupby | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index 0a693967fbb19..58db791d60a9f 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -1213,21 +1213,6 @@ def test_nonagg_agg():
tm.a... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
Removed test is duplicated of
https://github.com/pandas-dev/pandas/blob/e9d0a58c4152a16153dfb330164991d37fdd02dc/pandas/tests/apply/test_frame_apply.py#L... | https://api.github.com/repos/pandas-dev/pandas/pulls/43557 | 2021-09-13T23:25:34Z | 2021-09-14T03:14:40Z | 2021-09-14T03:14:40Z | 2021-09-14T03:36:53Z |
REF: Share Index comparison and arithmetic methods | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 048831a74d1a5..b0993bbc619dc 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -52,7 +52,10 @@
remove_na_arraylike,
)
-from pandas.core import algorithms
+from pandas.core import (
+ algorithms,
+ ops,
+)
from pandas.core.accessor i... | - [x] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43555 | 2021-09-13T18:25:18Z | 2021-09-13T19:26:58Z | 2021-09-13T19:26:58Z | 2021-09-13T21:51:27Z |
REGR: Outer merge failing with integer and NaN keys | diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst
index 273686f0aaa8f..519a3ea711f54 100644
--- a/doc/source/whatsnew/v1.3.4.rst
+++ b/doc/source/whatsnew/v1.3.4.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | - [x] closes #43550
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43553 | 2021-09-13T16:56:52Z | 2021-09-14T14:35:52Z | 2021-09-14T14:35:51Z | 2021-09-14T14:46:12Z |
ENH: `Styler.format_index` split PR base components | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 11d57e66c4773..4742d40cd9701 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -39,6 +39,7 @@ Style application
Styler.apply_index
Styler.applymap_index
Styler.format
+ Styler.format_axis
... | Splits #43101 to debug failing tests
All this PR does is add a method and fix failing tests because of a minor change to jinja2 templates. | https://api.github.com/repos/pandas-dev/pandas/pulls/43552 | 2021-09-13T16:24:28Z | 2021-09-17T15:40:51Z | null | 2021-09-20T22:41:48Z |
Refactor/validate utils | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 63ba9fdd59fc6..36e7a090214ed 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1823,39 +1823,6 @@ def validate_periods(periods):
return periods
-def validate_endpoints(closed):
... | - [x] refactoring for #40245
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43551 | 2021-09-13T15:42:52Z | 2021-09-14T14:09:49Z | 2021-09-14T14:09:49Z | 2021-09-14T14:09:55Z |
DOC: Update whatsnew for crosstab fix | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 8755ae851d474..d77801416180b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -433,7 +433,7 @@ Reshaping
- Bug in :meth:`pandas.cut` on :class:`Series` with duplicate indices (:issue:`42185`) and non-e... | xref #43505
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43548 | 2021-09-13T11:41:56Z | 2021-09-14T12:43:33Z | 2021-09-14T12:43:33Z | 2021-09-14T12:43:33Z |
CI Use pytest randomly | diff --git a/ci/deps/actions-38-locale.yaml b/ci/deps/actions-38-locale.yaml
index 46ebaadc3049a..369b04a25859d 100644
--- a/ci/deps/actions-38-locale.yaml
+++ b/ci/deps/actions-38-locale.yaml
@@ -39,3 +39,4 @@ dependencies:
- pip
- pip:
- pyxlsb
+ - pytest-randomly
diff --git a/ci/deps/actions-38-minimum... | - [ ] closes #43534
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43546 | 2021-09-13T07:06:58Z | 2021-09-13T16:16:52Z | null | 2021-09-13T16:16:52Z |
CI: network tests running even with "not network" | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 46975aa039b18..90709381d1e16 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -92,33 +92,45 @@ def pytest_addoption(parser):
)
-def pytest_runtest_setup(item):
- if "slow" in item.keywords and item.config.getoption("--skip-slow"):
- ... | While looking into windows timeouts, noticed network tests were still being run with -m "not network". `tm.network` adds the keyword `network`, but does not add a mark, so -m "not network" was still running network tests. While a mark could probably be set somehow in that decorator, I couldn't find a `pytest` document... | https://api.github.com/repos/pandas-dev/pandas/pulls/43545 | 2021-09-13T04:48:40Z | 2021-09-14T12:58:51Z | 2021-09-14T12:58:51Z | 2021-09-14T15:16:45Z |
DOC: add plt.show so that the plot will show, along with note about p… | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 93d4b8852c60c..4aca107b7c106 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -733,6 +733,14 @@ The :meth:`~plt.close` method is used to `close <https://matplotlib.org/3.1.1/ap
@savefig series_p... | …lt.show, plt.savefig and Jupyter Notebook.
- [x] closes #43560
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43544 | 2021-09-13T04:42:22Z | 2021-09-14T15:21:12Z | 2021-09-14T15:21:11Z | 2021-09-14T15:21:12Z |
CI: mark user-agent tests as network | diff --git a/pandas/tests/io/test_user_agent.py b/pandas/tests/io/test_user_agent.py
index cabdbbdb44830..2b118b1974034 100644
--- a/pandas/tests/io/test_user_agent.py
+++ b/pandas/tests/io/test_user_agent.py
@@ -178,6 +178,7 @@ def do_GET(self):
self.wfile.write(response_bytes)
+@pytest.mark.network
@pyt... | cc @jbrockmendel, inspired by https://github.com/pandas-dev/pandas/pull/43517#issuecomment-917464806. This being the source of the timeout is also supported by starting to see timeouts on windows2 after changing the split such that the io tests were included in windows2.
| https://api.github.com/repos/pandas-dev/pandas/pulls/43542 | 2021-09-13T01:05:28Z | 2021-09-13T02:07:00Z | null | 2021-09-14T01:04:51Z |
TYP: SparseArray methods | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index a9a7982dcf4da..8e92114d7b3de 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -97,9 +97,14 @@ class ellipsis(Enum):
Ellipsis = ellipsis.Ellipsis
- SparseIndexKind = Literal["... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43539 | 2021-09-12T19:05:25Z | 2021-09-13T15:18:10Z | 2021-09-13T15:18:10Z | 2021-09-13T15:21:38Z |
REF: share _wrap_transform_fast_result | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 23d1edeae200f..ed79ba6206dba 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -503,16 +503,6 @@ def _transform_general(self, func: Callable, *args, **kwargs) -> Series:
def _can_use_transform_fast(... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43538 | 2021-09-12T18:42:23Z | 2021-09-13T15:24:28Z | 2021-09-13T15:24:28Z | 2021-09-13T16:05:16Z |
REF: `refactor_levels` for `Styler.format_index` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index c10ac07d452a8..ed142017a066b 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -32,7 +32,6 @@
import pandas as pd
from pandas import (
- Index,
IndexSlice,
RangeIndex,
)
@@ -58,6 +57,7 @@
Tooltips... | Have moved some of the changes from #43101. The PR was split to try and debug the consistently failing CI which can't reproduce locally, and is unrelated to the code changes.
Please merge this one, it moves a private method to the base class script. | https://api.github.com/repos/pandas-dev/pandas/pulls/43537 | 2021-09-12T18:42:16Z | 2021-09-13T12:44:55Z | 2021-09-13T12:44:54Z | 2021-09-13T16:13:06Z |
TYP: SparseIndexKind | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 6ae216cd3263c..c0c13942ee850 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -97,6 +97,8 @@ class ellipsis(Enum):
Ellipsis = ellipsis.Ellipsis
+ SparseIndexKind = Literal["i... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43536 | 2021-09-12T18:22:22Z | 2021-09-12T19:19:28Z | 2021-09-12T19:19:28Z | 2021-09-12T19:19:47Z |
Backport PR #43517 on branch 1.3.x (split macos tests in 2) | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 2caacf3a07290..4d41500093a40 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -9,10 +9,16 @@ jobs:
strategy:
matrix:
${{ if eq(parameters.name, 'macOS') }}:
- py37_macos:
+ py37_macos_1:
ENV_FILE: ci/deps/azure... | Backport #43517 | https://api.github.com/repos/pandas-dev/pandas/pulls/43535 | 2021-09-12T18:07:01Z | 2021-09-13T00:17:55Z | 2021-09-13T00:17:55Z | 2023-02-13T20:55:11Z |
CLN: remove _has_complex_internals | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index d967558b93954..a8720f9aa3cef 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -435,9 +435,6 @@ def _aggregate_named(self, func, *args, **kwargs):
initialized = False
for name, group ... | This was used for libreduction hijinks that has now been removed | https://api.github.com/repos/pandas-dev/pandas/pulls/43533 | 2021-09-12T16:14:28Z | 2021-09-12T19:10:56Z | 2021-09-12T19:10:56Z | 2021-09-12T19:20:04Z |
Backport PR #43530 on branch 1.3.x (DOC: Start v1.3.4 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index ee2f44bd9e981..e05bf9621e2c4 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.3
.. toctree::
:maxdepth: 2
+ v1.3.4
v1.3.3
v1.3.2
v1.3.1
diff --git a/doc/source/... | Backport PR #43530: DOC: Start v1.3.4 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/43532 | 2021-09-12T14:51:18Z | 2021-09-12T15:52:16Z | 2021-09-12T15:52:16Z | 2021-09-12T15:52:17Z |
DOC: Start v1.3.4 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index eeddbb819eca1..b94954cf4c361 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.3
.. toctree::
:maxdepth: 2
+ v1.3.4
v1.3.3
v1.3.2
v1.3.1
diff --git a/doc/source/... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43530 | 2021-09-12T13:41:15Z | 2021-09-12T14:50:50Z | 2021-09-12T14:50:50Z | 2021-09-12T14:54:25Z |
DOC: fix doc to understand fillna with second dataframe | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 67eb457ab93b1..63e43f48d08b7 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6216,64 +6216,66 @@ def fillna(
--------
>>> df = pd.DataFrame([[np.nan, 2, np.nan, 0],
... [3, 4, np.nan, 1]... | - [x] closes #43522
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them | https://api.github.com/repos/pandas-dev/pandas/pulls/43529 | 2021-09-12T11:00:41Z | 2021-09-12T15:15:11Z | 2021-09-12T15:15:11Z | 2021-09-12T15:15:12Z |
BUG/PERF: sparse min/max don't densify | diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py
index bcc3edab4a349..32baec25bef2d 100644
--- a/asv_bench/benchmarks/sparse.py
+++ b/asv_bench/benchmarks/sparse.py
@@ -166,4 +166,18 @@ def time_division(self, fill_value):
self.arr1 / self.arr2
+class MinMax:
+
+ params = (["... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This now follows the structure of other `SparseArray` reductions like `sum` more closely, though there is... | https://api.github.com/repos/pandas-dev/pandas/pulls/43527 | 2021-09-12T03:36:05Z | 2021-09-12T19:11:14Z | 2021-09-12T19:11:14Z | 2021-09-12T19:19:15Z |
TST: pytest.mark.single for test_unique_bad_unicode | diff --git a/pandas/tests/base/test_unique.py b/pandas/tests/base/test_unique.py
index 9124e3d546123..1f6b0f1db55d6 100644
--- a/pandas/tests/base/test_unique.py
+++ b/pandas/tests/base/test_unique.py
@@ -115,12 +115,12 @@ def test_nunique_null(null_obj, index_or_series_obj):
assert obj.nunique(dropna=False) =... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Discussed on this week's call. | https://api.github.com/repos/pandas-dev/pandas/pulls/43526 | 2021-09-12T01:41:07Z | 2021-09-12T15:00:42Z | 2021-09-12T15:00:42Z | 2021-09-12T15:01:30Z |
CLN: remove sparse op helper unused | diff --git a/pandas/_libs/sparse_op_helper.pxi.in b/pandas/_libs/sparse_op_helper.pxi.in
index ce665ca812131..c6e65f8b96187 100644
--- a/pandas/_libs/sparse_op_helper.pxi.in
+++ b/pandas/_libs/sparse_op_helper.pxi.in
@@ -301,9 +301,4 @@ cpdef sparse_{{opname}}_{{dtype}}({{dtype}}_t[:] x,
else:
raise NotIm... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43525 | 2021-09-11T23:17:39Z | 2021-09-12T01:33:58Z | 2021-09-12T01:33:58Z | 2021-09-12T01:44:10Z |
PERF: avoid rebuilding blknos | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 18af600ef4046..1a0697f097494 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -760,6 +760,8 @@ cdef class BlockManager:
cdef BlockManager _get_index_slice(self, slobj):
cdef:
SharedBlock blk,... | ```
from asv_bench.benchmarks.groupby import *
self = Apply()
self.setup(4)
%timeit self.time_copy_function_multi_col(4)
451 ms ± 6.17 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR
492 ms ± 8.97 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/43524 | 2021-09-11T23:06:05Z | 2021-09-12T14:59:07Z | 2021-09-12T14:59:07Z | 2021-09-12T15:00:17Z |
DEPR: index argument to SparseArray | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 328499a4ae98e..ff8f8b9977134 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -282,6 +282,8 @@ Other Deprecations
- Deprecated passing in a string column label into ``times`` in :meth:`DataFrame.ewm` (... | - [x] closes #23089
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43523 | 2021-09-11T22:41:07Z | 2021-09-12T15:06:28Z | 2021-09-12T15:06:28Z | 2021-09-12T15:11:15Z |
Backport PR #43520 on branch 1.3.x (DOC: 1.3.3 release date) | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 4bf5d7bead0a6..b421b9bb8ca49 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -1,6 +1,6 @@
.. _whatsnew_133:
-What's new in 1.3.3 (September ??, 2021)
+What's new in 1.3.3 (September 12, 2021)
-----... | Backport PR #43520: DOC: 1.3.3 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/43521 | 2021-09-11T21:49:31Z | 2021-09-12T06:45:04Z | 2021-09-12T06:45:04Z | 2021-09-12T06:45:04Z |
DOC: 1.3.3 release date | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 4bf5d7bead0a6..b421b9bb8ca49 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -1,6 +1,6 @@
.. _whatsnew_133:
-What's new in 1.3.3 (September ??, 2021)
+What's new in 1.3.3 (September 12, 2021)
-----... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43520 | 2021-09-11T20:33:42Z | 2021-09-11T21:48:59Z | 2021-09-11T21:48:59Z | 2021-09-11T21:49:11Z |
REF: share GroupBy.count | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 28c44ff64c3e1..d967558b93954 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -26,10 +26,7 @@
import numpy as np
-from pandas._libs import (
- lib,
- reduction as libreduction,
-)
+from panda... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43519 | 2021-09-11T19:42:34Z | 2021-09-12T14:54:26Z | 2021-09-12T14:54:26Z | 2021-09-12T15:02:14Z |
PERF: groupby.pad/backfill follow-up | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index 1f4ac94b6e2b9..0def2b6544be4 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -2,6 +2,8 @@ from typing import Literal
import numpy as np
+from pandas._typing import npt
+
def group_median_float64(
out: np.ndarray, ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Follow-ups include the big perf bump discussed in #43478
```
import pandas as pd
... | https://api.github.com/repos/pandas-dev/pandas/pulls/43518 | 2021-09-11T19:25:00Z | 2021-09-12T15:08:35Z | 2021-09-12T15:08:35Z | 2021-09-12T15:16:08Z |
split macos tests in 2 | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 8b0167e52b813..eaac17d50c315 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -9,10 +9,16 @@ jobs:
strategy:
matrix:
${{ if eq(parameters.name, 'macOS') }}:
- py38_macos:
+ py38_macos_1:
ENV_FILE: ci/deps/azure... | follow up to #43468 to also split MacOS tests in half to speed up CI tests per comment from @jreback https://github.com/pandas-dev/pandas/pull/43468#issuecomment-916860226
| https://api.github.com/repos/pandas-dev/pandas/pulls/43517 | 2021-09-11T17:48:47Z | 2021-09-12T14:52:05Z | 2021-09-12T14:52:05Z | 2023-02-13T20:55:01Z |
BUG: Groupby.agg with timegrouper, nat, and numba | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 328499a4ae98e..1f8f637260c08 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -421,7 +421,7 @@ Groupby/resample/rolling
- Bug in :meth:`Series.rolling` when the :class:`Series` ``dtype`` was ``Int64`` ... | - [ ] closes #xxxx
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43515 | 2021-09-11T17:27:30Z | 2021-09-12T16:25:46Z | 2021-09-12T16:25:46Z | 2021-09-12T18:18:34Z |
TYP: sparse.pyi | diff --git a/pandas/_libs/sparse.pyi b/pandas/_libs/sparse.pyi
new file mode 100644
index 0000000000000..aff1ed6cef74c
--- /dev/null
+++ b/pandas/_libs/sparse.pyi
@@ -0,0 +1,45 @@
+from typing import (
+ Sequence,
+ TypeVar,
+)
+
+import numpy as np
+
+from pandas._typing import npt
+
+SparseIndexT = TypeVar("Spa... | A start to typing sparse stuff, tried to do this without touching the cython code, hopefully some cleanups possible once typing somewhat specified.
cc @jbrockmendel, one annoying piece going on here is the abstract base class `SparseIndex` - it functions entirely like an interface, and so has nothing but abstract me... | https://api.github.com/repos/pandas-dev/pandas/pulls/43514 | 2021-09-11T17:14:40Z | 2021-09-12T14:59:41Z | 2021-09-12T14:59:41Z | 2021-09-12T15:11:00Z |
TYP: SparseArray | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 77142ef450487..58adcc4e31c44 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -98,6 +98,8 @@ class ellipsis(Enum):
from pandas._typing import NumpySorter
+ from pandas import... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43513 | 2021-09-11T15:27:19Z | 2021-09-12T15:01:32Z | 2021-09-12T15:01:32Z | 2021-09-12T15:11:09Z |
TYP: use npt.DTypeLike for type annotation of dtype arg in to_numpy | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 40837ccad6ac8..088c44334495c 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -449,7 +449,7 @@ def __ne__(self, other: Any) -> ArrayLike: # type: ignore[override]
def to_numpy(
self,
- dtype: Dt... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43512 | 2021-09-11T11:28:59Z | 2021-09-11T14:52:28Z | 2021-09-11T14:52:27Z | 2021-09-11T15:08:26Z |
Updated code_checks.sh with PR06 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 503120e486f5a..6335eb4b14007 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -93,8 +93,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL01, GL02, GL03, GL04, GL05, GL06, GL07, GL09, G... | - [ ✔] closes #28724
- [ ] tests added / passed
- [✔ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43511 | 2021-09-11T06:18:39Z | 2021-12-05T22:37:31Z | 2021-12-05T22:37:30Z | 2021-12-05T22:41:10Z |
CLN/PERF: group quantile | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index 1f4ac94b6e2b9..07e97d9c618f9 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -2,6 +2,8 @@ from typing import Literal
import numpy as np
+from pandas._typing import npt
+
def group_median_float64(
out: np.ndarray, ... | Inspired by idea from @jbrockmendel in https://github.com/pandas-dev/pandas/pull/43489#discussion_r705868510.
Didn't end up seeing a huge perf improvement though, for example results on a wide frame:
```
arr = np.random.randn(10 ** 5, 100)
df = pd.DataFrame(arr)
gb = df.groupby(df.index % 3)
gb.quantile(0.5)
#... | https://api.github.com/repos/pandas-dev/pandas/pulls/43510 | 2021-09-11T04:43:14Z | 2021-09-12T15:07:31Z | 2021-09-12T15:07:31Z | 2021-09-12T15:11:21Z |
BUG: GroupBy.apply with timegrouper and NaT | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 469e0e3901721..e031ed158c131 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1168,11 +1168,7 @@ def _wrap_applied_output_series(
applied_index = self._selected_obj._get_axis(self.axis)
... | - [ ] closes #xxxx
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
I'm increasingly sure that we should use result_index instead of all of the various ne... | https://api.github.com/repos/pandas-dev/pandas/pulls/43509 | 2021-09-11T04:25:46Z | 2021-09-11T14:57:32Z | 2021-09-11T14:57:32Z | 2021-09-11T17:15:38Z |
CLN: clean lib util | diff --git a/pandas/_libs/util.pxd b/pandas/_libs/util.pxd
index bd1e21b0d8665..be22fc368c28f 100644
--- a/pandas/_libs/util.pxd
+++ b/pandas/_libs/util.pxd
@@ -1,19 +1,8 @@
cimport numpy as cnp
-from numpy cimport ndarray
from pandas._libs.tslibs.util cimport *
-cdef extern from "numpy/ndarraytypes.h":
- vo... | xref #34213 | https://api.github.com/repos/pandas-dev/pandas/pulls/43508 | 2021-09-11T03:57:02Z | 2021-09-11T14:54:53Z | 2021-09-11T14:54:53Z | 2021-09-11T19:56:18Z |
BUG/API: concat with empty DataFrames or all-NA columns | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 3bdcab4fbcfea..eb1bc270a7d1b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -150,9 +150,44 @@ The ``dayfirst`` option of :func:`to_datetime` isn't strict, and this can lead t
Now, a warning will be r... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
This is in the grey area between a bugfix and an API change. Towards the bugfix side,... | https://api.github.com/repos/pandas-dev/pandas/pulls/43507 | 2021-09-11T02:44:19Z | 2021-09-15T01:37:14Z | 2021-09-15T01:37:14Z | 2021-09-21T20:04:43Z |
REF: de-duplicate operate-column-wise code, pct_change | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 1cbfcff5e94f1..a3d749bdbe5cb 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -791,24 +791,6 @@ def count(self) -> Series:
)
return self._reindex_output(result, fill_value=0)
- de... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43506 | 2021-09-10T23:51:30Z | 2021-09-11T15:02:28Z | 2021-09-11T15:02:28Z | 2021-11-20T23:20:40Z |
REF: remove libreduction.SeriesGrouper | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 77fd4d94d05ac..f6c404c07c7e4 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -34,166 +34,6 @@ cpdef check_result_array(object obj, object dtype):
raise ValueError("Must produce aggregated value")
-cde... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
cc @bashtage per comment https://github.com/pandas-dev/pandas/pull/37468#discussion_r7... | https://api.github.com/repos/pandas-dev/pandas/pulls/43505 | 2021-09-10T21:47:44Z | 2021-09-11T00:17:41Z | 2021-09-11T00:17:41Z | 2021-09-13T11:42:15Z |
ENH: consistency of input args for boundaries (pd.date_range) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index f6e90a3341424..ca3d7e1d3d013 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -336,6 +336,7 @@ Other Deprecations
- Deprecated the 'include_start' and 'include_end' arguments in :meth:`DataFrame.betwee... | closes #43394
xref #40245
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43504 | 2021-09-10T20:35:29Z | 2021-10-03T16:43:57Z | 2021-10-03T16:43:57Z | 2021-10-03T16:44:08Z |
BUG: GroupBy.apply with Grouper and NaT | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index f19b0fe10fe6e..5011eb769d73b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -419,6 +419,7 @@ Groupby/resample/rolling
- Bug in :meth:`Series.rolling` when the :class:`Series` ``dtype`` was ``Int64`` ... | - [ ] closes #xxxx
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Inching towards getting rid of redundant index-like attributes | https://api.github.com/repos/pandas-dev/pandas/pulls/43500 | 2021-09-10T15:54:54Z | 2021-09-10T21:37:42Z | 2021-09-10T21:37:42Z | 2021-09-10T21:39:53Z |
DOC: sync release notes | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 9be673f16c6e0..4bf5d7bead0a6 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -17,8 +17,8 @@ Fixed regressions
- Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla... | sync release notes on 1.3.x with master to reduce chances of merge conflicts. | https://api.github.com/repos/pandas-dev/pandas/pulls/43499 | 2021-09-10T15:34:55Z | 2021-09-10T16:50:36Z | 2021-09-10T16:50:36Z | 2021-09-10T16:56:10Z |
Backport PR #43468: CI: split Windows Azure tests in half | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d39a33e7a88c3..c10caaca0c186 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -165,6 +165,7 @@ jobs:
PANDAS_DATA_MANAGER: array
PATTERN: ${{ matrix.pattern }}
PYTEST_WORKERS: "auto"
+ PYTEST_T... | Backport #43468 to 1.3.x | https://api.github.com/repos/pandas-dev/pandas/pulls/43497 | 2021-09-10T13:48:44Z | 2021-09-10T16:45:58Z | 2021-09-10T16:45:58Z | 2021-09-10T17:03:24Z |
Backport PR #43468 on branch 1.3.x (CI: split Windows Azure tests in half) | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a5a802c678e20..c10caaca0c186 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,11 +2,13 @@ name: CI
on:
push:
- branches: [master]
+ branches:
+ - master
+ - 1.3.x
pull_request:
branches:
... | Backport 43468 to 1.3.x | https://api.github.com/repos/pandas-dev/pandas/pulls/43496 | 2021-09-10T13:20:09Z | 2021-09-10T13:47:05Z | null | 2021-09-10T13:47:05Z |
ENH Remove import time warning for missing lzma | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 50156d4565bbd..b4502912b72e5 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -667,6 +667,7 @@ I/O
- Bug in :func:`read_csv` used second row to guess implicit index if ``header`` was set to ``None`` fo... | Also adds a test that lzma is not imported by default with `import pandas`.
- [x] closes #43461
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry: I'm not ... | https://api.github.com/repos/pandas-dev/pandas/pulls/43495 | 2021-09-10T09:31:54Z | 2021-11-28T23:55:02Z | 2021-11-28T23:55:02Z | 2021-11-29T06:48:32Z |
BUG: fillna not replacing missing values when duplicate colnames | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 487ef5c226f94..294648d0fb291 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -369,6 +369,7 @@ Indexing
Missing
^^^^^^^
- Bug in :meth:`DataFrame.fillna` with limit and no method ignores axis='column... | - [x] closes #43476
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43492 | 2021-09-10T04:41:55Z | 2021-09-10T14:09:32Z | 2021-09-10T14:09:31Z | 2021-09-10T14:13:39Z |
BUG: df.sparse.to_coo() raising on duplicate colnames | diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py
index c8c1a962e6861..bcc3edab4a349 100644
--- a/asv_bench/benchmarks/sparse.py
+++ b/asv_bench/benchmarks/sparse.py
@@ -91,6 +91,20 @@ def time_sparse_series_to_coo_single_level(self, sort_labels):
self.ss_two_lvl.sparse.to_coo(sort_l... | - [x] closes #29564
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/43491 | 2021-09-10T04:20:15Z | 2021-09-10T18:48:16Z | 2021-09-10T18:48:15Z | 2021-09-10T19:07:11Z |
REF: Groupby length checks on values instead of keys | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index c57f64e306199..1cbfcff5e94f1 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -369,7 +369,7 @@ def _indexed_output_to_ndframe(
def _wrap_applied_output(
self,
data: Series,
- ... | There are corner cases where these can mismatch. This moves us towards getting rid of some redundant index-like attributes | https://api.github.com/repos/pandas-dev/pandas/pulls/43490 | 2021-09-10T04:00:18Z | 2021-09-10T17:03:23Z | 2021-09-10T17:03:23Z | 2021-09-10T17:04:13Z |
CLN: group_quantile | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 8ba49e5753bd5..b469850d59aa2 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -800,9 +800,12 @@ def group_quantile(ndarray[float64_t, ndim=2] out,
Py_ssize_t i, N=len(labels), ngroups, grp_sz, non_na_sz, k, nqs
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43489 | 2021-09-10T01:52:54Z | 2021-09-10T04:21:36Z | null | 2021-09-10T17:22:21Z |
Backport PR #43447 on branch 1.3.x (REGR: SpooledTemporaryFile support in read_csv) | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 1ecae3d344f79..9be673f16c6e0 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.corr` where Kendall correlation would produce incor... | Backport PR #43447: REGR: SpooledTemporaryFile support in read_csv | https://api.github.com/repos/pandas-dev/pandas/pulls/43488 | 2021-09-10T00:24:20Z | 2021-09-10T09:24:31Z | 2021-09-10T09:24:31Z | 2021-09-10T09:24:31Z |
REF: avoid unnecessary argument to groupby numba funcs | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index c57f64e306199..1a413e48708b5 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -228,9 +228,10 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs)
if maybe_use_num... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
cc @mroeschke im pretty sure this is slightly more correct than the status quo, but i ... | https://api.github.com/repos/pandas-dev/pandas/pulls/43487 | 2021-09-10T00:01:18Z | 2021-09-10T21:36:35Z | 2021-09-10T21:36:35Z | 2021-09-10T21:39:06Z |
REF: always use grouper=self.grouper in resample | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index c7c2fbc2deaf5..303d0494db803 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -338,8 +338,7 @@ def aggregate(self, func=None, *args, **kwargs):
result = ResamplerWindowApply(self, func, args=args, kwargs=kwargs).agg()
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/43484 | 2021-09-09T22:01:12Z | 2021-09-10T00:25:45Z | 2021-09-10T00:25:45Z | 2021-09-10T01:08:49Z |
Backport PR #43154 on branch 1.3.x (Updating _resolve_numeric_only function of GroupBy) | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 1acadc26d335b..c066d015f5e62 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -26,6 +26,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.__getitem__` raising error for slice of :class:`Dat... | Backport PR #43154: Updating _resolve_numeric_only function of GroupBy | https://api.github.com/repos/pandas-dev/pandas/pulls/43481 | 2021-09-09T17:59:47Z | 2021-09-09T19:03:19Z | 2021-09-09T19:03:19Z | 2021-09-09T19:03:19Z |
REF: dont pass keys through wrap_applied_output | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 7af32d70c00bc..4380756be65da 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -399,7 +399,6 @@ def _wrap_transformed_output(
def _wrap_applied_output(
self,
data: Series,
- ... | This makes it easier to reason about these `keys`, which I'm hopeful will lead to getting rid of them entirely and just using result_index. | https://api.github.com/repos/pandas-dev/pandas/pulls/43479 | 2021-09-09T17:31:15Z | 2021-09-09T19:39:43Z | 2021-09-09T19:39:43Z | 2021-11-20T23:20:41Z |
REF: Groupby.pad/backfill operate blockwise | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index b51cc9f4500c1..1f4ac94b6e2b9 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -32,7 +32,7 @@ def group_shift_indexer(
periods: int,
) -> None: ...
def group_fillna_indexer(
- out: np.ndarray, # ndarray[int64_t]
+ ... | We get a decent-but-not-whopping perf boost, with a much bigger perf boost in the follow-up that de-duplicates an argsort call that we're currently doing repeatedly inside the cython function.
More importantly, we're getting close to having everything operate blockwise, at which point we can get rid of _get_cythoniz... | https://api.github.com/repos/pandas-dev/pandas/pulls/43478 | 2021-09-09T17:17:18Z | 2021-09-10T21:38:19Z | 2021-09-10T21:38:19Z | 2021-09-10T21:39:32Z |
Backport PR #43428 on branch 1.3.x (Regression in __getitem__ raising for slice DatetimeIndex) | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 3b0f273451456..7c1b4b280c0d2 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression in :meth:`read_parquet` where the ``fastparquet`` engine would not work... | Backport PR #43428: Regression in __getitem__ raising for slice DatetimeIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/43475 | 2021-09-09T13:51:10Z | 2021-09-09T17:23:25Z | 2021-09-09T17:23:25Z | 2021-09-09T17:23:33Z |
Backport PR #43455 on branch 1.3.x (REGR: fillna on f32 column raising for f64) | diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst
index 3b0f273451456..720730a74703d 100644
--- a/doc/source/whatsnew/v1.3.3.rst
+++ b/doc/source/whatsnew/v1.3.3.rst
@@ -25,6 +25,8 @@ Fixed regressions
- Fixed regression in :func:`is_list_like` where objects with ``__iter__`` set to ``None``... | Backport PR #43455: REGR: fillna on f32 column raising for f64 | https://api.github.com/repos/pandas-dev/pandas/pulls/43474 | 2021-09-09T11:37:56Z | 2021-09-09T16:09:15Z | 2021-09-09T16:09:15Z | 2021-09-09T16:09:22Z |
BUG: `Styler` hidden elements sparse none | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ec77d738d5f3e..9a17b04b23c18 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -440,7 +440,7 @@ Styler
- Bug in :meth:`Styler.apply` where functions which returned Series objects were not correctly hand... | - [x] closes #43464
- [x] tests added / passed
- [x] whatsnew entry
sorry, missed that this also applied to index. more generic fix here, | https://api.github.com/repos/pandas-dev/pandas/pulls/43470 | 2021-09-09T05:40:54Z | 2021-09-09T11:59:53Z | 2021-09-09T11:59:52Z | 2021-09-12T17:37:49Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.