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 |
|---|---|---|---|---|---|---|---|
Backport PR #42057 on branch 1.3.x (PERF: contiguity, less gil in join algos) | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 11679fc432edc..96605fd2009fb 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -9,31 +9,6 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
# -------... | Backport PR #42057: PERF: contiguity, less gil in join algos | https://api.github.com/repos/pandas-dev/pandas/pulls/42075 | 2021-06-17T13:26:32Z | 2021-06-17T14:56:35Z | 2021-06-17T14:56:35Z | 2021-06-17T14:56:35Z |
Backport PR #41897 on branch 1.3.x (BUG: to_hdf append string column to incompatible column) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 7159f422e3fd6..6c2fef3808566 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1080,6 +1080,7 @@ I/O
- Bug in the conversion from PyArrow to pandas (e.g. for reading Parquet) with nullable dtypes and a... | Backport PR #41897: BUG: to_hdf append string column to incompatible column | https://api.github.com/repos/pandas-dev/pandas/pulls/42074 | 2021-06-17T13:16:14Z | 2021-06-17T14:56:57Z | 2021-06-17T14:56:57Z | 2021-06-17T14:56:57Z |
CI: pin psycopg2 in Linux_py37_cov on 1.2.x | diff --git a/ci/deps/actions-37-cov.yaml b/ci/deps/actions-37-cov.yaml
index fd4c05802ccd3..5d9ba70e37307 100644
--- a/ci/deps/actions-37-cov.yaml
+++ b/ci/deps/actions-37-cov.yaml
@@ -30,7 +30,7 @@ dependencies:
- openpyxl
- pandas-gbq
- google-cloud-bigquery>=1.27.2 # GH 36436
- - psycopg2
+ - psycopg2=2.8... | https://api.github.com/repos/pandas-dev/pandas/pulls/42073 | 2021-06-17T13:15:24Z | 2021-06-17T14:03:28Z | 2021-06-17T14:03:28Z | 2021-06-17T14:03:32Z | |
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 ae3647185f93d..aad56aa0c37e8 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -40,6 +40,7 @@ Style application
Styler.set_table_attributes
Styler.set_tooltips
Styler.set_caption
+ Styler.s... | - [x] closes #29072
This allows you to quickly make the index and/or column headers stick in place when scrolling in HTML.
Additional args allow the control of subselecting specific multiindex levels and controlling the width /or height of the sticking elements.
https://user-images.githubusercontent.com/24256554... | https://api.github.com/repos/pandas-dev/pandas/pulls/42072 | 2021-06-17T12:32:05Z | 2021-06-17T23:59:40Z | 2021-06-17T23:59:40Z | 2021-06-18T05:09:13Z |
Backport PR #41987: TST: Un-xfail tests on numpy-dev | diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py
index 0b710d7ebf7d7..e83882be9c680 100644
--- a/pandas/tests/frame/methods/test_to_records.py
+++ b/pandas/tests/frame/methods/test_to_records.py
@@ -3,8 +3,6 @@
import numpy as np
import pytest
-from pandas.c... | Backport PR #41987 | https://api.github.com/repos/pandas-dev/pandas/pulls/42069 | 2021-06-17T11:35:29Z | 2021-06-17T13:13:22Z | 2021-06-17T13:13:22Z | 2021-06-17T13:13:27Z |
BUG: pd.to_datetime(infer_datetime_format=True) drops timezone | diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py
index 4cbaa184791b8..769889dfbe75d 100644
--- a/asv_bench/benchmarks/inference.py
+++ b/asv_bench/benchmarks/inference.py
@@ -173,6 +173,7 @@ def setup(self):
self.strings_tz_space = [
x.strftime("%Y-%m-%d %H:%M:%S"... | - [x] closes #41047
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
In this PR, I try to fix issue #41047.
I would appreciate it if you could review this PR.... | https://api.github.com/repos/pandas-dev/pandas/pulls/42068 | 2021-06-17T11:07:52Z | 2021-09-14T12:35:18Z | 2021-09-14T12:35:17Z | 2021-09-14T12:35:25Z |
Backport PR #42023: CI: pin fsspec | diff --git a/ci/deps/actions-37-cov.yaml b/ci/deps/actions-37-cov.yaml
index 6bdbfa769f772..fd4c05802ccd3 100644
--- a/ci/deps/actions-37-cov.yaml
+++ b/ci/deps/actions-37-cov.yaml
@@ -16,7 +16,7 @@ dependencies:
- botocore>=1.11
- dask
- fastparquet>=0.4.0, <=0.5.0
- - fsspec>=0.7.4
+ - fsspec>=0.7.4, <2021... | Backport PR #42023 | https://api.github.com/repos/pandas-dev/pandas/pulls/42067 | 2021-06-17T10:37:20Z | 2021-06-17T11:29:51Z | 2021-06-17T11:29:51Z | 2021-06-17T11:29:55Z |
test ci on 1.2.x | checking to see if any ci backports on 1.3.x also need to be backported to 1.2.x | https://api.github.com/repos/pandas-dev/pandas/pulls/42065 | 2021-06-17T08:46:12Z | 2021-06-17T10:45:46Z | null | 2021-06-17T10:45:46Z | |
BUG: avoid unnecessary casting in CategoricalIndex.reindex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 6500a9c8eef61..760b69c4e88a5 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -399,9 +399,9 @@ def reindex(
indexer = None
missing = np.array([], dtype=np.intp)
el... | Doesn't appear to be anything user-facing. The only unequivocally wrong bit is on L420 where the current condition is always truthy. | https://api.github.com/repos/pandas-dev/pandas/pulls/42063 | 2021-06-17T01:10:38Z | 2021-07-12T01:34:38Z | 2021-07-12T01:34:38Z | 2021-07-12T02:12:31Z |
Backport PR #41875 on branch 1.3.x (BUG: unstack with object dtype of tzaware timestamps) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cadc5615cd654..7159f422e3fd6 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1161,6 +1161,7 @@ Reshaping
- Bug in :func:`to_datetime` raising an error when the input sequence contained unhashable ite... | Backport PR #41875: BUG: unstack with object dtype of tzaware timestamps | https://api.github.com/repos/pandas-dev/pandas/pulls/42062 | 2021-06-17T00:31:29Z | 2021-06-17T10:48:16Z | 2021-06-17T10:48:16Z | 2021-06-17T10:48:17Z |
Allow passing custom sentinel into MultiIndex.format | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 4dff63ea22e00..e398176398426 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1318,8 +1318,9 @@ def format(
na_rep: str | None = None,
names: bool = False,
space: int = 2,
- s... | Commit b0468aa45f3 seems to have unintentionally removed functionality
to pass custom sentinel values for sparsifying in MultiIndex.format().
Previously, any "Truthy" value other than 1 and True was used as the
sentinel, which is useful particularly with adjoin=False. The current
logic does not make sense: it check... | https://api.github.com/repos/pandas-dev/pandas/pulls/42061 | 2021-06-16T23:13:37Z | 2021-10-04T00:23:24Z | null | 2021-10-04T00:23:25Z |
Backport PR #41844 on branch 1.3.x (DOC: Add .to_xyz to io docs) | diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst
index 442631de50c7a..82d4ec4950ef1 100644
--- a/doc/source/reference/io.rst
+++ b/doc/source/reference/io.rst
@@ -13,6 +13,7 @@ Pickling
:toctree: api/
read_pickle
+ DataFrame.to_pickle
Flat file
~~~~~~~~~
@@ -21,6 +22,7 @@ Flat file... | Backport PR #41844: DOC: Add .to_xyz to io docs | https://api.github.com/repos/pandas-dev/pandas/pulls/42060 | 2021-06-16T23:07:53Z | 2021-06-17T00:30:49Z | 2021-06-17T00:30:49Z | 2021-06-17T00:30:49Z |
Backport PR #42052 on branch 1.3.x (DOC: update styler user guide for ref to hiding cols and index and link to to_LaTeX) | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 7d8d8e90dfbda..677e4b10b846b 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -152,7 +152,7 @@
"\n",
"Before adding styles it is useful to show that the [Styler][styler] can distin... | Backport PR #42052: DOC: update styler user guide for ref to hiding cols and index and link to to_LaTeX | https://api.github.com/repos/pandas-dev/pandas/pulls/42059 | 2021-06-16T22:16:11Z | 2021-06-16T23:06:24Z | 2021-06-16T23:06:24Z | 2021-06-16T23:06:24Z |
Backport PR #41952 on branch 1.3.x (BUG: take nans correctly into consideration in complex and tuple) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1a5a9980e5e96..cadc5615cd654 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1033,6 +1033,7 @@ Missing
- Bug in :meth:`DataFrame.fillna` not accepting a dictionary for the ``downcast`` keyword (:issu... | Backport PR #41952: BUG: take nans correctly into consideration in complex and tuple | https://api.github.com/repos/pandas-dev/pandas/pulls/42058 | 2021-06-16T22:15:46Z | 2021-06-16T23:06:33Z | 2021-06-16T23:06:33Z | 2021-06-16T23:06:33Z |
PERF: contiguity, less gil in join algos | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 11679fc432edc..96605fd2009fb 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -9,31 +9,6 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
# -------... | Broken off a branch working towards #13745
This doesn't have noticeable user-facing impact on its own since this is a smaller part of the merge operation. Some timings:
```
import numpy as np
import pandas._libs.join as libjoin
np.random.seed(0)
arr1 = np.random.randint(0, 100, 100000)
arr2 = np.random.randi... | https://api.github.com/repos/pandas-dev/pandas/pulls/42057 | 2021-06-16T21:42:31Z | 2021-06-17T13:26:23Z | 2021-06-17T13:26:23Z | 2021-06-17T17:07:44Z |
DOC: update styler user guide for ref to hiding cols and index and link to to_LaTeX | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 7d8d8e90dfbda..677e4b10b846b 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -152,7 +152,7 @@
"\n",
"Before adding styles it is useful to show that the [Styler][styler] can distin... | should be backported to 1.3.0 as it references the features add there.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42052 | 2021-06-16T11:12:37Z | 2021-06-16T22:16:02Z | 2021-06-16T22:16:02Z | 2021-06-17T06:22:02Z |
Backport PR #42046 on branch 1.3.x (BUG: Don't supply name to Series when using 'size' with agg/apply) | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 388c1881afed7..9e787555f2b1f 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -842,7 +842,7 @@ def apply_str(self) -> FrameOrSeriesUnion:
# Special-cased because DataFrame.size returns a single scalar
obj = self.obj
... | Backport PR #42046: BUG: Don't supply name to Series when using 'size' with agg/apply | https://api.github.com/repos/pandas-dev/pandas/pulls/42051 | 2021-06-16T11:09:17Z | 2021-06-16T12:33:54Z | 2021-06-16T12:33:54Z | 2021-06-16T12:33:54Z |
Backport PR #42048 on branch 1.3.x (CI/TST: fix typo in #41982) | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index de75f1dffde56..9747167296be7 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -536,7 +536,7 @@ def test_constructor(self, dtype):
tm.asse... | Backport PR #42048: CI/TST: fix typo in #41982 | https://api.github.com/repos/pandas-dev/pandas/pulls/42050 | 2021-06-16T08:14:08Z | 2021-06-16T09:25:25Z | 2021-06-16T09:25:25Z | 2021-06-16T09:25:25Z |
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 438313f3e58e2..7269a184358b7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1205,6 +1205,7 @@ Other
- Bug in :class:`Series` backed by :class:`DatetimeArray` or :class:`TimedeltaArray` sometimes fai... | - [x] closes #41404
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
In this PR, I will try to solve issue #41404.
I would appreciate it if you could review t... | https://api.github.com/repos/pandas-dev/pandas/pulls/42049 | 2021-06-16T04:36:31Z | 2021-06-18T15:43:42Z | 2021-06-18T15:43:41Z | 2021-06-18T15:44:18Z |
CI/TST: fix typo in #41982 | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index de75f1dffde56..9747167296be7 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -536,7 +536,7 @@ def test_constructor(self, dtype):
tm.asse... | fix a typo in #41982, which is causing CI failure. | https://api.github.com/repos/pandas-dev/pandas/pulls/42048 | 2021-06-16T04:10:32Z | 2021-06-16T08:13:43Z | 2021-06-16T08:13:43Z | 2021-06-18T02:21:01Z |
Backport PR #38587 on branch 1.3.x (ENH: Raise ParserWarning when length of names does not match length of data) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..1b5f9dd41eaeb 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -246,6 +246,7 @@ Other enhancements
- Improved error message when ``usecols`` and ``names`` do not match for :func:`read_cs... | Backport PR #38587: ENH: Raise ParserWarning when length of names does not match length of data | https://api.github.com/repos/pandas-dev/pandas/pulls/42047 | 2021-06-16T02:14:33Z | 2021-06-16T08:03:28Z | 2021-06-16T08:03:28Z | 2021-06-16T08:03:29Z |
BUG: Don't supply name to Series when using 'size' with agg/apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 00b49c2f4f951..9ec0f7dca3b84 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -842,7 +842,7 @@ def apply_str(self) -> FrameOrSeriesUnion:
# Special-cased because DataFrame.size returns a single scalar
obj = self.obj
... | - [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/39935#discussion_r651989373
Doing e.g.
print(DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}).apply('sum'))
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42046 | 2021-06-16T02:12:25Z | 2021-06-16T11:09:06Z | 2021-06-16T11:09:06Z | 2021-06-16T11:40:22Z |
Backport PR #42030 on branch 1.3.x (Regression raising Error when having dup cols with single dtype for read csv) | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 7d7074988e5f0..e5e61e409c320 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -108,6 +108,7 @@ from pandas.core.dtypes.common import (
is_object_dtype,
)
from pandas.core.dtypes.dtypes import CategoricalDtype
+from pand... | Backport PR #42030: Regression raising Error when having dup cols with single dtype for read csv | https://api.github.com/repos/pandas-dev/pandas/pulls/42045 | 2021-06-16T01:46:13Z | 2021-06-16T08:02:39Z | 2021-06-16T08:02:39Z | 2021-06-16T08:02:39Z |
TYP: Type hints & assert statements | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a9852dd4b13cf..21ea5ce5e4a83 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -21,6 +21,7 @@
Dict,
Hashable,
List,
+ Literal,
Mapping,
Optional,
Sequence,
@@ -37,7 +38,6 @@
# https://mypy.readthedocs.io/en/latest/common_... | This PR addresses two concerns of best practices:
- use of assert statements outside of test contexts; addressed by replacing with explicit value checks and exception raising
- improved type hinting; several instances where this was previously missing or incorrect, notably `DataFrame.merge` for which the correct us... | https://api.github.com/repos/pandas-dev/pandas/pulls/42044 | 2021-06-16T00:53:34Z | 2021-09-02T00:55:41Z | null | 2021-09-02T00:55:41Z |
BUG: MultiIndex.reindex with level and EA dtype | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 166ea2f0d4164..9859f12a34621 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -167,7 +167,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Bug in :meth:`MultiIndex.reindex` when passing a ``level`` that cor... | - [ ] 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
- [ ] whatsnew entry
Preliminary to a pretty nice de-duplication. | https://api.github.com/repos/pandas-dev/pandas/pulls/42043 | 2021-06-16T00:50:09Z | 2021-06-17T17:47:22Z | 2021-06-17T17:47:22Z | 2021-06-17T18:52:38Z |
REF: de-duplicate CategoricalIndex._get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 4de95079f6480..69d53b04cf9f6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5167,6 +5167,7 @@ def set_value(self, arr, key, value):
def get_indexer_non_unique(self, target) -> tuple[np.ndarray, np.ndarray]:... | https://api.github.com/repos/pandas-dev/pandas/pulls/42042 | 2021-06-16T00:45:10Z | 2021-06-16T13:09:51Z | 2021-06-16T13:09:51Z | 2021-06-16T14:10:41Z | |
Backport PR #41266 on branch 1.3.x (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 c5aba539bd2dd..e4f0825d24828 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... | Backport PR #41266: API: make `hide_columns` and `hide_index` have a consistent signature and function in `Styler` | https://api.github.com/repos/pandas-dev/pandas/pulls/42041 | 2021-06-16T00:23:01Z | 2021-06-16T08:00:55Z | 2021-06-16T08:00:55Z | 2021-06-16T08:00:55Z |
Backport PR #40731 on branch 1.3.x (ENH: `Styler.to_latex` conversion from CSS) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..e20342976aad7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -136,7 +136,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404
- Many features of the :... | Backport PR #40731: ENH: `Styler.to_latex` conversion from CSS | https://api.github.com/repos/pandas-dev/pandas/pulls/42040 | 2021-06-16T00:20:19Z | 2021-06-16T08:00:26Z | 2021-06-16T08:00:26Z | 2021-06-16T08:00:26Z |
Backport PR #41933 on branch 1.3.x (BUG: CategoricalIndex.get_loc(np.nan)) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..2129025b2c071 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1014,6 +1014,7 @@ Indexing
- Bug in :meth:`DataFrame.loc.__setitem__` when setting-with-expansion incorrectly raising when... | Backport PR #41933: BUG: CategoricalIndex.get_loc(np.nan) | https://api.github.com/repos/pandas-dev/pandas/pulls/42039 | 2021-06-16T00:11:44Z | 2021-06-16T08:00:04Z | 2021-06-16T08:00:03Z | 2021-06-16T08:00:04Z |
Backport PR #41846 on branch 1.3.x (BUG: DataFrame.at with CategoricalIndex) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..a202c6fe56642 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1015,6 +1015,7 @@ Indexing
- Bug in :meth:`DataFrame.loc.__getitem__` with :class:`MultiIndex` casting to float when at le... | Backport PR #41846: BUG: DataFrame.at with CategoricalIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/42038 | 2021-06-16T00:03:38Z | 2021-06-16T07:59:40Z | 2021-06-16T07:59:40Z | 2021-06-16T07:59:41Z |
Backport PR #42006 on branch 1.3.x (DEP: move pkg_resources back inline in function (delayed import)) | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 00d87b707580d..302d5ede0ae86 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -7,8 +7,6 @@
Sequence,
)
-import pkg_resources
-
from pandas._config import get_option
from pandas._typing import IndexLabel
@@ -1745,6 ... | Backport PR #42006: DEP: move pkg_resources back inline in function (delayed import) | https://api.github.com/repos/pandas-dev/pandas/pulls/42037 | 2021-06-15T23:53:02Z | 2021-06-16T07:59:17Z | 2021-06-16T07:59:17Z | 2021-06-16T07:59:18Z |
Backport PR #41974 on branch 1.3.x (BUG: UInt64Index.where with int64 value) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..37f560807f1ca 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -948,6 +948,8 @@ Numeric
- Bug in :meth:`Series.count` would result in an ``int32`` result on 32-bit platforms when argumen... | Backport PR #41974: BUG: UInt64Index.where with int64 value | https://api.github.com/repos/pandas-dev/pandas/pulls/42036 | 2021-06-15T23:49:11Z | 2021-06-16T07:58:51Z | 2021-06-16T07:58:51Z | 2021-06-16T07:58:51Z |
Backport PR #41964 on branch 1.3.x (Bug in melt raising Error with dup columns as value vars) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 414794dd6a56e..d71a6197a02cd 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1155,6 +1155,7 @@ Reshaping
- Bug in :func:`to_datetime` raising an error when the input sequence contained unhashable ite... | Backport PR #41964: Bug in melt raising Error with dup columns as value vars | https://api.github.com/repos/pandas-dev/pandas/pulls/42035 | 2021-06-15T23:34:33Z | 2021-06-16T07:58:18Z | 2021-06-16T07:58:18Z | 2021-06-16T07:58:19Z |
Backport PR #41982 on branch 1.3.x (TST: fix xpass for M1 Mac) | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index 9572aeaf41c91..de75f1dffde56 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -2,6 +2,10 @@
import pytest
from pandas._libs.tslibs import Time... | Backport PR #41982: TST: fix xpass for M1 Mac | https://api.github.com/repos/pandas-dev/pandas/pulls/42034 | 2021-06-15T23:33:32Z | 2021-06-16T01:44:38Z | 2021-06-16T01:44:38Z | 2021-06-16T08:10:59Z |
Backport PR #42017 on branch 1.3.x (DOC: Fix wrongly associated docstring of Series.str.isspace) | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 323cb6bd9fedd..d3cdcec9da8f1 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -3005,7 +3005,7 @@ def casefold(self):
"isdigit", docstring=_shared_docs["ismethods"] % _doc_args["isdigit"]
... | Backport PR #42017: DOC: Fix wrongly associated docstring of Series.str.isspace | https://api.github.com/repos/pandas-dev/pandas/pulls/42033 | 2021-06-15T22:40:39Z | 2021-06-16T01:45:52Z | 2021-06-16T01:45:52Z | 2021-06-16T01:45:52Z |
Backport PR #42023 on branch 1.3.x (CI: pin fsspec) | diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml
index e568f8615a8df..a9e4113bf9d18 100644
--- a/ci/deps/actions-37-db.yaml
+++ b/ci/deps/actions-37-db.yaml
@@ -16,7 +16,7 @@ dependencies:
- botocore>=1.11
- dask
- fastparquet>=0.4.0
- - fsspec>=0.7.4
+ - fsspec>=0.7.4, <2021.6.0
- gcs... | Backport PR #42023: CI: pin fsspec | https://api.github.com/repos/pandas-dev/pandas/pulls/42032 | 2021-06-15T22:27:56Z | 2021-06-15T23:32:37Z | 2021-06-15T23:32:37Z | 2021-06-15T23:32:43Z |
PERF: groupsort_indexer contiguity | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 172f2bfb49160..adfe4de1263ed 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -217,8 +217,8 @@ def groupsort_indexer(const intp_t[:] index, Py_ssize_t ngroups):
This is a reverse of the label factorization process.
"""
... | Some low-hanging fruit
```
In [1]: import numpy as np
...: import pandas._libs.algos as libalgos
...:
...: np.random.seed(0)
...: inds = np.random.randint(0, 100, 500000)
...: ngroups = inds.max() + 1
In [2]: %timeit libalgos.groupsort_indexer(inds, ngroups)
```
`1.06 ms ± 11.3 µs per loop (m... | https://api.github.com/repos/pandas-dev/pandas/pulls/42031 | 2021-06-15T21:50:27Z | 2021-07-28T01:31:16Z | 2021-07-28T01:31:16Z | 2021-07-28T01:54:30Z |
Regression raising Error when having dup cols with single dtype for read csv | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 7d7074988e5f0..e5e61e409c320 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -108,6 +108,7 @@ from pandas.core.dtypes.common import (
is_object_dtype,
)
from pandas.core.dtypes.dtypes import CategoricalDtype
+from pand... | - [x] closes #42022
- [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 | https://api.github.com/repos/pandas-dev/pandas/pulls/42030 | 2021-06-15T21:26:44Z | 2021-06-16T01:46:05Z | 2021-06-16T01:46:04Z | 2021-06-16T08:45:50Z |
Backport PR #41972 on branch 1.3.x (PERF: indexing on UInt64Index with int64s) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index eaba30012a5b8..96ddf9ce76f53 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5303,6 +5303,13 @@ def _maybe_promote(self, other: Index) -> tuple[Index, Index]:
if not is_object_dtype(self.dtype):
... | Backport PR #41972: PERF: indexing on UInt64Index with int64s | https://api.github.com/repos/pandas-dev/pandas/pulls/42029 | 2021-06-15T21:06:06Z | 2021-06-15T22:26:50Z | 2021-06-15T22:26:50Z | 2021-06-15T22:26:50Z |
Backport PR #41958 on branch 1.3.x (REGR: Series[dt64/td64].astype(string)) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 37e83ddb0ffed..51a947f79ede2 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -716,6 +716,14 @@ cpdef ndarray[object] ensure_string_array(
Py_ssize_t i = 0, n = len(arr)
if hasattr(arr, "to_numpy"):
+
+ if hasattr(arr, ... | Backport PR #41958: REGR: Series[dt64/td64].astype(string) | https://api.github.com/repos/pandas-dev/pandas/pulls/42028 | 2021-06-15T21:04:49Z | 2021-06-15T22:27:36Z | 2021-06-15T22:27:36Z | 2021-06-15T22:27:36Z |
Backport PR #42024 on branch 1.3.x (TST: Reduce number of numba tests run) | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index 24b28356a3099..5382f5f9202c0 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -90,13 +90,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Can para... | Backport PR #42024: TST: Reduce number of numba tests run | https://api.github.com/repos/pandas-dev/pandas/pulls/42027 | 2021-06-15T20:46:56Z | 2021-06-15T22:27:22Z | 2021-06-15T22:27:22Z | 2021-06-15T22:27:22Z |
Backport PR #41968 on branch 1.3.x (DOC: 1.3.0 release notes addition and doc fix) | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 5a2ff803f0323..ae3647185f93d 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -34,7 +34,6 @@ Style application
Styler.apply
Styler.applymap
- Styler.where
Styler.format
Styler.set_td... | Backport PR #41968: DOC: 1.3.0 release notes addition and doc fix | https://api.github.com/repos/pandas-dev/pandas/pulls/42025 | 2021-06-15T19:44:49Z | 2021-06-15T20:54:26Z | 2021-06-15T20:54:26Z | 2021-06-15T20:54:26Z |
TST: Reduce number of numba tests run | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index 24b28356a3099..5382f5f9202c0 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -90,13 +90,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Can para... | - xref https://github.com/pandas-dev/pandas/pull/41971#issuecomment-860607472
- [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/42024 | 2021-06-15T19:38:49Z | 2021-06-15T20:46:48Z | 2021-06-15T20:46:48Z | 2021-06-15T21:06:12Z |
CI: pin fsspec | diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml
index e568f8615a8df..a9e4113bf9d18 100644
--- a/ci/deps/actions-37-db.yaml
+++ b/ci/deps/actions-37-db.yaml
@@ -16,7 +16,7 @@ dependencies:
- botocore>=1.11
- dask
- fastparquet>=0.4.0
- - fsspec>=0.7.4
+ - fsspec>=0.7.4, <2021.6.0
- gcs... | Hopefully fixes new Windows py37_np17 failures | https://api.github.com/repos/pandas-dev/pandas/pulls/42023 | 2021-06-15T18:26:09Z | 2021-06-15T22:27:48Z | 2021-06-15T22:27:47Z | 2021-06-17T10:38:26Z |
BUG: passing str to GroupBy.apply | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 68f1c78688b1d..8d96d49daba4f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -256,6 +256,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
+- Fixed bug in :meth:`SeriesGroupBy.apply` ... | - [ ] 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/42021 | 2021-06-15T17:25:53Z | 2021-07-17T14:18:16Z | 2021-07-17T14:18:16Z | 2021-07-17T18:47:28Z |
Fix module name for _LoadSparseFrame | diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py
index ca539eefd3aee..81d15ece97a8a 100644
--- a/pandas/compat/pickle_compat.py
+++ b/pandas/compat/pickle_compat.py
@@ -149,7 +149,7 @@ def __new__(cls) -> DataFrame: # type: ignore[misc]
"_LoadSparseSeries",
),
("pandas.sp... | https://api.github.com/repos/pandas-dev/pandas/pulls/42020 | 2021-06-15T16:13:50Z | 2021-08-17T02:35:12Z | null | 2021-08-17T02:35:12Z | |
Backport PR #41990 on branch 1.3.x (CI: troubleshoot py310 build) | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 03f4ce273de6e..c2b9c723b7c72 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1030,9 +1030,9 @@ def rank_1d(
if rank_t is object:
nan_fill_val = Infinity()
elif rank_t is int64_t:
- nan_fill_... | Backport PR #41990: CI: troubleshoot py310 build | https://api.github.com/repos/pandas-dev/pandas/pulls/42019 | 2021-06-15T13:17:18Z | 2021-06-15T16:07:17Z | 2021-06-15T16:07:17Z | 2021-06-15T16:07:17Z |
Backport PR #41954 on branch 1.3.x (DOC: more cleanup of 1.3 release notes) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index dd95f9088e3da..bc75d948ba4ce 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -637,7 +637,7 @@ If installed, we now require:
+-----------------+-----------------+----------+---------+
| pytest (dev) ... | Backport PR #41954: DOC: more cleanup of 1.3 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/42018 | 2021-06-15T13:11:26Z | 2021-06-15T14:54:58Z | 2021-06-15T14:54:58Z | 2021-06-15T14:54:59Z |
DOC: Fix wrongly associated docstring of Series.str.isspace | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 323cb6bd9fedd..d3cdcec9da8f1 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -3005,7 +3005,7 @@ def casefold(self):
"isdigit", docstring=_shared_docs["ismethods"] % _doc_args["isdigit"]
... | cc @simonjayhawkins
- [ ] closes #42015
- [ ] 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/42017 | 2021-06-15T11:11:25Z | 2021-06-15T22:40:31Z | 2021-06-15T22:40:31Z | 2021-06-16T11:09:48Z |
BUG: `Styler.apply` consistently manages Series return objects aligning labels. | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 84fdc4600dc63..74f69ef73b822 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -365,6 +365,8 @@ Styler
- Minor bug in :class:`.Styler` where the ``uuid`` at initialization maintained a floating undersco... | - [x] closes #13657
This issue is due to the asymmetric application of `DataFrame.apply` (#42005).
**The bug** is that when using `Styler.apply` the treatment of Series return objects is applied for `axis=0` and overwritten for `axis=1`.
```python
df = pd.DataFrame([[1,2],[3,4]], index=["X", "Y"], columns=["X... | https://api.github.com/repos/pandas-dev/pandas/pulls/42014 | 2021-06-15T07:22:49Z | 2021-08-19T21:41:49Z | 2021-08-19T21:41:49Z | 2021-08-20T05:31:08Z |
Updated the docstring for reset_index in frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 91b9bdd564676..81c96ba11054f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5615,8 +5615,9 @@ def reset_index(
Only remove the given levels from the index. Removes all levels by
default.
drop : bool, defa... | If not all levels are removed, the index is not reset to default integer values.
import pandas as pd
x = pd.Series(range(3), index=pd.MultiIndex.from_arrays([['a', 'b', 'c'], [1, 2, 3]], names=['letters', 'numbers']))
print(x.reset_index('numbers', drop=True))
- [ ] closes #xxxx
- [ ] tests added / passed
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42013 | 2021-06-15T07:03:13Z | 2021-11-06T02:56:25Z | null | 2021-11-06T02:56:26Z |
ENH/PERF: optional mask in nullable dtypes | diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py
index 103df0fd94847..2d12566088e60 100644
--- a/asv_bench/benchmarks/array.py
+++ b/asv_bench/benchmarks/array.py
@@ -5,12 +5,12 @@
class BooleanArray:
def setup(self):
- self.values_bool = np.array([True, False, True, False])
- ... | - [x] closes #30435
- [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
Benchmarks:
<details>
```
before after ratio
[e3d5... | https://api.github.com/repos/pandas-dev/pandas/pulls/42012 | 2021-06-15T05:45:44Z | 2021-06-20T01:41:59Z | null | 2021-06-20T01:41:59Z |
Update frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 91b9bdd564676..98c2500d3268a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5615,7 +5615,8 @@ def reset_index(
Only remove the given levels from the index. Removes all levels by
default.
drop : bool, defa... | If not all levels are removed, the index is not reset to default integer values.
import pandas as pd
x = pd.Series(range(3), index=pd.MultiIndex.from_arrays([['a', 'b', 'c'], [1, 2, 3]], names=['letters', 'numbers']))
print(x.reset_index('numbers', drop=True))
- [ ] closes #xxxx
- [ ] tests added / passed
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42011 | 2021-06-15T05:26:10Z | 2021-06-15T06:59:28Z | null | 2021-06-15T06:59:28Z |
Backport PR #41971 on branch 1.3.x (CI: mark window online test slow) | diff --git a/pandas/tests/window/test_online.py b/pandas/tests/window/test_online.py
index c7580650926da..461c62c07326d 100644
--- a/pandas/tests/window/test_online.py
+++ b/pandas/tests/window/test_online.py
@@ -22,6 +22,7 @@ def test_invalid_update(self):
):
online_ewm.mean(update=df.head(1))
... | Backport PR #41971: CI: mark window online test slow | https://api.github.com/repos/pandas-dev/pandas/pulls/42010 | 2021-06-15T01:12:58Z | 2021-06-15T10:10:22Z | 2021-06-15T10:10:22Z | 2021-06-15T10:10:23Z |
CLN: Verify non-ndarray is an ExtensionArray in hash_array GH42003 | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index fb5002648b6a5..16aca46333052 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -286,6 +286,8 @@ def hash_array(
return _hash_categorical(vals, encoding, hash_key)
elif not isinstance(vals, np.ndarray):... | Closes #42003 | https://api.github.com/repos/pandas-dev/pandas/pulls/42008 | 2021-06-14T20:30:07Z | 2021-08-17T02:32:31Z | null | 2021-08-17T02:32:31Z |
ENH: Clarify error message when reindexing fails (#42000) | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index dc66303a44f53..862aef8ceab34 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -701,7 +701,7 @@ Having a duplicated index will raise for a ``.reindex()``:
.. code-block:: ipython
I... | - [x] closes #42000
- [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/42007 | 2021-06-14T18:41:30Z | 2021-06-16T09:34:33Z | 2021-06-16T09:34:33Z | 2021-06-16T09:34:44Z |
DEP: move pkg_resources back inline in function (delayed import) | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 00d87b707580d..302d5ede0ae86 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -7,8 +7,6 @@
Sequence,
)
-import pkg_resources
-
from pandas._config import get_option
from pandas._typing import IndexLabel
@@ -1745,6 ... | xref https://github.com/pandas-dev/pandas/issues/40169#issuecomment-860900794, fixup of #41503 | https://api.github.com/repos/pandas-dev/pandas/pulls/42006 | 2021-06-14T18:36:09Z | 2021-06-15T23:52:54Z | 2021-06-15T23:52:54Z | 2021-06-15T23:53:08Z |
Backport PR #41987 on branch 1.3.x (TST: Un-xfail tests on numpy-dev) | diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py
index ba8fe25401e8c..2c96cf291c154 100644
--- a/pandas/tests/frame/methods/test_to_records.py
+++ b/pandas/tests/frame/methods/test_to_records.py
@@ -3,8 +3,6 @@
import numpy as np
import pytest
-from pandas.c... | Backport PR #41987: TST: Un-xfail tests on numpy-dev | https://api.github.com/repos/pandas-dev/pandas/pulls/42004 | 2021-06-14T16:32:22Z | 2021-06-15T00:39:50Z | 2021-06-15T00:39:50Z | 2021-06-15T00:39:50Z |
ENH: `Styler.apply(map)_index` made compatible with `Styler.to_excel` | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 964f4b83866c9..0632387bd19b7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -72,8 +72,8 @@ Styler
:class:`.Styler` has been further developed in 1.4.0. The following enhancements have been made:
... | This is a follow-on to #41893.
It makes the new `Styler.apply_index` and `Styler.applymap_index` methods compatible with `Styler.to_excel`. If the methods are not used the output reverts to the old format.
_index` made compatible with `Styler.to_latex` | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ef7ff2d24009e..89b7950c5faf4 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -38,7 +38,7 @@ Other enhancements
- :meth:`Series.ewm`, :meth:`DataFrame.ewm`, now support a ``method`` argument with a ``'... | This is a follow-on to #41893.
It makes the new `Styler.apply_index` and `Styler.applymap_index` methods compatible with `Styler.to_latex`.

| https://api.github.com/repos/pandas-dev/pandas/pulls/41993 | 2021-06-14T07:30:25Z | 2021-08-12T15:52:05Z | 2021-08-12T15:52:05Z | 2021-08-12T17:02:45Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3078619ecac35..dee52d8ad41bf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/python/black
- rev: 20.8b1
+ rev: 21.5b1
... | <!-- 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>
## Changed files
<details>
<summary>Changed file: </summary>
</details>
<hr>
[:octocat: Repo](https://g... | https://api.github.com/repos/pandas-dev/pandas/pulls/41992 | 2021-06-14T07:07:40Z | 2021-06-14T08:03:18Z | null | 2021-06-14T09:18:19Z |
STYLE: Added from __future__ import annotations to required files | diff --git a/ci/print_skipped.py b/ci/print_skipped.py
index 60e2f047235e6..508d4e43fcde6 100755
--- a/ci/print_skipped.py
+++ b/ci/print_skipped.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
+from __future__ import annotations
+
import os
import xml.etree.ElementTree as et
diff --git a/doc/make.py b/doc/make.py
index... | - [X] closes #41901
- [ ] No tests added
- [X] All linting passed (used `isort` to add imports)
- What's New:
Built a [script](https://gist.github.com/aacosta13/eb1cb4b22ece354c60f0e7aab90137b0) using `isort` to add `from __future__ import annotations` to necessary files as referenced by issue #41901. | https://api.github.com/repos/pandas-dev/pandas/pulls/41991 | 2021-06-14T05:25:32Z | 2021-07-16T09:06:11Z | null | 2021-07-16T09:06:12Z |
CI: troubleshoot py310 build | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 03f4ce273de6e..c2b9c723b7c72 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1030,9 +1030,9 @@ def rank_1d(
if rank_t is object:
nan_fill_val = Infinity()
elif rank_t is int64_t:
- nan_fill_... | - [ ] 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/41990 | 2021-06-14T01:52:48Z | 2021-06-15T13:17:09Z | 2021-06-15T13:17:09Z | 2022-12-29T21:21:25Z |
DEPS: drop Python 3.7 and NumPy 1.17 from tests (#41678) | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index 4b700c48979f7..54a55cc78914d 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -19,7 +19,7 @@ env:
COVERAGE: true
jobs:
- Linux_py37_IO:
+ Linux_py38_IO:
runs-on: ubuntu-latest
defaults... | closes #41678
Most of the new minimum support versions were released between Oct 14, 2019, Python 3.8's initial release date, and June/July 2020. | https://api.github.com/repos/pandas-dev/pandas/pulls/41989 | 2021-06-13T22:22:56Z | 2021-07-04T21:44:01Z | 2021-07-04T21:44:01Z | 2021-08-05T10:22:23Z |
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... | - [x] closes #41953
- [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 builds upon #41952, which should be integrated first.
We no longer can assume that the CPython's hash ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41988 | 2021-06-13T20:13:41Z | 2021-06-17T19:05:36Z | 2021-06-17T19:05:36Z | 2021-06-17T19:06:14Z |
TST: Un-xfail tests on numpy-dev | diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py
index ba8fe25401e8c..2c96cf291c154 100644
--- a/pandas/tests/frame/methods/test_to_records.py
+++ b/pandas/tests/frame/methods/test_to_records.py
@@ -3,8 +3,6 @@
import numpy as np
import pytest
-from pandas.c... | - [ ] 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
Makes 3.8 npdev green. | https://api.github.com/repos/pandas-dev/pandas/pulls/41987 | 2021-06-13T19:05:06Z | 2021-06-14T16:31:45Z | 2021-06-14T16:31:45Z | 2021-06-17T11:36:01Z |
DOC: update array-like parameters if scalars accepted | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index bf6887ed27005..df9f3d07ce7fd 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -531,7 +531,7 @@ def factorize_array(
mask: np.ndarray | None = None,
) -> tuple[npt.NDArray[np.intp], np.ndarray]:
"""
- Factoriz... | - [x] based on discussion in #41807
- [x] tests added / passed
- N/A since only doc changes
- [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
- N/A since only doc changes
- [x] whatsnew entry
- Not nee... | https://api.github.com/repos/pandas-dev/pandas/pulls/41985 | 2021-06-13T17:53:39Z | 2021-07-14T23:47:06Z | 2021-07-14T23:47:05Z | 2021-07-19T12:00:54Z |
Backport PR #41966 on branch 1.3.x (CI: activate azure pipelines/github actions on 1.3.x) | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a5a802c678e20..a62942c7cd948 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,6 +7,7 @@ on:
branches:
- master
- 1.2.x
+ - 1.3.x
env:
ENV_FILE: environment.yml
diff --git a/.github/workflows/da... | Backport PR #41966: CI: activate azure pipelines/github actions on 1.3.x | https://api.github.com/repos/pandas-dev/pandas/pulls/41984 | 2021-06-13T16:52:39Z | 2021-06-13T19:26:09Z | 2021-06-13T19:26:09Z | 2021-06-13T19:26:09Z |
Backport PR #41981 on branch 1.3.x (BLD: Update MANIFEST.in) | diff --git a/MANIFEST.in b/MANIFEST.in
index 1880e6a7208e2..f616fad6b1557 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -44,9 +44,8 @@ global-exclude *.c
global-exclude *.cpp
global-exclude *.h
-global-exclude *.py[codx]
-global-exclude *.px[di]
-global-exclude *.pxi.in
+global-exclude *.py[ocd]
+global-exclude *.p... | Backport PR #41981: BLD: Update MANIFEST.in | https://api.github.com/repos/pandas-dev/pandas/pulls/41983 | 2021-06-13T16:39:43Z | 2021-06-13T16:51:58Z | 2021-06-13T16:51:58Z | 2021-06-13T16:51:58Z |
TST: fix xpass for M1 Mac | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index 9572aeaf41c91..de75f1dffde56 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -2,6 +2,10 @@
import pytest
from pandas._libs.tslibs import Time... | xref #38921
xref https://github.com/numpy/numpy/issues/19146 | https://api.github.com/repos/pandas-dev/pandas/pulls/41982 | 2021-06-13T14:41:44Z | 2021-06-15T23:33:23Z | 2021-06-15T23:33:23Z | 2021-06-18T02:23:08Z |
BLD: Update MANIFEST.in | diff --git a/MANIFEST.in b/MANIFEST.in
index 1880e6a7208e2..f616fad6b1557 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -44,9 +44,8 @@ global-exclude *.c
global-exclude *.cpp
global-exclude *.h
-global-exclude *.py[codx]
-global-exclude *.px[di]
-global-exclude *.pxi.in
+global-exclude *.py[ocd]
+global-exclude *.p... | xref https://github.com/pandas-dev/pandas/pull/41977#issuecomment-860171367 | https://api.github.com/repos/pandas-dev/pandas/pulls/41981 | 2021-06-13T11:25:41Z | 2021-06-13T16:39:13Z | 2021-06-13T16:39:13Z | 2021-06-13T16:39:18Z |
REF: Refactor assert_index_equal | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 1942e07d1b562..a29767153b021 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -314,18 +314,16 @@ def _check_types(left, right, obj="Index") -> None:
return
assert_class_equal(left, right... | There are currently some issues in `_check_dtypes` in `assert_index_equal` related to #41153:
* `assert_attr_equal("dtype", left, right, obj=obj)` currently isn't run if `check_categorical` is False (even if the indexes are not CategoricalIndexes)
* `assert_class_equal` with `exact='equiv'` should not be restricted t... | https://api.github.com/repos/pandas-dev/pandas/pulls/41980 | 2021-06-13T09:44:51Z | 2021-06-18T01:46:49Z | 2021-06-18T01:46:49Z | 2021-06-18T05:22:27Z |
Backport PR #41977 on branch 1.3.x (BLD: ignore multiple types of file in wheel) | diff --git a/MANIFEST.in b/MANIFEST.in
index d0d93f2cdba8c..1880e6a7208e2 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -17,18 +17,19 @@ global-exclude *.h5
global-exclude *.html
global-exclude *.json
global-exclude *.jsonl
+global-exclude *.msgpack
global-exclude *.pdf
global-exclude *.pickle
global-exclude *.pn... | Backport PR #41977: BLD: ignore multiple types of file in wheel | https://api.github.com/repos/pandas-dev/pandas/pulls/41979 | 2021-06-13T05:39:23Z | 2021-06-13T07:38:13Z | 2021-06-13T07:38:13Z | 2021-06-13T07:38:13Z |
BLD: ignore multiple types of file in wheel | diff --git a/MANIFEST.in b/MANIFEST.in
index d0d93f2cdba8c..1880e6a7208e2 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -17,18 +17,19 @@ global-exclude *.h5
global-exclude *.html
global-exclude *.json
global-exclude *.jsonl
+global-exclude *.msgpack
global-exclude *.pdf
global-exclude *.pickle
global-exclude *.pn... | xref #40169
| https://api.github.com/repos/pandas-dev/pandas/pulls/41977 | 2021-06-13T00:51:30Z | 2021-06-13T05:38:49Z | 2021-06-13T05:38:49Z | 2021-06-18T02:23:24Z |
REF: De-duplicate MultiIndex._get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 96ddf9ce76f53..4de95079f6480 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3497,6 +3497,13 @@ def _get_fill_indexer(
self, target: Index, method: str_t, limit: int | None = None, tolerance=None
) ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41976 | 2021-06-12T23:08:01Z | 2021-06-15T23:48:23Z | 2021-06-15T23:48:23Z | 2021-06-16T00:21:47Z |
BUG: UInt64Index.where with int64 value | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index bc75d948ba4ce..1e5065748c631 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -947,6 +947,8 @@ Numeric
- Bug in :meth:`Series.count` would result in an ``int32`` result on 32-bit platforms when argumen... | - [ ] 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/41974 | 2021-06-12T21:11:03Z | 2021-06-15T23:49:03Z | 2021-06-15T23:49:03Z | 2021-06-16T00:26:00Z |
PERF: indexing on UInt64Index with int64s | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index eaba30012a5b8..96ddf9ce76f53 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5303,6 +5303,13 @@ def _maybe_promote(self, other: Index) -> tuple[Index, Index]:
if not is_object_dtype(self.dtype):
... | - [x] closes #41873
- [ ] 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/41972 | 2021-06-12T20:08:10Z | 2021-06-15T21:05:57Z | 2021-06-15T21:05:57Z | 2021-06-15T21:44:19Z |
CI: mark window online test slow | diff --git a/pandas/tests/window/test_online.py b/pandas/tests/window/test_online.py
index c7580650926da..461c62c07326d 100644
--- a/pandas/tests/window/test_online.py
+++ b/pandas/tests/window/test_online.py
@@ -22,6 +22,7 @@ def test_invalid_update(self):
):
online_ewm.mean(update=df.head(1))
... | Seems like the new online tests added increase test runtime a lot, making failures like https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=61437&view=logs&j=404760ec-14d3-5d48-e580-13034792878f&t=f81e4cc8-d61a-5fb8-36be-36768e5c561a and
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=61437&... | https://api.github.com/repos/pandas-dev/pandas/pulls/41971 | 2021-06-12T19:43:59Z | 2021-06-15T01:12:49Z | 2021-06-15T01:12:48Z | 2021-06-15T04:52:36Z |
ENH: nullables use Kleene logic for any/all reductions | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7b10a0f39bdbd..6fd84bf29e9c5 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -123,6 +123,7 @@ Other enhancements
- Methods that relied on hashmap based algos such as :meth:`DataFrameGroupBy.value_coun... | - [x] xref #41967
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This gives consistency for nullable dtype treatment across `.any/.all` and the groupby versi... | https://api.github.com/repos/pandas-dev/pandas/pulls/41970 | 2021-06-12T19:19:37Z | 2021-09-21T14:09:19Z | 2021-09-21T14:09:19Z | 2021-09-21T20:59:42Z |
BUG: stacklevel for multidimensional indexing warning #31479 | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index ed4b1a3fbb39c..ef9b48911dfa1 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -13,6 +13,7 @@
AnyArrayLike,
ArrayLike,
)
+from pandas.util._exceptions import find_stack_level
from pandas.core.dtypes.common import (
... | - [x] closes #31479
- [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/41969 | 2021-06-12T17:59:57Z | 2021-06-15T23:48:02Z | 2021-06-15T23:48:02Z | 2021-06-16T00:30:28Z |
DOC: 1.3.0 release notes addition and doc fix | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 5a2ff803f0323..ae3647185f93d 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -34,7 +34,6 @@ Style application
Styler.apply
Styler.applymap
- Styler.where
Styler.format
Styler.set_td... | https://api.github.com/repos/pandas-dev/pandas/pulls/41968 | 2021-06-12T17:43:34Z | 2021-06-15T19:44:39Z | 2021-06-15T19:44:38Z | 2021-06-16T13:22:17Z | |
CI: activate azure pipelines/github actions on 1.3.x | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a5a802c678e20..a62942c7cd948 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,6 +7,7 @@ on:
branches:
- master
- 1.2.x
+ - 1.3.x
env:
ENV_FILE: environment.yml
diff --git a/.github/workflows/da... | This is milestoned 1.4 since the config is on master. (and we don't want the autobackport) | https://api.github.com/repos/pandas-dev/pandas/pulls/41966 | 2021-06-12T13:08:38Z | 2021-06-13T07:50:54Z | 2021-06-13T07:50:54Z | 2021-06-13T16:54:02Z |
Bug in melt raising Error with dup columns as value vars | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index dd95f9088e3da..1814420cf4f24 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1148,6 +1148,7 @@ Reshaping
- Bug in :func:`to_datetime` raising an error when the input sequence contained unhashable ite... | - [x] closes #41951
- [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
@simonjayhawkins I think this changed in May last year, so probably not woth backporting? | https://api.github.com/repos/pandas-dev/pandas/pulls/41964 | 2021-06-12T10:49:11Z | 2021-06-15T23:34:25Z | 2021-06-15T23:34:24Z | 2021-06-18T10:43:11Z |
Backport PR #41924: PERF: fix regression in reductions for boolean/integer data | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 20adcee924a15..d42497c3a8322 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -231,7 +231,8 @@ def _maybe_get_mask(
"""
if mask is None:
if is_bool_dtype(values.dtype) or is_integer_dtype(values.dtype):
- ret... | Backport PR #41924 | https://api.github.com/repos/pandas-dev/pandas/pulls/41963 | 2021-06-12T07:29:50Z | 2021-06-12T13:20:48Z | 2021-06-12T13:20:48Z | 2021-06-12T13:20:56Z |
CI: enable auto-cancel for GitHub Actions | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a5a802c678e20..cfdae016836f1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,8 @@ name: CI
on:
push:
- branches: [master]
+ branches:
+ - master
pull_request:
branches:
- master
@@ -20,... | https://api.github.com/repos/pandas-dev/pandas/pulls/41962 | 2021-06-12T02:20:32Z | 2021-06-15T23:36:11Z | 2021-06-15T23:36:11Z | 2021-06-18T02:23:36Z | |
Debug failing numpy | diff --git a/ci/deps/actions-38-numpydev.yaml b/ci/deps/actions-38-numpydev.yaml
index 6eed2daac0c3b..e25ca1fcaa5c5 100644
--- a/ci/deps/actions-38-numpydev.yaml
+++ b/ci/deps/actions-38-numpydev.yaml
@@ -16,7 +16,7 @@ dependencies:
- pip:
- cython==0.29.21 # GH#34014
- "git+git://github.com/dateutil/dateu... | - [ ] 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/41961 | 2021-06-11T23:41:30Z | 2021-06-11T23:41:50Z | null | 2021-06-11T23:41:50Z |
CLN: assert_index_equal & assert_class_equal | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 1942e07d1b562..958e57de5ddef 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -316,10 +316,13 @@ def _check_types(left, right, obj="Index") -> None:
assert_class_equal(left, right, exact=exact, obj=obj... | Minor clean-up. | https://api.github.com/repos/pandas-dev/pandas/pulls/41960 | 2021-06-11T23:40:55Z | 2021-06-13T09:18:37Z | null | 2021-06-13T10:06:53Z |
REF: avoid accessing index._engine in set_with_engine | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index fbfee9a1f524c..d9eaaa763fde8 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -34,7 +34,6 @@
Dtype,
DtypeObj,
)
-from pandas.errors import InvalidIndexError
from pandas.util._decorat... | - [ ] 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
orthogonal but related to #41956 | https://api.github.com/repos/pandas-dev/pandas/pulls/41959 | 2021-06-11T23:29:00Z | 2021-06-16T00:05:21Z | 2021-06-16T00:05:21Z | 2021-06-16T00:24:39Z |
REGR: Series[dt64/td64].astype(string) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 37e83ddb0ffed..51a947f79ede2 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -716,6 +716,14 @@ cpdef ndarray[object] ensure_string_array(
Py_ssize_t i = 0, n = len(arr)
if hasattr(arr, "to_numpy"):
+
+ if hasattr(arr, ... | - [x] closes #41409
- [ ] 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
This surfaces another bug in `StringArray.__getitem__` that I haven't looked into yet. | https://api.github.com/repos/pandas-dev/pandas/pulls/41958 | 2021-06-11T23:15:36Z | 2021-06-15T21:04:41Z | 2021-06-15T21:04:40Z | 2021-06-15T21:43:58Z |
REF: avoid accessing ._engine in Series/DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2edad9f6626bb..00f6213110e76 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -158,7 +158,6 @@
from pandas.core.indexers import check_key_length
from pandas.core.indexes import base as ibase
from pandas.core.indexes.api import (
- Categ... | sits on top of #41846 | https://api.github.com/repos/pandas-dev/pandas/pulls/41956 | 2021-06-11T19:54:49Z | 2021-06-17T17:39:52Z | 2021-06-17T17:39:52Z | 2021-06-17T18:51:40Z |
CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 12d23786c3387..906b77319406f 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -101,12 +101,6 @@
]
Timezone = Union[str, tzinfo]
-# FrameOrSeriesUnion means either a DataFrame or a Series. E.g.
-# `def func(a: FrameOrSeriesUnion) -> FrameOrSeriesUnio... | - [x] closes #40876
- [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/41955 | 2021-06-11T18:16:38Z | 2021-07-04T10:06:54Z | 2021-07-04T10:06:53Z | 2021-07-04T17:47:26Z |
DOC: more cleanup of 1.3 release notes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index e2b923812a211..45018569a3a04 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -636,7 +636,7 @@ If installed, we now require:
+-----------------+-----------------+----------+---------+
| pytest (dev) ... | and fixes https://github.com/pandas-dev/pandas/pull/41908#issuecomment-858571515 | https://api.github.com/repos/pandas-dev/pandas/pulls/41954 | 2021-06-11T16:32:25Z | 2021-06-15T13:11:02Z | 2021-06-15T13:11:02Z | 2021-06-15T13:11:10Z |
BUG: take nans correctly into consideration in complex and tuple | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1a5a9980e5e96..cadc5615cd654 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1033,6 +1033,7 @@ Missing
- Bug in :meth:`DataFrame.fillna` not accepting a dictionary for the ``downcast`` keyword (:issu... | - [x] closes #41836
- [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
NaNs as Float are already handled correctly (all nans are the same equavalency class), thi... | https://api.github.com/repos/pandas-dev/pandas/pulls/41952 | 2021-06-11T15:06:58Z | 2021-06-16T22:15:37Z | 2021-06-16T22:15:36Z | 2021-06-16T22:15:53Z |
DOC: fix link to pickle in msgpack section | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index dbefd1f20d2e3..c2b030d732ba9 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -31,7 +31,6 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like
binary;`Feather Format <https://gith... | That failed the doc build. In addition also removed the msgpack row in the table at the top of the page, since those functions don't exist anymore. | https://api.github.com/repos/pandas-dev/pandas/pulls/41950 | 2021-06-11T12:22:09Z | 2021-06-11T14:33:27Z | 2021-06-11T14:33:27Z | 2021-06-11T14:37:41Z |
CI: use pyarrow 0.17.1 instead of 0.17.0 for py37_macos build | diff --git a/ci/deps/azure-macos-37.yaml b/ci/deps/azure-macos-37.yaml
index 63e858eac433f..43e1055347f17 100644
--- a/ci/deps/azure-macos-37.yaml
+++ b/ci/deps/azure-macos-37.yaml
@@ -22,7 +22,7 @@ dependencies:
- numexpr
- numpy=1.17.3
- openpyxl
- - pyarrow=0.17.0
+ - pyarrow=0.17
- pytables
- pytho... | Closes #41937 | https://api.github.com/repos/pandas-dev/pandas/pulls/41948 | 2021-06-11T11:30:36Z | 2021-06-11T23:56:04Z | 2021-06-11T23:56:04Z | 2021-06-12T08:31:36Z |
ENH: `sparse_columns` and `sparse_index` added to `Styler.to_html` | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 432dd46000eb3..62f1d9aef3e13 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -35,6 +35,7 @@ Other enhancements
- Additional options added to :meth:`.Styler.bar` to control alignment and display, with... | Checks an item off the list in #41693
| https://api.github.com/repos/pandas-dev/pandas/pulls/41946 | 2021-06-11T09:53:35Z | 2021-07-28T23:01:05Z | 2021-07-28T23:01:05Z | 2021-07-29T14:59:15Z |
TYP: make numpy.typing available from pandas._typing | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a9852dd4b13cf..ccf7699fb0b4b 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -42,6 +42,8 @@
final,
)
+ import numpy.typing as npt
+
from pandas._libs import (
Period,
Timedelta,
@@ -73,6 +75,7 @@
from panda... | xref https://github.com/pandas-dev/pandas/issues/41807#issuecomment-859372500
this does not update the `__array__` to `to_numpy` methods of EA, see https://github.com/pandas-dev/pandas/pull/41185#issuecomment-852469918 but does need a couple of ignores till that is done.
(we are removing 3 anyway, so a net reduct... | https://api.github.com/repos/pandas-dev/pandas/pulls/41945 | 2021-06-11T09:51:13Z | 2021-06-25T22:16:43Z | 2021-06-25T22:16:43Z | 2021-07-02T19:12:48Z |
[ArrayManager] Enable pytables IO by falling back to BlockManager | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 0eae6ea5d6b7b..208b8a008ffe6 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -86,7 +86,10 @@
)
from pandas.core.construction import extract_array
from pandas.core.indexes.api import ensure_index
-from pandas.core.internals import Bloc... | This doesn't "fix" anything, but by falling back for now to the BlockManager-specific implementation of `to_hdf` writer, this avoids failures when using ArrayManager, which should make it easier to test it. | https://api.github.com/repos/pandas-dev/pandas/pulls/41944 | 2021-06-11T09:03:05Z | 2021-06-11T11:20:52Z | 2021-06-11T11:20:52Z | 2021-06-11T11:52:12Z |
STYLE: Use from future import annotations (pandas-dev#41901) | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d580fcf4fc545..fee0d69974d03 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -136,3 +136,21 @@ repos:
entry: python scripts/no_bool_in_generic.py
language: python
files: ^pandas/core/generic\.py$
+ -... | - [X] closes #41901
- [ ] no tests added
- [ ] pre-commit hook, no python files added
- [ ] No docstrings added; docs not rebuilt. _**Where do pre-commit hooks get added to “What’s New"?**_
Implementation:
* Name set to always-use-future-annotations (rather than always-use-from-future-annotations)
* W... | https://api.github.com/repos/pandas-dev/pandas/pulls/41941 | 2021-06-11T02:53:40Z | 2021-08-17T02:29:26Z | null | 2021-08-17T02:29:26Z |
Use from future import annotations | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d580fcf4fc545..9472ebde679bf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -136,3 +136,9 @@ repos:
entry: python scripts/no_bool_in_generic.py
language: python
files: ^pandas/core/generic\.py$
+ - ... | - [X] closes #xxxx
- [ ] no tests added
- [ ] pre-commit hook, no python files added
- [ ] No docstrings added; docs not rebuilt. _**Where do pre-commit hooks get added to “What’s New"?**_
Implementation:
* Name set to always-use-future-annotations (rather than always-use-from-future-annotations)
* We... | https://api.github.com/repos/pandas-dev/pandas/pulls/41939 | 2021-06-11T02:30:22Z | 2021-06-11T02:39:56Z | null | 2021-06-11T03:04:24Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.