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 |
|---|---|---|---|---|---|---|---|
[ArrowStringArray] PERF: small perf gain for object fallback | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index a1278a129c40f..1e699e3a769b2 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -792,7 +792,8 @@ def _str_map(self, f, na_value=None, dtype: Dtype | None = None):
result = lib... | ```
before after ratio
[a43c42c3] [a5dd50ea]
<master> <small-perf>
- 26.8±0.05ms 26.1±0.1ms 0.97 strings.Methods.time_get('arrow_string')
- 21.2±0.1ms 20.3±0.1ms 0.96 strings.Methods.time_replace('arrow_string')
- 18.1±0.1ms ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41338 | 2021-05-05T17:56:45Z | 2021-05-06T01:50:39Z | 2021-05-06T01:50:39Z | 2021-05-06T08:16:28Z |
DEP: bump pyarrow to 1.0.0 | diff --git a/ci/deps/actions-37-db-min.yaml b/ci/deps/actions-37-db-min.yaml
index 1d3794576220a..d103ca00a5503 100644
--- a/ci/deps/actions-37-db-min.yaml
+++ b/ci/deps/actions-37-db-min.yaml
@@ -31,7 +31,7 @@ dependencies:
- openpyxl
- pandas-gbq
- google-cloud-bigquery>=1.27.2 # GH 36436
- - pyarrow=0.17 #... | - [x] closes #41329
- [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/41337 | 2021-05-05T17:51:20Z | 2021-05-07T19:05:51Z | null | 2021-05-12T12:05:07Z |
CI: Upgrade "actions/(checkout|cache)" to version 2 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ca0c75f9de94f..a5a802c678e20 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,7 +22,9 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v1
+ uses: actions/checkout@v2
+ with:
+ fet... | According to the change log of both "checkout" and "cache" this should increase performance.
---
Fell free to close this PR if this was already discussed, I haven't saw any discussion about this topic. | https://api.github.com/repos/pandas-dev/pandas/pulls/41336 | 2021-05-05T17:21:32Z | 2021-05-24T06:02:23Z | 2021-05-24T06:02:23Z | 2021-08-26T13:52:29Z |
ENH: Add dropna argument to DataFrame.value_counts() | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 320912ec38890..cddaaa295af01 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -224,6 +224,7 @@ Other enhancements
- :meth:`.GroupBy.any` and :meth:`.GroupBy.all` return a ``BooleanDtype`` for columns w... | - [x] closes #41325
- [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/41334 | 2021-05-05T16:18:56Z | 2021-05-10T14:39:30Z | 2021-05-10T14:39:30Z | 2022-09-08T08:15:31Z |
[ArrowStringArray] PERF: use pa.compute.match_substring_regex for str.fullmatch if available | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 0f68d1043b49d..2560d6726249e 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -83,6 +83,9 @@ def time_find(self, dtype):
def time_rfind(self, dtype):
self.s.str.rfind("[A-Z]+")
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41332 | 2021-05-05T15:43:30Z | 2021-05-17T20:52:07Z | 2021-05-17T20:52:07Z | 2021-05-18T08:41:20Z | |
REF: dont special-case ngroups==0 | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 6b5cedf8a5243..c28db9b669a4b 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -105,10 +105,11 @@ cdef class SeriesBinGrouper(_BaseGrouper):
Py_ssize_t nresults, ngroups
cdef public:
+ ndarray bin... | - [ ] 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/41331 | 2021-05-05T15:42:27Z | 2021-05-06T23:22:16Z | 2021-05-06T23:22:16Z | 2021-05-06T23:23:31Z |
CLN: remove unnecessary return from agg_series | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index b7254ffecb2bc..c5ef18c51a533 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1269,7 +1269,7 @@ def _python_agg_general(self, func, *args, **kwargs):
try:
# if this func... | - [ ] 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/41330 | 2021-05-05T15:36:40Z | 2021-05-06T01:40:08Z | 2021-05-06T01:40:08Z | 2021-05-06T02:01:42Z |
Revert "CI: pin py310-dev version to alpha 7" | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 221501ae028f3..2643dc5ec656e 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -22,7 +22,7 @@ jobs:
- name: Set up Python Dev Version
uses: actions/setup-python@v2
with:
- ... | Reverts pandas-dev/pandas#41315, closes #41313 | https://api.github.com/repos/pandas-dev/pandas/pulls/41328 | 2021-05-05T12:01:54Z | 2021-05-05T12:58:42Z | 2021-05-05T12:58:42Z | 2021-05-05T12:58:45Z |
[ArrowStringArray] CLN: remove hasattr checks | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index af2dfe796f82d..8d64bf8852946 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -20,6 +20,12 @@
np_version_under1p19,
np_version_under1p20,
)
+from pandas.compat.pyarrow import (
+ pa_version_under1p0,
+ pa_... | xref https://github.com/pandas-dev/pandas/pull/41281#discussion_r625926407 | https://api.github.com/repos/pandas-dev/pandas/pulls/41327 | 2021-05-05T11:51:06Z | 2021-05-05T15:23:44Z | 2021-05-05T15:23:44Z | 2021-05-05T15:24:04Z |
[ArrowStringArray] PERF: use pa.compute.match_substring_regex for str.match if available | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 44298401d02cb..e48de531db86c 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -19,6 +19,7 @@
Dtype,
NpDtype,
PositionalIndexer,
+ Scalar,
type_t,
)
from pandas.u... |
```
[ 50.00%] ··· strings.Methods.time_match ok
[ 50.00%] ··· ============== ==========
dtype
-------------- ----------
str 28... | https://api.github.com/repos/pandas-dev/pandas/pulls/41326 | 2021-05-05T10:43:24Z | 2021-05-05T12:31:31Z | 2021-05-05T12:31:31Z | 2021-05-05T12:45:09Z |
BUG: groupby(axis=0).rank(axis=1) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 320912ec38890..7520b14127c28 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -885,6 +885,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.rolling` returning sum not zero for all ``NaN`` window ... | - [x] closes #41320
- [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/41324 | 2021-05-05T03:46:20Z | 2021-05-05T14:52:58Z | 2021-05-05T14:52:58Z | 2021-05-05T15:01:02Z |
DOC: GH41180 Updated DataFrame.nunique doc string for clarity | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 50837e1b3ed50..32fefb8f9a95f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9834,10 +9834,10 @@ def nunique(self, axis: Axis = 0, dropna: bool = True) -> Series:
Examples
--------
- >>> df = pd.DataFrame({'A': [1... | - closes #41180
| https://api.github.com/repos/pandas-dev/pandas/pulls/41322 | 2021-05-05T01:02:08Z | 2021-05-05T12:32:19Z | null | 2021-05-05T12:32:20Z |
ENH: loosen XLS signature | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 84f9dae8a0850..196a5b5cd136e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -197,7 +197,7 @@ Other enhancements
- Improved integer type mapping from pandas to SQLAlchemy when using :meth:`DataFrame.t... | - [x] closes #41225
- [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
Added ability to check for multiple XLS signatures according to testing files available at... | https://api.github.com/repos/pandas-dev/pandas/pulls/41321 | 2021-05-04T21:04:13Z | 2021-05-21T01:44:13Z | 2021-05-21T01:44:13Z | 2021-05-21T01:47:17Z |
REF: remove no-op casting | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index f2041951b9e49..a2556ad54af02 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -59,9 +59,7 @@ class providing the base-class of operations.
doc,
)
-from pandas.core.dtypes.cast import maybe_downc... | In _python_agg_general:
```
if self.grouper._filter_empty_groups:
mask = counts.ravel() > 0
```
It isn't entirely trivial, but we can show that we will always have `mask.all()`, as a result of which the remainder of this code chunk of code is a no-op. This PR removes it.
As a co... | https://api.github.com/repos/pandas-dev/pandas/pulls/41317 | 2021-05-04T19:10:25Z | 2021-05-05T12:44:33Z | 2021-05-05T12:44:33Z | 2021-05-05T14:50:22Z |
CI: pin py310-dev version to alpha 7 | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 2643dc5ec656e..221501ae028f3 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -22,7 +22,7 @@ jobs:
- name: Set up Python Dev Version
uses: actions/setup-python@v2
with:
- ... | xref #41313
Not sure if the syntax is correct. Let's see. | https://api.github.com/repos/pandas-dev/pandas/pulls/41315 | 2021-05-04T17:10:11Z | 2021-05-04T19:27:24Z | 2021-05-04T19:27:24Z | 2022-11-18T02:21:51Z |
[ArrowStringDtype] Make it already a StringDtype subclass | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index bd01191719143..2cb30c53b6832 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -530,7 +530,6 @@ def astype(self, dtype, copy=True):
NumPy ndarray with 'dtype' for its dtype.
"""
from panda... | @simonjayhawkins this will be redundant after https://github.com/pandas-dev/pandas/pull/39908, but in the meantime, ArrowStringDtype being a subclass would help for writing robust code related to `StringDtype` in downstream packages (for those testing against pandas master) | https://api.github.com/repos/pandas-dev/pandas/pulls/41312 | 2021-05-04T16:36:23Z | 2021-05-05T06:55:49Z | 2021-05-05T06:55:49Z | 2021-05-05T06:55:53Z |
CI: skip tests when only files in doc/web changes (github actions) | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index b15889351386a..292598dfcab73 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -7,6 +7,8 @@ on:
branches:
- master
- 1.2.x
+ paths-ignore:
+ - "doc/**"
env:
PYTEST_WORKER... | - [x] closes #41101
- [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/41310 | 2021-05-04T16:04:48Z | 2021-06-12T09:43:18Z | 2021-06-12T09:43:18Z | 2021-08-26T13:44:50Z |
REF: share GroupBy.transform | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 89623d260af71..f5274f0998e7c 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -526,35 +526,9 @@ def _aggregate_named(self, func, *args, **kwargs):
@Substitution(klass="Series")
@Appender(_tran... | - [ ] 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/41308 | 2021-05-04T14:55:12Z | 2021-05-04T21:36:53Z | 2021-05-04T21:36:53Z | 2021-05-04T21:55:23Z |
Deprecate inplace in Categorical.set_categories. | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index fba41f73ba819..f65638cd78a2b 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -954,6 +954,7 @@ categorical (categories and ordering). So if you read back the CSV file you hav... | - [x] xref #37643
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41307 | 2021-05-04T14:33:56Z | 2021-05-04T19:40:36Z | 2021-05-04T19:40:36Z | 2021-05-04T19:40:41Z |
[ArrowStringArray] CLN: assorted cleanup | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 72a2ab8a1b80a..501484a98ded3 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -8,7 +8,6 @@
Sequence,
cast,
)
-import warnings
import numpy as np
@@ -766,20 +765,13 @@ def... | seperate commits for cleanups
remove hasattr for str methods available in pyarrow 1.0.0
add comments to indicate pyarrow version a method is addded.
de-duplicate fixture
de-duplicate warning from str.contains with pattern with capture groups
remove special casing StringDtype | https://api.github.com/repos/pandas-dev/pandas/pulls/41306 | 2021-05-04T12:27:42Z | 2021-05-04T16:37:46Z | 2021-05-04T16:37:46Z | 2021-05-04T17:58:37Z |
ASV: add benchmarks to test formatting func in Styler. | diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py
index e4369d67ca67e..a01610a69278b 100644
--- a/asv_bench/benchmarks/io/style.py
+++ b/asv_bench/benchmarks/io/style.py
@@ -1,6 +1,9 @@
import numpy as np
-from pandas import DataFrame
+from pandas import (
+ DataFrame,
+ IndexSli... | The main time in rendering Styler is consumed by:
- formatting values for display
- adding cell styles via apply / applymap
- adding cell styles via set_td_classes
We have benchmarks for the latter 2 but not the first. Any future changes to the formatting function might be worth having benchmarks (I would use t... | https://api.github.com/repos/pandas-dev/pandas/pulls/41302 | 2021-05-04T10:43:44Z | 2021-05-04T12:44:09Z | 2021-05-04T12:44:09Z | 2021-05-06T07:35:51Z |
COMPAT: frame round error msg for py310 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6d3042507d930..d1ff69f16d993 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9206,9 +9206,12 @@ def _series_round(s, decimals):
nv.validate_round(args, kwargs)
if isinstance(decimals, (dict, Series)):
- if isi... | Not sure if this is the desired way to address this.
```
________________________ TestDataFrameRound.test_round _________________________
self = <pandas.tests.frame.methods.test_round.TestDataFrameRound object at 0x7fcdd089eb90>
def test_round(self):
# GH#2665
# Test that rounding ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41301 | 2021-05-04T02:47:57Z | 2021-05-06T23:22:43Z | 2021-05-06T23:22:43Z | 2022-11-18T02:21:39Z |
CLN: more descriptive names, annotations in groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 4f60660dfb499..324aef3cd5435 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -524,7 +524,8 @@ def _aggregate_named(self, func, *args, **kwargs):
for name, group in self:
# Each st... | https://api.github.com/repos/pandas-dev/pandas/pulls/41300 | 2021-05-04T02:01:14Z | 2021-05-04T16:21:53Z | 2021-05-04T16:21:53Z | 2021-05-04T16:21:53Z | |
TYP: BaseWindowGroupby._grouper | diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py
index 1c85385c587a5..b51875134c614 100644
--- a/pandas/core/window/rolling.py
+++ b/pandas/core/window/rolling.py
@@ -101,6 +101,7 @@
DataFrame,
Series,
)
+ from pandas.core.groupby.ops import BaseGrouper
from pand... | - [ ] 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/41299 | 2021-05-04T01:56:29Z | 2021-05-04T19:29:11Z | 2021-05-04T19:29:11Z | 2021-05-04T19:38:03Z |
REF: raise more selectively in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 09999b6970bca..9bef6cb428e8a 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -27,12 +27,18 @@ from pandas._libs.lib import (
)
-cpdef check_result_array(object obj):
+cdef cnp.dtype _dtype_obj = np.dtype("object"... | This allows slightly more cases to go through the cython path | https://api.github.com/repos/pandas-dev/pandas/pulls/41298 | 2021-05-04T01:46:50Z | 2021-05-04T19:38:18Z | 2021-05-04T19:38:18Z | 2021-05-04T19:40:52Z |
CLN: remove unused filter_empty from BinGrouper | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 975a902f49db9..d75e7f75a2b62 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -1047,7 +1047,6 @@ class BinGrouper(BaseGrouper):
----------
bins : the split index of binlabels to group the item of axis
bi... | - [ ] 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/41296 | 2021-05-04T01:12:40Z | 2021-05-04T12:49:12Z | 2021-05-04T12:49:12Z | 2021-05-04T13:58:54Z |
DOC: Validator + converting array_like to array-like in docstrings | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 177dfee0c03ab..f26cf113f7d5e 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1530,13 +1530,13 @@ def searchsorted(arr, value, side="left", sorter=None) -> np.ndarray:
Input array. If `sorter` is None, then it mu... | - [ ] closes #40560 (Pending feedback on decorator-generated docstrings)
- [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
- [ ] whatsnew entry
First try at any open source stuff! T... | https://api.github.com/repos/pandas-dev/pandas/pulls/41295 | 2021-05-04T00:10:24Z | 2021-06-12T10:21:23Z | 2021-06-12T10:21:22Z | 2021-06-19T22:37:10Z |
REF: support object dtype in libgroupby.group_add | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 3fa92ce2229c3..8637d50745195 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -469,18 +469,19 @@ def group_any_all(int8_t[::1] out,
# group_add, group_prod, group_var, group_mean, group_ohlc
# -------------------------------... | - [ ] 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/41294 | 2021-05-03T23:02:03Z | 2021-05-04T16:22:29Z | 2021-05-04T16:22:29Z | 2021-05-04T16:25:45Z |
[ArrowStringArray] REF: pre-cursor to adding replace str accessor method | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 85a58d3d99795..82462f8d922d5 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -19,6 +19,7 @@
is_categorical_dtype,
is_integer,
is_list_like,
+ is_re,
)
from pandas.core.dtypes.ge... | pre-cursor cleanup to avoid duplicating validation | https://api.github.com/repos/pandas-dev/pandas/pulls/41293 | 2021-05-03T21:40:25Z | 2021-05-04T16:26:35Z | 2021-05-04T16:26:35Z | 2021-05-04T18:10:17Z |
BUG: fix suppressed TypeErrors in Groupby.mean, median, var | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 620668dadc32d..9935bc706b7b1 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1559,7 +1559,7 @@ def mean(self, numeric_only: bool = True):
"""
result = self._cython_agg_general(
... | These are raising TypeError because we aren't passing enough args, but then we're catching those TypeErrors and falling back. So this doesn't change behavior, just avoids an unnecessary fallback in some cases.
No tests. Surfacing the exceptions would require ugly/invasive changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/41292 | 2021-05-03T21:31:20Z | 2021-05-04T16:23:01Z | 2021-05-04T16:23:01Z | 2021-05-04T16:26:07Z |
REF: Share py_fallback | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 4f60660dfb499..c04ad0e9dfa30 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -69,7 +69,6 @@
validate_func_kwargs,
)
from pandas.core.apply import GroupByApply
-from pandas.core.arrays import Cat... | - [ ] 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/41289 | 2021-05-03T19:24:11Z | 2021-05-04T16:27:25Z | 2021-05-04T16:27:25Z | 2021-05-04T16:40:44Z |
Bug in iloc.setitem orienting IntegerArray into the wrong direction | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index d3756d6252c0a..4f3f536cd3290 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -164,7 +164,7 @@ def check_setitem_lengths(indexer, value, values) -> bool:
# a) not necessarily 1-D indexers, e.g. tuple
# b) boole... | - [x] closes #40933
- [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
This is more or less a follow up of #39040, so don't think we need a whatsnew? | https://api.github.com/repos/pandas-dev/pandas/pulls/41288 | 2021-05-03T19:08:19Z | 2021-05-05T12:41:14Z | 2021-05-05T12:41:13Z | 2021-05-05T19:51:11Z |
REF: Avoid fallback in GroupBy._agg_general | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 4f60660dfb499..396fb0a32b2e8 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1230,6 +1230,24 @@ def _aggregate_item_by_item(self, func, *args, **kwargs) -> DataFrame:
return self.obj._constru... | pre-emptively use non-cython path in explicit cases instead of try/except. Many of the affected cases involve empty DataFrames and I think the tested behavior is sketchy (e.g. the fallback paths ignore the `numeric_only` kwarg), so putting this in draft mode while I look at that.
@WillAyd can i get your help with _... | https://api.github.com/repos/pandas-dev/pandas/pulls/41287 | 2021-05-03T18:03:10Z | 2021-05-06T15:35:27Z | null | 2021-05-06T15:35:35Z |
DOC: Fix docs in pandas/io/excel/* | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 149e10b48933d..8e876eebf93ad 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -15,7 +15,7 @@
# $ ./ci/code_checks.sh code # checks on imported code
# $ ./ci/code_checks.sh doctests # run doctests
# $ ./ci/code_checks.sh docstrings ... | - [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/41286 | 2021-05-03T16:23:40Z | 2021-05-04T12:50:12Z | 2021-05-04T12:50:12Z | 2021-05-04T13:50:41Z |
TYP: core.sorting | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8e12a8cb18b68..50837e1b3ed50 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6146,7 +6146,7 @@ def duplicated(
if self.empty:
return self._constructor_sliced(dtype=bool)
- def f(vals):
+ def f(vals) -> ... | both mypy and i have a hard time with `labels, lshape = map(list, zip(*map(maybe_lift, labels, lshape)))` | https://api.github.com/repos/pandas-dev/pandas/pulls/41285 | 2021-05-03T15:16:39Z | 2021-05-04T12:58:41Z | 2021-05-04T12:58:41Z | 2021-05-04T14:00:12Z |
DOC: Fix docs for io/json/* | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8e876eebf93ad..7cc171330e01a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -140,6 +140,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/core/window/ \
pandas/errors/ \
pandas/io/clipboard/ \
+ pandas/io/json/ ... | - [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/41284 | 2021-05-03T15:08:39Z | 2021-05-04T21:55:08Z | 2021-05-04T21:55:08Z | 2021-05-05T12:13:24Z |
TYP Series and DataFrame currently type-check as hashable | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0641b32383125..60dc7096c9d1e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -707,6 +707,7 @@ Other API changes
- Added new ``engine`` and ``**engine_kwargs`` parameters to :meth:`DataFrame.to_sql` to... | - [ ] closes #40013
- [ ] 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/41283 | 2021-05-03T14:15:01Z | 2021-06-29T12:27:43Z | 2021-06-29T12:27:42Z | 2021-06-29T12:31:30Z |
[ArrowStringArray] PERF: isin using native pyarrow function if available | diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py
index a8b8a193dbcfc..44245295beafc 100644
--- a/asv_bench/benchmarks/algos/isin.py
+++ b/asv_bench/benchmarks/algos/isin.py
@@ -9,6 +9,8 @@
date_range,
)
+from ..pandas_vb_common import tm
+
class IsIn:
@@ -22,6 +24,9 @@ c... | Unlike MaskedArray, this returns a numpy bool array to be consistent with the EA interface and StringArray and also due to the fact that the returned boolean array has no null values to be consistent with the latest version of pyarrow.
```
[ 0.00%] ·· Benchmarking existing-py_home_simon_miniconda3_envs_pandas-de... | https://api.github.com/repos/pandas-dev/pandas/pulls/41281 | 2021-05-03T12:41:35Z | 2021-05-05T12:50:49Z | 2021-05-05T12:50:49Z | 2021-05-05T12:55:43Z |
CI: Added unselected directories to doctest CI | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c178e9f7cecbe..149e10b48933d 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -123,6 +123,11 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests for directories' ; echo $MSG
pytest -q --doctest-modules \
+ pandas/_libs/... | Some of those do have docstrings with example to be validated, and some do not have.
This only make sure that future files or changes to files in those directories will be checked.
---
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/developm... | https://api.github.com/repos/pandas-dev/pandas/pulls/41280 | 2021-05-03T12:23:55Z | 2021-05-03T13:50:14Z | 2021-05-03T13:50:14Z | 2021-05-03T13:53:19Z |
CI: Fix warning from SSL transport (again) | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index b1f070d1a1ccc..5153118e9b142 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -143,7 +143,7 @@ def _assert_caught_no_extra_warnings(
for actual_warning in caught_warnings:
if _is_unexpected_warnin... | Turns out that the issue was the comparison of the type. Loop has `WarningMessage`, but the type of warning is in `actual_warning.category` | https://api.github.com/repos/pandas-dev/pandas/pulls/41279 | 2021-05-03T12:19:53Z | 2021-05-03T13:49:46Z | 2021-05-03T13:49:46Z | 2021-05-03T13:53:58Z |
TST: fix casting extension tests for external users | diff --git a/pandas/tests/extension/base/casting.py b/pandas/tests/extension/base/casting.py
index 47f4f7585243d..99a5666926e10 100644
--- a/pandas/tests/extension/base/casting.py
+++ b/pandas/tests/extension/base/casting.py
@@ -1,6 +1,8 @@
import numpy as np
import pytest
+import pandas.util._test_decorators as td... | cc @simonjayhawkins fixtures defined by pandas are not known when inheriting the tests as external package. There are a bunch of fixtures that external packages are expected to define in `pandas/tests/extension/conftest.py`, but I think for the string dtype here this is not worth it to expect downstream users to define... | https://api.github.com/repos/pandas-dev/pandas/pulls/41278 | 2021-05-03T09:48:43Z | 2021-05-03T14:28:06Z | 2021-05-03T14:28:06Z | 2021-05-03T14:40:34Z |
Allow to union `MultiIndex` with empty `RangeIndex` | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 9b3f2d191831d..ee2ae291cd288 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2923,8 +2923,10 @@ def union(self, other, sort=None):
other, result_name = self._convert_can_do_setop(other)
if not... | - [x] closes #41234
- [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
See also https://github.com/dask/dask/issues/7610 and https://github.com/JDASoftwareGroup/... | https://api.github.com/repos/pandas-dev/pandas/pulls/41275 | 2021-05-03T07:03:01Z | 2021-05-04T12:53:48Z | 2021-05-04T12:53:47Z | 2021-06-02T14:38:08Z |
REF: clearer names in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index d0f85b75a629e..09999b6970bca 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -63,17 +63,17 @@ cdef class _BaseGrouper:
)
return cached_index, cached_series
- cdef inline _update_cached_objs(self... | - [ ] 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/41274 | 2021-05-03T01:57:34Z | 2021-05-03T15:15:36Z | 2021-05-03T15:15:36Z | 2021-05-03T16:50:08Z |
REF: consolidate casting in groupby agg_series | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index d0f85b75a629e..8dcd01b14535f 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -21,10 +21,7 @@ from pandas._libs.util cimport (
set_array_not_contiguous,
)
-from pandas._libs.lib import (
- is_scalar,
- ma... | - [ ] 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/41273 | 2021-05-02T21:49:16Z | 2021-05-04T12:52:35Z | 2021-05-04T12:52:35Z | 2021-05-04T14:04:01Z |
REF: simpilify _cython_agg_general | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index b9f1ca0710872..7edd458ced790 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -345,47 +345,48 @@ def _aggregate_multiple_funcs(self, arg):
def _cython_agg_general(
self, how: str, alt=None... | - make the exception-handling in SeriesGroupBy._cython_agg_general match that in DataFrameGroupBy._cython_agg_general
- remove an unnecessary for loop
- define array_func to match the pattern in DataFrameGroupBy._cython_agg_general in the hopes that we can share these methods before long | https://api.github.com/repos/pandas-dev/pandas/pulls/41271 | 2021-05-02T19:58:37Z | 2021-05-02T23:24:23Z | 2021-05-02T23:24:23Z | 2021-05-03T01:24:52Z |
CI: fix test for SSL warning | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 391226b622a01..b1f070d1a1ccc 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -144,7 +144,7 @@ def _assert_caught_no_extra_warnings(
if _is_unexpected_warning(actual_warning, expected_warning):
... | follow up to #41083 to change test | https://api.github.com/repos/pandas-dev/pandas/pulls/41270 | 2021-05-02T19:37:45Z | 2021-05-02T23:08:51Z | 2021-05-02T23:08:51Z | 2021-05-02T23:52:30Z |
ENH: make `Styler` compatible with non-unique indexes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a81dda4e7dfdd..fec4422bac37e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -138,6 +138,8 @@ The :meth:`.Styler.format` has had upgrades to easily format missing data,
precision, and perform HTML esc... | - [x] closes #41143
The PR aims to make Styler compatible with non-unique indexes/columns, for the purpose of rendering all DataFrame types (even if no styling is applied)
- [x] `Styler.format`: made FULLY compatible with some modifications to the loops, inc TESTS.
- [x] <s>`Styler.apply` and `Styler.applymap`:... | https://api.github.com/repos/pandas-dev/pandas/pulls/41269 | 2021-05-02T18:38:41Z | 2021-05-06T23:32:02Z | 2021-05-06T23:32:02Z | 2021-05-07T05:18:04Z |
Bug in setitem raising ValueError with row-slice indexer on df with list-like on rhs | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b2f4de22ca5c1..2c2ae8cc1f88b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -752,6 +752,7 @@ Indexing
- Bug in :meth:`RangeIndex.append` where a single object of length 1 was concatenated incorrectly... | - [x] closes #40440
- [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
I'll adress the IntegerArray case from #40933 after this is merged | https://api.github.com/repos/pandas-dev/pandas/pulls/41268 | 2021-05-02T17:55:43Z | 2021-05-02T23:47:54Z | 2021-05-02T23:47:54Z | 2021-05-03T18:30:08Z |
ENH: Numba engine for EWM.mean | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b2f4de22ca5c1..ea1bc309bb041 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -197,7 +197,7 @@ Other enhancements
- Add support for dict-like names in :class:`MultiIndex.set_names` and :class:`MultiInd... | - [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/41267 | 2021-05-02T17:10:37Z | 2021-05-02T23:57:20Z | 2021-05-02T23:57:20Z | 2021-05-03T05:04:48Z |
API: make `hide_columns` and `hide_index` have a consistent signature and function in `Styler` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 93c3843b36846..bf4df4ff73055 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -31,7 +31,10 @@
from pandas.util._decorators import doc
import pandas as pd
-from pandas import RangeIndex
+from pandas import (
+ In... | This closes #41158 (which is an alternative PR for similar functionality)
Currently `hide_index()` and `hide_columns(subset)` have similar signatures but **different** operations. One hides the index whilst showing the data-rows, and the other hides data-columns whilst showing the column-headers row.
### This PR
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41266 | 2021-05-02T16:02:20Z | 2021-06-16T00:22:53Z | 2021-06-16T00:22:53Z | 2021-07-27T18:03:50Z |
REF: avoid unnecessary raise in DataFrameGroupBy._cython_agg_general | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 1aa08356982d2..693b1832ed3c9 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -360,7 +360,10 @@ def agg_list_like(self) -> FrameOrSeriesUnion:
# raised directly in _aggregate_named
pass
... | Untangling these layered try/excepts is turning out to be an exceptional PITA, so splitting it into extra-small pieces. | https://api.github.com/repos/pandas-dev/pandas/pulls/41265 | 2021-05-02T15:40:41Z | 2021-05-03T15:14:58Z | 2021-05-03T15:14:58Z | 2021-05-03T16:51:38Z |
BUG: RangeIndex.astype('category') | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 794a7025fe218..7def8f6bdb2bc 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -780,6 +780,7 @@ Indexing
- Bug in :meth:`DatetimeIndex.insert` when inserting ``np.datetime64("NaT")`` into a timezone-awa... | There's currently inconsistent behaviour when converting `RangeIndex` to `CategoricalIndex` using different methods. This fixes that.
```python
>>> ridx = pd.RangeIndex(5)
>>> pd.CategoricalIndex(ridx).categories
RangeIndex(start=0, stop=5, step=1) # both master and this PR
>>> ridx.astype("category").categorie... | https://api.github.com/repos/pandas-dev/pandas/pulls/41263 | 2021-05-02T10:46:15Z | 2021-05-05T12:39:13Z | 2021-05-05T12:39:13Z | 2021-05-05T13:41:07Z |
REF: simplify libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 191967585c431..d0f85b75a629e 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -53,24 +53,24 @@ cdef class _BaseGrouper:
return values, index
+ cdef _init_dummy_series_and_index(self, Slider islider, Sli... | - [ ] 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/41262 | 2021-05-02T04:19:33Z | 2021-05-02T23:10:17Z | 2021-05-02T23:10:17Z | 2021-05-03T01:19:36Z |
COMPAT: fix _bootlocale import error on py310 | diff --git a/pandas/tests/io/json/test_readlines.py b/pandas/tests/io/json/test_readlines.py
index 6731c481f8935..abc65f2f1eda1 100644
--- a/pandas/tests/io/json/test_readlines.py
+++ b/pandas/tests/io/json/test_readlines.py
@@ -192,7 +192,7 @@ def test_readjson_chunks_multiple_empty_lines(chunksize):
def test_readj... | The _bootlocale module has been removed from Python 3.10.
https://github.com/python/cpython/commit/b62bdf71ea0cd52041d49691d8ae3dc645bd48e1 | https://api.github.com/repos/pandas-dev/pandas/pulls/41261 | 2021-05-02T02:51:41Z | 2021-05-02T23:11:52Z | 2021-05-02T23:11:52Z | 2022-11-18T02:21:52Z |
TYP: ExtensionArray unique and repeat | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 5a2643dd531ed..bd01191719143 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -794,7 +794,7 @@ def shift(self, periods: int = 1, fill_value: object = None) -> ExtensionArray:
b = empty
return self... | Typing fixes for `ExtensionArray.unique()` and `ExtensionArray.repeat()`
| https://api.github.com/repos/pandas-dev/pandas/pulls/41260 | 2021-05-02T01:33:00Z | 2021-05-03T12:46:14Z | 2021-05-03T12:46:14Z | 2021-05-03T13:00:03Z |
fix(documentation/user_guides/indexing): Highlight `where`, add Todo for "wrong" example | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index dc66303a44f53..20c608cb44802 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1093,10 +1093,11 @@ partial setting via ``.loc`` (but on the contents rather than the axis labels).
.. ipy... | - [X] add Todo marker for "wrong" example (description said `where` should be used but actually it isn't)
- [ ] add actual example using `where` (beyond my skillset)
| https://api.github.com/repos/pandas-dev/pandas/pulls/41259 | 2021-05-02T00:16:53Z | 2021-05-24T19:31:03Z | null | 2021-05-24T19:31:03Z |
TYP: Typing for ExtensionArray.__getitem__ | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 93d49497a85e0..5077e659410e3 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -206,10 +206,16 @@
# indexing
# PositionalIndexer -> valid 1D positional indexer, e.g. can pass
# to ndarray.__getitem__
+# ScalarIndexer is for a single value as the index
... | Changes for typing of `ExtensionArray.__getitem__()`.
Required changes to `DateTimeLikeArrayMixin` for correct compatibility.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41258 | 2021-05-02T00:02:01Z | 2021-09-08T22:12:21Z | 2021-09-08T22:12:21Z | 2021-09-08T22:21:42Z |
Backport PR #40994: REGR: memory_map with non-UTF8 encoding | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index 16f9284802407..60e146b2212eb 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :func:`concat` bet... | Backport PR #40994 | https://api.github.com/repos/pandas-dev/pandas/pulls/41257 | 2021-05-01T23:58:40Z | 2021-05-25T13:22:36Z | 2021-05-25T13:22:36Z | 2021-06-05T20:50:08Z |
REF: avoid unnecessary casting in algorithms | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 16ec2bb5f253c..2c4477056a112 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -37,19 +37,17 @@
from pandas.core.dtypes.cast import (
construct_1d_object_array_from_listlike,
infer_dtype_from_array,
+ sanitize... | Sparse annotations are unrelated, were figured out in the process of getting this working. | https://api.github.com/repos/pandas-dev/pandas/pulls/41256 | 2021-05-01T23:39:46Z | 2021-05-02T23:16:56Z | 2021-05-02T23:16:56Z | 2021-05-03T01:12:41Z |
TYP: Simple type fixes for ExtensionArray | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a58dc0dba1bf1..1e1fffdd60676 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -37,6 +37,7 @@
# https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
if TYPE_CHECKING:
from typing import (
+ Literal,
TypedDict,
... | Typing changes for the following methods in `ExtensionArray`
- `__iter__`
- `__contains__`
- `fillna`
- `transpose`
- `ravel`
- `__hash__` | https://api.github.com/repos/pandas-dev/pandas/pulls/41255 | 2021-05-01T23:16:21Z | 2021-05-06T01:39:35Z | 2021-05-06T01:39:35Z | 2021-05-06T02:19:02Z |
CLN: Move stuff in tests.indexes.test_numeric.py to more logical locations | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index 6139d8af48d98..45c9dda1d1b38 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -1,3 +1,4 @@
+from datetime import datetime
import gc
from typing import Type
@@ -5,6 +6,7 @@
import pytest
from pan... | This does four things to better organize the numeric index's tests:
1. Moves test method `test_index_groupby` from `tests.indexes.test_numeric.py::TestNumericIndex` to `tests.indexes.common.py::Base` and makes it use a fixture. This means this tests will be used for all index types. Also deletes `TestNumericIndex`, as... | https://api.github.com/repos/pandas-dev/pandas/pulls/41254 | 2021-05-01T21:19:03Z | 2021-05-04T12:59:25Z | 2021-05-04T12:59:25Z | 2021-05-05T16:33:16Z |
COMPAT: more error msg compat for py310 | diff --git a/pandas/tests/indexes/ranges/test_constructors.py b/pandas/tests/indexes/ranges/test_constructors.py
index 9539b0ff7cdba..e306b6e67cf7f 100644
--- a/pandas/tests/indexes/ranges/test_constructors.py
+++ b/pandas/tests/indexes/ranges/test_constructors.py
@@ -119,7 +119,9 @@ def test_constructor_range(self):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41253 | 2021-05-01T21:18:12Z | 2021-05-02T23:22:23Z | 2021-05-02T23:22:23Z | 2021-06-18T02:30:41Z | |
CLN: minor cleanup of bad pattern | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 0253852fbb39a..4aaf1eecde5e8 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -486,13 +486,8 @@ def format(
formatter = {col: formatter for col in columns}
for col in... | can approve as quickly as possible to hide terrible coding.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41252 | 2021-05-01T20:56:27Z | 2021-05-01T23:53:08Z | 2021-05-01T23:53:08Z | 2021-05-02T06:27:45Z |
TYP: Typing changes for ExtensionArray.astype | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 433f8645d35a8..93d49497a85e0 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -126,10 +126,9 @@
]
# dtypes
-NpDtype = Union[str, np.dtype]
-Dtype = Union[
- "ExtensionDtype", NpDtype, type_t[Union[str, float, int, complex, bool, object]]
-]
+NpDty... | Minimal (hopefully) typing changes for `ExtensionArray.astype` .
| https://api.github.com/repos/pandas-dev/pandas/pulls/41251 | 2021-05-01T19:37:45Z | 2021-09-06T19:48:28Z | 2021-09-06T19:48:28Z | 2021-09-06T19:48:58Z |
TYP: assorted annotations | diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx
index 1e2a336f12444..4566f22be2c36 100644
--- a/pandas/_libs/hashtable.pyx
+++ b/pandas/_libs/hashtable.pyx
@@ -163,7 +163,7 @@ cdef class Int64Factorizer:
@cython.wraparound(False)
@cython.boundscheck(False)
-def unique_label_indices(const int64_... | - [ ] 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/41250 | 2021-05-01T16:39:07Z | 2021-05-02T23:21:32Z | 2021-05-02T23:21:32Z | 2021-05-03T01:22:24Z |
CLN: remove outdated arrow compat | diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py
index 51e5f36b88c79..6214693f22975 100644
--- a/pandas/core/arrays/_arrow_utils.py
+++ b/pandas/core/arrays/_arrow_utils.py
@@ -1,4 +1,3 @@
-from distutils.version import LooseVersion
import json
import numpy as np
@@ -6,8 +5,6 @@
... | precursor of #41207
| https://api.github.com/repos/pandas-dev/pandas/pulls/41249 | 2021-05-01T12:24:39Z | 2021-05-01T15:00:05Z | 2021-05-01T15:00:05Z | 2021-06-18T02:30:04Z |
[ArrowStringArray] PERF: use pyarrow.compute.utf8_length if available | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index fabb3974728de..4dc291c0fe084 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -41,6 +41,7 @@
from pandas.core.arraylike import OpsMixin
from pandas.core.arrays.base import ExtensionArr... | ```
[ 25.00%] ··· strings.Methods.time_len ok
[ 25.00%] ··· ============== ==========
dtype
-------------- ----------
str 19.1... | https://api.github.com/repos/pandas-dev/pandas/pulls/41248 | 2021-05-01T09:36:34Z | 2021-05-04T16:24:35Z | 2021-05-04T16:24:35Z | 2021-05-04T18:15:50Z |
CLN: standardize naming in core.groupby | diff --git a/pandas/core/groupby/categorical.py b/pandas/core/groupby/categorical.py
index 297681f1e10f5..2a2671374efc4 100644
--- a/pandas/core/groupby/categorical.py
+++ b/pandas/core/groupby/categorical.py
@@ -1,7 +1,4 @@
-from typing import (
- Optional,
- Tuple,
-)
+from __future__ import annotations
impo... | - [ ] 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/41247 | 2021-05-01T01:42:03Z | 2021-05-03T03:25:46Z | 2021-05-03T03:25:46Z | 2021-05-03T03:27:24Z |
TYP: _libs.hashtable | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
new file mode 100644
index 0000000000000..b6278b3956a1d
--- /dev/null
+++ b/pandas/_libs/hashtable.pyi
@@ -0,0 +1,242 @@
+from typing import (
+ Any,
+ Hashable,
+ Literal,
+)
+
+import numpy as np
+
+def unique_label_indices(
+ labels: np... | https://api.github.com/repos/pandas-dev/pandas/pulls/41246 | 2021-05-01T01:23:40Z | 2021-05-05T13:02:20Z | 2021-05-05T13:02:20Z | 2021-05-05T14:46:37Z | |
REF: de-lazify Resampler init | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 7fe9d7cb49eb5..f6532aea757de 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -546,6 +546,7 @@ class BaseGroupBy(PandasObject, SelectionMixin, Generic[FrameOrSeries]):
axis: int
grouper: ops.B... | AFAICT the only reason `Resampler.__init__` has a lazy component is bc we call `super().__init__(None)` in `GroupByMixin.__init__`. By avoiding that (and directly setting the one attribute we need that super call to set), we can de-lazify `Resampler.__init__`, which in turn allows simplifying a bunch of other methods | https://api.github.com/repos/pandas-dev/pandas/pulls/41245 | 2021-04-30T22:38:50Z | 2021-05-02T23:29:02Z | 2021-05-02T23:29:02Z | 2021-05-03T01:29:35Z |
REGR: Avoid error when defining non existing usecols with python engine | diff --git a/pandas/io/parsers/python_parser.py b/pandas/io/parsers/python_parser.py
index a6d38eab99977..62c511c0edf55 100644
--- a/pandas/io/parsers/python_parser.py
+++ b/pandas/io/parsers/python_parser.py
@@ -299,10 +299,10 @@ def _exclude_implicit_index(self, alldata):
# error: Cannot determine type o... | - [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
Regression on master so no whatsnew. Restored behaviro of 1.2.4
cc @gfyoung | https://api.github.com/repos/pandas-dev/pandas/pulls/41244 | 2021-04-30T22:09:32Z | 2021-05-12T01:26:19Z | 2021-05-12T01:26:19Z | 2021-05-12T09:19:02Z |
REF: remove unnecessary consolidate in GroupBy.describe | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 7fe9d7cb49eb5..36c7f53d23098 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1817,9 +1817,7 @@ def describe(self, **kwargs):
result = self.apply(lambda x: x.describe(**kwargs))
... | <b>update</b> reverted most of this in favor of #41271 | https://api.github.com/repos/pandas-dev/pandas/pulls/41243 | 2021-04-30T22:01:48Z | 2021-05-02T23:30:45Z | 2021-05-02T23:30:45Z | 2021-05-03T01:18:39Z |
REF: make libreduction behavior match _aggregate_series_pure_python | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 5b958163159aa..191967585c431 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -27,11 +27,11 @@ from pandas._libs.lib import (
)
-cpdef check_result_array(object obj, Py_ssize_t cnt):
+cpdef check_result_array(obje... | - [ ] 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/41242 | 2021-04-30T20:34:52Z | 2021-04-30T22:12:16Z | 2021-04-30T22:12:16Z | 2021-04-30T22:36:37Z |
CLN: no need to catch libgroupby validation ValueError | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 6fa5ce0a201ae..d241132e4d960 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -430,16 +430,23 @@ def _groupby_and_aggregate(self, how, grouper=None, *args, **kwargs):
result = grouped._aggregate_item_by_item(how, ... | - [ ] 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/41240 | 2021-04-30T18:23:54Z | 2021-04-30T22:12:53Z | 2021-04-30T22:12:53Z | 2021-04-30T22:32:23Z |
CLN: remove Resampler._typ | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 141ea4babe970..6fa5ce0a201ae 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -207,15 +207,6 @@ def obj(self):
def ax(self):
return self.groupby.ax
- @property
- def _typ(self) -> str:
- """
- M... | ATM `isinstance(resampler, ABCDataFrame)` can be True, which I wasn't aware of until recently. This strikes me as a grade-A footgun. | https://api.github.com/repos/pandas-dev/pandas/pulls/41239 | 2021-04-30T15:57:45Z | 2021-04-30T16:52:15Z | 2021-04-30T16:52:15Z | 2021-04-30T18:12:47Z |
Optimising Series.nunique for Nan values #40865 | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 65167e6467fd5..760da36a30075 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -563,6 +563,14 @@ def time_frame_nunique(self):
self.df.nunique()
+class SeriesNuni... | - [ ] closes #40865
| https://api.github.com/repos/pandas-dev/pandas/pulls/41236 | 2021-04-30T14:08:32Z | 2021-05-03T15:12:33Z | 2021-05-03T15:12:32Z | 2021-05-03T15:12:37Z |
REF: simplify kwargs unpacking in resample | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 14d065de7f77f..3dc11d72ed28c 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -1046,11 +1046,9 @@ class _GroupByMixin(PandasObject):
_attributes: list[str] # in practice the same as Resampler._attributes
- def __init_... | - [ ] 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
Simplified kwargs unpacking in resample, by utilizing keyword-only arguments. | https://api.github.com/repos/pandas-dev/pandas/pulls/41235 | 2021-04-30T13:13:04Z | 2021-04-30T14:55:38Z | 2021-04-30T14:55:38Z | 2021-04-30T14:55:42Z |
ENH: Add formatters parameter for the xlsxwriter engine | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 719a4472fb9e3..87db1c46e8af6 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -672,6 +672,13 @@ class ExcelWriter(metaclass=abc.ABCMeta):
datetime_format : str, default None
Format string for datetime objects wri... | - [X] closes #30275
- [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
- [ ] whatsnew entry
Currently pandas doesn't support different formats for columns of the type `date`/`dateti... | https://api.github.com/repos/pandas-dev/pandas/pulls/41232 | 2021-04-30T06:25:46Z | 2021-10-16T20:49:26Z | null | 2021-10-16T20:49:26Z |
REF: avoid passing empty list to concat in groupby methods | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 771ba2845db6e..ebc061a5345a2 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1754,11 +1754,16 @@ def _iterate_column_groupbys(self):
def _apply_to_column_groupbys(self, func) -> DataFrame:
... | - [ ] 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/41231 | 2021-04-30T03:07:37Z | 2021-04-30T15:15:37Z | 2021-04-30T15:15:37Z | 2021-04-30T15:34:58Z |
COMPAT: float() exception type for py310 | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 92618605e47cc..19fd48a772493 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -1598,7 +1598,7 @@ def _ensure_numeric(x):
elif not (is_float(x) or is_integer(x) or is_complex(x)):
try:
x = float(x)
- excep... | `float()` raises TypeError in py310
```
________________ TestEnsureNumeric.test_non_convertable_values _________________
self = <pandas.tests.test_nanops.TestEnsureNumeric object at 0x7f7da1e029e0>
def test_non_convertable_values(self):
msg = "Could not convert foo to numeric"
with pytes... | https://api.github.com/repos/pandas-dev/pandas/pulls/41230 | 2021-04-30T02:58:55Z | 2021-04-30T14:54:54Z | 2021-04-30T14:54:54Z | 2021-06-18T02:29:52Z |
COMPAT: error massage for py310 | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index 62d368264752b..771d60b000a7d 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -1150,7 +1150,7 @@ def test_array_interface(self, arr1d):
tm.assert_numpy_a... | https://api.github.com/repos/pandas-dev/pandas/pulls/41228 | 2021-04-30T02:35:26Z | 2021-04-30T15:16:20Z | 2021-04-30T15:16:20Z | 2021-06-18T02:29:45Z | |
BUG: read_excel trailing blank rows and columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 74710ca48308c..1bad9401ba312 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -795,6 +795,7 @@ I/O
- Bug in :func:`read_hdf` returning unexpected records when filtering on categorical string columns us... | - [x] closes #41167
- [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/41227 | 2021-04-29T23:13:08Z | 2021-05-06T01:41:26Z | 2021-05-06T01:41:26Z | 2021-05-06T04:00:43Z |
DOC: Add hint for "Product space too large" | diff --git a/pandas/_testing/contexts.py b/pandas/_testing/contexts.py
index e20d2d58e499f..f5fcc855f1fba 100644
--- a/pandas/_testing/contexts.py
+++ b/pandas/_testing/contexts.py
@@ -5,12 +5,14 @@
from pathlib import Path
import random
from shutil import rmtree
+import signal
import string
import tempfile
from ... | Adds a note to the documentation for `DataFrame.groupby` suggesting that the cause of a `Product space too large to allocate arrays!` error may be from unexpected behavior when grouping on a combination of sparse categorical columns.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pas... | https://api.github.com/repos/pandas-dev/pandas/pulls/41226 | 2021-04-29T21:41:44Z | 2022-01-16T17:55:49Z | null | 2022-01-16T17:55:49Z |
REF: maybe_apply_* in core.apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9a75857c2586d..1aa08356982d2 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -156,7 +156,7 @@ def agg(self) -> FrameOrSeriesUnion | None:
kwargs = self.kwargs
if isinstance(arg, str):
- return self.maybe_apply_... | - [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 #41067. cc @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/41224 | 2021-04-29T20:33:57Z | 2021-04-30T17:18:46Z | 2021-04-30T17:18:46Z | 2021-04-30T19:04:23Z |
BUG: to_string truncation row with index=False | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 74710ca48308c..6099ab4a9c365 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -796,7 +796,8 @@ I/O
- Bug in :func:`read_sas` raising ``ValueError`` when ``datetimes`` were null (:issue:`39725`)
- Bug ... | - [x] closes #40904
- [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
- Already have one for the same bug, not sure if I need one for this.
| https://api.github.com/repos/pandas-dev/pandas/pulls/41223 | 2021-04-29T20:09:15Z | 2021-05-21T15:57:21Z | 2021-05-21T15:57:21Z | 2021-05-21T15:57:25Z |
[ArrowStringArray] startswith/endswith using native pyarrow method | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 180ed51e7fd2b..4118a172c9dac 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -1,6 +1,7 @@
from __future__ import annotations
from distutils.version import LooseVersion
+import re
f... | ```
[ 50.00%] ··· strings.Methods.time_startswith ok
[ 50.00%] ··· ============== ==========
dtype
-------------- ----------
str 19.2... | https://api.github.com/repos/pandas-dev/pandas/pulls/41222 | 2021-04-29T19:36:34Z | 2021-04-29T22:08:09Z | 2021-04-29T22:08:08Z | 2021-05-01T08:38:44Z |
[ArrowStringArray] use pyarrow string trimming functions if available | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 180ed51e7fd2b..5d505691b13d2 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -831,3 +831,30 @@ def _str_lower(self):
def _str_upper(self):
return type(self)(pc.utf8_uppe... | ```
[ 27.78%] ··· strings.Methods.time_lstrip ok
[ 27.78%] ··· ============== ==========
dtype
-------------- ----------
str 22.7... | https://api.github.com/repos/pandas-dev/pandas/pulls/41219 | 2021-04-29T18:10:46Z | 2021-04-29T22:10:13Z | 2021-04-29T22:10:13Z | 2021-04-30T09:20:49Z |
Optimising Series.nunique for Nan values #40865 | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 5945d8a4b432d..4469da430da36 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1305,10 +1305,10 @@ def nunique(self, dropna: bool = True) -> int:
4
"""
uniqs = self.unique()
- n = len(uniqs)
- if dropna an... | - [ ] closes #40865
| https://api.github.com/repos/pandas-dev/pandas/pulls/41218 | 2021-04-29T15:40:51Z | 2021-04-29T16:00:58Z | null | 2021-04-29T16:01:12Z |
[ArrowStringArray] use pyarrow.compute.match_substring_regex if available | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index fabb3974728de..72a2ab8a1b80a 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -8,6 +8,7 @@
Sequence,
cast,
)
+import warnings
import numpy as np
@@ -766,16 +767,34 @@ def... | follow-up to #41025
```
[ 50.00%] ··· strings.Contains.time_contains ok
[ 50.00%] ··· ============== ========== ==========
-- regex
-------------- -... | https://api.github.com/repos/pandas-dev/pandas/pulls/41217 | 2021-04-29T11:41:24Z | 2021-05-02T23:53:32Z | 2021-05-02T23:53:32Z | 2021-05-03T07:04:51Z |
REF: dont catch ValueError in aggregate_item_by_item | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 1a8329d77f61e..c8b55f90b6b2c 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1207,26 +1207,13 @@ def _aggregate_item_by_item(self, func, *args, **kwargs) -> DataFrame:
obj = self._obj_with_... | - [ ] 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/41211 | 2021-04-29T05:06:16Z | 2021-04-29T23:33:43Z | 2021-04-29T23:33:43Z | 2021-04-30T00:53:54Z |
REF: De-duplicate agg_series | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 1a8329d77f61e..4f618940cf9b2 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1686,7 +1686,7 @@ def _insert_inaxis_grouper_inplace(self, result: DataFrame) -> None:
def _wrap_aggregated_output(
... | - [ ] 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/41210 | 2021-04-29T05:03:29Z | 2021-04-29T23:32:18Z | 2021-04-29T23:32:18Z | 2021-04-30T03:01:17Z |
DOC: Fix link and typo | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index b9afbe387799e..f4a09e0daa750 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -110,8 +110,8 @@ version control to allow many people to work together on the project.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/41209 | 2021-04-28T22:29:55Z | 2021-04-30T00:40:21Z | 2021-04-30T00:40:20Z | 2021-04-30T07:00:28Z | |
DEPS/CLN: remove distutils usage | diff --git a/LICENSES/PACKAGING_LICENSE b/LICENSES/PACKAGING_LICENSE
new file mode 100644
index 0000000000000..4216ea1ce2379
--- /dev/null
+++ b/LICENSES/PACKAGING_LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ ... | - [x] close #41199
| https://api.github.com/repos/pandas-dev/pandas/pulls/41207 | 2021-04-28T21:12:45Z | 2021-05-05T20:14:09Z | 2021-05-05T20:14:09Z | 2021-06-18T02:25:50Z |
DOC: Add Lux to Pandas Ecosystem page | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 56aa734deddd6..d53d0556dca04 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -164,6 +164,21 @@ A good implementation for Python users is `has2k1/plotnine <https://github.com/h
`Plotly’s <https://plot.ly/>`__ `Python API <h... | #### Location of the documentation
List of systems under [pandas ecosystem](https://pandas.pydata.org/docs/ecosystem.html#pandas-ecosystem)
#### Documentation problem
Add [Lux](https://github.com/lux-org/lux) to the ["pandas ecosystem" documentation](https://pandas.pydata.org/docs/ecosystem.html#pandas-ecosyst... | https://api.github.com/repos/pandas-dev/pandas/pulls/41205 | 2021-04-28T19:12:38Z | 2021-05-01T18:10:48Z | 2021-05-01T18:10:48Z | 2021-05-01T18:11:00Z |
CLN: groupby.ops follow-up cleanup | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 2436391580dcb..7fe9d7cb49eb5 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -809,6 +809,7 @@ class GroupBy(BaseGroupBy[FrameOrSeries]):
grouper: ops.BaseGrouper
as_index: bool
+ @final
... | get the namespaces/privateness "right"
avoid runtime imports
fix "type: ignore"s | https://api.github.com/repos/pandas-dev/pandas/pulls/41204 | 2021-04-28T19:10:16Z | 2021-04-30T14:53:48Z | 2021-04-30T14:53:48Z | 2021-04-30T15:22:00Z |
TYP: Fix typing in ExtensionDtype registry | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index 5b7dadac5d914..7dad8c61f4fc7 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -8,6 +8,8 @@
TYPE_CHECKING,
Any,
TypeVar,
+ cast,
+ overload,
)
import numpy as np
@@ -15,6 +17,7 @@
from pandas._... | Simplifying #40421 to just fix up typing in the registry for Extension Dtypes, and return type for `construct_from_string` in `pandas/core/dtypes/base.py`
| https://api.github.com/repos/pandas-dev/pandas/pulls/41203 | 2021-04-28T18:51:18Z | 2021-08-03T15:59:52Z | 2021-08-03T15:59:51Z | 2023-02-13T20:51:11Z |
BUG: make_block with dt64tz-1d #41168 | diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py
index 2f8686fd38929..37e07af71213e 100644
--- a/pandas/core/internals/api.py
+++ b/pandas/core/internals/api.py
@@ -19,6 +19,7 @@
)
from pandas.core.arrays import DatetimeArray
+from pandas.core.construction import extract_array
from pandas.c... | - [x] closes #41168
- [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
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41202 | 2021-04-28T18:40:14Z | 2021-04-30T20:36:56Z | 2021-04-30T20:36:56Z | 2021-04-30T21:32:35Z |
TYP: io.parsers | diff --git a/pandas/_libs/parsers.pyi b/pandas/_libs/parsers.pyi
index 18ae23e7fb90d..92b970d47467e 100644
--- a/pandas/_libs/parsers.pyi
+++ b/pandas/_libs/parsers.pyi
@@ -31,8 +31,8 @@ class TextReader:
source,
delimiter: bytes | str = ..., # single-character only
header=...,
- head... | - [ ] 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/41201 | 2021-04-28T17:23:42Z | 2021-05-05T13:00:22Z | 2021-05-05T13:00:22Z | 2021-05-05T14:54:58Z |
REF: move DataFrame-specific methods from NDFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8ac94111cca56..4469869a5a929 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10454,6 +10454,107 @@ def _AXIS_NAMES(self) -> dict[int, str]:
boxplot = pandas.plotting.boxplot_frame
sparse = CachedAccessor("sparse", SparseFrameAcces... | which in turn lets us do the same for BlockManager/ArrayManager | https://api.github.com/repos/pandas-dev/pandas/pulls/41200 | 2021-04-28T16:48:42Z | 2021-04-30T16:36:53Z | 2021-04-30T16:36:53Z | 2021-04-30T18:15:41Z |
BUG: Fix export .to_numpy() with nullable type | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index c44e667d84308..c9615a6f8f4ec 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -708,6 +708,7 @@ Conversion
- Bug in :func:`factorize` where, when given an array with a numeric numpy dtype lower than int... | - [x] closes #40630
- [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/41196 | 2021-04-28T14:44:14Z | 2021-05-20T17:03:22Z | null | 2021-05-20T17:03:22Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.