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 |
|---|---|---|---|---|---|---|---|
CI: Revert disable of some window test on Windows | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 261d6364cb5e1..0d6f26d8c29f8 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -24,7 +24,7 @@ PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TE
if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then
# GH#37455 windows py3... | - [x] xref #37535
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/41481 | 2021-05-15T03:18:46Z | 2021-05-17T15:18:37Z | 2021-05-17T15:18:37Z | 2021-05-17T16:16:35Z |
DEPR: dropping nuisance columns in DataFrame reductions | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 6dd011c588702..36b591c3c3142 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -381,6 +381,7 @@ this pathological behavior (:issue:`37827`):
*New behavior*:
.. ipython:: python
+ :okwarning:
... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Discussed on this week's call | https://api.github.com/repos/pandas-dev/pandas/pulls/41480 | 2021-05-15T01:37:10Z | 2021-05-21T20:59:56Z | 2021-05-21T20:59:56Z | 2021-05-21T21:18:11Z |
REF: Various things preparing instantiable NumericIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 83946491f32a8..08ca84228a301 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -347,7 +347,7 @@ def _outer_indexer(
joined = self._from_join_target(joined_ndarray)
return joined, lidx, ridx
- ... | Separating various stuff from #41153, making that PR easier to review after this is merged, Similar idea as #41472.
Nothing in this PR changes anything, but just makes it e.g. simpler to update test fixtures after this is merged. | https://api.github.com/repos/pandas-dev/pandas/pulls/41479 | 2021-05-14T23:13:21Z | 2021-05-17T15:19:46Z | 2021-05-17T15:19:46Z | 2021-05-17T16:09:49Z |
Backport PR #41462: CI: Fix changed flake8 error message after upgrade (#41462) | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 31c926233d5b6..ffe615a63b7e3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,7 +4,7 @@ repos:
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
- rev: 3.8.4
+ rev: 3.9.2
hooks:
- id: f... | cc @jreback We could avoid the version changes in the pre commits if you prefer | https://api.github.com/repos/pandas-dev/pandas/pulls/41478 | 2021-05-14T20:25:23Z | 2021-05-24T10:46:22Z | 2021-05-24T10:46:22Z | 2021-11-13T19:32:56Z |
DEPS: bump pyarrow version to 0.17.0 #38870 | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index a5aef7825c770..69f2e689c0228 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -70,7 +70,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-dev
... | closes #38870
| https://api.github.com/repos/pandas-dev/pandas/pulls/41476 | 2021-05-14T16:58:11Z | 2021-05-17T15:21:56Z | 2021-05-17T15:21:56Z | 2021-06-18T02:25:25Z |
DEPR: dropping nuisance columns in DataFrameGroupby apply, agg, transform | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index ef6d45fa0140b..7a55acbd3031d 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -1000,6 +1000,7 @@ instance method on each data group. This is pretty easy to do by passing lambda
functions:
... | - [x] closes #21664
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Discussed on this week's call. | https://api.github.com/repos/pandas-dev/pandas/pulls/41475 | 2021-05-14T16:52:37Z | 2021-05-26T01:53:59Z | 2021-05-26T01:53:59Z | 2022-02-19T17:29:08Z |
TST/CLN: move some tests | diff --git a/pandas/tests/strings/test_case_justify.py b/pandas/tests/strings/test_case_justify.py
index d6e2ca7399b4e..24e1f99ad7956 100644
--- a/pandas/tests/strings/test_case_justify.py
+++ b/pandas/tests/strings/test_case_justify.py
@@ -81,6 +81,15 @@ def test_swapcase_mixed_object():
tm.assert_series_equal(re... | no changes, only moved. maybe could split pandas/tests/strings/test_strings.py by method | https://api.github.com/repos/pandas-dev/pandas/pulls/41474 | 2021-05-14T16:04:44Z | 2021-05-14T17:11:30Z | 2021-05-14T17:11:30Z | 2021-05-14T17:14:48Z |
[ArrowStringArray] TST: move/combine a couple of tests | diff --git a/pandas/tests/strings/test_case_justify.py b/pandas/tests/strings/test_case_justify.py
index d6e2ca7399b4e..73f6b2e9a1deb 100644
--- a/pandas/tests/strings/test_case_justify.py
+++ b/pandas/tests/strings/test_case_justify.py
@@ -49,10 +49,21 @@ def test_lower_upper_mixed_object():
tm.assert_series_equa... | separate commits to simplify review (we may be able to remove pandas/tests/strings/test_string_array.py eventually) | https://api.github.com/repos/pandas-dev/pandas/pulls/41473 | 2021-05-14T15:48:45Z | 2021-05-17T15:31:31Z | 2021-05-17T15:31:31Z | 2021-05-17T15:56:23Z |
REF: collect methods in NumericIndex | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 88b0b019324ea..de7c522b4fbec 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -16,7 +16,10 @@
Dtype,
DtypeObj,
)
-from pandas.util._decorators import doc
+from pandas.util._decorators import ... | Seperates the refactoring of existing methods out of #41153. Will make it easier to see what #41153 actually brings in of new things.
This PR changes no functionality, but only makes the exisiting numeric indexes into thin subclasses of the existing `NumericIndex`. | https://api.github.com/repos/pandas-dev/pandas/pulls/41472 | 2021-05-14T14:58:28Z | 2021-05-18T13:05:52Z | 2021-05-18T13:05:52Z | 2021-05-18T13:56:07Z |
[ArrowStringArray] TST: parametrize tests/strings/test_find_replace.py | diff --git a/pandas/tests/strings/test_find_replace.py b/pandas/tests/strings/test_find_replace.py
index 06a7c6d56a61d..843b0ba55e691 100644
--- a/pandas/tests/strings/test_find_replace.py
+++ b/pandas/tests/strings/test_find_replace.py
@@ -6,7 +6,6 @@
import pandas as pd
from pandas import (
- Index,
Serie... | https://api.github.com/repos/pandas-dev/pandas/pulls/41471 | 2021-05-14T14:52:56Z | 2021-05-14T16:05:55Z | 2021-05-14T16:05:54Z | 2021-05-14T17:10:49Z | |
[ArrowStringArray] TST: parametrize (part) pandas/tests/strings/test_api.py | diff --git a/pandas/tests/strings/test_api.py b/pandas/tests/strings/test_api.py
index 7f864a503486e..ec8b5bfa11ad5 100644
--- a/pandas/tests/strings/test_api.py
+++ b/pandas/tests/strings/test_api.py
@@ -10,11 +10,11 @@
from pandas.core import strings as strings
-def test_api():
+def test_api(any_string_dtype):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41470 | 2021-05-14T13:13:19Z | 2021-05-14T16:07:34Z | 2021-05-14T16:07:34Z | 2021-05-14T17:04:52Z | |
TST/CLN: tighten some xfails | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 8f399ef6f1192..77c8d56765e5e 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -57,7 +57,8 @@ xfail during the testing phase. To do so, use the ``request`` fixture:
impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/41469 | 2021-05-14T12:53:14Z | 2021-05-14T16:07:01Z | 2021-05-14T16:07:01Z | 2021-05-14T17:07:25Z | |
DOC: freeze old whatsnew notes part 1 #6856 | diff --git a/doc/source/whatsnew/v0.5.0.rst b/doc/source/whatsnew/v0.5.0.rst
index 7447a10fa1d6b..8757d9c887785 100644
--- a/doc/source/whatsnew/v0.5.0.rst
+++ b/doc/source/whatsnew/v0.5.0.rst
@@ -6,12 +6,6 @@ Version 0.5.0 (October 24, 2011)
{{ header }}
-.. ipython:: python
- :suppress:
-
- from pandas impor... | xref #6856
| https://api.github.com/repos/pandas-dev/pandas/pulls/41464 | 2021-05-14T03:02:11Z | 2021-05-14T16:08:45Z | 2021-05-14T16:08:45Z | 2022-11-18T02:21:36Z |
Fix deprecation warnings for empty series in docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0d39f13afc426..a09cc0a6324c0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11359,7 +11359,7 @@ def _doc_params(cls):
True
>>> pd.Series([True, False]).all()
False
->>> pd.Series([]).all()
+>>> pd.Series([], dtype="float64").all... | Fixing the deprecation warnings | https://api.github.com/repos/pandas-dev/pandas/pulls/41463 | 2021-05-13T22:35:42Z | 2021-05-13T23:29:13Z | 2021-05-13T23:29:13Z | 2021-05-14T20:15:33Z |
CI: Fix changed flake8 error message after upgrade | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2f46190ef5eb7..db3fc1853ea71 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
exclude: ^pandas/_libs/src/(klib|headers)/
args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--fi... | Upgrade caused ci on 1.2.x to fail. Should backport probably | https://api.github.com/repos/pandas-dev/pandas/pulls/41462 | 2021-05-13T22:25:55Z | 2021-05-14T00:27:45Z | 2021-05-14T00:27:45Z | 2021-05-14T22:38:03Z |
REF: remove _wrap_frame_output | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 71d19cdd877a6..5c28a15532174 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1101,22 +1101,28 @@ def _aggregate_frame(self, func, *args, **kwargs) -> DataFrame:
if self.grouper.nkeys != 1:
... | There's too many _wrap_foo_output methods and this one is only used in one place | https://api.github.com/repos/pandas-dev/pandas/pulls/41461 | 2021-05-13T22:02:52Z | 2021-05-13T23:23:22Z | 2021-05-13T23:23:22Z | 2021-05-13T23:29:41Z |
Backport PR #41452 on branch 1.2.x (CI: Pin jinja2 to version lower than 3.0) | diff --git a/environment.yml b/environment.yml
index 61c8351070de9..15c1611169427 100644
--- a/environment.yml
+++ b/environment.yml
@@ -77,7 +77,7 @@ dependencies:
- bottleneck>=1.2.1
- ipykernel
- ipython>=7.11.1
- - jinja2 # pandas.Styler
+ - jinja2<3.0.0 # pandas.Styler
- matplotlib>=2.2.2 # pandas... | Backport PR #41452: CI: Pin jinja2 to version lower than 3.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/41460 | 2021-05-13T20:49:45Z | 2021-05-13T22:17:36Z | 2021-05-13T22:17:36Z | 2021-05-24T10:13:12Z |
DEPR: DatetimeIndex.union with mixed timezones | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6ceae4dfd8a91..427b16cc02953 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -645,6 +645,7 @@ Deprecations
- The ``inplace`` parameter of :meth:`Categorical.remove_categories`, :meth:`Categorical.add_... | - [x] closes #39328
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41458 | 2021-05-13T19:59:06Z | 2021-05-14T16:09:46Z | 2021-05-14T16:09:46Z | 2021-05-14T16:26:06Z |
DOC: unpin numpydoc, fix validation script #39688 | diff --git a/environment.yml b/environment.yml
index 9396210da3635..aa5e9505f9901 100644
--- a/environment.yml
+++ b/environment.yml
@@ -115,7 +115,7 @@ dependencies:
- natsort # DataFrame.sort_values
- pip:
- git+https://github.com/pydata/pydata-sphinx-theme.git@master
- - numpydoc < 1.2 # 2021-02-09 1... | - [x] closes #39688
| https://api.github.com/repos/pandas-dev/pandas/pulls/41456 | 2021-05-13T19:16:23Z | 2021-09-08T02:11:24Z | null | 2022-02-04T19:21:50Z |
[ArrowStringArray] PERF: Series.str.get_dummies | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 79ea2a4fba284..0f68d1043b49d 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -249,10 +249,18 @@ def time_rsplit(self, dtype, expand):
class Dummies:
- def setup(self):
- self.s = Ser... | planning to remove the padding code from _wrap_result eventually, but until then we can skip it when we return a integer array from get_dummies
adding tests and benchmarks as precursor to potential changes to _wrap_result #41372
have a working implementation for ArrowStringArray using pyarrow native functions bu... | https://api.github.com/repos/pandas-dev/pandas/pulls/41455 | 2021-05-13T18:28:36Z | 2021-05-13T23:25:14Z | 2021-05-13T23:25:14Z | 2021-05-14T09:17:56Z |
DOC: Complete first sentence in DataFrame.hist (#41421). | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 55097054fec88..27f8835968b54 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -132,7 +132,7 @@ def hist_frame(
**kwargs,
):
"""
- Make a histogram of the DataFrame's.
+ Make a histogram of the DataFrame's colu... | Complete sentence and mark column and figsize as optional parameters, following suggested fix.
- [ ] closes #41421
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew e... | https://api.github.com/repos/pandas-dev/pandas/pulls/41454 | 2021-05-13T17:34:26Z | 2021-05-14T16:09:24Z | 2021-05-14T16:09:23Z | 2021-05-14T16:09:27Z |
CI: Unpin nbformat after bugfix releases | diff --git a/environment.yml b/environment.yml
index 30fa7c0dea696..1347ed696f1c2 100644
--- a/environment.yml
+++ b/environment.yml
@@ -70,7 +70,7 @@ dependencies:
# unused (required indirectly may be?)
- ipywidgets
- - nbformat=5.0.8
+ - nbformat
- notebook>=5.7.5
- pip
diff --git a/requirements-dev... | - [x] closes #39176
Pinned this a few months ago, checking if new releases fixed the bugs | https://api.github.com/repos/pandas-dev/pandas/pulls/41453 | 2021-05-13T13:52:58Z | 2021-05-13T17:48:57Z | 2021-05-13T17:48:56Z | 2021-05-13T17:50:16Z |
CI: Pin jinja2 to version lower than 3.0 | diff --git a/environment.yml b/environment.yml
index 30fa7c0dea696..99ce0d9f9ea01 100644
--- a/environment.yml
+++ b/environment.yml
@@ -79,7 +79,7 @@ dependencies:
- bottleneck>=1.2.1
- ipykernel
- ipython>=7.11.1
- - jinja2 # pandas.Styler
+ - jinja2<3.0.0 # pandas.Styler
- matplotlib>=2.2.2 # pandas... | - [x] xref #41450 | https://api.github.com/repos/pandas-dev/pandas/pulls/41452 | 2021-05-13T12:39:19Z | 2021-05-13T13:43:03Z | 2021-05-13T13:43:03Z | 2021-05-24T10:12:29Z |
Parse IntervalArray and IntervalIndex from strings | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 9a1435c3f033d..66b3908732ff0 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -5,6 +5,7 @@
le,
lt,
)
+import re
import textwrap
from typing import (
Sequence,
@@ -574,6 +575,106 @@ def... | Currently, when saving a DataFrame with an IntervalIndex as a CSV, there is no easy way to parse it again. With this PR, class methods are introduced to handle this:
```python
import tempfile
import numpy as np
import pandas as pd
# Create a DataFrame with an IntervalIndex
df = pd.DataFrame(data=[1, 2, 3], ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41451 | 2021-05-13T10:10:01Z | 2022-03-06T01:11:19Z | null | 2022-03-06T01:11:19Z |
Deprecate inplace=True for reset_index | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6ceae4dfd8a91..505eab5c11a55 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -646,6 +646,7 @@ Deprecations
- Deprecated :func:`merge` producing duplicated columns through the ``suffixes`` keyword and... | - [ ] xref #16529
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Per the discussion yesterday, I just wanted to clarify that putting in a deprecation warning... | https://api.github.com/repos/pandas-dev/pandas/pulls/41449 | 2021-05-13T08:11:54Z | 2021-05-15T07:19:20Z | null | 2021-05-15T07:19:20Z |
WEB: Fix maintainers grid not displaying correctly (GH41438) | diff --git a/web/pandas/about/team.md b/web/pandas/about/team.md
index 39f63202e1986..c8318dd8758ed 100644
--- a/web/pandas/about/team.md
+++ b/web/pandas/about/team.md
@@ -8,30 +8,22 @@ If you want to support pandas development, you can find information in the [dona
## Maintainers
-<div class="row maintainers">
-... | - [x] closes #41438
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Screenshot taken on Google Chrome 90.0.4430.93
 for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41446 | 2021-05-12T22:52:11Z | 2021-05-14T16:05:15Z | 2021-05-14T16:05:15Z | 2023-04-27T19:52:24Z |
BUG: resample.apply with non-unique columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 84f9dae8a0850..793818419c910 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -901,6 +901,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.rank` with the GroupBy object's ``axis=0`` and t... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41445 | 2021-05-12T22:44:38Z | 2021-05-13T17:53:29Z | 2021-05-13T17:53:29Z | 2021-05-13T17:59:00Z |
DOC: Improve examples of df.append to better show the ignore_index param | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2941b6ac01904..d90487647d35b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8793,6 +8793,7 @@ def append(
Returns
-------
DataFrame
+ A new DataFrame consisting of the rows of caller and the rows of `o... | Change index to [0, 2] to stress that ignore_index=True resets the index of both dataframes
- [x] closes #41407
- [x] tests passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Te... | https://api.github.com/repos/pandas-dev/pandas/pulls/41444 | 2021-05-12T21:26:53Z | 2021-05-17T13:18:28Z | 2021-05-17T13:18:28Z | 2021-05-17T13:18:33Z |
Revert "Pin fastparquet to leq 0.5.0" | diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml
index edca7b51a3420..8755e1a02c3cf 100644
--- a/ci/deps/actions-37-db.yaml
+++ b/ci/deps/actions-37-db.yaml
@@ -15,7 +15,7 @@ dependencies:
- beautifulsoup4
- botocore>=1.11
- dask
- - fastparquet>=0.4.0, <=0.5.0
+ - fastparquet>=0.4.0
-... | closes #41366
Reverts pandas-dev/pandas#41370
Looks like fastparquet released a new version. | https://api.github.com/repos/pandas-dev/pandas/pulls/41443 | 2021-05-12T20:42:36Z | 2021-05-14T17:13:47Z | 2021-05-14T17:13:47Z | 2021-06-01T14:56:11Z |
DOC: freeze old whatsnew #6856 | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index aa2749c85a232..2f5162dcd4b67 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -45,8 +45,7 @@ want to broadcast, we are phasing out this special case (Zen of Python:
*Special cases aren't special en... | xref #6856
| https://api.github.com/repos/pandas-dev/pandas/pulls/41442 | 2021-05-12T18:53:48Z | 2021-05-14T17:19:59Z | null | 2022-11-18T02:21:38Z |
BUG: Series.str.extract with StringArray returning object dtype | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 84f9dae8a0850..73a6360c361db 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -750,6 +750,7 @@ Strings
- Bug in the conversion from ``pyarrow.ChunkedArray`` to :class:`~arrays.StringArray` when the o... | test changes needed in #41372 revealed an issue with the current implementation. fixing for completeness and to add release note.
the dtype for an empty DataFrame from .str.get_dummies looks iffy so marking this as draft until further investigation. | https://api.github.com/repos/pandas-dev/pandas/pulls/41441 | 2021-05-12T17:47:15Z | 2021-05-14T00:26:37Z | 2021-05-14T00:26:36Z | 2021-05-14T09:14:28Z |
BUG: convert dtypes copies column_index names | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0d39f13afc426..3cc378be55a80 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6179,7 +6179,7 @@ def convert_dtypes(
for col_name, col in self.items()
]
if len(results) > 0:
- ... | - [x] closes #41435
- [x] tests added / passed
tests may be in wrong place.
solution may be the easiest, but it maybe not the best or most robust.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41440 | 2021-05-12T16:07:34Z | 2021-05-13T13:22:03Z | null | 2022-03-06T07:34:27Z |
TST: Added regression test | diff --git a/pandas/tests/indexing/test_datetime.py b/pandas/tests/indexing/test_datetime.py
index e46eed05caa86..2aea2cc9b37cd 100644
--- a/pandas/tests/indexing/test_datetime.py
+++ b/pandas/tests/indexing/test_datetime.py
@@ -10,6 +10,21 @@
class TestDatetimeIndex:
+ def test_datetimeindex_transpose_empty_df... | - [x] closes #41382
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/41436 | 2021-05-12T12:45:38Z | 2021-05-13T18:47:29Z | 2021-05-13T18:47:29Z | 2021-05-19T12:11:26Z |
TYP: define `subset` arg in `Styler` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 8fc2825ffcfc5..a96196a698f43 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -43,6 +43,7 @@
CSSProperties,
CSSStyles,
StylerRenderer,
+ Subset,
Tooltips,
maybe_convert_css_to_tuples,
n... | This works but someone with more knowledge might be able to point out a better definition of the type for `Subset`,
i.e. here `Subset = Union[slice, Sequence, Index]`
It types all the `subset` args in `Styler` | https://api.github.com/repos/pandas-dev/pandas/pulls/41433 | 2021-05-12T09:34:33Z | 2021-05-17T17:15:59Z | 2021-05-17T17:15:59Z | 2021-05-22T15:09:03Z |
TST: Add test for old issues | diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py
index a96e5b07b7f7e..b29855caf6c1d 100644
--- a/pandas/tests/arrays/sparse/test_array.py
+++ b/pandas/tests/arrays/sparse/test_array.py
@@ -1313,6 +1313,14 @@ def test_dropna(fill_value):
tm.assert_equal(df.dropna(), e... | - [x] closes #11747
- [x] closes #11726
- [x] closes #12652
- [x] closes #12859
- [x] closes #13034
- [x] closes #13120
- [x] closes #13217
- [x] closes #13353
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code... | https://api.github.com/repos/pandas-dev/pandas/pulls/41431 | 2021-05-12T04:43:22Z | 2021-05-12T13:27:56Z | 2021-05-12T13:27:55Z | 2021-05-12T16:32:33Z |
CLN: Create tests/window/moments/conftest for specific fixtures | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index b1f1bb7086149..24b28356a3099 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -1,18 +1,11 @@
-from datetime import (
- datetime,
- timedelta,
-)
+from datetime import timedelta
-import numpy... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
These fixtures were only specific to the tests in this directory.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41430 | 2021-05-12T03:17:28Z | 2021-05-12T13:29:36Z | 2021-05-12T13:29:36Z | 2021-05-12T16:32:21Z |
DEPR: setting Categorical._codes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 7ec74b7045437..e5eb8ccf7cf65 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -644,6 +644,7 @@ Deprecations
- Deprecated the ``level`` keyword for :class:`DataFrame` and :class:`Series` aggregations; u... | - [x] closes #40606
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41429 | 2021-05-12T01:49:28Z | 2021-05-12T13:52:59Z | 2021-05-12T13:52:59Z | 2021-05-12T13:58:28Z |
REG: quantile with IntegerArray/FloatingArray | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index efa36a5bd3ae9..32c50ed38eba0 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -37,7 +37,18 @@ def quantile_compat(values: ArrayLike, qs: np.ndarray, interpolation: str) -> Ar
... | - [x] closes #39771
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Not present in any released version, so no release note needed as long as before 1.3 | https://api.github.com/repos/pandas-dev/pandas/pulls/41428 | 2021-05-11T22:46:46Z | 2021-05-31T17:41:02Z | 2021-05-31T17:41:02Z | 2021-05-31T18:57:57Z |
BUG: DataFrameGroupBy.__getitem__ with non-unique columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5adc8540e6864..14f33cc2c8535 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -895,6 +895,8 @@ Groupby/resample/rolling
- Bug in :meth:`SeriesGroupBy.agg` failing to retain ordered :class:`CategoricalD... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41427 | 2021-05-11T20:27:50Z | 2021-05-12T01:10:28Z | 2021-05-12T01:10:28Z | 2021-05-12T01:36:48Z |
REF: remove name arg from Grouping | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 598750475f3e8..4aac2630feb2c 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -446,15 +446,14 @@ def __init__(
index: Index,
grouper=None,
obj: FrameOrSeries | None = None,
- ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41426 | 2021-05-11T20:22:52Z | 2021-05-17T18:05:47Z | 2021-05-17T18:05:47Z | 2021-05-17T18:06:45Z |
BUG: always strip .freq when putting DTI/TDI into Series/DataFrame | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 9968a103a13bf..c2ff7361ff48b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -972,6 +972,7 @@ Other
- Bug in :func:`pandas.util.show_versions` where console JSON output was not proper JSON (:issue:`39... | ATM when we put a DatetimeArray/TimedeltaArray/DatetimeIndex/TimedeltaIndex (from here on, just "DTI") into a Series or DataFrame, we drop its .freq for BlockManager-DataFrame cases, but not the other three cases (BlockManager-Series, ArrayManager-DataFrame, ArrayManager-Series).
The long-term behavior is definitely... | https://api.github.com/repos/pandas-dev/pandas/pulls/41425 | 2021-05-11T20:14:32Z | 2021-05-17T16:31:51Z | 2021-05-17T16:31:51Z | 2021-05-17T16:35:51Z |
CLN: Grouping.__init__ logic belonging in _convert_grouper | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 4650dbea27de1..1b5c11b363457 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -16,12 +16,11 @@
from pandas.errors import InvalidIndexError
from pandas.util._decorators import cache_readonly
+from pa... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41424 | 2021-05-11T19:59:13Z | 2021-05-12T01:08:32Z | 2021-05-12T01:08:32Z | 2021-05-12T01:36:06Z |
[ArrowStringArray] TST: parametrize tests/strings/test_case_justify.py | diff --git a/pandas/tests/strings/test_case_justify.py b/pandas/tests/strings/test_case_justify.py
index b46f50e430b54..d6e2ca7399b4e 100644
--- a/pandas/tests/strings/test_case_justify.py
+++ b/pandas/tests/strings/test_case_justify.py
@@ -1,4 +1,5 @@
from datetime import datetime
+import operator
import numpy as ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41420 | 2021-05-11T15:28:33Z | 2021-05-12T13:30:18Z | 2021-05-12T13:30:18Z | 2021-05-12T13:37:41Z | |
[ArrowStringArray] TST: parametrize str.extractall tests | diff --git a/pandas/tests/strings/test_extract.py b/pandas/tests/strings/test_extract.py
index c1564a5c256a1..83401de0e5443 100644
--- a/pandas/tests/strings/test_extract.py
+++ b/pandas/tests/strings/test_extract.py
@@ -358,8 +358,8 @@ def test_extract_single_group_returns_frame():
tm.assert_frame_equal(r, e)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41419 | 2021-05-11T14:01:24Z | 2021-05-11T21:50:46Z | 2021-05-11T21:50:46Z | 2021-05-12T16:01:17Z | |
[ArrowStringArray] REF: str.extract argument validation | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 55a12a301c6e6..2646ddfa45b58 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -2,17 +2,20 @@
from functools import wraps
import re
from typing import (
+ TYPE_CHECKING,
Dict,
Hashabl... | https://api.github.com/repos/pandas-dev/pandas/pulls/41418 | 2021-05-11T11:48:32Z | 2021-05-12T13:30:56Z | 2021-05-12T13:30:56Z | 2021-05-12T13:34:03Z | |
[ArrowStringArray] REF: extract/extractall column names | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 9f8c9fa2f0515..55a12a301c6e6 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -3,8 +3,10 @@
import re
from typing import (
Dict,
+ Hashable,
List,
Optional,
+ Pattern,
)
imp... | https://api.github.com/repos/pandas-dev/pandas/pulls/41417 | 2021-05-11T10:43:19Z | 2021-05-12T01:07:02Z | 2021-05-12T01:07:02Z | 2021-05-12T08:39:43Z | |
CLN: fix numpy FutureWarning in tests | diff --git a/pandas/tests/arithmetic/test_object.py b/pandas/tests/arithmetic/test_object.py
index c5e086d24ec0c..1961a2d9d89f8 100644
--- a/pandas/tests/arithmetic/test_object.py
+++ b/pandas/tests/arithmetic/test_object.py
@@ -311,7 +311,7 @@ def test_sub_object(self):
index - "foo"
with pytes... | https://api.github.com/repos/pandas-dev/pandas/pulls/41414 | 2021-05-11T02:32:54Z | 2021-05-12T01:06:21Z | 2021-05-12T01:06:21Z | 2022-11-18T02:21:38Z | |
BUG: able to create nonexistent Timestamp | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5adc8540e6864..c0badcb4a22e7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -612,6 +612,7 @@ Other API changes
- Partially initialized :class:`CategoricalDtype` (i.e. those with ``categories=None`` o... | - [X] closes #41072
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41413 | 2021-05-11T01:28:57Z | 2021-08-17T00:52:31Z | null | 2021-08-17T00:52:31Z |
API: allow nan-likes in StringArray constructor | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 32fbf4e6c7de3..3dbc74b1941d2 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -3,10 +3,12 @@
import numpy as np
from pandas import (
+ NA,
Categorical,
DataFrame,
Series,
)
+f... | - [x] closes #40839
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Looking at OP #30980 this was done to ensure that a double pass is not made over data, but... | https://api.github.com/repos/pandas-dev/pandas/pulls/41412 | 2021-05-10T23:21:07Z | 2022-04-24T03:19:17Z | null | 2022-05-12T18:46:06Z |
Bug in read_csv and read_excel not applying dtype to second col with dup cols | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5adc8540e6864..d9f8bee3acdec 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -837,6 +837,7 @@ I/O
- Bug in :func:`read_excel` raising ``AttributeError`` with ``MultiIndex`` header followed by two empt... | - [x] closes #35211
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41411 | 2021-05-10T22:03:52Z | 2021-05-12T13:55:50Z | 2021-05-12T13:55:50Z | 2021-06-15T18:26:58Z |
BUG: fix TypeError when looking up a str subclass on a DataFrame with… | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cf3dd1b0e3226..6b59349ce52b2 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -790,6 +790,7 @@ Indexing
- Bug in :meth:`DataFrame.loc.__setitem__` when setting-with-expansion incorrectly raising when t... | … DatetimeIndex (#37366)
- [X] closes #xxxx
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41406 | 2021-05-10T04:52:06Z | 2021-05-10T14:29:06Z | 2021-05-10T14:29:06Z | 2021-05-10T14:29:11Z |
BUG: Rolling.__iter__ includes on index columns in the result | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 3a67e848024ac..2a0e9f44740bb 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -994,6 +994,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.__getitem__` with non-unique columns incorrectly... | - [x] closes #40373
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41405 | 2021-05-10T03:49:50Z | 2021-05-26T03:27:26Z | 2021-05-26T03:27:26Z | 2021-05-26T03:27:29Z |
REF: set _selection only in __init__ | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index aae6314968695..1ab2b90d6564a 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -139,6 +139,8 @@ def __init__(
groupby: TimeGrouper,
axis: int = 0,
kind=None,
+ *,
+ selection=None,
... | Trying to make these less stateful. | https://api.github.com/repos/pandas-dev/pandas/pulls/41403 | 2021-05-09T19:56:50Z | 2021-05-17T18:03:56Z | 2021-05-17T18:03:56Z | 2021-05-17T18:06:09Z |
DOC: Adding Cylon under ecosystem/out of core | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index d53d0556dca04..bc2325f15852c 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -405,6 +405,35 @@ Blaze provides a standard API for doing computations with various
in-memory and on-disk backends: NumPy, pandas, SQLAlchemy, Mong... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
This PR adds a link and a description about Cylon to the ecosystem page.
Github: [https://github.com/cylondata/cylon](https://github.com/cylondata/cylon)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41402 | 2021-05-09T16:57:45Z | 2021-05-12T14:07:30Z | 2021-05-12T14:07:30Z | 2021-05-12T14:07:35Z |
REF: groupby remove _selection_name | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9d3437fe08b24..d0c6a1a841edb 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -322,6 +322,7 @@ def agg_list_like(self) -> FrameOrSeriesUnion:
# i.e. obj is Series or DataFrame
selected_obj = obj
elif obj._se... | We use self._selected_obj and self._obj_with_exclusions in different places with no clear distinction as to when to use which. I _think_ in pretty much all cases we really want obj_with_exclusions, am moving towards pinning that down.
The only non-trivial thing here is getting rid of pinning _selection in [here](ht... | https://api.github.com/repos/pandas-dev/pandas/pulls/41401 | 2021-05-09T16:33:47Z | 2021-05-12T01:11:45Z | 2021-05-12T01:11:45Z | 2021-05-12T01:37:26Z |
DOC: Remove multiple blank lines in ipython directives | diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst
index 8d38c12252df4..70cfa3500f6b4 100644
--- a/doc/source/user_guide/basics.rst
+++ b/doc/source/user_guide/basics.rst
@@ -1184,11 +1184,9 @@ a single value and returning a single value. For example:
df4
-
def f(x):
re... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Related to #26788
This PR gets rid of all warnings of the form "UserWarning: Code input with no code at..." when building the docs. When there are multiple bl... | https://api.github.com/repos/pandas-dev/pandas/pulls/41400 | 2021-05-09T16:20:45Z | 2021-05-10T14:37:40Z | 2021-05-10T14:37:40Z | 2021-05-10T20:05:35Z |
WIP: groupby skipna | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 3fa92ce2229c3..2f2715d4b0e5d 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -482,7 +482,8 @@ def group_add(complexfloating_t[:, ::1] out,
int64_t[::1] counts,
ndarray[complexfloating_t, ndim=2] ... | - [ ] closes #15675
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
New duplicate of #15772 since I had lost the previous branch. Work in progress.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41399 | 2021-05-09T15:28:41Z | 2021-08-17T00:50:36Z | null | 2021-09-14T20:13:12Z |
DOC: Remove deprecated usage of Index.__xor__ | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 84f1245299d53..cc044e52d0be1 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3239,11 +3239,6 @@ def symmetric_difference(self, other, result_name=None, sort=None):
>>> idx2 = pd.Index([2, 3, 4, 5])
... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
ref #37374 cc @jbrockmendel
| https://api.github.com/repos/pandas-dev/pandas/pulls/41398 | 2021-05-09T15:14:39Z | 2021-05-10T23:19:58Z | 2021-05-10T23:19:58Z | 2021-05-10T23:54:04Z |
DOC: specify regex=True in str.replace | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index f8df05a7022d1..9f8c9fa2f0515 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1231,7 +1231,7 @@ def replace(self, pat, repl, n=-1, case=None, flags=0, regex=None):
Regex module flags, ... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
ref #36695
When passing a callable repl, str.replace will raise if regex is False. So it seems to me that in the future, when the default is changed, we shoul... | https://api.github.com/repos/pandas-dev/pandas/pulls/41397 | 2021-05-09T15:00:55Z | 2021-05-10T21:57:20Z | 2021-05-10T21:57:20Z | 2021-05-10T22:12:56Z |
[ArrowStringArray] TST: parametrize str.partition tests | diff --git a/pandas/tests/strings/test_split_partition.py b/pandas/tests/strings/test_split_partition.py
index 6df8fa805955d..f8804d6dd6266 100644
--- a/pandas/tests/strings/test_split_partition.py
+++ b/pandas/tests/strings/test_split_partition.py
@@ -335,90 +335,90 @@ def test_split_with_name():
tm.assert_index_... | https://api.github.com/repos/pandas-dev/pandas/pulls/41396 | 2021-05-09T14:48:14Z | 2021-05-10T09:42:16Z | 2021-05-10T09:42:16Z | 2021-05-10T11:09:57Z | |
DOC: Remove deprecated use of level for agg functions | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9a57d86d62fdc..368d39ceac78b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9605,15 +9605,6 @@ def count(
3 3
4 3
dtype: int64
-
- Counts for one level of a `MultiIndex`:
-
- >>> df.set_index(... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
ref #40869, cc @phofl | https://api.github.com/repos/pandas-dev/pandas/pulls/41394 | 2021-05-09T14:13:46Z | 2021-05-10T23:21:43Z | 2021-05-10T23:21:42Z | 2021-05-11T02:00:34Z |
[ArrowStringArray] TST: parametrize str.extract tests | diff --git a/pandas/tests/strings/test_extract.py b/pandas/tests/strings/test_extract.py
index c1564a5c256a1..09a40728500e9 100644
--- a/pandas/tests/strings/test_extract.py
+++ b/pandas/tests/strings/test_extract.py
@@ -13,30 +13,31 @@
)
-def test_extract_expand_None():
- values = Series(["fooBAD__barBAD", np.... | https://api.github.com/repos/pandas-dev/pandas/pulls/41393 | 2021-05-09T13:54:19Z | 2021-05-12T01:12:50Z | 2021-05-12T01:12:50Z | 2021-05-12T08:03:31Z | |
[ArrowStringArray] TST: parametrize str.split tests | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 45a9053954569..79ea2a4fba284 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -230,16 +230,21 @@ def time_contains(self, dtype, regex):
class Split:
- params = [True, False]
- param_names... | the test (and benchmark) changes broken off from #41085 as a precursor to #41085 and #41372 (which currently makes changes to the str.split path, although I may break that PR up also) | https://api.github.com/repos/pandas-dev/pandas/pulls/41392 | 2021-05-09T10:13:04Z | 2021-05-10T11:58:53Z | 2021-05-10T11:58:53Z | 2021-05-10T12:14:31Z |
REF: add internal mechanics to separate index/columns sparsification in Styler | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index bd768f4f0a1d4..6917daaede2c6 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -132,11 +132,33 @@ def _compute(self):
r = func(self)(*args, **kwargs)
return r
- def... | This is not a user facing change.
It adds only the necessary code to permit separate control of index/column MultIndex sparsification. Essentially it removes the `get_option("display.multi_sparse")` from a low level method to a higher level method where it can be overwritten by user-args later.
partly addresses #... | https://api.github.com/repos/pandas-dev/pandas/pulls/41391 | 2021-05-09T07:51:33Z | 2021-05-12T15:03:20Z | 2021-05-12T15:03:20Z | 2021-05-12T16:09:17Z |
REF: re-use machinery for DataFrameGroupBy.nunique | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 9287163053cac..76c53f2888a8f 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -22,7 +22,6 @@
Mapping,
TypeVar,
Union,
- cast,
)
import warnings
@@ -1576,6 +1575,10 @@ def _wrap_agg... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41390 | 2021-05-09T03:28:14Z | 2021-05-10T23:26:13Z | 2021-05-10T23:26:13Z | 2021-05-11T00:12:57Z |
TST: Add regression tests for old issues | diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py
index 9e1d13eac5039..9ca7d0b465250 100644
--- a/pandas/tests/arithmetic/test_numeric.py
+++ b/pandas/tests/arithmetic/test_numeric.py
@@ -1407,3 +1407,18 @@ def test_integer_array_add_list_like(
assert_function(left, e... | - [x] closes #7893
- [x] closes #8856
- [x] closes #9188
- [x] closes #9406
- [x] closes #9952
- [x] closes #10336
- [x] closes #10710
- [x] closes #11479
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-stan... | https://api.github.com/repos/pandas-dev/pandas/pulls/41389 | 2021-05-09T00:57:27Z | 2021-05-10T21:45:33Z | 2021-05-10T21:45:30Z | 2021-05-11T00:03:19Z |
TST: fix groupby xfails | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index f716a3a44cd54..39121e92dcd83 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1738,6 +1738,7 @@ def test_pivot_table_values_key_error():
)
def test_empty_groupby(columns, keys... | https://api.github.com/repos/pandas-dev/pandas/pulls/41387 | 2021-05-08T22:35:25Z | 2021-05-10T20:11:14Z | 2021-05-10T20:11:14Z | 2021-05-10T21:23:00Z | |
ENH: IO support for R data files with C extension | diff --git a/LICENSES/LIBRDATA_LICENSE b/LICENSES/LIBRDATA_LICENSE
new file mode 100644
index 0000000000000..4f24e6b9127ff
--- /dev/null
+++ b/LICENSES/LIBRDATA_LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013-2020 Evan Miller (except where otherwise noted)
+
+Permission is hereby granted, free of charge, to any person obt... | - [X] follows up on #40884
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [X] whatsnew entry
- [X] user_guide/io entry
### Proposed RData I/O module interfaces to the C ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41386 | 2021-05-08T18:46:09Z | 2021-08-18T00:23:37Z | null | 2021-08-18T00:23:57Z |
TYP: SelectionMixin | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 1e1fffdd60676..7763b0ceb610a 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -56,6 +56,7 @@
from pandas.core.generic import NDFrame
from pandas.core.groupby.generic import (
DataFrameGroupBy,
+ GroupBy,
SeriesGroupBy,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
@simonjayhawkins thoughts on the FrameOrSeries vs FrameOrSeriesUnion that ive ignored here? | https://api.github.com/repos/pandas-dev/pandas/pulls/41384 | 2021-05-08T18:37:08Z | 2021-05-10T23:28:48Z | 2021-05-10T23:28:48Z | 2021-05-11T00:13:48Z |
DOC: Remove deprecated example for astype | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index d225ac6e6881b..c61fe49663920 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5686,6 +5686,14 @@ def astype(
to_numeric : Convert argument to a numeric type.
numpy.ndarray.astype : Cast a numpy array to a specified ... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Followup to #39258 | https://api.github.com/repos/pandas-dev/pandas/pulls/41381 | 2021-05-08T15:23:40Z | 2021-05-10T23:29:35Z | 2021-05-10T23:29:35Z | 2021-05-11T02:00:13Z |
TST/CLN: use dtype fixture in numeric tests | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 857b136b67a0c..1cef932f7bf0a 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -39,7 +39,7 @@ class Base:
_index_cls: Type[Index]
@pytest.fixture
- def simple_index(self) -> Index:
+ de... | small cleanup to make tests amenable to tests againt several dtypes. | https://api.github.com/repos/pandas-dev/pandas/pulls/41380 | 2021-05-08T08:46:25Z | 2021-05-10T23:30:42Z | 2021-05-10T23:30:42Z | 2021-05-10T23:42:46Z |
CLN: groupby assorted | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 9287163053cac..df0a413b7a76a 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -90,7 +90,6 @@
MultiIndex,
all_indexes_same,
)
-import pandas.core.indexes.base as ibase
from pandas.core.series... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41379 | 2021-05-08T05:39:35Z | 2021-05-10T23:31:58Z | 2021-05-10T23:31:58Z | 2021-05-10T23:59:05Z |
DEPR: kind kwarg in _maybe_cast_slice_bound | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index 7f2419bc7f19d..71aef4fdd75f6 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -345,6 +345,7 @@ we need to supply the divisions manually.
Now we can do things like fast random access with ``.loc``.
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
When I tried just removing it that broke some dask tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/41378 | 2021-05-08T04:29:48Z | 2021-05-10T23:33:09Z | 2021-05-10T23:33:09Z | 2021-07-22T21:59:56Z |
REF: document casting behavior in groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 7796df98395a7..123b9e3350fda 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -539,9 +539,6 @@ def _transform_general(self, func: Callable, *args, **kwargs) -> Series:
object.__setattr__(gr... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41376 | 2021-05-08T01:02:29Z | 2021-05-17T19:18:11Z | 2021-05-17T19:18:11Z | 2021-05-17T19:25:12Z |
REF: do less in Grouping.__init__ | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index cb5b54ca0c598..d4d20809ada85 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -777,11 +777,7 @@ def apply_series_value_counts():
# multi-index components
codes = self.grouper.reconstru... | making it incrementally easier to reason about what `self.grouper` is | https://api.github.com/repos/pandas-dev/pandas/pulls/41375 | 2021-05-07T21:53:45Z | 2021-05-17T14:25:50Z | 2021-05-17T14:25:50Z | 2021-05-17T14:41:07Z |
BUG: loc casting to float for scalar with MultiIndex df | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 258e391b9220c..9b96c6b95301d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -872,6 +872,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` and :meth:`DataFrame.iloc.__setitem__` raising ``ValueErro... | - [x] closes #41369
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
In theory this would solve the issue, but I am not sure if this is desirable. We cast the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41374 | 2021-05-07T21:53:12Z | 2021-05-25T12:28:55Z | 2021-05-25T12:28:54Z | 2021-06-03T22:08:41Z |
ENH: retain masked EA dtypes in groupby with as_index=False | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 08f30f467dfa7..c0f05108ff464 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -29,6 +29,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
+- :class:`DataFrameGroupBy` operations with ``as_inde... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41373 | 2021-05-07T20:27:00Z | 2021-07-25T14:23:16Z | 2021-07-25T14:23:16Z | 2021-07-25T14:42:04Z |
[ArrowStringArray] REF: str.extract dispatch to array | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index 9dbc47f1d40f7..902d1b7245b46 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -196,6 +196,7 @@ def map_infer_mask(
convert: bool = ...,
na_value: Any = ...,
dtype: np.dtype = ...,
+ out: np.ndarray = ...,
) -> np.ndarray: .... | ```
before after ratio
[170b4391] [62cc9c38]
<master> <_str_extract>
- 138±0.4ms 117±2ms 0.85 strings.Methods.time_extract('string')
- 14.4±0.6ms 11.9±0.06ms 0.82 strings.Methods.time_isdigit('str')
- 109±0.4ms 81.1±0.... | https://api.github.com/repos/pandas-dev/pandas/pulls/41372 | 2021-05-07T16:35:31Z | 2021-05-24T19:38:28Z | null | 2021-05-24T19:38:29Z |
CLN: Remove raise if missing only controlling the error message | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a1b46c42f6d68..9a57d86d62fdc 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3412,7 +3412,7 @@ def __getitem__(self, key):
else:
if is_iterator(key):
key = list(key)
- indexer = self.loc._ge... | - [x] xref #41170
The removed tests don't make sense anymore, since all is printed now but without a fixed order | https://api.github.com/repos/pandas-dev/pandas/pulls/41371 | 2021-05-07T16:32:36Z | 2021-05-07T22:07:35Z | 2021-05-07T22:07:35Z | 2021-05-12T01:57:02Z |
Pin fastparquet to leq 0.5.0 | diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml
index 8755e1a02c3cf..edca7b51a3420 100644
--- a/ci/deps/actions-37-db.yaml
+++ b/ci/deps/actions-37-db.yaml
@@ -15,7 +15,7 @@ dependencies:
- beautifulsoup4
- botocore>=1.11
- dask
- - fastparquet>=0.4.0
+ - fastparquet>=0.4.0, <=0.5.0
-... | - [x] xref #41366
Pinning for now to get ci passing
Labeled the issue with 1.3 for now so that we don't forget it | https://api.github.com/repos/pandas-dev/pandas/pulls/41370 | 2021-05-07T14:59:58Z | 2021-05-07T16:41:07Z | 2021-05-07T16:41:07Z | 2021-06-01T14:58:14Z |
r | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 85d9acff353be..4ef8fe116596f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -695,7 +695,7 @@ Conversion
- Bug in :class:`Index` construction silently ignoring a passed ``dtype`` when the data cannot ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41365 | 2021-05-07T08:20:43Z | 2021-05-07T08:21:47Z | null | 2021-05-07T13:04:00Z |
To csv sparse | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 92f9d803d1ebe..9b7d455d14c34 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2037,6 +2037,7 @@ def to_native_types(
mask = isna(values)
new_values = np.asarray(values.astype(ob... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41364 | 2021-05-07T04:40:48Z | 2021-05-07T04:41:13Z | null | 2021-05-07T04:41:13Z |
CLN: groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 55e8578b2cef4..9287163053cac 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -688,9 +688,9 @@ def describe(self, **kwargs):
def value_counts(
self,
- normalize=False,
- so... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41363 | 2021-05-07T04:18:19Z | 2021-05-07T19:34:32Z | 2021-05-07T19:34:32Z | 2021-05-07T19:38:41Z |
CLN: trim unreachable groupby paths | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 18506b871bda6..b2041a3e1380a 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -266,7 +266,11 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs)
func = maybe... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41361 | 2021-05-06T23:10:06Z | 2021-05-07T15:53:05Z | 2021-05-07T15:53:05Z | 2023-02-09T04:18:20Z |
REF: test_invalid_dtype in numeric index tests | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 45e1b615b1ade..857b136b67a0c 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -831,3 +831,10 @@ def test_arithmetic_explicit_conversions(self):
a = np.zeros(5, dtype="float64")
result ... | The invalid dtype tests for all the numeric index types are currently done in `tests.numeric.test_numeric.py::TestFloat64Index::test_invalid_dtype`. This PR moves them to the appropriate test class (`TestInt64Index` etc.). | https://api.github.com/repos/pandas-dev/pandas/pulls/41359 | 2021-05-06T20:55:17Z | 2021-05-07T12:43:27Z | 2021-05-07T12:43:27Z | 2021-05-07T13:09:43Z |
Bug in loc not raising KeyError with MultiIndex containing no longer used levels | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cf3dd1b0e3226..495ed86f2cc4e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -787,6 +787,7 @@ Indexing
- Bug in setting ``numpy.timedelta64`` values into an object-dtype :class:`Series` using a boolea... | - [x] closes #41170
- [x] closes #40235
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
stumbled across a bug in MultiIndex.reindex, which caused the ValueEr... | https://api.github.com/repos/pandas-dev/pandas/pulls/41358 | 2021-05-06T20:44:43Z | 2021-05-12T01:20:35Z | 2021-05-12T01:20:34Z | 2021-05-12T09:19:14Z |
ENH: Implemented optional initializer for pd.concat (#40820) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cf3dd1b0e3226..640940b67e6b9 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -226,7 +226,7 @@ Other enhancements
- :meth:`.GroupBy.any` and :meth:`.GroupBy.all` return a ``BooleanDtype`` for columns w... | - [x] closes #40820
- [x] tests added / passed (passed on azure checks)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
A proposed solution for issue #40820, to accept an optional argu... | https://api.github.com/repos/pandas-dev/pandas/pulls/41355 | 2021-05-06T18:31:29Z | 2021-05-07T17:16:53Z | null | 2021-05-07T17:16:54Z |
REF: preserve Index dtype in BlockManager._combine | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index 71e6d14e6a716..dd02771f735a6 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -274,9 +274,6 @@ def apply(
else:
new_axes = self._axes
- if ... | needed for fixing the DataFrameGroupBy part of #41291 | https://api.github.com/repos/pandas-dev/pandas/pulls/41354 | 2021-05-06T17:48:46Z | 2021-05-06T23:09:39Z | 2021-05-06T23:09:39Z | 2021-05-06T23:19:47Z |
whatsnew about new engine param for to_sql (follow up to #40556) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a81dda4e7dfdd..2b560f7f2499f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -608,7 +608,7 @@ Other API changes
^^^^^^^^^^^^^^^^^
- Partially initialized :class:`CategoricalDtype` (i.e. those with ``... | - [ ] xref #36893
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Follow up to #40556, per this comment https://github.com/pandas-dev/pandas/pull/40556#issuec... | https://api.github.com/repos/pandas-dev/pandas/pulls/41353 | 2021-05-06T15:41:02Z | 2021-05-06T23:20:15Z | 2021-05-06T23:20:15Z | 2021-05-06T23:38:44Z |
TST/REF: split out replace regex into class | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index e6ed60dc2bb08..d2974a5d08a60 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -57,217 +57,6 @@ def test_replace_inplace(self, datetime_frame, float_string... | Can move a bunch more, but the diff gets really garbled when moving more, so easier to do in chunks | https://api.github.com/repos/pandas-dev/pandas/pulls/41352 | 2021-05-06T15:02:42Z | 2021-05-12T01:22:16Z | 2021-05-12T01:22:16Z | 2021-05-12T01:52:52Z |
BUG : Min/max markers on box plot are not visible with 'dark_background' (#40769) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a81dda4e7dfdd..84144f234d7a9 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -849,6 +849,7 @@ Plotting
- Prevent warnings when matplotlib's ``constrained_layout`` is enabled (:issue:`25261`)
- Bug in... | - [x] closes #40769
- [x] tests added / passed
- [x] Ensure all linting tests pass, see here for how to run them
Color in boxplot.py should be a hex value. Letter based color will be at matplotlib level. Using same color as that of boxes for the caps as well. The color will be fetched based on the selected theme. ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41349 | 2021-05-06T09:55:00Z | 2021-05-10T09:34:29Z | 2021-05-10T09:34:28Z | 2021-05-10T09:34:38Z |
REF: Share Block/ArrayManager set_axis | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 18506b871bda6..dcb962d737903 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1625,14 +1625,14 @@ def _wrap_transformed_output(
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame:
... | Fix the need for verify_integrity=False | https://api.github.com/repos/pandas-dev/pandas/pulls/41348 | 2021-05-06T04:07:04Z | 2021-05-06T23:21:27Z | 2021-05-06T23:21:27Z | 2021-05-06T23:23:13Z |
REF: move masked dispatch inside _ea_wrap_cython_operation | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index d1a46c1c36439..26b71b396f4b5 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -327,6 +327,14 @@ def _ea_wrap_cython_operation(
re-wrap if appropriate.
"""
# TODO: general case implementation ... | After the groupby cleanups, masked dispatch can be moved inside `_ea_wrap_cython_operation` without adding args. Seemed like the preferred place for it in the original pr. | https://api.github.com/repos/pandas-dev/pandas/pulls/41347 | 2021-05-06T03:47:47Z | 2021-05-06T13:19:40Z | 2021-05-06T13:19:40Z | 2021-05-06T15:07:01Z |
TST: catch/suppress test warnings | diff --git a/pandas/tests/generic/test_finalize.py b/pandas/tests/generic/test_finalize.py
index dbe2df5238c7e..50ecb74924e2a 100644
--- a/pandas/tests/generic/test_finalize.py
+++ b/pandas/tests/generic/test_finalize.py
@@ -226,7 +226,10 @@
),
pytest.param(
(pd.DataFrame, frame_mi_data, operator.met... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41346 | 2021-05-06T03:13:11Z | 2021-05-06T13:19:05Z | 2021-05-06T13:19:05Z | 2021-05-06T15:13:02Z |
TST/CLN: remove frame replace class | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index e6ed60dc2bb08..a1f2665774c35 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -33,1659 +33,1704 @@ def mix_abc() -> Dict[str, List[Union[float, str]]]:
... | Class doesn't seem to have any purpose here
| https://api.github.com/repos/pandas-dev/pandas/pulls/41345 | 2021-05-06T02:59:37Z | 2021-05-06T04:06:14Z | null | 2021-05-06T19:09:26Z |
REF: _cython_transform operate blockwise | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 8637d50745195..7a286188c4e74 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1136,19 +1136,24 @@ def group_rank(float64_t[:, ::1] out,
This method modifies the `out` parameter rather than returning an object
"""
... | In the process of doing this found that group_rank is silently assuming it is single-column. | https://api.github.com/repos/pandas-dev/pandas/pulls/41344 | 2021-05-06T02:51:33Z | 2021-05-10T14:34:45Z | 2021-05-10T14:34:44Z | 2021-05-10T14:39:19Z |
BUG: replace with regex raising for StringDType | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5adc8540e6864..7ec74b7045437 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -748,7 +748,7 @@ Strings
^^^^^^^
- Bug in the conversion from ``pyarrow.ChunkedArray`` to :class:`~arrays.StringArray` w... | - [x] closes #35977, closes #41333
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
2 separate issues at play here - regex was ignored in #41333 (specific to t... | https://api.github.com/repos/pandas-dev/pandas/pulls/41343 | 2021-05-06T02:46:02Z | 2021-05-11T20:23:12Z | 2021-05-11T20:23:12Z | 2021-05-11T20:27:16Z |
BUG/API: SeriesGroupBy reduction with numeric_only=True | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d654cf5715bdf..a72cfce6e7477 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1037,6 +1037,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.__getitem__` with non-unique columns incorrect... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This addresses the SeriesGroupBy (easier) half of #41291:
1) When we have numeric_only=T... | https://api.github.com/repos/pandas-dev/pandas/pulls/41342 | 2021-05-05T22:18:43Z | 2021-05-26T10:16:16Z | 2021-05-26T10:16:16Z | 2021-05-26T17:15:55Z |
TST: xfail incorrect test_empty_groupby | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index abfa2a23a4402..f716a3a44cd54 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -1724,27 +1724,82 @@ def test_pivot_table_values_key_error():
[0],
[0.0],
... | In addressing #41291 i found that this test isn't constructing the DataFrame (i think) it intends to. When the construction is fixed, a bunch of the tests fail. This fixes the construction and xfails those tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/41341 | 2021-05-05T21:40:16Z | 2021-05-06T13:50:05Z | 2021-05-06T13:50:05Z | 2021-05-06T15:08:04Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.