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 |
|---|---|---|---|---|---|---|---|
DOC: 1.3 release notes misc | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cb8df16d6c0fb..ddcce820f5a19 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_130:
-What's new in 1.3.0 (??)
-------------------------
+What's new in 1.3.0 (June ??)
+------... | https://api.github.com/repos/pandas-dev/pandas/pulls/42220 | 2021-06-25T12:16:53Z | 2021-06-25T14:25:27Z | 2021-06-25T14:25:27Z | 2021-06-25T14:55:24Z | |
Backport PR #42218 on branch 1.3.x (DOC: follow-up to #40628) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index c1722718364d3..800d2d736013a 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4983,6 +4983,7 @@ def between(self, left, right, inclusive="both") -> Series:
Right boundary.
inclusive : {"both", "neither", "left", "ri... | Backport PR #42218: DOC: follow-up to #40628 | https://api.github.com/repos/pandas-dev/pandas/pulls/42219 | 2021-06-25T10:32:31Z | 2021-06-25T11:44:15Z | 2021-06-25T11:44:15Z | 2021-06-25T11:44:15Z |
DOC: follow-up to #40628 | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 928a6807a1f9f..472b64705d2c9 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4981,6 +4981,7 @@ def between(self, left, right, inclusive="both") -> Series:
Right boundary.
inclusive : {"both", "neither", "left", "ri... | xref #40628 | https://api.github.com/repos/pandas-dev/pandas/pulls/42218 | 2021-06-25T09:34:43Z | 2021-06-25T10:32:23Z | 2021-06-25T10:32:23Z | 2021-06-25T10:32:28Z |
Backport PR #40628 on branch 1.3.x (ENH: New boundary inputs) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b92e414f2055e..cb8df16d6c0fb 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -276,6 +276,7 @@ Other enhancements
- Add keyword ``dropna`` to :meth:`DataFrame.value_counts` to allow counting rows that ... | Backport PR #40628: ENH: New boundary inputs | https://api.github.com/repos/pandas-dev/pandas/pulls/42217 | 2021-06-25T09:23:40Z | 2021-06-25T10:10:33Z | 2021-06-25T10:10:33Z | 2021-06-25T10:10:33Z |
DOC: GH42204: Change docstring for head and tail in core/generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 30c33a951e145..3722887956685 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5001,8 +5001,8 @@ def head(self: FrameOrSeries, n: int = 5) -> FrameOrSeries:
on position. It is useful for quickly testing if your object
... | - [X] closes #42204
- [X] As test, ran scripts/validate_docstring.py with outputs
Docstring for "pandas.core.generic.NDFrame.head" correct. :)
Docstring for "pandas.core.generic.NDFrame.tail" correct. :)
| https://api.github.com/repos/pandas-dev/pandas/pulls/42216 | 2021-06-25T08:36:55Z | 2021-08-17T02:43:22Z | null | 2021-08-17T02:43:22Z |
DEPR: Series.__setitem__ with Float64Index falling back to positional | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index d10eac2722e15..871e47ea3ce8d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -98,6 +98,8 @@ Deprecations
~~~~~~~~~~~~
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)
- Deprecated ``me... | - [x] closes #33469
- [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/42215 | 2021-06-25T02:51:18Z | 2021-07-04T21:38:47Z | 2021-07-04T21:38:46Z | 2022-10-28T16:11:25Z |
BUG: excelwriter engine_kwargs fix | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 4d6a766ad6cfa..daca671f21c95 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -755,6 +755,16 @@ class ExcelWriter(metaclass=abc.ABCMeta):
>>> with ExcelWriter("path_to_file.xlsx", mode="a", engine="openpyxl") as writer:
... | - [x] closes #29095
- [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 - *I cannot find the linked page*
- [ ] whatsnew entry
The `engine_kwargs` argument was not passed properly an... | https://api.github.com/repos/pandas-dev/pandas/pulls/42214 | 2021-06-24T22:02:01Z | 2021-09-02T00:59:28Z | null | 2021-09-05T20:47:41Z |
DOC: add example to reorder levels | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e85d3850d15e9..012a89e060e04 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6835,6 +6835,52 @@ def reorder_levels(self, order: Sequence[Axis], axis: Axis = 0) -> DataFrame:
Returns
-------
DataFrame
+
+ Ex... | - [ x] closes #42124
- [ ] 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 - Included example for reorder_levels
| https://api.github.com/repos/pandas-dev/pandas/pulls/42213 | 2021-06-24T21:08:08Z | 2021-08-15T15:50:42Z | null | 2021-08-15T16:14:36Z |
Backport PR #42210 on branch 1.3.x (CI: pin more fsspec) | diff --git a/ci/deps/actions-37-slow.yaml b/ci/deps/actions-37-slow.yaml
index 166f2237dcad3..76eb7ba5693e9 100644
--- a/ci/deps/actions-37-slow.yaml
+++ b/ci/deps/actions-37-slow.yaml
@@ -14,7 +14,7 @@ dependencies:
# pandas dependencies
- beautifulsoup4
- - fsspec>=0.7.4
+ - fsspec>=0.7.4, <2021.6.0
- ht... | Backport PR #42210: CI: pin more fsspec | https://api.github.com/repos/pandas-dev/pandas/pulls/42211 | 2021-06-24T17:23:33Z | 2021-06-24T18:12:56Z | 2021-06-24T18:12:55Z | 2021-06-24T18:12:56Z |
CI: pin more fsspec | diff --git a/ci/deps/actions-37-slow.yaml b/ci/deps/actions-37-slow.yaml
index 166f2237dcad3..76eb7ba5693e9 100644
--- a/ci/deps/actions-37-slow.yaml
+++ b/ci/deps/actions-37-slow.yaml
@@ -14,7 +14,7 @@ dependencies:
# pandas dependencies
- beautifulsoup4
- - fsspec>=0.7.4
+ - fsspec>=0.7.4, <2021.6.0
- ht... | Not sure why the new failing azure build picked up the new version later, but looks like under same umbrella as #42026
| https://api.github.com/repos/pandas-dev/pandas/pulls/42210 | 2021-06-24T16:35:25Z | 2021-06-24T17:23:24Z | 2021-06-24T17:23:23Z | 2021-06-24T17:24:00Z |
CLN: follow-up to #42200 | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 471ee295ebd2f..6a13c2c2e5c37 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -341,9 +341,7 @@ def freq(self) -> BaseOffset:
def __array__(self, dtype: NpDtype | None = None) -> np.ndarray:
if dty... | - [ ] 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/42209 | 2021-06-24T14:57:09Z | 2021-06-24T20:22:39Z | null | 2021-06-24T20:24:39Z |
Backport PR #42193 on branch 1.3.x (DOC: Correct docstring for Series.apply) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 43cb26e5ba5fc..24f433db45e60 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4204,7 +4204,7 @@ def apply(
convert_dtype : bool, default True
Try to find better dtype for elementwise function results. If
... | Backport PR #42193: DOC: Correct docstring for Series.apply | https://api.github.com/repos/pandas-dev/pandas/pulls/42208 | 2021-06-24T12:51:56Z | 2021-06-24T14:52:00Z | 2021-06-24T14:52:00Z | 2021-06-24T14:52:00Z |
Backport PR #42192 on branch 1.3.x (DOC: Move Other bugfixes to appropriate sections) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index f532c1b8834d2..b92e414f2055e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -924,6 +924,7 @@ Datetimelike
- Bug in :meth:`Timedelta.round`, :meth:`Timedelta.floor`, :meth:`Timedelta.ceil` for values ... | Backport PR #42192: DOC: Move Other bugfixes to appropriate sections | https://api.github.com/repos/pandas-dev/pandas/pulls/42207 | 2021-06-24T12:51:33Z | 2021-06-24T14:51:49Z | 2021-06-24T14:51:49Z | 2021-06-24T14:51:50Z |
TYP: update to mypy-0.910 | diff --git a/environment.yml b/environment.yml
index 2c06c321fdbc4..956f3e8dbff74 100644
--- a/environment.yml
+++ b/environment.yml
@@ -24,7 +24,7 @@ dependencies:
- flake8-bugbear=21.3.2 # used by flake8, find likely bugs
- flake8-comprehensions=3.1.0 # used by flake8, linting of unnecessary comprehensions
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42206 | 2021-06-24T10:47:02Z | 2021-06-25T00:45:47Z | 2021-06-25T00:45:47Z | 2021-06-25T08:14:32Z | |
Backport PR #42200 on branch 1.3.x (TYP: update for numpy-1.21.0) | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 49e06825617bd..69e2650a15f16 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1076,11 +1076,7 @@ def apply_standard(self) -> FrameOrSeriesUnion:
with np.errstate(all="ignore"):
if isinstance(f, np.ufunc):
- ... | Backport PR #42200: TYP: update for numpy-1.21.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/42205 | 2021-06-24T09:56:16Z | 2021-06-24T11:51:25Z | 2021-06-24T11:51:25Z | 2021-06-24T11:51:26Z |
BUG: UInt64Index construction casting to float64 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index f992d6aa09ead..eded75b1f180b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -142,7 +142,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in :class:`UInt64Index` constructor when passing a list contain... | - [ ] 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/42201 | 2021-06-23T20:22:05Z | 2021-06-25T17:37:19Z | 2021-06-25T17:37:19Z | 2021-06-25T17:39:03Z |
TYP: update for numpy-1.21.0 | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 49e06825617bd..69e2650a15f16 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1076,11 +1076,7 @@ def apply_standard(self) -> FrameOrSeriesUnion:
with np.errstate(all="ignore"):
if isinstance(f, np.ufunc):
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42200 | 2021-06-23T19:14:50Z | 2021-06-24T09:55:49Z | 2021-06-24T09:55:49Z | 2021-09-14T18:52:49Z | |
PERF: IntervalArray.unique, IntervalIndex.intersection | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index f4a6b0b1c1694..a9ca39b89360c 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -11,11 +11,7 @@
Union,
cast,
)
-from warnings import (
- catch_warnings,
- simplefilter,
- warn,
-)
+from warnings import wa... | - [ ] 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
Partially address perf hit discussed in #41929
```
import numpy as np
from pandas imp... | https://api.github.com/repos/pandas-dev/pandas/pulls/42197 | 2021-06-23T03:38:33Z | 2021-06-25T14:32:17Z | 2021-06-25T14:32:17Z | 2021-06-25T16:03:14Z |
CI: Pin numpy | diff --git a/environment.yml b/environment.yml
index 2c06c321fdbc4..903babc3a7b37 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
# required
- - numpy>=1.17.3
+ - numpy<1.21
- python=3.8
- python-dateutil>=2.7.3
- pytz
diff --git a/requirements-... | Ref: https://github.com/pandas-dev/pandas/pull/42192#issuecomment-866471884
Testing mypy fails with numpy 1.21.0, then will confirm mypy passes with < 1.21 | https://api.github.com/repos/pandas-dev/pandas/pulls/42196 | 2021-06-23T02:38:38Z | 2021-06-23T23:07:17Z | null | 2021-06-24T17:11:21Z |
PERF: Try fast/slow paths only once in DataFrameGroupby.transform | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5b09b62fa9e88..495322dada350 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -159,7 +159,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`.Grou... | - [x] closes #41598
- [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
Still need to run ASVs to measure performance, making sure CI passes first.
Edit: ASV results for 7b86fdb
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42195 | 2021-06-23T01:55:14Z | 2021-07-08T16:08:09Z | 2021-07-08T16:08:08Z | 2021-07-08T16:15:02Z |
BUG: nullable integer, floating arrays raising from booleans | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index f992d6aa09ead..c55ee32528e1b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -202,7 +202,7 @@ Sparse
ExtensionArray
^^^^^^^^^^^^^^
--
+- Bug in construction of nullable integer and floating arrays ... | - [x] closes #42137
- [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/42194 | 2021-06-23T01:46:05Z | 2021-06-23T02:32:28Z | null | 2021-06-23T04:26:29Z |
DOC: Correct docstring for Series.apply | diff --git a/pandas/core/series.py b/pandas/core/series.py
index e94689383100d..fd20d992603c7 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4204,7 +4204,7 @@ def apply(
convert_dtype : bool, default True
Try to find better dtype for elementwise function results. If
... | - [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: https://github.com/pandas-dev/pandas/pull/39941#issuecomment-829604511 and the conversation preceding it. While I don't find @MarcoGorelli's suggestion as i... | https://api.github.com/repos/pandas-dev/pandas/pulls/42193 | 2021-06-23T01:30:31Z | 2021-06-24T12:51:48Z | 2021-06-24T12:51:48Z | 2021-06-24T13:09:03Z |
DOC: Move Other bugfixes to appropriate sections | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index f532c1b8834d2..b92e414f2055e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -924,6 +924,7 @@ Datetimelike
- Bug in :meth:`Timedelta.round`, :meth:`Timedelta.floor`, :meth:`Timedelta.ceil` for values ... | - [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/42192 | 2021-06-23T01:11:54Z | 2021-06-24T12:51:22Z | 2021-06-24T12:51:22Z | 2021-06-25T02:50:59Z |
BUG: Styler.hide_columns() does not hide index name row | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 054dd443bd657..020a0f674807d 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -350,6 +350,7 @@ def _translate_header(
self.data.index.names
and com.any_not_none(*se... | - [ ] closes #42101
- [ ] tests not added. Will update this PR with the tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42190 | 2021-06-22T20:36:58Z | 2021-08-03T17:15:14Z | null | 2021-08-03T17:15:14Z |
CLN: simplify Styler copy mechanics and tests | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index c03275b565fd4..00c18ac261bab 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -964,39 +964,60 @@ def _update_ctx(self, attrs: DataFrame) -> None:
self.ctx[(i, j)].extend(css_list)
def _copy(self... | checks an items off #40675
The current mechanics are unstructured and the tests is not future proof (if new attributes are added tests will not pick these up and fail). This PR generalises the construction and future proofs the tests. No user facing cahnge.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42187 | 2021-06-22T09:27:27Z | 2021-06-25T00:48:38Z | 2021-06-25T00:48:38Z | 2021-06-27T21:40:48Z |
STYLE: moving spacing conventions in cython casting to pre-commit | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b9fe5461aff37..e7a26a7905799 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,10 +48,6 @@ jobs:
- name: Build Pandas
uses: ./.github/actions/build_pandas
- - name: Linting
- run: ci/code_checks.sh lin... | - [X] closes #42121
- [ ] 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/42186 | 2021-06-22T08:48:17Z | 2021-08-10T11:02:57Z | 2021-08-10T11:02:56Z | 2021-08-10T13:40:52Z |
CLN: remove redundant _get_unique_index | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b092bd6666fc0..9032439b338bc 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2752,16 +2752,6 @@ def duplicated(self, keep: Literal["first", "last", False] = "first") -> np.ndar
return np.zeros(len(se... | - [ ] 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/42184 | 2021-06-22T02:41:11Z | 2021-06-25T00:50:09Z | 2021-06-25T00:50:09Z | 2021-06-25T00:58:36Z |
Backport PR #42135 on branch 1.3.x (BUG: use hash-function which takes nans correctly into account for ExtensionDtype) | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
index 5a1b98b190dbc..951703e04d5a3 100644
--- a/pandas/_libs/hashtable.pyi
+++ b/pandas/_libs/hashtable.pyi
@@ -228,3 +228,5 @@ def ismember(
arr: np.ndarray,
values: np.ndarray,
) -> np.ndarray: ... # np.ndarray[bool]
+def object_hash(obj... | Backport PR #42135: BUG: use hash-function which takes nans correctly into account for ExtensionDtype | https://api.github.com/repos/pandas-dev/pandas/pulls/42183 | 2021-06-22T00:40:17Z | 2021-06-22T08:43:03Z | 2021-06-22T08:43:03Z | 2021-06-22T08:43:03Z |
Backport PR #42174 on branch 1.3.x (TST/CI: speed up chunksize test) | diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py
index 5b7df02603b74..e78448a2c32d3 100644
--- a/pandas/tests/io/parser/common/test_chunksize.py
+++ b/pandas/tests/io/parser/common/test_chunksize.py
@@ -177,34 +177,22 @@ def test_chunks_have_consistent_numer... | Backport PR #42174: TST/CI: speed up chunksize test | https://api.github.com/repos/pandas-dev/pandas/pulls/42182 | 2021-06-22T00:34:58Z | 2021-06-22T08:42:18Z | 2021-06-22T08:42:18Z | 2021-06-22T08:42:19Z |
TST: Add unmatched warning messages to assert_produces_warning() error | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 5153118e9b142..5f01996d0390d 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -106,6 +106,7 @@ def _assert_caught_expected_warning(
"""Assert that there was the expected warning among the caught warnings."... | - [x] closes #[42103](https://github.com/pandas-dev/pandas/issues/42103)
- [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
I didn't add anything to the whatsnew... | https://api.github.com/repos/pandas-dev/pandas/pulls/42181 | 2021-06-21T20:32:48Z | 2021-07-11T09:19:51Z | 2021-07-11T09:19:51Z | 2021-07-11T09:19:51Z |
added example of pandas.DataFrame.reorder_levels in frame.py #42124 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 00f6213110e76..ce2a332fa39b2 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10744,3 +10744,48 @@ def _reindex_for_setitem(value: FrameOrSeriesUnion, index: Index) -> ArrayLike:
"incompatible index of inserted column with frame... | - [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/42180 | 2021-06-21T20:05:12Z | 2021-07-11T09:18:28Z | null | 2021-07-11T09:18:28Z |
BUG: json_normalize not consistently ignoring errors (#41876) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index acae6e111b7ca..f233509215f99 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -233,6 +233,7 @@ MultiIndex
I/O
^^^
- Bug in :func:`read_excel` attempting to read chart sheets from .xlsx files (:issue:... | - [x] closes #41876
- [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/42179 | 2021-06-21T19:55:23Z | 2021-07-15T04:21:23Z | 2021-07-15T04:21:22Z | 2021-07-15T04:21:32Z |
REF: share DatetimeLikeIndex methods higher up | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 53ab2e45edede..5e4194a0a3aee 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -62,7 +62,6 @@
from pandas.core.indexes.extension import (
NDArrayBackedExtensionIndex,
inher... | - [ ] 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/42178 | 2021-06-21T19:37:11Z | 2021-06-25T01:26:54Z | 2021-06-25T01:26:54Z | 2021-06-25T01:36:22Z |
Backport PR #42132 on branch 1.3.x (CI: skip json tests for Python 3.10 #42130) | diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py
index 0ffc6044a5897..2d418fcbcc395 100644
--- a/pandas/tests/io/json/test_pandas.py
+++ b/pandas/tests/io/json/test_pandas.py
@@ -28,8 +28,6 @@
)
import pandas._testing as tm
-pytestmark = pytest.mark.skipif(PY310, reason="timeou... | Backport PR #42132: CI: skip json tests for Python 3.10 #42130 | https://api.github.com/repos/pandas-dev/pandas/pulls/42176 | 2021-06-21T19:26:10Z | 2021-06-21T21:32:17Z | 2021-06-21T21:32:17Z | 2021-06-21T21:32:18Z |
TST/CI: speed up chunksize test | diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py
index 5b7df02603b74..e78448a2c32d3 100644
--- a/pandas/tests/io/parser/common/test_chunksize.py
+++ b/pandas/tests/io/parser/common/test_chunksize.py
@@ -177,34 +177,22 @@ def test_chunks_have_consistent_numer... | Seeing lots of CI timeouts - this test sometimes takes > 5 min for the python parser, guessing dependent on memory availability.
AFAICT the data size is only so large to test the warning given by the c parser and low memory case, so shrank size for other cases. | https://api.github.com/repos/pandas-dev/pandas/pulls/42174 | 2021-06-21T19:10:30Z | 2021-06-22T00:34:48Z | 2021-06-22T00:34:48Z | 2021-06-22T00:41:43Z |
PERF: Use list comprehension to join strings (#41753) | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 5ff9431fbf8e4..852c1e0d139e5 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -291,7 +291,8 @@ class ReadCSVFloatPrecision(StringIORewind):
def setup(self, sep, decimal, float_precision):
... | PERF: Use list comprehension to join strings (#41753) | https://api.github.com/repos/pandas-dev/pandas/pulls/42173 | 2021-06-21T18:47:06Z | 2021-07-11T20:10:41Z | 2021-07-11T20:10:41Z | 2021-07-11T20:10:41Z |
Backport PR #42166 on branch 1.3.x (REGR: preserve Int32 dtype on setitem) | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index d62dcdba92bc7..d5a5baddfb197 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -42,8 +42,12 @@
isna,
)
+from pandas.core import algorithms as algos
import pandas.core.common as com
-from pandas.core.construction import arr... | Backport PR #42166: REGR: preserve Int32 dtype on setitem | https://api.github.com/repos/pandas-dev/pandas/pulls/42172 | 2021-06-21T18:28:27Z | 2021-06-21T19:24:08Z | 2021-06-21T19:24:07Z | 2021-06-21T19:24:08Z |
TYP: RandomState alias | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 12d23786c3387..a9852dd4b13cf 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -122,6 +122,7 @@
JSONSerializable = Optional[Union[PythonScalar, List, Dict]]
Frequency = Union[str, "DateOffset"]
Axes = Collection[Any]
+RandomState = Union[int, ArrayLike... | closes #38860
Orthogonal to #42168
| https://api.github.com/repos/pandas-dev/pandas/pulls/42171 | 2021-06-21T18:15:09Z | 2021-06-22T00:34:09Z | 2021-06-22T00:34:09Z | 2021-06-22T00:41:35Z |
Backport PR #41780 on branch 1.3.x (DOC: 1.2.5 release date) | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index 5b8b5eb9e651c..d3ceb2b919b5d 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -1,7 +1,7 @@
.. _whatsnew_125:
-What's new in 1.2.5 (May ??, 2021)
-----------------------------------
+What's new in 1.2... | Backport PR #41780: DOC: 1.2.5 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/42170 | 2021-06-21T18:07:37Z | 2021-06-21T19:13:17Z | 2021-06-21T19:13:17Z | 2021-06-21T19:13:17Z |
Backport PR #41780 on branch 1.2.x (DOC: 1.2.5 release date) | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index 5b8b5eb9e651c..d3ceb2b919b5d 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -1,7 +1,7 @@
.. _whatsnew_125:
-What's new in 1.2.5 (May ??, 2021)
-----------------------------------
+What's new in 1.2... | Backport PR #41780: DOC: 1.2.5 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/42169 | 2021-06-21T18:07:12Z | 2021-06-21T19:12:59Z | 2021-06-21T19:12:59Z | 2021-06-21T19:12:59Z |
ENH: add ignore index to DataFrame / Series.sample | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b92e414f2055e..60c9c200407e8 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -277,6 +277,7 @@ Other enhancements
- :meth:`Series.replace` will now cast results to ``PeriodDtype`` where possible instea... | - [x] closes #38581
- [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
Picking up #38594. Left in 1.3 for now since all comments were addressed except small typi... | https://api.github.com/repos/pandas-dev/pandas/pulls/42168 | 2021-06-21T17:55:57Z | 2021-06-25T17:38:24Z | 2021-06-25T17:38:24Z | 2021-06-25T21:06:01Z |
REGR: preserve Int32 dtype on setitem | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 0fd2eedae2da9..f8578d87e4cad 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -42,8 +42,12 @@
isna,
)
+from pandas.core import algorithms as algos
import pandas.core.common as com
-from pandas.core.construction import arr... | - [x] closes #42099
- [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/42166 | 2021-06-21T17:06:45Z | 2021-06-21T18:28:18Z | 2021-06-21T18:28:17Z | 2021-06-21T22:38:52Z |
Backport PR #42087: REGR: undocumented astype("category").astype(str) type inconsistency between pandas 1.1 & 1.2 | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index d0af23b48b1f7..5b8b5eb9e651c 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :func:`read_csv` when using ``memory_map=True`` with an non-UTF8 encoding ... | Backport PR #42087 | https://api.github.com/repos/pandas-dev/pandas/pulls/42165 | 2021-06-21T17:00:27Z | 2021-06-21T18:03:33Z | 2021-06-21T18:03:33Z | 2021-06-21T18:03:39Z |
Backport PR #42085 on branch 1.3.x (BUG: groupby any/all raising with pd.NA object data) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 700a6052ddfcd..f532c1b8834d2 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -269,6 +269,7 @@ Other enhancements
- :meth:`read_csv` and :meth:`read_json` expose the argument ``encoding_errors`` to con... | Backport PR #42085: BUG: groupby any/all raising with pd.NA object data | https://api.github.com/repos/pandas-dev/pandas/pulls/42164 | 2021-06-21T16:59:42Z | 2021-06-21T18:09:59Z | 2021-06-21T18:09:59Z | 2021-06-21T18:09:59Z |
Backport PR #42160 on branch 1.3.x (PERF: Check identity first before comparing the objects) | diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py
index 296101c9f9800..427af9307f2c9 100644
--- a/asv_bench/benchmarks/algos/isin.py
+++ b/asv_bench/benchmarks/algos/isin.py
@@ -325,3 +325,13 @@ def setup(self, dtype, series_type):
def time_isin(self, dtypes, series_type):
... | Backport PR #42160: PERF: Check identity first before comparing the objects | https://api.github.com/repos/pandas-dev/pandas/pulls/42163 | 2021-06-21T16:07:22Z | 2021-06-21T18:09:09Z | 2021-06-21T18:09:09Z | 2021-06-21T18:09:09Z |
REF: implement PeriodDtypeBase.resolution | diff --git a/pandas/_libs/tslibs/dtypes.pyx b/pandas/_libs/tslibs/dtypes.pyx
index 415bdf74db80a..f79ffd2d425c4 100644
--- a/pandas/_libs/tslibs/dtypes.pyx
+++ b/pandas/_libs/tslibs/dtypes.pyx
@@ -27,6 +27,11 @@ cdef class PeriodDtypeBase:
# See also: libperiod.get_freq_group
return (self._dtype_code ... | Looking towards simplifying/sharing more of PeriodIndex.get_loc | https://api.github.com/repos/pandas-dev/pandas/pulls/42162 | 2021-06-21T15:11:06Z | 2021-06-25T01:27:32Z | 2021-06-25T01:27:32Z | 2021-06-25T01:36:00Z |
Backport PR #42110 on branch 1.3.x (DOC-Modified documentation for the issue GH42106) | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index dc66303a44f53..1ab26cf758b77 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1523,8 +1523,8 @@ Looking up values by index/column labels
----------------------------------------
Som... | Backport PR #42110: DOC-Modified documentation for the issue GH42106 | https://api.github.com/repos/pandas-dev/pandas/pulls/42161 | 2021-06-21T14:31:22Z | 2021-06-21T15:51:59Z | 2021-06-21T15:51:59Z | 2021-06-21T15:51:59Z |
PERF: Check identity first before comparing the objects | diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py
index 296101c9f9800..427af9307f2c9 100644
--- a/asv_bench/benchmarks/algos/isin.py
+++ b/asv_bench/benchmarks/algos/isin.py
@@ -325,3 +325,13 @@ def setup(self, dtype, series_type):
def time_isin(self, dtypes, series_type):
... | - [ ] 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
This is a regeression in #41952. Checking the identity first avoids long comparison of e.g. tuples - checking the id first is also h... | https://api.github.com/repos/pandas-dev/pandas/pulls/42160 | 2021-06-21T14:03:26Z | 2021-06-21T16:07:13Z | 2021-06-21T16:07:13Z | 2021-06-21T16:07:29Z |
Backport PR #42131 on branch 1.3.x (REGR: Series.mode with boolean and pd.NA) | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 7dcc83f76db75..f4a6b0b1c1694 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -140,7 +140,11 @@ def _ensure_data(values: ArrayLike) -> tuple[np.ndarray, DtypeObj]:
return np.asarray(values).view("uint8"), valu... | Backport PR #42131: REGR: Series.mode with boolean and pd.NA | https://api.github.com/repos/pandas-dev/pandas/pulls/42159 | 2021-06-21T13:19:52Z | 2021-06-21T15:16:49Z | 2021-06-21T15:16:49Z | 2021-06-21T15:16:49Z |
Backport PR #42138 on branch 1.3.x (REGR: dont warn on unpickle Timestamp) | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index edd3b58867e87..88a2706a35aa2 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -129,6 +129,13 @@ cdef inline object create_timestamp_from_ts(int64_t value,
return ts_base
+def _u... | Backport PR #42138: REGR: dont warn on unpickle Timestamp | https://api.github.com/repos/pandas-dev/pandas/pulls/42158 | 2021-06-21T13:18:45Z | 2021-06-21T15:16:09Z | 2021-06-21T15:16:09Z | 2021-06-21T15:16:10Z |
Backport PR #42087 on branch 1.3.x (REGR: undocumented astype("category").astype(str) type inconsistency between pandas 1.1 & 1.2) | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index d0af23b48b1f7..5b8b5eb9e651c 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :func:`read_csv` when using ``memory_map=True`` with an non-UTF8 encoding ... | Backport PR #42087: REGR: undocumented astype("category").astype(str) type inconsistency between pandas 1.1 & 1.2 | https://api.github.com/repos/pandas-dev/pandas/pulls/42157 | 2021-06-21T13:09:45Z | 2021-06-21T14:31:44Z | 2021-06-21T14:31:44Z | 2021-06-21T14:31:44Z |
Backport PR #41788 on branch 1.3.x (BLD: Adjust Numpy Minimum Versions for aarch64/arm64 compatibility) | diff --git a/pyproject.toml b/pyproject.toml
index 3947856d94d01..86b255ab6bf58 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,9 +5,17 @@ requires = [
"setuptools>=38.6.0",
"wheel",
"Cython>=0.29.21,<3", # Note: sync with setup.py
- "numpy==1.17.3; python_version=='3.7'",
- "numpy==1.18.3;... | Backport PR #41788: BLD: Adjust Numpy Minimum Versions for aarch64/arm64 compatibility | https://api.github.com/repos/pandas-dev/pandas/pulls/42156 | 2021-06-21T13:07:43Z | 2021-06-21T15:15:50Z | 2021-06-21T15:15:50Z | 2021-06-21T15:15:50Z |
Backport PR #40770 on branch 1.3.x (EHN: multi-column explode) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1ddefc94bcbad..022663b5187c3 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -275,6 +275,7 @@ Other enhancements
- Add keyword ``dropna`` to :meth:`DataFrame.value_counts` to allow counting rows that ... | Backport PR #40770: EHN: multi-column explode | https://api.github.com/repos/pandas-dev/pandas/pulls/42155 | 2021-06-21T13:06:34Z | 2021-06-21T14:10:53Z | 2021-06-21T14:10:53Z | 2021-06-21T14:10:53Z |
Backport PR #42115 on branch 1.3.x (REGR: DatetimeIndex.intersection #42104) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1ddefc94bcbad..12a6fc4d52053 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -914,6 +914,7 @@ Datetimelike
- Bug in constructing a :class:`DataFrame` or :class:`Series` with mismatched ``datetime64`` ... | Backport PR #42115: REGR: DatetimeIndex.intersection #42104 | https://api.github.com/repos/pandas-dev/pandas/pulls/42154 | 2021-06-21T13:04:08Z | 2021-06-21T14:11:08Z | 2021-06-21T14:11:08Z | 2021-06-21T14:11:08Z |
Backport PR #41685 on branch 1.3.x (CI: add sdist release workflow) | diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml
new file mode 100644
index 0000000000000..0c2e30a74bbdb
--- /dev/null
+++ b/.github/workflows/sdist.yml
@@ -0,0 +1,64 @@
+name: sdist
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+ - 1.2.x
+ ... | Backport PR #41685: CI: add sdist release workflow | https://api.github.com/repos/pandas-dev/pandas/pulls/42153 | 2021-06-21T13:03:43Z | 2021-06-21T14:02:27Z | 2021-06-21T14:02:27Z | 2021-06-21T14:02:27Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d580fcf4fc545..631a78b877b45 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,11 +9,11 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/python/black
- rev: 21.5b2
+ rev: 21.6b... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/42151 | 2021-06-21T07:14:28Z | 2021-06-22T15:15:06Z | 2021-06-22T15:15:06Z | 2021-06-22T15:15:12Z |
REF: share Datetimelike argmin/min etc with Index | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b092bd6666fc0..da58144fdaa2d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -6058,6 +6058,9 @@ def __inv__(self):
# TODO: __inv__ vs __invert__?
return self._unary_method(lambda x: -x)
+ # ... | - [ ] 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/42150 | 2021-06-20T23:03:40Z | 2021-06-25T01:28:57Z | 2021-06-25T01:28:57Z | 2021-06-25T01:37:00Z |
REF: share _get_string_slice | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 9892671f5c18c..212e40b30848a 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -470,8 +470,7 @@ cdef inline object _parse_dateabbr_string(object date_string, datetime default,
except ValueError:... | - [ ] 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/42149 | 2021-06-20T18:38:50Z | 2021-06-25T01:28:11Z | 2021-06-25T01:28:11Z | 2021-06-25T01:38:13Z |
DOC: share swaplevel docstring between DataFrame and Series (#42120) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ec7de0440f482..e96989d6b91c9 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6740,23 +6740,16 @@ def nsmallest(self, n, columns, keep: str = "first") -> DataFrame:
self, n=n, keep=keep, columns=columns
).nsmallest()
... | - [ ] closes #42120
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] tests added / passed
- [ ] whatsnew entry
This commit
- adds examples to the Series.swaplevel docstring
- reuses the same templat... | https://api.github.com/repos/pandas-dev/pandas/pulls/42148 | 2021-06-20T17:06:22Z | 2021-06-26T18:32:05Z | 2021-06-26T18:32:04Z | 2021-06-26T18:32:05Z |
STYLE: Remove in-line comments in flake8 configuration | diff --git a/setup.cfg b/setup.cfg
index 6ce66a6f2bdbd..d278deac66f43 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -71,28 +71,44 @@ parentdir_prefix = pandas-
[flake8]
max-line-length = 88
ignore =
- E203, # space before : (needed for how black formats slicing)
- W503, # line break before binary operator
- W... | - [x] closes #42141
Hi @MarcoGorelli, how does this look?
Let me know if this needs any changes.
Thanks | https://api.github.com/repos/pandas-dev/pandas/pulls/42146 | 2021-06-20T14:24:22Z | 2021-06-21T14:20:52Z | 2021-06-21T14:20:52Z | 2021-06-21T14:20:56Z |
DOC: Substitute example in DataFrame.to_markdown docstring (#42126) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ec7de0440f482..0061c0a8f231c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2543,8 +2543,7 @@ def to_feather(self, path: FilePathOrBuffer[AnyStr], **kwargs) -> None:
| 0 | elk | dog |
+----+------------+---... | - [ ] closes #42126
- [ ] 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/42144 | 2021-06-20T13:05:41Z | 2021-07-11T09:17:04Z | 2021-07-11T09:17:04Z | 2021-07-11T09:17:05Z |
Can't combine DatetimeIndex MultiIndex with numeric MultiIndex | diff --git a/pandas/tests/reshape/concat/test_index.py b/pandas/tests/reshape/concat/test_index.py
index a4d6a41c7eb50..35cf670398664 100644
--- a/pandas/tests/reshape/concat/test_index.py
+++ b/pandas/tests/reshape/concat/test_index.py
@@ -257,3 +257,52 @@ def test_concat_multiindex_dfs_with_deepcopy(self):
t... | - [ ] closes #23478
- [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/42143 | 2021-06-20T10:27:06Z | 2021-12-19T23:21:49Z | 2021-12-19T23:21:48Z | 2021-12-19T23:21:53Z |
STYLE fixup cython linting | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a83de7309c116..09b56b3541388 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -44,6 +44,7 @@ repos:
- flake8-bugbear==21.3.2
- pandas-dev-flaker==0.2.0
- id: flake8
+ alias: flake8-cython
... | the alias means you can run `pre-commit run flake8-cython --all-files` | https://api.github.com/repos/pandas-dev/pandas/pulls/42142 | 2021-06-20T07:41:39Z | 2021-08-08T23:33:43Z | 2021-08-08T23:33:43Z | 2021-08-09T07:59:48Z |
DEPR: `Styler.render` in favour of `Styler.to_html` | diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py
index 82166a2a95c76..a0067307c3905 100644
--- a/asv_bench/benchmarks/io/style.py
+++ b/asv_bench/benchmarks/io/style.py
@@ -36,11 +36,11 @@ def peakmem_classes_render(self, cols, rows):
def time_format_render(self, cols, rows):
... | This PR deprecates the method `Styler.render()` in favour of `Styler.to_html()`, which has been recently introduced and produces the same result under the default case of no arguments.
Additionally this PR has added a test to a new file `pandas/tests/io/formats/style/test_deprecated.py`, and it has moved some of the... | https://api.github.com/repos/pandas-dev/pandas/pulls/42140 | 2021-06-20T07:05:11Z | 2021-08-17T13:11:53Z | 2021-08-17T13:11:53Z | 2021-08-17T14:12:54Z |
REGR: dont warn on unpickle Timestamp | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index edd3b58867e87..88a2706a35aa2 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -129,6 +129,13 @@ cdef inline object create_timestamp_from_ts(int64_t value,
return ts_base
+def _u... | - [x] closes #41949
- [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/42138 | 2021-06-20T04:01:12Z | 2021-06-21T13:18:36Z | 2021-06-21T13:18:36Z | 2021-06-21T15:00:30Z |
CLN/TEST: clean base set-op tests | diff --git a/pandas/tests/indexes/test_setops.py b/pandas/tests/indexes/test_setops.py
index 087ccbef7b778..20174beacf1d3 100644
--- a/pandas/tests/indexes/test_setops.py
+++ b/pandas/tests/indexes/test_setops.py
@@ -178,7 +178,7 @@ def test_intersection_base(self, index):
return
# GH#10149
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42136 | 2021-06-19T22:54:36Z | 2021-06-21T14:21:51Z | 2021-06-21T14:21:51Z | 2021-06-21T16:35:26Z | |
BUG: use hash-function which takes nans correctly into account for ExtensionDtype | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
index 5a1b98b190dbc..951703e04d5a3 100644
--- a/pandas/_libs/hashtable.pyi
+++ b/pandas/_libs/hashtable.pyi
@@ -228,3 +228,5 @@ def ismember(
arr: np.ndarray,
values: np.ndarray,
) -> np.ndarray: ... # np.ndarray[bool]
+def object_hash(obj... | - [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
`pandas/tests/arrays/sparse/test_dtype.py test_hash_equal` fails on Python3.10 (see #41940). This is due to the fact, that since Py... | https://api.github.com/repos/pandas-dev/pandas/pulls/42135 | 2021-06-19T20:06:16Z | 2021-06-22T00:40:09Z | 2021-06-22T00:40:09Z | 2021-06-22T00:40:26Z |
CLN: TemporalValidator -> DatetimeValidator | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 71e5b8bdafc59..3320c4bafaf31 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1893,23 +1893,23 @@ cdef bint is_bytes_array(ndarray values, bint skipna=False):
@cython.internal
-cdef class TemporalValidator(Validator):
+cdef class Dateti... | - [ ] 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/42134 | 2021-06-19T17:40:20Z | 2021-06-19T18:13:14Z | null | 2021-06-23T18:54:24Z |
CI: skip json tests for Python 3.10 #42130 | diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py
index 0ffc6044a5897..2d418fcbcc395 100644
--- a/pandas/tests/io/json/test_pandas.py
+++ b/pandas/tests/io/json/test_pandas.py
@@ -28,8 +28,6 @@
)
import pandas._testing as tm
-pytestmark = pytest.mark.skipif(PY310, reason="timeou... | xref #42130
| https://api.github.com/repos/pandas-dev/pandas/pulls/42132 | 2021-06-19T17:19:03Z | 2021-06-21T19:26:01Z | 2021-06-21T19:26:01Z | 2021-07-07T02:43:26Z |
REGR: Series.mode with boolean and pd.NA | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 7dcc83f76db75..f4a6b0b1c1694 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -140,7 +140,11 @@ def _ensure_data(values: ArrayLike) -> tuple[np.ndarray, DtypeObj]:
return np.asarray(values).view("uint8"), valu... | - [x] closes #42107
- [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/42131 | 2021-06-19T17:15:32Z | 2021-06-21T13:19:43Z | 2021-06-21T13:19:43Z | 2021-06-21T13:20:00Z |
DOC: added examples to align function's documentation | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5bd845534fc96..4059aa547163f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8517,7 +8517,34 @@ def align(
"""
method = missing.clean_fill_method(method)
-
+ """
+ Examples
+ --------
+ ... | - [ ] closes #42125
- [ ] 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/42129 | 2021-06-19T17:03:57Z | 2021-08-18T12:07:14Z | null | 2021-08-18T12:07:14Z |
Move Check for deprecated messages without sphinx directive to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d580fcf4fc545..ae04c22bc2196 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -102,6 +102,9 @@ repos:
# Incorrect code-block / IPython directives
|\.\.\ code-block\ ::
|\.\.\ ipython\ ::
+
+ ... | - [ ] 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/42128 | 2021-06-19T17:03:35Z | 2021-08-11T08:03:38Z | null | 2021-08-11T08:03:38Z |
BUG: Unignore .c files under _libs/src. (#42116) | diff --git a/.gitignore b/.gitignore
index 2c337be60e94e..b3920fdf97363 100644
--- a/.gitignore
+++ b/.gitignore
@@ -93,10 +93,10 @@ scikits
# Generated Sources #
#####################
!skts.c
-!np_datetime.c
-!np_datetime_strings.c
*.c
*.cpp
+# Unignore source c files
+!pandas/_libs/src/**/*.c
# Unit / Perform... | - [x] closes #42116
Not 100% what tests I could write for this. This works locally. git status shows no untracked files while `rg on_bad_lines` now shows results from `pandas/_libs/src/parser/tokenizer.c` | https://api.github.com/repos/pandas-dev/pandas/pulls/42117 | 2021-06-19T03:54:48Z | 2021-09-02T00:56:33Z | null | 2021-09-02T00:56:33Z |
REGR: DatetimeIndex.intersection #42104 | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1ddefc94bcbad..12a6fc4d52053 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -914,6 +914,7 @@ Datetimelike
- Bug in constructing a :class:`DataFrame` or :class:`Series` with mismatched ``datetime64`` ... | - [x] closes #42104
- [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/42115 | 2021-06-18T23:54:24Z | 2021-06-21T13:03:57Z | 2021-06-21T13:03:57Z | 2021-06-21T14:58:23Z |
CLN: Remove unused FLAKE8_FORMAT from ci/code_checks.sh | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 1844cb863c183..59548ecd3c710 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -38,10 +38,7 @@ function invgrep {
}
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
- FLAKE8_FORMAT="##[error]%(path)s:%(row)s:%(col)s:%(code)s:%(text)s"
INVGREP_PREPEN... | This variable is not used anymore, since flake8 is now run in pre-commit, and not in `ci/code_checks.sh`. | https://api.github.com/repos/pandas-dev/pandas/pulls/42114 | 2021-06-18T22:12:52Z | 2021-06-19T12:47:49Z | 2021-06-19T12:47:49Z | 2021-06-19T12:48:00Z |
DEPR: Index.is_type_compatible | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 9859f12a34621..f992d6aa09ead 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -96,7 +96,7 @@ Other API changes
Deprecations
~~~~~~~~~~~~
--
+- Deprecated :meth:`Index.is_type_compatible` (:issue:`42... | - [ ] 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/42113 | 2021-06-18T21:54:22Z | 2021-06-21T14:26:43Z | 2021-06-21T14:26:43Z | 2021-06-21T15:01:00Z |
Added stride to iloc documentation | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 0fd2eedae2da9..f59c8f1d2a944 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -205,6 +205,13 @@ def iloc(self) -> _iLocIndexer:
1 100 200 300 400
2 1000 2000 3000 4000
+ With `slice` and `str... | Stride examples were added to iloc documentation. | https://api.github.com/repos/pandas-dev/pandas/pulls/42111 | 2021-06-18T20:30:34Z | 2021-07-11T20:18:35Z | null | 2021-07-11T21:44:46Z |
DOC-Modified documentation for the issue GH42106 | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 862aef8ceab34..584dd0f52ae28 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1523,8 +1523,8 @@ Looking up values by index/column labels
----------------------------------------
Som... | - [ ] closes #42106
| https://api.github.com/repos/pandas-dev/pandas/pulls/42110 | 2021-06-18T18:06:48Z | 2021-06-21T14:31:12Z | 2021-06-21T14:31:12Z | 2021-06-21T14:31:30Z |
REF: move MultiIndex._get_indexer casting to _maybe_promote | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b092bd6666fc0..48e72ec984a32 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3402,6 +3402,9 @@ def get_indexer(
if not self._index_as_unique:
raise InvalidIndexError(self._requires_unique_ms... | - [ ] 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/42109 | 2021-06-18T16:56:46Z | 2021-06-25T01:31:15Z | 2021-06-25T01:31:15Z | 2021-06-25T01:37:49Z |
Backport PR #42049 on branch 1.3.x (BUG: hash_pandas_object ignores optional arguments when the input is a DataFrame.) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 454a10eaa3781..1ddefc94bcbad 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1215,6 +1215,7 @@ Other
- Bug in :class:`Series` backed by :class:`DatetimeArray` or :class:`TimedeltaArray` sometimes fai... | Backport PR #42049: BUG: hash_pandas_object ignores optional arguments when the input is a DataFrame. | https://api.github.com/repos/pandas-dev/pandas/pulls/42108 | 2021-06-18T15:44:11Z | 2021-06-18T16:32:51Z | 2021-06-18T16:32:51Z | 2021-06-18T16:32:51Z |
REF: use only inherit_names in CategoricalIndex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index ce5cb0779ee53..cdfa07848488b 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -27,7 +27,6 @@
notna,
)
-from pandas.core import accessor
from pandas.core.arrays.categorical 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/42100 | 2021-06-18T02:55:34Z | 2021-06-25T01:30:18Z | 2021-06-25T01:30:18Z | 2021-06-25T01:35:12Z |
Backport PR #42097 on branch 1.3.x (PERF: lib.generate_slices) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 51a947f79ede2..95e4a58bcb3c8 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -906,12 +906,13 @@ def count_level_2d(ndarray[uint8_t, ndim=2, cast=True] mask,
return counts
+@cython.wraparound(False)
+@cython.boundscheck(False)
def g... | Backport PR #42097: PERF: lib.generate_slices | https://api.github.com/repos/pandas-dev/pandas/pulls/42098 | 2021-06-18T01:49:41Z | 2021-06-18T07:58:24Z | 2021-06-18T07:58:24Z | 2021-06-18T07:58:25Z |
PERF: lib.generate_slices | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 506ad0102e157..71e5b8bdafc59 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -906,12 +906,13 @@ def count_level_2d(ndarray[uint8_t, ndim=2, cast=True] mask,
return counts
+@cython.wraparound(False)
+@cython.boundscheck(False)
def g... | ```
import numpy as np
import pandas._libs.lib as lib
np.random.seed(0)
inds = np.random.randint(0, 100, 1000000)
ngroups = inds.max() + 1
%timeit lib.generate_slices(inds, ngroups)
```
Master:
`1.86 ms ± 44 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)`
This pr:
`859 µs ± 127 µs per loop (... | https://api.github.com/repos/pandas-dev/pandas/pulls/42097 | 2021-06-18T00:16:55Z | 2021-06-18T01:49:32Z | 2021-06-18T01:49:32Z | 2021-06-18T04:49:57Z |
Backport PR #42072 on branch 1.3.x (ENH: `Styler.set_sticky` for maintaining index and column headers in HTML frame) | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 9fc38a53cea4a..c94795aac732c 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -42,6 +42,7 @@ Style application
Styler.set_table_attributes
Styler.set_tooltips
Styler.set_caption
+ Styler.s... | Backport PR #42072: ENH: `Styler.set_sticky` for maintaining index and column headers in HTML frame | https://api.github.com/repos/pandas-dev/pandas/pulls/42096 | 2021-06-17T23:59:49Z | 2021-06-18T01:43:36Z | 2021-06-18T01:43:36Z | 2021-06-18T01:43:36Z |
CLN: use fused type for lib.has_infs | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index 077d2e60cc3a4..d39c5ac5d2967 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -219,8 +219,7 @@ def array_equivalent_object(
left: np.ndarray, # object[:]
right: np.ndarray, # object[:]
) -> bool: ...
-def has_infs_f8(arr: np.ndar... | https://api.github.com/repos/pandas-dev/pandas/pulls/42095 | 2021-06-17T23:53:58Z | 2021-06-25T01:29:41Z | 2021-06-25T01:29:41Z | 2021-06-25T01:45:30Z | |
REF: remove CategoricalIndex._reindex_non_unique | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 54ca83bafcd12..7455e8257dc22 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3772,6 +3772,7 @@ def reindex(
return target, indexer
+ @final
def _reindex_non_unique(
self, target: Ind... | No longer necessary; im pretty sure Index._reindex_non_unique can be further simplified too. | https://api.github.com/repos/pandas-dev/pandas/pulls/42094 | 2021-06-17T23:07:17Z | 2021-06-18T01:48:25Z | 2021-06-18T01:48:25Z | 2021-06-18T02:04:57Z |
Backport PR #42089 on branch 1.3.x (BUG: RecursionError with CategoricalIndex.get_indexer) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 12155e6d17500..ed11dd044fa39 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3410,7 +3410,9 @@ def get_indexer(
if is_categorical_dtype(target.dtype):
# potential fastpath
# get... | Backport PR #42089: BUG: RecursionError with CategoricalIndex.get_indexer | https://api.github.com/repos/pandas-dev/pandas/pulls/42093 | 2021-06-17T21:34:42Z | 2021-06-17T23:59:16Z | 2021-06-17T23:59:16Z | 2021-06-17T23:59:17Z |
REGR: Subclassing `Styler` and addressing `from_custom_template` | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index c94795aac732c..7b790daea37ff 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -24,6 +24,8 @@ Styler properties
Styler.env
Styler.template_html
+ Styler.template_html_style
+ Styler.templat... | - [x] closes #42053
More info there - note that this makes the broken functionality re-available but is not backwards compatible due to inherited jinja2 templates.
The documentation is updated for the correct application.

| https://api.github.com/repos/pandas-dev/pandas/pulls/42090 | 2021-06-17T20:46:07Z | 2023-02-22T15:54:48Z | null | 2023-02-22T15:54:49Z |
BUG: RecursionError with CategoricalIndex.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 7e3b72e8beacb..bd44ef9362fa0 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3410,7 +3410,9 @@ def get_indexer(
if is_categorical_dtype(target.dtype):
# potential fastpath
# get... | - [x] closes #42088
- [ ] 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/42089 | 2021-06-17T20:38:12Z | 2021-06-17T21:34:32Z | 2021-06-17T21:34:32Z | 2021-06-26T08:47:20Z |
REGR: undocumented astype("category").astype(str) type inconsistency between pandas 1.1 & 1.2 | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index d0af23b48b1f7..5b8b5eb9e651c 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :func:`read_csv` when using ``memory_map=True`` with an non-UTF8 encoding ... | - [ ] closes #41797
- [ ] 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/42087 | 2021-06-17T19:21:57Z | 2021-06-21T13:08:37Z | 2021-06-21T13:08:37Z | 2021-06-21T17:01:22Z |
Backport PR #41988 on branch 1.3.x (BUG: nan-objects lookup fails with Python3.10) | diff --git a/pandas/_libs/src/klib/khash_python.h b/pandas/_libs/src/klib/khash_python.h
index 87c6283c19a2f..c8e1ca5ebb4d3 100644
--- a/pandas/_libs/src/klib/khash_python.h
+++ b/pandas/_libs/src/klib/khash_python.h
@@ -251,12 +251,105 @@ int PANDAS_INLINE pyobject_cmp(PyObject* a, PyObject* b) {
}
-khint32_t PAN... | Backport PR #41988: BUG: nan-objects lookup fails with Python3.10 | https://api.github.com/repos/pandas-dev/pandas/pulls/42086 | 2021-06-17T19:05:46Z | 2021-06-17T19:49:18Z | 2021-06-17T19:49:18Z | 2021-06-17T19:49:18Z |
BUG: groupby any/all raising with pd.NA object data | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 8d9e1e9958d23..3774ed2f32c13 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -268,6 +268,7 @@ Other enhancements
- :meth:`read_csv` and :meth:`read_json` expose the argument ``encoding_errors`` to con... | - [x] closes #37501
- [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/42085 | 2021-06-17T18:29:40Z | 2021-06-21T16:59:23Z | 2021-06-21T16:59:23Z | 2021-06-21T17:27:51Z |
PERF/CLN: to_csv | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 166ea2f0d4164..02544ad1cc82b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -105,7 +105,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
--
+- Performance improvement in :meth:`... | - [ ] xref #41468
- [ ] 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
More of a cleanup than a performance improvement. Perf only seems to improve for multiindexe... | https://api.github.com/repos/pandas-dev/pandas/pulls/42084 | 2021-06-17T18:05:55Z | 2021-09-08T02:08:49Z | null | 2021-09-08T02:08:49Z |
Backport PR #41497 on branch 1.3.x (BUG: columns name retention in groupby methods) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6c2fef3808566..6ddf2c43119d3 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1140,6 +1140,8 @@ Groupby/resample/rolling
- Bug in :class:`DataFrameGroupBy` aggregations incorrectly failing to drop col... | Backport PR #41497: BUG: columns name retention in groupby methods | https://api.github.com/repos/pandas-dev/pandas/pulls/42083 | 2021-06-17T17:53:53Z | 2021-06-17T19:24:46Z | 2021-06-17T19:24:46Z | 2021-06-17T19:24:46Z |
Backport PR #41934 on branch 1.3.x (BUG: IntervalIndex.get_indexer with categorical both have nans) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6c2fef3808566..19b43b2a7ece8 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -986,6 +986,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`Index.union` and :meth:`MultiIndex.union` dropping duplicate ``Index`` ... | Backport PR #41934: BUG: IntervalIndex.get_indexer with categorical both have nans | https://api.github.com/repos/pandas-dev/pandas/pulls/42082 | 2021-06-17T17:52:26Z | 2021-06-17T19:06:43Z | 2021-06-17T19:06:43Z | 2021-06-17T19:06:43Z |
Backport PR #41915 on branch 1.3.x (BUG: MultiIndex.difference incorrectly raising TypeError when indexes contain non-sortable entries) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6c2fef3808566..fa8d45d68fdbc 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1041,6 +1041,7 @@ MultiIndex
- Bug in :meth:`MultiIndex.intersection` duplicating ``NaN`` in the result (:issue:`38623`)
... | Backport PR #41915: BUG: MultiIndex.difference incorrectly raising TypeError when indexes contain non-sortable entries | https://api.github.com/repos/pandas-dev/pandas/pulls/42081 | 2021-06-17T17:51:45Z | 2021-06-17T18:47:25Z | 2021-06-17T18:47:25Z | 2021-06-17T18:47:26Z |
Backport PR #42077 on branch 1.3.x (DOC: add links to style.rst for `Styler.hide_columns` and `Styler.hide_index`) | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index ae3647185f93d..9fc38a53cea4a 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -35,6 +35,8 @@ Style application
Styler.apply
Styler.applymap
Styler.format
+ Styler.hide_index
+ Styler.hid... | Backport PR #42077: DOC: add links to style.rst for `Styler.hide_columns` and `Styler.hide_index` | https://api.github.com/repos/pandas-dev/pandas/pulls/42080 | 2021-06-17T17:49:08Z | 2021-06-17T18:41:49Z | 2021-06-17T18:41:49Z | 2021-06-17T18:41:50Z |
Backport PR #41821 on branch 1.3.x (BUG: wrong exception when slicing on TimedeltaIndex) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6c2fef3808566..f20e8f25535cd 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1025,6 +1025,7 @@ Indexing
- Bug in :meth:`PeriodIndex.get_loc` failing to raise a ``KeyError`` when given a :class:`Perio... | Backport PR #41821: BUG: wrong exception when slicing on TimedeltaIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/42079 | 2021-06-17T17:48:23Z | 2021-06-17T18:57:33Z | 2021-06-17T18:57:33Z | 2021-06-17T18:57:33Z |
DOC: add links to style.rst for `Styler.hide_columns` and `Styler.hide_index` | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index ae3647185f93d..9fc38a53cea4a 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -35,6 +35,8 @@ Style application
Styler.apply
Styler.applymap
Styler.format
+ Styler.hide_index
+ Styler.hid... | should be backported 1.3.0
| https://api.github.com/repos/pandas-dev/pandas/pulls/42077 | 2021-06-17T14:41:53Z | 2021-06-17T17:48:59Z | 2021-06-17T17:48:59Z | 2021-06-18T05:13:57Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.