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 |
|---|---|---|---|---|---|---|---|
BUG: assert_frame_equal raising TypeError with check_like and mixed dtype in Index or columns | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 448260148c83d..fa5347aa7a507 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.diff` raising for ``int8`` and ``int16`` col... | - [x] closes #39168
- [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
Worked on 1.1.5 for assert_frame_equal and was not supported for assert_index_equal | https://api.github.com/repos/pandas-dev/pandas/pulls/39204 | 2021-01-16T02:18:32Z | 2021-01-16T14:21:19Z | 2021-01-16T14:21:18Z | 2021-01-16T14:59:56Z |
REGR: to_stata tried to remove file before closing it | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 2d9290dda060a..1a243c846d01c 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`~DataFrame.to_csv` that created corrupted zip files when ther... | Spin-off from #39047:
If an error occurred during `to_stata`, the code tried to first remove the file and then close the file handle:
1. removing the file failed on Windows (it is still opened)
2. It created an empty file when closing the handle
| https://api.github.com/repos/pandas-dev/pandas/pulls/39202 | 2021-01-16T01:24:02Z | 2021-01-18T15:22:07Z | 2021-01-18T15:22:07Z | 2021-01-19T15:54:08Z |
Backport PR #39196 on branch 1.2.x (REGR: NaT.__richmp__(dateobj)) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..ad026d28d6a2e 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -30,7 +30,7 @@ Fixed regressions
- Fixed regression that raised ``AttributeError`` with PyArrow versions [0.16.0, 1.0.0) (:... | Backport PR #39196: REGR: NaT.__richmp__(dateobj) | https://api.github.com/repos/pandas-dev/pandas/pulls/39201 | 2021-01-16T01:18:22Z | 2021-01-16T10:06:32Z | 2021-01-16T10:06:32Z | 2021-01-16T10:06:32Z |
Backport PR #39193 on branch 1.2.x (CI: Set xfail to strict=False for network tests) | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index 726c5ebffe9b5..11e14ac61a831 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -208,7 +208,7 @@ def test_read_s3_fails(self, s3so):
with pytest.raises(IOError):
... | Backport PR #39193: CI: Set xfail to strict=False for network tests | https://api.github.com/repos/pandas-dev/pandas/pulls/39200 | 2021-01-16T01:15:19Z | 2021-01-16T11:37:35Z | 2021-01-16T11:37:35Z | 2021-01-16T11:37:35Z |
Backport PR #39188 on branch 1.2.x (REGR: Different results from DataFrame.apply and str accessor) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..982eb21f5a5da 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -25,6 +25,7 @@ Fixed regressions
- Fixed regression in :func:`read_excel` with non-rawbyte file handles (:issue:`38788`)
-... | Backport PR #39188: REGR: Different results from DataFrame.apply and str accessor | https://api.github.com/repos/pandas-dev/pandas/pulls/39199 | 2021-01-16T01:13:14Z | 2021-01-16T02:50:59Z | 2021-01-16T02:50:59Z | 2021-01-16T02:50:59Z |
Backport PR #39191 on branch 1.2.x (Revert "BUG/REG: RollingGroupby MultiIndex levels dropped (#38737)") | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..ebac06b80ad67 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,7 +15,6 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`to_cs... | Backport PR #39191: Revert "BUG/REG: RollingGroupby MultiIndex levels dropped (#38737)" | https://api.github.com/repos/pandas-dev/pandas/pulls/39198 | 2021-01-16T01:11:24Z | 2021-01-16T02:14:58Z | 2021-01-16T02:14:58Z | 2021-01-16T02:14:58Z |
REGR: NaT.__richmp__(dateobj) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..ad026d28d6a2e 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -30,7 +30,7 @@ Fixed regressions
- Fixed regression that raised ``AttributeError`` with PyArrow versions [0.16.0, 1.0.0) (:... | - [x] closes #39151
- [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/39196 | 2021-01-15T22:24:18Z | 2021-01-16T01:18:12Z | 2021-01-16T01:18:12Z | 2021-01-16T01:49:33Z |
TST/REF: split large categorical indexing test | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index b36e790f8023b..549a3c8e4a681 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -977,3 +977,11 @@ def loc(x):
def iloc(x):
return x.iloc
+
+
+def at(x):
+ return x.at
+
+
+def iat(x):
+ return x.iat
dif... | - [ ] 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/39195 | 2021-01-15T21:52:18Z | 2021-01-16T00:55:12Z | 2021-01-16T00:55:12Z | 2021-01-16T02:03:13Z |
REGR: fillna on datetime64[ns, UTC] column hits RecursionError | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..eb9fd89bc8b22 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression in :meth:`read_csv` and other read functions were the encoding error po... | - [ ] closes #38851
- [ ] 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
@jbrockmendel this reverts #37040 in it's entirety for backport
feel free to push to th... | https://api.github.com/repos/pandas-dev/pandas/pulls/39194 | 2021-01-15T20:20:22Z | 2021-01-16T01:09:21Z | 2021-01-16T01:09:21Z | 2021-01-16T12:32:09Z |
CI: Set xfail to strict=False for network tests | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index 8ddb860597ddd..3727fe9484084 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -209,7 +209,7 @@ def test_read_s3_fails(self, s3so):
with pytest.raises(IOError, ma... | - [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 one is ugly. Botocore and boto3 were upgraded tonight to 1.19.55 and 1.16.55. Since aiobotocore requires them to be .52 this is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39193 | 2021-01-15T19:55:06Z | 2021-01-16T01:14:54Z | 2021-01-16T01:14:54Z | 2021-01-16T15:01:19Z |
Revert "BUG/REG: RollingGroupby MultiIndex levels dropped (#38737)" | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 55fddb8b732e2..ebac06b80ad67 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,7 +15,6 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`to_cs... | This reverts commit a37f1a45e83d7f803d7fcab7d384da28e9c1e714.
reverts PR #38737
I think we ended up deciding to revert on master and backport to keep master and 1.2.x in sync and not release this change in 1.2.1 to allow for further discussion.
once this revert PR merged:
- [x] backport
- [x] the blocker tag... | https://api.github.com/repos/pandas-dev/pandas/pulls/39191 | 2021-01-15T17:26:31Z | 2021-01-16T01:10:14Z | 2021-01-16T01:10:14Z | 2021-01-16T09:58:33Z |
REGR: Different results from DataFrame.apply and str accessor | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 1c8db4dd32393..731836086aaa8 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -25,6 +25,7 @@ Fixed regressions
- Fixed regression in :func:`read_excel` with non-rawbyte file handles (:issue:`38788`)
-... | - [ ] closes #38979
- [ ] 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
@jbrockmendel despite my comment https://github.com/pandas-dev/pandas/issues/38979#issue... | https://api.github.com/repos/pandas-dev/pandas/pulls/39188 | 2021-01-15T15:17:31Z | 2021-01-16T01:12:46Z | 2021-01-16T01:12:46Z | 2021-01-16T10:02:08Z |
Backport PR #39161 on branch 1.2.x (Fix regression in loc setitem raising KeyError when enlarging df with multiindex) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 1c8db4dd32393..55fddb8b732e2 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -29,7 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.diff` raising for ``int8`` and ``int16`` col... | Backport PR #39161: Fix regression in loc setitem raising KeyError when enlarging df with multiindex | https://api.github.com/repos/pandas-dev/pandas/pulls/39187 | 2021-01-15T14:15:10Z | 2021-01-15T15:21:15Z | 2021-01-15T15:21:15Z | 2021-01-15T15:21:15Z |
REF: extract classes in pandas/core/describe.py | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 22de5ae1e082f..09862b72c4a4f 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -5,13 +5,14 @@
"""
from __future__ import annotations
+from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, List, Optional, Sequen... | - [ ] xref #36833
- [ ] 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
Extract classes ``SeriesDescriber`` and ``DataFrameDescriber``.
In the next steps I am goin... | https://api.github.com/repos/pandas-dev/pandas/pulls/39186 | 2021-01-15T12:12:34Z | 2021-01-19T20:23:32Z | 2021-01-19T20:23:32Z | 2021-01-20T03:31:05Z |
DOC: set the documentation language | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 488f172fa1d1e..7f7ddd8209272 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -164,7 +164,7 @@
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
-# language = None
+language = "en"
... | Ensures the language is specified in the generated HTML. [Documentation on the configuration option.](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-language)
Before:
```
$ curl -s https://pandas.pydata.org/docs/dev/getting_started/comparison/comparison_with_spreadsheets.html | grep "<html... | https://api.github.com/repos/pandas-dev/pandas/pulls/39185 | 2021-01-15T07:22:26Z | 2021-01-21T17:46:42Z | 2021-01-21T17:46:42Z | 2021-01-21T17:46:42Z |
CI/DOC: Add option to build whatsnew | diff --git a/doc/make.py b/doc/make.py
index d90cd2428360d..a81ba7afd9f81 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -41,12 +41,14 @@ def __init__(
self,
num_jobs=0,
include_api=True,
+ whatsnew=False,
single_doc=None,
verbosity=0,
warnings_are_errors=Fals... | - [ ] closes #xxxx
- [ ] 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
Adds the option to compile the whatsnew. It also builds the API (to resolve links) and open... | https://api.github.com/repos/pandas-dev/pandas/pulls/39182 | 2021-01-15T03:51:04Z | 2021-02-12T16:37:31Z | 2021-02-12T16:37:31Z | 2021-02-12T22:00:44Z |
WIP: Troublehsoot nbformat | diff --git a/environment.yml b/environment.yml
index be6fb9a4cac7d..09736aeea25f2 100644
--- a/environment.yml
+++ b/environment.yml
@@ -68,7 +68,7 @@ dependencies:
# unused (required indirectly may be?)
- ipywidgets
- - nbformat=5.0.8
+ - nbformat
- notebook>=5.7.5
- pip
diff --git a/requirements-dev... | I could reproduce this locally, but after automatically downloading new object.inv files the issue was gone.
It seemed as the warning was unknown keyword and, have to troubleshoot here | https://api.github.com/repos/pandas-dev/pandas/pulls/39180 | 2021-01-14T23:32:34Z | 2021-01-15T00:19:53Z | null | 2021-04-26T22:00:27Z |
Backport PR #39177 on branch 1.2.x (CI: Pin nbformat to 5.0.8) | diff --git a/environment.yml b/environment.yml
index b99b856187fb6..6f3f81d8a4d77 100644
--- a/environment.yml
+++ b/environment.yml
@@ -68,7 +68,7 @@ dependencies:
# unused (required indirectly may be?)
- ipywidgets
- - nbformat
+ - nbformat=5.0.8
- notebook>=5.7.5
- pip
diff --git a/requirements-dev... | Backport PR #39177: CI: Pin nbformat to 5.0.8 | https://api.github.com/repos/pandas-dev/pandas/pulls/39179 | 2021-01-14T22:28:58Z | 2021-01-14T23:24:36Z | 2021-01-14T23:24:36Z | 2021-01-14T23:24:37Z |
CI: Pin nbformat to 5.0.8 | diff --git a/environment.yml b/environment.yml
index 09736aeea25f2..be6fb9a4cac7d 100644
--- a/environment.yml
+++ b/environment.yml
@@ -68,7 +68,7 @@ dependencies:
# unused (required indirectly may be?)
- ipywidgets
- - nbformat
+ - nbformat=5.0.8
- notebook>=5.7.5
- pip
diff --git a/requirements-dev... | - [x] xref #39176
cc @jreback nbformat should be enoguh I hope. | https://api.github.com/repos/pandas-dev/pandas/pulls/39177 | 2021-01-14T21:44:04Z | 2021-01-14T22:27:58Z | 2021-01-14T22:27:58Z | 2021-01-14T22:29:08Z |
CLN,TYP Remove string return annotations | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9601be40fdebb..88d18e3e230c6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -145,11 +145,12 @@ repos:
language: pygrep
types_or: [python, cython]
- id: unwanted-typing
- name: Check for use of com... |
- [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 was just done with
```python
parser = argparse.ArgumentParser()
parser.add_argument('paths', nargs='*', type=Path)
args = parser.parse_arg... | https://api.github.com/repos/pandas-dev/pandas/pulls/39174 | 2021-01-14T16:49:32Z | 2021-01-16T11:15:51Z | 2021-01-16T11:15:51Z | 2021-01-16T11:33:14Z |
REF: extract more functions in pandas/core/describe.py | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 4c178de2a182e..5a4c0deb7503c 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -25,7 +25,7 @@
from pandas.io.formats.format import format_percentiles
if TYPE_CHECKING:
- from pandas import Series
+ from pandas import Data... | - [ ] xref #36833
- [ ] 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
Extracted ``describe_series``, ``describe_frame`` and ``select_column`` in ``pandas/core/des... | https://api.github.com/repos/pandas-dev/pandas/pulls/39170 | 2021-01-14T15:35:23Z | 2021-01-14T16:34:39Z | 2021-01-14T16:34:39Z | 2021-01-15T10:16:56Z |
REF/TYP: extract function/type args in describe.py | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 4a67725449ca8..4c178de2a182e 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -4,7 +4,7 @@
Method NDFrame.describe() delegates actual execution to function describe_ndframe().
"""
-from typing import TYPE_CHECKING, List, Optio... | - [ ] xref #36833
- [ ] 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
Extracted function ``_refine_percentiles`` and typed function arguments in ``pandas/core/des... | https://api.github.com/repos/pandas-dev/pandas/pulls/39165 | 2021-01-14T07:40:16Z | 2021-01-14T14:20:43Z | 2021-01-14T14:20:43Z | 2021-01-15T12:14:26Z |
API/BUG: always try to operate inplace when setting with loc/iloc[foo, bar] | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index f7204ceb9d412..68130baff1847 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -181,6 +181,46 @@ Preserve dtypes in :meth:`~pandas.DataFrame.combine_first`
combined.dtypes
+Try operating inplace... | - [x] closes #38896
- [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
(The PR title should have a caveat "in cases that make it to `BlockManager.setitem`)
Di... | https://api.github.com/repos/pandas-dev/pandas/pulls/39163 | 2021-01-14T02:49:27Z | 2021-03-05T00:09:35Z | 2021-03-05T00:09:34Z | 2021-03-08T22:15:38Z |
Fix regression in loc setitem raising KeyError when enlarging df with multiindex | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 1c8db4dd32393..55fddb8b732e2 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -29,7 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.diff` raising for ``int8`` and ``int16`` col... | - [x] closes #39147
- [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
The previous fix only viewed row indexers not column indexers | https://api.github.com/repos/pandas-dev/pandas/pulls/39161 | 2021-01-14T00:03:38Z | 2021-01-15T14:14:18Z | 2021-01-15T14:14:18Z | 2021-01-15T16:04:31Z |
Backport PR #39029: BUG: read_csv does not close file during an error in _make_reader | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 849b599141c2b..1c8db4dd32393 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -40,7 +40,7 @@ Bug fixes
~~~~~~~~~
- Bug in :meth:`read_csv` with ``float_precision="high"`` caused segfault or wrong pa... | Backport PR #39029 | https://api.github.com/repos/pandas-dev/pandas/pulls/39160 | 2021-01-13T23:58:39Z | 2021-01-14T13:09:09Z | 2021-01-14T13:09:09Z | 2021-01-19T15:54:13Z |
ERR: Fix missing space in warning message | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index a11bf370412d2..a6ffa685054fa 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1924,7 +1924,7 @@ def _concatenate_chunks(list chunks):
if warning_columns:
warning_names = ','.join(warning_columns)
warnin... | - [x] closes #39158
- [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/39159 | 2021-01-13T23:51:03Z | 2021-05-26T02:20:11Z | null | 2023-05-11T01:20:44Z |
Backport PR #39156 on branch 1.2.x (CI: Mark network test as xfail) | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index 97f82b9a01a9a..726c5ebffe9b5 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -208,6 +208,7 @@ def test_read_s3_fails(self, s3so):
with pytest.raises(IOError):
... | Backport PR #39156: CI: Mark network test as xfail | https://api.github.com/repos/pandas-dev/pandas/pulls/39157 | 2021-01-13T23:40:30Z | 2021-01-14T00:29:42Z | 2021-01-14T00:29:42Z | 2021-01-14T00:29:42Z |
CI: Mark network test as xfail | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index c22945e931f18..8ddb860597ddd 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -209,6 +209,7 @@ def test_read_s3_fails(self, s3so):
with pytest.raises(IOError, ma... | - [x] xref #39155
- [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://github.com/pandas-dev/pandas/issues/39155#issuecomment-759783358
| https://api.github.com/repos/pandas-dev/pandas/pulls/39156 | 2021-01-13T22:52:12Z | 2021-01-13T23:38:47Z | 2021-01-13T23:38:47Z | 2021-01-13T23:41:29Z |
BUG: Minor fix setitem_cache_updating tests | diff --git a/pandas/tests/indexing/test_chaining_and_caching.py b/pandas/tests/indexing/test_chaining_and_caching.py
index 0047b396c68b0..119091657223a 100644
--- a/pandas/tests/indexing/test_chaining_and_caching.py
+++ b/pandas/tests/indexing/test_chaining_and_caching.py
@@ -36,7 +36,7 @@ def test_setitem_cache_updati... | BUG: tiny fix in tests, i guess from rapid development ;) -> https://github.com/pandas-dev/pandas/issues/5424#issuecomment-27658793
| https://api.github.com/repos/pandas-dev/pandas/pulls/39153 | 2021-01-13T20:16:26Z | 2021-01-14T15:56:14Z | 2021-01-14T15:56:14Z | 2021-01-14T15:56:19Z |
CLN remove 'import pandas as pd' from pandas/core/generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9e3f6f8e36175..207523fa55c5e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -85,7 +85,6 @@
from pandas.core.dtypes.inference import is_hashable
from pandas.core.dtypes.missing import isna, notna
-import pandas as pd
from pandas... | - [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
---
will do the rest (excluding `pandas/tests`) and add a check if this is the kind of thing we want | https://api.github.com/repos/pandas-dev/pandas/pulls/39152 | 2021-01-13T17:55:04Z | 2021-01-14T19:18:37Z | 2021-01-14T19:18:37Z | 2021-01-31T13:28:25Z |
DOC: 1.3 release notes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 170d3eeb1e252..196d2f2d968a7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -33,17 +33,12 @@ For example:
storage_options=headers
)
-.. _whatsnew_130.window_method_table:
-
-:class:`Ro... | https://api.github.com/repos/pandas-dev/pandas/pulls/39150 | 2021-01-13T16:49:36Z | 2021-01-14T15:58:21Z | 2021-01-14T15:58:21Z | 2021-01-14T15:58:26Z | |
REF: implement is_exact_match | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index a221f77f26170..79479c6db8d9d 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -5,7 +5,7 @@
import numpy as np
-from pandas._typing import Any, AnyArrayLike
+from pandas._typing import Any, AnyArrayLike, ArrayLike
from pand... | Working to smooth out some inconsistencies in setitem between code paths. | https://api.github.com/repos/pandas-dev/pandas/pulls/39149 | 2021-01-13T16:14:38Z | 2021-01-14T14:23:03Z | 2021-01-14T14:23:03Z | 2021-01-14T15:33:08Z |
Backport PR #38982 on branch 1.2.x (REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 36b4b4fa77c4a..849b599141c2b 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.replace` raising ``ValueError`` when :class:`DataFr... | Backport PR #38982: REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types | https://api.github.com/repos/pandas-dev/pandas/pulls/39145 | 2021-01-13T13:20:16Z | 2021-01-13T14:00:07Z | 2021-01-13T14:00:07Z | 2021-01-13T14:00:07Z |
ENH: Allow Series.apply to accept list-like and dict-like | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0cb46a5164674..3082c2278966d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -50,7 +50,8 @@ Other enhancements
- :func:`pandas.read_excel` can now auto detect .xlsb files (:issue:`35416`)
- :meth:`.R... | - [x] closes #39140
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
I only added the Series.apply list/dict-like addition to the whatsnew. For both Series and... | https://api.github.com/repos/pandas-dev/pandas/pulls/39141 | 2021-01-13T04:30:13Z | 2021-01-14T20:48:36Z | 2021-01-14T20:48:36Z | 2021-01-15T01:27:53Z |
BUG: Placeholders not being filled on docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2d6a3513bf991..6a80fa3e93362 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10587,8 +10587,10 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
# [assignment]
cls.all = all # type: igno... | - [x] closes #39115
- [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/39139 | 2021-01-13T02:29:00Z | 2021-01-17T15:59:40Z | 2021-01-17T15:59:39Z | 2021-01-17T16:00:43Z |
ASV: Add xlrd engine for xls file | diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py
index 96f02d37db1e1..7efaeddecd423 100644
--- a/asv_bench/benchmarks/io/excel.py
+++ b/asv_bench/benchmarks/io/excel.py
@@ -40,9 +40,10 @@ def time_write_excel(self, engine):
class ReadExcel:
- params = ["openpyxl", "odf"]
+ par... | - [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
Is one parametrized function more efficient than multiple functions during setup and teardown? If not I would make a separate function for the xls benchmark
c... | https://api.github.com/repos/pandas-dev/pandas/pulls/39137 | 2021-01-12T22:44:37Z | 2021-01-13T13:41:20Z | 2021-01-13T13:41:20Z | 2021-01-13T16:55:12Z |
BUG: setting categorical values into object dtype DataFrame | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0cb46a5164674..25bd3b43be3ed 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -186,6 +186,8 @@ Categorical
- Bug in ``CategoricalIndex.reindex`` failed when ``Index`` passed with elements all in catego... | - [ ] 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
```
df = pd.DataFrame({"A": range(3)}, dtype=object)
cat = pd.Categorical(["alpha", "beta... | https://api.github.com/repos/pandas-dev/pandas/pulls/39136 | 2021-01-12T22:24:38Z | 2021-01-14T20:48:17Z | 2021-01-14T20:48:17Z | 2021-01-14T21:54:22Z |
BUG: Close resources opened by pyxlsb | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 12a886d057199..1fee840c5ed4a 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -292,13 +292,12 @@ def _get_filepath_or_buffer(
# assuming storage_options is to be interpretted as headers
req_info = urllib.request.Request(filepa... | Spin-off from #39047:
- Close resources opened by pyxlsb
- Use context manager when opening non-fsspec URLs (I'm not sure whether that reduced any `ResourceWarning`s but it can't hurt)
| https://api.github.com/repos/pandas-dev/pandas/pulls/39134 | 2021-01-12T22:01:14Z | 2021-01-13T13:22:03Z | 2021-01-13T13:22:03Z | 2021-01-13T15:20:28Z |
PERF: cythonize kendall correlation | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 05b4417f427ab..65b821fe2b8a8 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -205,7 +205,7 @@ Performance improvements
- Performance improvement in :meth:`IntervalIndex.isin` (:issue:`38353`)
- Perfo... | - [x] closes #28329
- [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
ASV's.
before after ratio
[a6bc6ecc] [1eb86441]
... | https://api.github.com/repos/pandas-dev/pandas/pulls/39132 | 2021-01-12T20:39:16Z | 2021-01-20T21:08:10Z | 2021-01-20T21:08:09Z | 2021-01-23T20:26:53Z |
CLN: remove redundant consolidation | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index a1b06f3c9d6a1..ac0955c6c3e4c 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1865,7 +1865,6 @@ def _setitem_single_block(self, indexer, value, name: str):
self.obj._check_is_chained_assignment_possible()
# ac... | We only get here with nblocks == 1 | https://api.github.com/repos/pandas-dev/pandas/pulls/39127 | 2021-01-12T15:58:47Z | 2021-01-13T13:21:12Z | 2021-01-13T13:21:11Z | 2021-01-13T15:35:15Z |
DOC: fixed a minor mistake worksheet -> workbook | diff --git a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
index c92d2a660d753..13029173b2e65 100644
--- a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
+++ b/doc/source/getting_started/comparison/... | A small typo related to #38990
A worksheet can't have multiple worksheets, but a workbook can. Minor fix but may confuse the newcomers
- [ ] 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 th... | https://api.github.com/repos/pandas-dev/pandas/pulls/39124 | 2021-01-12T10:12:41Z | 2021-01-12T13:51:58Z | 2021-01-12T13:51:58Z | 2021-01-12T13:52:02Z |
REF: eliminate inner functions in describe | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 1b5fbaf0e78f9..4a67725449ca8 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -83,98 +83,15 @@ def describe_ndframe(
raise ValueError("percentiles cannot contain duplicates")
percentiles = unique_pcts
- formatte... | - [ ] xref #36833
- [ ] 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
Remove inner functions in ``describe_ndframe``, while passing the required arguments. | https://api.github.com/repos/pandas-dev/pandas/pulls/39121 | 2021-01-12T06:50:56Z | 2021-01-13T13:52:36Z | 2021-01-13T13:52:35Z | 2021-01-14T07:07:42Z |
BUG: Series.__setitem__ with mismatched IntervalDtype | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 38178e41afe95..bd13fdd26195b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -249,6 +249,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc.__setitem__` and :meth:`DataFrame.loc.__setitem__` with mixed dtyp... | - [ ] 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/39120 | 2021-01-12T02:00:14Z | 2021-01-15T14:12:37Z | 2021-01-15T14:12:37Z | 2021-01-15T15:18:04Z |
ENH: Allow numpy ops and DataFrame properties as str arguments to DataFrame.apply | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index e978bf102dedd..db2e2ba3a2e1e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -54,6 +54,8 @@ Other enhancements
- Add support for dict-like names in :class:`MultiIndex.set_names` and :class:`MultiIndex... | - [x] closes #39116
- [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/39118 | 2021-01-11T23:35:03Z | 2021-01-12T01:15:07Z | 2021-01-12T01:15:07Z | 2021-01-12T01:27:48Z |
Backport PR #39112 on branch 1.2.x (DOC: minor cleanup of 1.2.1 release notes) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index e26405c3a332a..36b4b4fa77c4a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -14,9 +14,8 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- The deprecated attributes ``_A... | Backport PR #39112: DOC: minor cleanup of 1.2.1 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/39114 | 2021-01-11T20:02:12Z | 2021-01-12T00:00:27Z | 2021-01-12T00:00:27Z | 2021-01-12T00:00:27Z |
DOC: minor cleanup of 1.2.1 release notes | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index e26405c3a332a..36b4b4fa77c4a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -14,9 +14,8 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- The deprecated attributes ``_A... | https://api.github.com/repos/pandas-dev/pandas/pulls/39112 | 2021-01-11T18:36:11Z | 2021-01-11T19:59:39Z | 2021-01-11T19:59:39Z | 2021-01-11T20:03:50Z | |
DOC: NDFrame fillna method add use case | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2f4340c17c5a7..e34cdf1482021 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6317,7 +6317,7 @@ def fillna(
... [3, 4, np.nan, 1],
... [np.nan, np.nan, np.nan, 5],
... ... | - [x] closes #38917
- [ ] 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
cc @MarcoGorelli | https://api.github.com/repos/pandas-dev/pandas/pulls/39109 | 2021-01-11T15:49:45Z | 2021-01-25T16:40:38Z | 2021-01-25T16:40:37Z | 2021-01-25T16:40:42Z |
TYP: replace Label alias from pandas._typing with Hashable | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 0b50dd69f7abb..91cb01dac76fb 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -84,9 +84,8 @@
FrameOrSeries = TypeVar("FrameOrSeries", bound="NDFrame")
Axis = Union[str, int]
-Label = Optional[Hashable]
-IndexLabel = Union[Label, Sequence[Label]]
-Lev... | - [ ] closes #37134
- [ ] 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/39107 | 2021-01-11T14:13:46Z | 2021-01-11T17:07:01Z | 2021-01-11T17:07:01Z | 2021-01-11T18:12:15Z |
TYP: fix mypy error in pandas/core/common.py | diff --git a/pandas/core/common.py b/pandas/core/common.py
index a6514b5167460..62b3f3639a335 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -463,12 +463,14 @@ def convert_to_list_like(
values: Union[Scalar, Iterable, AnyArrayLike]
) -> Union[List, AnyArrayLike]:
"""
- Convert list-like... | - [ ] xref #37715
- [ ] 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
Handle ignored mypy error in ``pandas/core/common.py``. | https://api.github.com/repos/pandas-dev/pandas/pulls/39106 | 2021-01-11T13:44:27Z | 2021-01-11T14:52:28Z | null | 2021-01-11T14:52:28Z |
sync release notes on 1.2.x from master | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index e612c379606ef..e26405c3a332a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -25,10 +25,10 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc.__setitem__` raising ``ValueError`` when :cla... | PR direct against 1.2.x
syncing release notes between 1.2.x and master | https://api.github.com/repos/pandas-dev/pandas/pulls/39105 | 2021-01-11T13:42:27Z | 2021-01-11T14:56:20Z | 2021-01-11T14:56:20Z | 2021-01-11T14:56:25Z |
TYP: fix mypy errors in pandas/core/arraylike.py | diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py
index cb185dcf78f63..e17ba45f30d6c 100644
--- a/pandas/core/arraylike.py
+++ b/pandas/core/arraylike.py
@@ -228,7 +228,7 @@ def _maybe_fallback(ufunc: Callable, method: str, *inputs: Any, **kwargs: Any):
return NotImplemented
-def array_ufunc(sel... | - [ ] xref #37715
- [ ] 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
Handle ignored mypy errors in ``pandas/core/arraylike.py``. | https://api.github.com/repos/pandas-dev/pandas/pulls/39104 | 2021-01-11T13:29:06Z | 2021-02-15T16:43:18Z | 2021-02-15T16:43:18Z | 2021-02-15T16:43:22Z |
MOVE: describe to pandas/core/describe.py | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
new file mode 100644
index 0000000000000..1b5fbaf0e78f9
--- /dev/null
+++ b/pandas/core/describe.py
@@ -0,0 +1,205 @@
+"""
+Module responsible for execution of NDFrame.describe() method.
+
+Method NDFrame.describe() delegates actual execution to function de... | - [ ] 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
Move ``describe`` functionality to a separate module and prepare for the further refactor/s... | https://api.github.com/repos/pandas-dev/pandas/pulls/39102 | 2021-01-11T13:01:20Z | 2021-01-11T19:58:28Z | 2021-01-11T19:58:28Z | 2021-01-12T06:26:12Z |
TST: add test for describe include/exclude | diff --git a/pandas/tests/frame/methods/test_describe.py b/pandas/tests/frame/methods/test_describe.py
index b7692eee16bf8..148263bad0eb0 100644
--- a/pandas/tests/frame/methods/test_describe.py
+++ b/pandas/tests/frame/methods/test_describe.py
@@ -1,4 +1,5 @@
import numpy as np
+import pytest
import pandas as pd
... | - [ ] 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
Added test for checking that if include is 'all' then setting exclude will raise ValueError... | https://api.github.com/repos/pandas-dev/pandas/pulls/39101 | 2021-01-11T12:33:50Z | 2021-01-11T14:15:27Z | 2021-01-11T14:15:26Z | 2021-01-11T14:15:30Z |
BUG: reindex raising TypeError with timezone aware index and tolerance for ffill and bfill | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cb97fdeccd579..3d19f5ebe4381 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -247,6 +247,7 @@ Indexing
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` when non-uni... | - [x] closes #38566
- [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
Is there a better place for these tests?
EDIT: Technically a regression, but since it p... | https://api.github.com/repos/pandas-dev/pandas/pulls/39095 | 2021-01-10T22:20:57Z | 2021-01-11T14:00:35Z | 2021-01-11T14:00:35Z | 2021-01-12T21:54:49Z |
REF: implement dtypes.cast.can_hold_element | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 6c8711d940558..55755724f1ace 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1880,3 +1880,46 @@ def validate_numeric_casting(dtype: np.dtype, value: Scalar) -> None:
raise ValueError(
f"... | Passes the tests added by #39086, gets us close to collapsing the NumericBlock subclasses and just using NumericBlock directly. | https://api.github.com/repos/pandas-dev/pandas/pulls/39094 | 2021-01-10T20:24:47Z | 2021-01-11T19:59:08Z | 2021-01-11T19:59:08Z | 2021-01-11T21:52:28Z |
TYP: NDFrame.pipe, GroupBy.pipe etc. | diff --git a/pandas/core/common.py b/pandas/core/common.py
index a6514b5167460..e23091b2efa45 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -8,7 +8,18 @@
import contextlib
from functools import partial
import inspect
-from typing import Any, Collection, Iterable, Iterator, List, Optional, Union, ... | Type up `pipe` function and methods. This allows type checkers to understand the return value type from pipes, which is nice.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39093 | 2021-01-10T18:10:43Z | 2021-01-15T10:55:45Z | 2021-01-15T10:55:45Z | 2021-01-15T14:05:49Z |
CLN: Numpy compat functions namespace | diff --git a/pandas/__init__.py b/pandas/__init__.py
index cc5d835a52833..2b64100075987 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -19,7 +19,7 @@
del hard_dependencies, dependency, missing_dependencies
# numpy compat
-from pandas.compat.numpy import (
+from pandas.compat import (
np_version_un... | - [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
Should we do something about the private variables ``_np_version_under1p19`` and ``_np_version_under1p20`` too?
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/39092 | 2021-01-10T17:49:13Z | 2021-01-21T18:11:23Z | 2021-01-21T18:11:23Z | 2021-01-21T20:18:17Z |
DOC: Added reverse rolling window examples | diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst
index 08641bc5b17ae..afb706d61f405 100644
--- a/doc/source/user_guide/window.rst
+++ b/doc/source/user_guide/window.rst
@@ -50,16 +50,16 @@ As noted above, some operations support specifying a window based on a time offs
.. ipython:: py... | - [x] closes #38627
- [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/39091 | 2021-01-10T15:29:50Z | 2021-03-14T03:57:55Z | null | 2021-03-14T03:57:55Z |
CI: Skip numpy dev failing tests | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 2ac9b9e2c875c..ab62abe3bfeff 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -12,6 +12,7 @@
import warnings
from pandas._typing import F
+from pandas.compat.numpy import is_numpy_dev
PY38 = sys.version_info >= (3, ... | - [x] xref #39089
- [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/39090 | 2021-01-10T13:23:02Z | 2021-01-10T19:00:37Z | 2021-01-10T19:00:37Z | 2021-01-10T20:12:33Z |
BUG: setting td64 value into Series[numeric] | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 3d19f5ebe4381..e978bf102dedd 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -251,7 +251,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` raising ``ValueError`` with empty :class:`DataFrame` and s... | - [ ] 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
| https://api.github.com/repos/pandas-dev/pandas/pulls/39086 | 2021-01-10T07:19:15Z | 2021-01-11T17:06:30Z | 2021-01-11T17:06:30Z | 2021-01-11T17:22:34Z |
IntervalIndex/IntervalArray __repr__ remove redundant closed | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 284305b588e4e..56550a8665816 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -149,7 +149,7 @@
>>> pd.arrays.IntervalArray([pd.Interval(0, 1), pd.Interval(1, 5)])
<IntervalArray>
[(0, 1],... | https://api.github.com/repos/pandas-dev/pandas/pulls/39085 | 2021-01-10T06:16:13Z | 2021-01-11T14:01:47Z | 2021-01-11T14:01:47Z | 2021-01-11T16:12:58Z | |
Backport PR #39071 on branch 1.2.x (Regression in loc.setitem raising ValueError with unordered MultiIndex columns and scalar indexer) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 8b0d100b9e1b3..e612c379606ef 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.any` and :meth:`DataFrame.all` not returning a resu... | Backport PR #39071: Regression in loc.setitem raising ValueError with unordered MultiIndex columns and scalar indexer | https://api.github.com/repos/pandas-dev/pandas/pulls/39084 | 2021-01-10T04:01:18Z | 2021-01-11T13:15:03Z | 2021-01-11T13:15:03Z | 2021-01-11T13:18:58Z |
CLN: Simplify optional dependency | diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py
index def881b8fd863..6110ca794e2c2 100644
--- a/pandas/compat/_optional.py
+++ b/pandas/compat/_optional.py
@@ -62,8 +62,7 @@ def _get_version(module: types.ModuleType) -> str:
def import_optional_dependency(
name: str,
extra: str = "",
- ... | - [x] closes #38936
- [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/39083 | 2021-01-10T03:06:44Z | 2021-01-11T13:59:41Z | 2021-01-11T13:59:41Z | 2021-01-11T18:08:54Z |
REF: Remove Apply.get_result | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 874b40f224a26..a618e2a92551d 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -40,7 +40,6 @@
def frame_apply(
obj: DataFrame,
- how: str,
func: AggFuncType,
axis: Axis = 0,
raw: bool = False,
@@ -58,7 +57,6 @@ def fr... | - [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
Slightly simpler and allows typing of the result that we get out of Apply. Having both apply and agg go through get_result would mean typing the result as `Union... | https://api.github.com/repos/pandas-dev/pandas/pulls/39082 | 2021-01-10T02:05:25Z | 2021-01-11T14:27:04Z | 2021-01-11T14:27:04Z | 2021-01-11T14:32:14Z |
Backport PR #39069: REGR: diff_2d raising for int8, int16 | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4b7a4180ee9f9..d40ff81af313b 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :meth:`.GroupBy.sem` where the presence of non-numeric columns would... | https://api.github.com/repos/pandas-dev/pandas/pulls/39081 | 2021-01-10T00:57:30Z | 2021-01-10T02:37:20Z | null | 2021-01-10T02:37:20Z | |
Auto backport of pr 39069 on 1.2.x | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c00cec450c85e..48a3c464b8fe2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,7 +6,7 @@ on:
pull_request:
branches:
- master
- - 1.1.x
+ - 1.2.x
env:
ENV_FILE: environment.yml
@@ -64,7 +64,7 @... | https://api.github.com/repos/pandas-dev/pandas/pulls/39080 | 2021-01-10T00:56:13Z | 2021-01-10T00:56:31Z | null | 2021-01-10T00:56:31Z | |
BUG: read_csv with custom date parser and na_filter=True results in ValueError | diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py
index c0b29d5019675..a73768e9ccca7 100644
--- a/pandas/tests/io/parser/test_parse_dates.py
+++ b/pandas/tests/io/parser/test_parse_dates.py
@@ -56,6 +56,40 @@ def test_separator_date_conflict(all_parsers):
tm.asser... | - [ ] closes #36111
- [ ] 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/39079 | 2021-01-10T00:44:25Z | 2021-01-31T00:11:56Z | null | 2021-02-01T10:00:48Z |
Backport PR #39077 on branch 1.2.x (Remove xlrd benchmark after xlrd was updated to 2.0.1 on conda-forge) | diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py
index 80af2cff41769..96f02d37db1e1 100644
--- a/asv_bench/benchmarks/io/excel.py
+++ b/asv_bench/benchmarks/io/excel.py
@@ -40,7 +40,7 @@ def time_write_excel(self, engine):
class ReadExcel:
- params = ["xlrd", "openpyxl", "odf"]
+... | Backport PR #39077: Remove xlrd benchmark after xlrd was updated to 2.0.1 on conda-forge | https://api.github.com/repos/pandas-dev/pandas/pulls/39078 | 2021-01-10T00:42:17Z | 2021-01-10T02:32:08Z | 2021-01-10T02:32:08Z | 2021-01-10T02:32:08Z |
Remove xlrd benchmark after xlrd was updated to 2.0.1 on conda-forge | diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py
index 80af2cff41769..96f02d37db1e1 100644
--- a/asv_bench/benchmarks/io/excel.py
+++ b/asv_bench/benchmarks/io/excel.py
@@ -40,7 +40,7 @@ def time_write_excel(self, engine):
class ReadExcel:
- params = ["xlrd", "openpyxl", "odf"]
+... | - [x] closes #39076
- [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
Is pinning here the right thing to do in environment.yml?
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/39077 | 2021-01-09T22:19:47Z | 2021-01-10T00:41:50Z | 2021-01-10T00:41:50Z | 2021-01-10T20:27:25Z |
Backport PR #39065 on branch 1.2.x (Regression in replace raising ValueError for bytes object) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4b7a4180ee9f9..28d84c380956c 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -26,6 +26,7 @@ Fixed regressions
- Bug in :meth:`read_csv` with ``float_precision="high"`` caused segfault or wrong parsing... | Backport PR #39065: Regression in replace raising ValueError for bytes object | https://api.github.com/repos/pandas-dev/pandas/pulls/39075 | 2021-01-09T22:06:34Z | 2021-01-10T02:32:32Z | 2021-01-10T02:32:32Z | 2021-01-10T02:32:32Z |
Fixed #39073 Add STUMPY to Pandas ecosystem docs | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index e84f156035725..bb89b91954518 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -85,6 +85,14 @@ Featuretools is a Python library for automated feature engineering built on top
Compose is a machine learning tool for labeling d... | - [ ] closes #39073
- [ ] 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/39074 | 2021-01-09T21:56:27Z | 2021-01-10T02:39:04Z | 2021-01-10T02:39:04Z | 2021-01-10T02:39:08Z |
TST GH26807 Break up pandas/tests/io/pytables/test_store.py | diff --git a/pandas/tests/io/pytables/test_append.py b/pandas/tests/io/pytables/test_append.py
new file mode 100644
index 0000000000000..3eebeee9788c6
--- /dev/null
+++ b/pandas/tests/io/pytables/test_append.py
@@ -0,0 +1,927 @@
+import datetime
+from datetime import timedelta
+import re
+from warnings import catch_war... | This PR addresses xref #26807 for pandas/tests/io/pytables/test_store.py, which was more than 5000 lines before this attempt. I made a new directory pandas/tests/io/pytables/store/ to put all the new modules in. I tried to 1) get all the new modules below 1000 lines and 2) break it up in a somewhat logical way, but let... | https://api.github.com/repos/pandas-dev/pandas/pulls/39072 | 2021-01-09T21:17:33Z | 2021-01-13T18:04:33Z | 2021-01-13T18:04:33Z | 2021-01-13T18:04:39Z |
Regression in loc.setitem raising ValueError with unordered MultiIndex columns and scalar indexer | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 31bff510e9c59..e26405c3a332a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.any` and :meth:`DataFrame.all` not returning a resu... | - [x] closes #38601
- [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
@jbrockmendel Would it be faster to use arange too in the line above of my fix instead of ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39071 | 2021-01-09T21:13:36Z | 2021-01-10T03:59:07Z | 2021-01-10T03:59:06Z | 2021-01-11T17:06:34Z |
TYP: PeriodArray._unbox_scalar | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 96a075dd21bf9..235bd2753742f 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -272,7 +272,7 @@ def _generate_range(cls, start, end, periods, freq, fields):
def _unbox_scalar(
self, value: Union[... | mypy errors with numpy 1.20
pandas/core/arrays/period.py:273: error: Return type "int" of "_unbox_scalar" incompatible with return type "Union[signedinteger[_64Bit], datetime64, timedelta64]" in supertype "DatetimeLikeArrayMixin" [override]
pandas/core/arrays/period.py:277: error: Incompatible return value type (g... | https://api.github.com/repos/pandas-dev/pandas/pulls/39070 | 2021-01-09T21:02:08Z | 2021-01-09T22:06:02Z | 2021-01-09T22:06:02Z | 2021-01-10T09:32:13Z |
REGR: diff_2d raising for int8, int16 | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 28d84c380956c..31bff510e9c59 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression in :meth:`Rolling.skew` and :meth:`Rolling.kurt` modifying the object i... | - [x] closes #39050
- [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/39069 | 2021-01-09T20:32:57Z | 2021-01-10T00:42:30Z | 2021-01-10T00:42:30Z | 2021-01-11T13:44:50Z |
BUG/API: DTI/TDI/PI.insert cast to object on failure | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cbbba84da6ae6..06a583fe381d0 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -286,6 +286,7 @@ Indexing
- Bug in :meth:`DataFrame.loc` dropping levels of :class:`MultiIndex` when :class:`DataFrame` use... | - [ ] 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
ATM DTI/TDI/PI/insert are pretty idiosyncratic. This changes them to match the base Index.... | https://api.github.com/repos/pandas-dev/pandas/pulls/39068 | 2021-01-09T20:31:41Z | 2021-01-21T23:58:35Z | 2021-01-21T23:58:35Z | 2021-01-22T00:07:29Z |
TYP: prep _generate_range_overflow_safe for numpy 1.20 | diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py
index 14b442bf71080..dfed3c927b810 100644
--- a/pandas/core/arrays/_ranges.py
+++ b/pandas/core/arrays/_ranges.py
@@ -70,7 +70,7 @@ def generate_regular_range(
def _generate_range_overflow_safe(
endpoint: int, periods: int, stride: int, ... | difficult call, will replace
pandas/core/arrays/_ranges.py:153: error: Incompatible return value type (got "signedinteger[_64Bit]", expected "int") [return-value]
pandas/core/arrays/_ranges.py:171: error: Incompatible return value type (got "unsignedinteger[_64Bit]", expected "int") [return-value]
with
pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/39067 | 2021-01-09T20:30:00Z | 2021-02-02T09:00:19Z | null | 2021-02-02T09:00:19Z |
TYP: ALL_NUMPY_DTYPES mypy errors with numpy-1.20 | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index c51ceb750c338..415dfd80d38e6 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -108,9 +108,9 @@
DATETIME64_DTYPES: List[Dtype] = ["datetime64[ns]", "M8[ns]"]
TIMEDELTA64_DTYPES: List[Dtype] = ["timedelta64[ns]", "... | prevents mypy errors
pandas/_testing/__init__.py:122: error: Unsupported operand types for + ("List[Union[ExtensionDtype, Union[str, dtype[Any]], Type[str], Type[float], Type[int], Type[complex], Type[bool], Type[object]]]" and "List[object]") [operator]
pandas/_testing/__init__.py:123: error: Unsupported operand ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39066 | 2021-01-09T20:03:59Z | 2021-01-09T21:34:55Z | 2021-01-09T21:34:55Z | 2021-01-10T09:23:31Z |
Regression in replace raising ValueError for bytes object | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4b7a4180ee9f9..28d84c380956c 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -26,6 +26,7 @@ Fixed regressions
- Bug in :meth:`read_csv` with ``float_precision="high"`` caused segfault or wrong parsing... | - [x] closes #38900
- [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/39065 | 2021-01-09T19:42:51Z | 2021-01-09T22:05:14Z | 2021-01-09T22:05:13Z | 2021-01-09T22:23:17Z |
Added docs for the change of behavior of isin | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b248899a171ff..3888194305d76 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4599,6 +4599,15 @@ def isin(self, values) -> Series:
4 True
5 False
Name: animal, dtype: bool
+
+ Strings and integers... | This is to close issue #38781, I added documentation to explain the change of behavior of the isin function.
- [x] closes #38781
- [ ] 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
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/39064 | 2021-01-09T18:35:05Z | 2021-01-17T15:36:02Z | 2021-01-17T15:36:01Z | 2021-01-17T15:37:27Z |
TST: skips in extension.test_categorical | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index 472e783c977f0..7e7f1f1a6e025 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -394,7 +394,7 @@ def test_hash_pandas_object_works(self, data, as_frame):
def test_se... | - [x] closes #38904
- [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
cc @simonjayhawkins
For the searchsorted test, the categorical data starts off ordered as "C" < "A" < "B" but then gets reordered in t... | https://api.github.com/repos/pandas-dev/pandas/pulls/39062 | 2021-01-09T16:25:36Z | 2021-01-12T01:17:22Z | 2021-01-12T01:17:22Z | 2021-01-12T01:28:00Z |
REF: Move Series.apply/agg into apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 6c503eefed54b..874b40f224a26 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -8,6 +8,7 @@
from pandas._config import option_context
+from pandas._libs import lib
from pandas._typing import (
AggFuncType,
AggFuncTypeBase,
@@ -... | - [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
Will do follow up to share list/dict/str code in Apply for how=apply; they are essentially identical. | https://api.github.com/repos/pandas-dev/pandas/pulls/39061 | 2021-01-09T15:22:44Z | 2021-01-09T21:24:43Z | 2021-01-09T21:24:43Z | 2021-01-09T21:25:23Z |
BUG: in network decorator | diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py
index 5f27b016b68a2..f3de9c1502c37 100644
--- a/pandas/_testing/_io.py
+++ b/pandas/_testing/_io.py
@@ -1,7 +1,7 @@
import bz2
from functools import wraps
import gzip
-from typing import Any, Callable, Optional, Tuple
+from typing import Any, Callable, Ite... | https://api.github.com/repos/pandas-dev/pandas/pulls/39060 | 2021-01-09T15:18:04Z | 2021-01-11T20:45:34Z | null | 2021-01-11T20:45:34Z | |
TYP: remove ignore in optional_args | diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py
index 5f27b016b68a2..bc38d894c3d5b 100644
--- a/pandas/_testing/_io.py
+++ b/pandas/_testing/_io.py
@@ -82,10 +82,7 @@ def dec(f):
is_decorating = not kwargs and len(args) == 1 and callable(args[0])
if is_decorating:
f = args[0]... | xref #37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/39059 | 2021-01-09T14:25:09Z | 2021-02-02T09:01:04Z | null | 2021-02-02T09:01:04Z |
TYP: series apply method adds type hints | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6586ac8b01840..897e7c65466ae 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -3980,7 +3980,13 @@ def transform(
) -> FrameOrSeriesUnion:
return transform(self, func, axis, *args, **kwargs)
- def apply(self, func, conve... |
- [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/39058 | 2021-01-09T14:13:02Z | 2021-01-11T12:21:21Z | 2021-01-11T12:21:20Z | 2021-01-11T12:21:21Z |
TYP: remove ignore from makeCustomIndex | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index c51ceb750c338..e00cb487ed4f4 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -1,11 +1,11 @@
-from collections import Counter
+import collections
from datetime import datetime
from functools import wraps
import ... | xref #37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/39057 | 2021-01-09T14:04:45Z | 2021-01-09T21:16:56Z | 2021-01-09T21:16:56Z | 2021-01-10T09:25:27Z |
TYP: remove ignore from makeMissingDataframe | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index c51ceb750c338..d254e8ec99435 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -468,7 +468,7 @@ def makeTimeDataFrame(nper=None, freq="B"):
return DataFrame(data)
-def makeDataFrame():
+def makeDataFrame() ... | xref #37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/39056 | 2021-01-09T14:01:40Z | 2021-01-09T21:18:17Z | 2021-01-09T21:18:17Z | 2021-01-10T09:24:15Z |
TYP: remove ignore from all_timeseries_index_generator | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 3df1999ce7dce..b36e790f8023b 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import collections
from datetime import datetime
from functools import wraps
@@ -5... | xref #37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/39054 | 2021-01-09T13:06:04Z | 2021-01-10T12:34:13Z | 2021-01-10T12:34:13Z | 2021-01-10T12:34:34Z |
TYP: remove ignores from set_testing_mode and reset_testing_mode | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index c51ceb750c338..3274d75128917 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -136,24 +136,16 @@ def set_testing_mode():
# set the testing mode filters
testing_mode = os.environ.get("PANDAS_TESTING_MODE",... | xref #37715
The error message is self-explanatory although the original code passing a tuple seemed to work also, although not documented.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39052 | 2021-01-09T11:29:12Z | 2021-01-09T21:17:46Z | 2021-01-09T21:17:46Z | 2021-01-10T09:26:01Z |
ENH: try to preserve the dtype on combine_first for the case where the two DataFrame objects have the same columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cb97fdeccd579..557663d10accf 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -65,6 +65,36 @@ Notable bug fixes
These are bug fixes that might have notable behavior changes.
+Preserve dtypes in :m... | …e two DataFrame objects have the same columns
- [ ] closes #7509
- [ ] 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/39051 | 2021-01-09T08:27:59Z | 2021-01-15T16:30:23Z | 2021-01-15T16:30:22Z | 2021-01-15T16:30:28Z |
BUG: pd.to_numeric does not copy _mask for ExtensionArrays | diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py
index d8a5855d05dfd..3807fdd47b54f 100644
--- a/pandas/core/tools/numeric.py
+++ b/pandas/core/tools/numeric.py
@@ -221,7 +221,7 @@ def to_numeric(arg, errors="raise", downcast=None):
from pandas.core.arrays import FloatingArray, IntegerA... | - [x] closes #38974
- [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 (not needed as bug on master only)
Fixing a bug I introduced in #38746 | https://api.github.com/repos/pandas-dev/pandas/pulls/39049 | 2021-01-09T04:42:40Z | 2021-01-09T21:22:56Z | 2021-01-09T21:22:55Z | 2021-01-09T21:22:59Z |
TST: extend check for leaked files | diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml
index 5381caaa242cf..dc6658cc45690 100644
--- a/ci/deps/actions-37-db.yaml
+++ b/ci/deps/actions-37-db.yaml
@@ -51,4 +51,4 @@ dependencies:
- brotlipy
- coverage
- pandas-datareader
- - pyxlsb
+ - pyxlsb>=1.0.8
diff --git a/ci/dep... | Use `ResourceWarning`s as indicators of leaked files. I left the `psutil`-based check for leaked files.
I enabled the check for leaked files for all io tests.
boto3 (#17058) is probably causing all of the unclosed ssl connections. This PR ignores ResourceWarnings that contain the string `'ssl'`. The fixture appli... | https://api.github.com/repos/pandas-dev/pandas/pulls/39047 | 2021-01-09T02:31:51Z | 2021-03-31T22:34:37Z | null | 2022-06-08T19:26:45Z |
BUG: reindexing empty CategoricalIndex would fail if target had duplicates | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1d76c9d296255..d90ccd57be16a 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -192,6 +192,7 @@ Categorical
- Bug in ``CategoricalIndex.reindex`` failed when ``Index`` passed with elements all in catego... | - [x] closes #38906
- [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/39046 | 2021-01-08T23:44:42Z | 2021-01-10T02:39:54Z | 2021-01-10T02:39:53Z | 2021-01-10T02:39:57Z |
Update awkward phrasing | diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst
index 615b944fd395f..a6d8142e68073 100644
--- a/doc/source/getting_started/intro_tutorials/04_plotting.rst
+++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst
@@ -151,7 +151,... | Docs: change
"The builtin options available in each of the pandas plot functions that are worthwhile to have a look."
to
"The builtin options available in each of the pandas plot functions are worth reviewing." | https://api.github.com/repos/pandas-dev/pandas/pulls/39045 | 2021-01-08T23:10:20Z | 2021-01-09T21:21:50Z | 2021-01-09T21:21:50Z | 2021-01-09T21:21:54Z |
BUG/API: make setitem-inplace preserve dtype when possible with PandasArray, IntegerArray, FloatingArray | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index ef645313de614..a2f200192eacb 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -505,14 +505,28 @@ def array_equals(left: ArrayLike, right: ArrayLike) -> bool:
return array_equivalent(left, right, dt... | - [ ] 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
xref #38896 (doesn't close). In general `df[:, "A"] = foo` tries to operate in-place befor... | https://api.github.com/repos/pandas-dev/pandas/pulls/39044 | 2021-01-08T22:30:49Z | 2021-02-18T00:15:28Z | null | 2021-07-16T16:08:40Z |
CI: use conda incubator in benchmarks | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 516d37a483ce4..b551e7ded0178 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,7 @@ name: CI
on:
push:
- branches: master
+ branches: [master]
pull_request:
branches:
- master
@@ -10,16 +10,17... | The benchmark ci currently has the longest runtime. Using conda incubator would save about 6-8 min.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39043 | 2021-01-08T22:17:36Z | 2021-01-14T19:14:50Z | 2021-01-14T19:14:50Z | 2021-03-18T16:37:14Z |
REF: Prep for moving Series.apply into apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index ac98f3736be6d..6c503eefed54b 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -43,7 +43,7 @@ def frame_apply(
result_type: Optional[str] = None,
args=None,
kwds=None,
-):
+) -> FrameApply:
""" construct and return a row or... | - [ ] closes #xxxx
- [ ] 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
Will be moving Series.apply into apply next. The plan is to have a base class Apply which i... | https://api.github.com/repos/pandas-dev/pandas/pulls/39042 | 2021-01-08T21:31:27Z | 2021-01-08T23:08:21Z | 2021-01-08T23:08:21Z | 2021-01-09T01:57:25Z |
BUG: DataFrame.iloc.__setitem__ with IntegerArray values | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 94c7d325d0bc8..e4bb28c34dbe8 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -984,6 +984,14 @@ def setitem(self, indexer, value):
values = values.astype(arr_value.dtype, copy=False)
... | - [x] closes #38952
- [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/39040 | 2021-01-08T19:23:03Z | 2021-01-09T22:26:22Z | 2021-01-09T22:26:22Z | 2021-01-09T23:27:40Z |
CLN, TYP use from __future__ import annotations | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index aeae39094ba7c..e65e9302dd4d5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3220,7 +3220,7 @@ def _setitem_frame(self, key, value):
self._check_setitem_copy()
self._where(-key, value, inplace=True)
- def _set_item_fr... | Seeing as pandas is Python3.7+ we can clean up some annotations. Not yet figured out how to write a good automated check for this, but here's a start | https://api.github.com/repos/pandas-dev/pandas/pulls/39036 | 2021-01-08T12:30:21Z | 2021-01-08T13:23:38Z | 2021-01-08T13:23:38Z | 2021-01-10T13:59:02Z |
API: concatting DataFrames does not skip empty objects | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 9e557a0020f1e..c2372b0e6b9a1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -312,8 +312,8 @@ Reshaping
- Bug in :func:`merge` raising error when performing an inner join with partial index and ``righ... | See discussion in https://github.com/pandas-dev/pandas/pull/38843
To repeat the main argument: when not skipping empty objects, the resulting dtype of a concat-operation only depends on the input *dtypes*, and not on the exact content (the exact values, how many values (shape)). In general we want to get rid of valu... | https://api.github.com/repos/pandas-dev/pandas/pulls/39035 | 2021-01-08T09:28:29Z | 2021-01-08T15:58:27Z | 2021-01-08T15:58:27Z | 2021-01-12T08:36:34Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.