title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
[ArrowStringArray] Use `utf8_is_*` functions from Apache Arrow if available | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 76257e1b40f1a..5d9b1c135d7ae 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -50,91 +50,126 @@ def peakmem_cat_frame_construction(self, dtype):
class Methods:
- def setup(self):
- se... | xref https://github.com/xhochy/fletcher/pull/203
marked as draft since AFAICT there is performance issues with BooleanDtype().__from_arrow__ | https://api.github.com/repos/pandas-dev/pandas/pulls/41041 | 2021-04-19T13:47:43Z | 2021-04-25T13:17:15Z | 2021-04-25T13:17:15Z | 2021-04-25T15:48:12Z |
CI: Combined the doctests checks | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d4b6c0d6ff09d..a2a108924a0f2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -106,84 +106,31 @@ fi
### DOCTESTS ###
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
- # Individual files
-
- MSG='Doctests accessor.py' ; echo $MSG
- pytes... | - [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
Doing as was asked [here](https://github.com/pandas-dev/pandas/pull/40903#discussion_r612486254)
| https://api.github.com/repos/pandas-dev/pandas/pulls/41039 | 2021-04-19T13:21:30Z | 2021-04-26T18:25:05Z | 2021-04-26T18:25:05Z | 2021-04-26T19:34:02Z |
DOC: add example for plotting asymmetrical error bars | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index 8b41cc24829c5..2143d7ea75f6e 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -1455,8 +1455,6 @@ Horizontal and vertical error bars can be supplied to the ``xerr`` an... | - [x] closes #41034
- [ ] 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/41035 | 2021-04-19T07:32:11Z | 2021-04-21T04:27:08Z | 2021-04-21T04:27:08Z | 2021-04-21T04:27:21Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5b11490479088..2f46190ef5eb7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
exclude: ^pandas/_libs/src/(klib|headers)/
args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--fi... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/41033 | 2021-04-19T07:14:08Z | 2021-04-19T19:38:04Z | 2021-04-19T19:38:03Z | 2021-05-13T22:26:29Z |
REF: remove Categorical._shallow_copy | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 9e2dd846f0379..6f906cf8879ff 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1876,29 +1876,33 @@ def _sort_tuples(values: np.ndarray) -> np.ndarray:
return values[indexer]
-def union_with_duplicates(lvals: np.nd... | - [ ] 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
@phofl parts of this may be worth doing in #40967 | https://api.github.com/repos/pandas-dev/pandas/pulls/41030 | 2021-04-19T04:01:55Z | 2021-04-19T13:38:44Z | 2021-04-19T13:38:44Z | 2021-04-19T14:48:38Z |
TYP: aggregations.pyx | diff --git a/pandas/_libs/window/aggregations.pyi b/pandas/_libs/window/aggregations.pyi
new file mode 100644
index 0000000000000..3391edac84224
--- /dev/null
+++ b/pandas/_libs/window/aggregations.pyi
@@ -0,0 +1,126 @@
+from typing import (
+ Any,
+ Callable,
+ Literal,
+)
+
+import numpy as np
+
+def roll_su... | @mroeschke the type:ignores added in ewm.py look like potential bugs. any thoughts? | https://api.github.com/repos/pandas-dev/pandas/pulls/41029 | 2021-04-19T03:52:38Z | 2021-04-28T00:46:56Z | 2021-04-28T00:46:56Z | 2021-04-28T01:06:37Z |
added test case for iloc function if it returns the same output for b… | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 82971e460a8a2..de053b24de70f 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -44,6 +44,7 @@
isna,
)
+from pandas.core.arrays.integer import IntegerArray
import pandas.core.common as com
from pandas.core.construction imp... | …oth numpy and pandas arrays to fix the issue #40933
- [x] closes #40933
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/41028 | 2021-04-19T01:17:54Z | 2021-05-25T10:46:55Z | null | 2021-05-25T10:46:55Z |
BUG: Handling NaN case before dtype conversion #40638 | diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py
index 45656459792ba..f23ab6b45b024 100644
--- a/pandas/core/arrays/numpy_.py
+++ b/pandas/core/arrays/numpy_.py
@@ -355,9 +355,14 @@ def to_numpy( # type: ignore[override]
copy: bool = False,
na_value=lib.no_default,
) -> n... | - [ ] closes #40638
- [ ] 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
Handles the NA/NaN case before the dtype conversion | https://api.github.com/repos/pandas-dev/pandas/pulls/41027 | 2021-04-19T01:05:37Z | 2021-05-25T10:55:12Z | null | 2021-05-25T10:55:12Z |
BUG: Changing return is_named_tuble to a tuple sublclass #40682 | diff --git a/pandas/core/dtypes/inference.py b/pandas/core/dtypes/inference.py
index 58da2570015b5..c2759be07c857 100644
--- a/pandas/core/dtypes/inference.py
+++ b/pandas/core/dtypes/inference.py
@@ -315,7 +315,7 @@ def is_named_tuple(obj) -> bool:
>>> is_named_tuple((1, 2))
False
"""
- return isinst... | - [ ] closes #40682
- [ ] 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
Changed pandas/core/dtypes/inference.py so that the return of the is_named_tuple function ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41026 | 2021-04-18T20:17:54Z | 2021-06-16T13:04:54Z | null | 2021-06-16T13:04:54Z |
[ArrowStringArray] implement ArrowStringArray._str_contains | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index 5d9b1c135d7ae..45a9053954569 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -213,13 +213,18 @@ def time_cat(self, other_cols, sep, na_rep, na_frac):
class Contains:
- params = [True, False... | not yet dealt with `na`. no tests are failing so we need tests for this.
we can either use the fallback when `na` is specified or handle `na` in the array method, which may be more performant.
should we replicate StringArray:
```
>>> s = pd.Series(["Mouse", "dog", "house and parrot", "23", np.NaN], dtype="str... | https://api.github.com/repos/pandas-dev/pandas/pulls/41025 | 2021-04-18T19:41:59Z | 2021-04-26T12:15:39Z | 2021-04-26T12:15:39Z | 2021-05-01T15:51:56Z |
REF: pass arguments to Index._foo_indexer correctly | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 310ee4c3a63e3..7f969ea5a26af 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -302,23 +302,47 @@ class Index(IndexOpsMixin, PandasObject):
# for why we need to wrap these instead of making them class attribut... | ATM when we call self._inner_indexer in Index._union it raises on CategoricalIndex bc we are calling it incorrectly. Fixing that required moving the unwrapping/wrapping for Index._foo_indexer closer to just around the cython calls. | https://api.github.com/repos/pandas-dev/pandas/pulls/41024 | 2021-04-18T18:27:47Z | 2021-04-19T13:41:50Z | 2021-04-19T13:41:50Z | 2021-04-19T14:55:09Z |
ENH: check for string and convert to list in DataFrame.dropna subset argument | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 16ee728a4425a..d6ad5eb2003ce 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -177,6 +177,7 @@ Other enhancements
- :meth:`DataFrame.__pos__`, :meth:`DataFrame.__neg__` now retain ``ExtensionDtype`` dt... | - [x] closes #41021
- [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/41022 | 2021-04-18T18:04:22Z | 2021-10-18T15:48:48Z | 2021-10-18T15:48:47Z | 2021-10-18T15:48:58Z |
BUG: isna not returning copy for MaskedArray | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 85d9acff353be..1a11fffbf6b4e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -749,6 +749,7 @@ Missing
- Bug in :class:`Grouper` now correctly propagates ``dropna`` argument and :meth:`DataFrameGroupBy... | - [x] closes #40935
- [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
Think further improvements like zero-copy access fall under #34873, so #40935 can be close... | https://api.github.com/repos/pandas-dev/pandas/pulls/41020 | 2021-04-18T17:52:55Z | 2021-04-20T12:52:12Z | 2021-04-20T12:52:12Z | 2021-04-20T13:04:51Z |
Backport PR #41015 on branch 1.2.x (Revert "Skipt failing tests for numpy dev (#40877)") | diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py
index 9b854a81f2def..01de64568a011 100644
--- a/pandas/tests/arrays/boolean/test_arithmetic.py
+++ b/pandas/tests/arrays/boolean/test_arithmetic.py
@@ -66,10 +66,7 @@ def test_div(left_array, right_array):
@pyt... | Backport pr #41015 | https://api.github.com/repos/pandas-dev/pandas/pulls/41019 | 2021-04-18T16:02:01Z | 2021-04-18T17:50:27Z | 2021-04-18T17:50:27Z | 2021-04-18T17:50:30Z |
[ArrowStringArray] fix test_astype_int, test_astype_float | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 219c52c4a65b9..a6835ab1325a0 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -31,14 +31,17 @@
from pandas.util._decorators import doc
from pandas.util._validators import validate_fill... | https://api.github.com/repos/pandas-dev/pandas/pulls/41018 | 2021-04-18T14:11:39Z | 2021-05-31T16:21:07Z | 2021-05-31T16:21:07Z | 2021-05-31T17:23:04Z | |
Fix 33634: If aggregation function returns NaN the order of the index on the resulting df is not maintained | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1eb22436204a8..6f39dc4917024 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -973,6 +973,7 @@ Other
- Bug in :meth:`DataFrame.equals`, :meth:`Series.equals`, :meth:`Index.equals` with object-dtype con... | - [x] closes #33634
- [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/41017 | 2021-04-18T13:44:15Z | 2021-05-21T01:16:05Z | 2021-05-21T01:16:05Z | 2021-05-21T01:16:15Z |
Revert "Skipt failing tests for numpy dev (#40877)" | diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py
index 8e879372cba31..f8f1af4c3da51 100644
--- a/pandas/tests/arrays/boolean/test_arithmetic.py
+++ b/pandas/tests/arrays/boolean/test_arithmetic.py
@@ -69,10 +69,7 @@ def test_div(left_array, right_array):
@pyt... | - [x] closes #40874
new numpy wheel is out, bug was fixed during the week
| https://api.github.com/repos/pandas-dev/pandas/pulls/41015 | 2021-04-18T11:13:42Z | 2021-04-18T15:55:39Z | 2021-04-18T15:55:39Z | 2021-04-18T16:03:01Z |
DOC: update `style.ipynb` user guide for recent enhancements | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 765b2929d3014..86696cc909764 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1006,7 +1006,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "We expect certain sty... | I added small changes to the Styler User Guide to exemplify the new builtin highlighting functions.
Also removed some of the longer detail which has been moved to individual documentation pages (for example for `background_gradient`) | https://api.github.com/repos/pandas-dev/pandas/pulls/41013 | 2021-04-18T06:02:13Z | 2021-04-21T18:31:39Z | 2021-04-21T18:31:39Z | 2021-04-22T10:34:56Z |
DOC: Improve describe() documentation | diff --git a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst b/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
index e8e0fef271a74..2dcc8b0abe3b8 100644
--- a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst
+++ b/doc/source/getting_started/intro_tutorials/01_table_orie... | - [x] closes #40972
- [ ] 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
It feels more verbose, but necessary? | https://api.github.com/repos/pandas-dev/pandas/pulls/41012 | 2021-04-18T05:52:26Z | 2021-04-20T04:26:26Z | 2021-04-20T04:26:26Z | 2021-04-20T04:26:36Z |
CLN: remove ensure_int_or_float | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 59550927299fe..e207dac71752e 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -128,51 +128,6 @@ def ensure_str(value: Union[bytes, Any]) -> str:
return value
-def ensure_int_or_float(arr: ArrayLike, co... | - [x] closes #27506
- [ ] 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
No need for a try/except; we can reason out which branch we go down in each of the places ... | https://api.github.com/repos/pandas-dev/pandas/pulls/41011 | 2021-04-18T04:01:23Z | 2021-04-19T13:51:57Z | 2021-04-19T13:51:57Z | 2021-04-19T14:43:15Z |
BUG: groupby.rank with MaskedArray incorrect casting | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1a11fffbf6b4e..2487b5fca591b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -832,6 +832,7 @@ Groupby/resample/rolling
- Bug in :class:`core.window.RollingGroupby` where ``as_index=False`` argument in... | - [ ] 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
In master:
```
df = pd.DataFrame({"key": ["a"] * 4, "val": [1] * 4})
df["val"] = df["val... | https://api.github.com/repos/pandas-dev/pandas/pulls/41010 | 2021-04-18T03:23:27Z | 2021-04-20T22:56:41Z | 2021-04-20T22:56:41Z | 2021-04-20T22:59:10Z |
Fix setting dataframe column to 2d array with more than one col | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 38766d2856cfe..c6a6955c5a7fd 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3682,6 +3682,7 @@ def _set_item_frame_value(self, key, value: DataFrame) -> None:
def _iset_item_mgr(self, loc: int | slice | np.ndarray, value) -> None:
... | - [ ] closes #40827
- [ ] 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
I throw a value error when a dataframe column is assigned to an object with `ndim == 2` with more than one colum... | https://api.github.com/repos/pandas-dev/pandas/pulls/41008 | 2021-04-17T21:56:18Z | 2021-04-28T10:01:21Z | null | 2021-04-28T10:56:48Z |
TYP: core.computation | diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py
index 5b2dbed7af6ea..7452cf03d0038 100644
--- a/pandas/core/computation/engines.py
+++ b/pandas/core/computation/engines.py
@@ -12,6 +12,7 @@
align_terms,
reconstruct_object,
)
+from pandas.core.computation.expr import Expr
... | - [ ] 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/41007 | 2021-04-17T21:47:41Z | 2021-04-19T13:53:19Z | 2021-04-19T13:53:19Z | 2021-04-19T14:49:41Z |
Bug in to_datetime raising ValueError with None and NaT and more than 50 elements | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1c7942dfedafa..57516a7d039e6 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -813,6 +813,7 @@ Reshaping
- Bug in :meth:`DataFrame.stack` not preserving ``CategoricalDtype`` in a ``MultiIndex`` (:issue... | - [x] closes #39882
- [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
None and NaT are different for unique while convert_listlike casts None to NaT, hence caus... | https://api.github.com/repos/pandas-dev/pandas/pulls/41006 | 2021-04-17T21:34:34Z | 2021-04-20T22:49:56Z | 2021-04-20T22:49:55Z | 2021-04-21T20:40:13Z |
BUG: Fix Dataframe constructor missing sql column names (#40682) | diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py
index a26da75d921ef..b5a18a1fd2674 100644
--- a/pandas/compat/_optional.py
+++ b/pandas/compat/_optional.py
@@ -25,6 +25,7 @@
"s3fs": "0.4.0",
"scipy": "1.2.0",
"sqlalchemy": "1.2.8",
+ "sql_metadata": None,
"tables": "3.5.1",
... | …ames
- [ ] closes #40682
- [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/41005 | 2021-04-17T21:22:45Z | 2021-06-25T16:13:00Z | null | 2021-06-25T16:13:00Z |
fix: function _take_with_is_copy was defined final but overriden | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bad42a85aeeee..d69e933164118 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3626,7 +3626,6 @@ class max_speed
)
return self._constructor(new_data).__finalize__(self, method="take")
- @final
def _take_wi... | - [x] closes #40974
- [ ] 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/41004 | 2021-04-17T20:27:04Z | 2021-04-19T17:22:29Z | 2021-04-19T17:22:28Z | 2021-04-19T17:22:38Z |
CI: suppress warnings | diff --git a/pandas/tests/io/pytables/test_categorical.py b/pandas/tests/io/pytables/test_categorical.py
index 177abdeedb88b..4928a70f90960 100644
--- a/pandas/tests/io/pytables/test_categorical.py
+++ b/pandas/tests/io/pytables/test_categorical.py
@@ -17,7 +17,14 @@
ensure_clean_store,
)
-pytestmark = [pytest.... | - [ ] 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/41003 | 2021-04-17T20:17:48Z | 2021-04-19T13:53:57Z | 2021-04-19T13:53:57Z | 2021-04-19T14:46:40Z |
[ArrowStringArray] fix test_value_counts_na | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index 52bdcd03d3b49..ecbb5367febc5 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -675,13 +675,18 @@ def value_counts(self, dropna: bool = True) -> Series:
vc = self._data.value_c... | https://api.github.com/repos/pandas-dev/pandas/pulls/41002 | 2021-04-17T20:00:27Z | 2021-04-19T14:00:20Z | 2021-04-19T14:00:20Z | 2021-04-19T15:51:02Z | |
[ArrowStringArray] fix test_repeat_with_null | diff --git a/pandas/core/strings/object_array.py b/pandas/core/strings/object_array.py
index dc4550484fa3b..b794690ccc5af 100644
--- a/pandas/core/strings/object_array.py
+++ b/pandas/core/strings/object_array.py
@@ -198,6 +198,7 @@ def scalar_rep(x):
return self._str_map(scalar_rep, dtype=str)
el... | https://api.github.com/repos/pandas-dev/pandas/pulls/41001 | 2021-04-17T18:15:39Z | 2021-04-19T14:00:40Z | 2021-04-19T14:00:40Z | 2021-04-19T15:35:53Z | |
REF: remove how arg from maybe_cast_result | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 6726374dbe30e..e91927d87d318 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -55,7 +55,6 @@
ensure_str,
is_bool,
is_bool_dtype,
- is_categorical_dtype,
is_complex,
is_complex_dtype,
is... | - [ ] 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/41000 | 2021-04-17T14:47:59Z | 2021-04-19T14:01:50Z | 2021-04-19T14:01:50Z | 2021-04-19T14:44:06Z |
Regression modifying obj with all false indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 82971e460a8a2..313ec5af4fe42 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -48,6 +48,7 @@
from pandas.core.construction import array as pd_array
from pandas.core.indexers import (
check_array_indexer,
+ is_empty_index... | - [x] closes #40885
- [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/40999 | 2021-04-17T14:43:17Z | 2021-04-19T14:02:53Z | 2021-04-19T14:02:52Z | 2021-04-19T23:20:21Z |
[ArrowStringArray] BUG: fix test_astype_string for Float32Dtype | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 8d3a8feb89d67..50e8cc4c82e0d 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -829,6 +829,7 @@ def astype(self, dtype, copy: bool = True):
"""
from pandas import Index
from pa... | this also fixes Interval, but that test doesn't fail in #39908 for a single StringDtype parameterized by storage.
| https://api.github.com/repos/pandas-dev/pandas/pulls/40998 | 2021-04-17T11:41:39Z | 2021-04-30T17:24:25Z | 2021-04-30T17:24:25Z | 2021-04-30T17:57:25Z |
CLN: remove CategoricalIndex.unique | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 5b98b956e33e6..c085d68b36bc3 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -386,15 +386,6 @@ def fillna(self, value, downcast=None):
return type(self)._simple_new(cat, name=self.name)
... | made possible by #38140 | https://api.github.com/repos/pandas-dev/pandas/pulls/40995 | 2021-04-17T02:25:15Z | 2021-04-19T14:10:34Z | 2021-04-19T14:10:34Z | 2021-04-19T14:40:54Z |
REGR: memory_map with non-UTF8 encoding | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index 16f9284802407..60e146b2212eb 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :func:`concat` bet... | - [x] closes #40986
- [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
My best guess is that `memory_map=True` always assumed UTF-8 with the python engine. Now t... | https://api.github.com/repos/pandas-dev/pandas/pulls/40994 | 2021-04-17T02:09:57Z | 2021-04-26T12:20:57Z | 2021-04-26T12:20:56Z | 2021-06-05T20:50:11Z |
Deprecate joining over a different number of levels | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1a11fffbf6b4e..f7463218096e5 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -601,6 +601,7 @@ Deprecations
- Deprecated :meth:`.Styler.set_na_rep` and :meth:`.Styler.set_precision` in favour of :meth:... | - [x] closes #34862
- [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 think deprecating this is a good idea, I stumbled across this accidentally this week and... | https://api.github.com/repos/pandas-dev/pandas/pulls/40993 | 2021-04-17T00:22:07Z | 2021-04-20T22:47:54Z | 2021-04-20T22:47:54Z | 2021-04-21T20:40:07Z |
Deprecate suffixes in merge producing duplicate columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1c7942dfedafa..8f900d16ce0ad 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -571,6 +571,7 @@ Deprecations
- Deprecated support for ``np.ma.mrecords.MaskedRecords`` in the :class:`DataFrame` construct... | - [x] closes #22818
- [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 think we should not allow these column collisions at all. Hence deprecating and raising ... | https://api.github.com/repos/pandas-dev/pandas/pulls/40991 | 2021-04-16T23:50:24Z | 2021-04-20T22:47:30Z | 2021-04-20T22:47:29Z | 2021-04-21T20:39:54Z |
TYP: libperiod | diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi
new file mode 100644
index 0000000000000..49e630d605310
--- /dev/null
+++ b/pandas/_libs/tslibs/period.pyi
@@ -0,0 +1,158 @@
+from typing import Literal
+
+import numpy as np
+
+from pandas._libs.tslibs.nattype import NaTType
+from pandas._lib... | - [ ] 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/40990 | 2021-04-16T21:30:41Z | 2021-05-05T12:52:29Z | 2021-05-05T12:52:29Z | 2021-05-05T14:47:17Z |
Bug in loc returning multiindex in wrong oder with duplicated indexer | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d357e4a633347..e29e740ddf8fe 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -871,6 +871,7 @@ Indexing
- Bug in :meth:`DataFrame.loc.__setitem__` when setting-with-expansion incorrectly raising when t... | - [x] closes #40978
- [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 fixes the ordering, but I am not sure if an indexer with duplicates in this case shou... | https://api.github.com/repos/pandas-dev/pandas/pulls/40987 | 2021-04-16T20:26:55Z | 2021-05-26T02:04:16Z | 2021-05-26T02:04:15Z | 2021-05-27T10:26:39Z |
DOC: Reindexing behaviour of dataframe column-assignment missing | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3707e141bc447..cf7f337799be7 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -287,6 +287,10 @@ def loc(self) -> _LocIndexer:
- An alignable boolean Series. The index of the key will be aligned before
masking.
... | - [X] xref #39845 (.loc[] portion of issue)
- [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/40985 | 2021-04-16T17:07:15Z | 2021-09-02T00:43:43Z | null | 2021-09-02T00:43:44Z |
TYP: Signature of "reindex" incompatible with supertype "NDFrame" | diff --git a/pandas/core/series.py b/pandas/core/series.py
index f0f5bd7c3e2b2..a53d65edabec2 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4604,8 +4604,17 @@ def set_axis(self, labels, axis: Axis = 0, inplace: bool = False):
optional_labels=_shared_doc_kwargs["optional_labels"],
... | - [ ] closes #40980
- [ ] 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/40984 | 2021-04-16T15:46:51Z | 2021-11-26T15:05:13Z | 2021-11-26T15:05:13Z | 2021-11-26T17:39:52Z |
REF: enforce annotation in maybe_downcast_to_dtype | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index a373b57accaa9..6726374dbe30e 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -4,7 +4,6 @@
from __future__ import annotations
-from contextlib import suppress
from datetime import (
date,
datetime,
@@ -... | - [ ] 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/40982 | 2021-04-16T14:57:25Z | 2021-04-16T19:02:10Z | 2021-04-16T19:02:10Z | 2021-04-16T21:25:37Z |
TST: use expected_html for to_html tests | diff --git a/pandas/tests/io/formats/data/html/gh13828_expected_output.html b/pandas/tests/io/formats/data/html/gh13828_expected_output.html
new file mode 100644
index 0000000000000..690d638c31d5b
--- /dev/null
+++ b/pandas/tests/io/formats/data/html/gh13828_expected_output.html
@@ -0,0 +1,21 @@
+<table border="1" clas... | xref https://github.com/pandas-dev/pandas/pull/40850#discussion_r611022208 | https://api.github.com/repos/pandas-dev/pandas/pulls/40981 | 2021-04-16T14:33:54Z | 2021-04-16T15:57:20Z | 2021-04-16T15:57:20Z | 2021-04-16T16:03:33Z |
TYP: Signature of "rename" incompatible with supertype "NDFrame" | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 76f68fdaa7845..803d1c914c954 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5073,10 +5073,6 @@ def drop(
errors=errors,
)
- @rewrite_axis_style_signature(
- "mapper",
- [("copy", True), ("inplace", ... | - [x] closes #40977
- [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
---
@WillAyd this should still be backwards compatible, it just makes the signature com... | https://api.github.com/repos/pandas-dev/pandas/pulls/40979 | 2021-04-16T14:17:39Z | 2021-11-26T15:36:25Z | 2021-11-26T15:36:25Z | 2021-11-26T17:44:30Z |
TYP add some missing types to series | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 5c605a6b441c6..1944e5e6196b4 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1019,7 +1019,7 @@ def _get_value(self, label, takeable: bool = False):
loc = self.index.get_loc(label)
return self.index._get_values_for_loc(... | Noticed this while working on #40973
Those without any types won't be checked by `mypy`
e.g.:
```console
$ cat t.py
from typing import final
class Foo:
@final
def foo(x) -> None:
pass
class Bar(Foo):
def foo(x):
pass
$ mypy t.py
Success: no issues found in 1 source fil... | https://api.github.com/repos/pandas-dev/pandas/pulls/40975 | 2021-04-16T10:21:50Z | 2021-04-16T16:54:14Z | 2021-04-16T16:54:14Z | 2021-04-16T17:31:23Z |
STYLE, TYP Turn black formatter off for overloads | diff --git a/.pep8speaks.yml b/.pep8speaks.yml
deleted file mode 100644
index 5a83727ddf5f8..0000000000000
--- a/.pep8speaks.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-# File : .pep8speaks.yml
-
-scanner:
- diff_only: True # If True, errors caused by only the patch are shown
diff --git a/.pre-commit-config.yaml b/.pre-comm... | Following on from the monthly meeting's discussion, some things were suggested:
- turning off the black formatter for the overloads, keeping them in `.py` files (what I've done here)
- moving overloads to `.pyi` files, writing a script to keep them in sync (I tried that this, and it seems that `mypy` behaves a bit ... | https://api.github.com/repos/pandas-dev/pandas/pulls/40973 | 2021-04-16T09:48:37Z | 2021-04-25T19:41:22Z | null | 2021-04-25T19:43:53Z |
BUG: Fix pd.read_orc raising AttributeError | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index b6351ac2232ff..89b21d1984ad3 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -362,6 +362,21 @@ pyarrow 0.15.0 Parquet, ORC, and feather rea... | - [x] closes #40918
- [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 am not sure if this is a reasonable solution. Cause If users install PyArrow from... | https://api.github.com/repos/pandas-dev/pandas/pulls/40970 | 2021-04-16T06:25:47Z | 2021-04-21T12:41:03Z | 2021-04-21T12:41:02Z | 2021-04-25T02:41:50Z |
Updated qcut for Float64DType Issue #40730 | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 85d9acff353be..4ef8fe116596f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -695,7 +695,7 @@ Conversion
- Bug in :class:`Index` construction silently ignoring a passed ``dtype`` when the data cannot ... | This PR is used to address #40730 . qcut is now able to support both intdtype and floatdtype | https://api.github.com/repos/pandas-dev/pandas/pulls/40969 | 2021-04-16T04:14:58Z | 2021-04-26T12:04:15Z | 2021-04-26T12:04:15Z | 2021-04-26T12:04:23Z |
CLN: de-duplicate reindex/align code | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bb8de35d22462..cbc353eead464 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8813,15 +8813,7 @@ def _align_frame(
right = right.fillna(method=method, axis=fill_axis, limit=limit)
# if DatetimeIndex have diffe... | - [ ] 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/40968 | 2021-04-15T20:54:49Z | 2021-04-16T01:09:45Z | 2021-04-16T01:09:45Z | 2021-04-16T01:14:56Z |
TST: Add test for union with duplicates | diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index c9d034361d8c4..75fc7a782772a 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -2418,10 +2418,16 @@ def test_diff_low_precision_int(self, dtype):
tm.assert_numpy_array_equal(result, expected)
-def test_unio... | - [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/40967 | 2021-04-15T20:24:41Z | 2021-04-20T22:51:39Z | 2021-04-20T22:51:38Z | 2021-04-21T20:40:26Z |
REF: move union_categoricals call outside of cython | diff --git a/pandas/_libs/parsers.pyi b/pandas/_libs/parsers.pyi
index 1051c319b769b..18ae23e7fb90d 100644
--- a/pandas/_libs/parsers.pyi
+++ b/pandas/_libs/parsers.pyi
@@ -58,7 +58,6 @@ class TextReader:
true_values=...,
false_values=...,
allow_leading_cols: bool = ...,
- low_memory: ... | There's no real perf bump to calling union_categoricals inside cython, better to do it in the python code where we can e.g. get the benefit of mypy. Plus gets us closer to dependency structure goals.
| https://api.github.com/repos/pandas-dev/pandas/pulls/40964 | 2021-04-15T17:04:55Z | 2021-04-28T14:53:58Z | 2021-04-28T14:53:58Z | 2021-04-28T15:54:28Z |
[ArrowStringArray] TST: more parameterised testing - part 4 | diff --git a/pandas/tests/series/methods/test_astype.py b/pandas/tests/series/methods/test_astype.py
index d23c44733949a..bebe6948cff9c 100644
--- a/pandas/tests/series/methods/test_astype.py
+++ b/pandas/tests/series/methods/test_astype.py
@@ -10,6 +10,7 @@
import pytest
from pandas._libs.tslibs import iNaT
+impor... | still outstanding:
`test_astype_string` in `pandas/tests/extension/base/casting.py` requires separate PR with fix
`test_convert_dtypes` in `pandas/tests/frame/methods/test_convert_dtypes.py` requires discussion https://github.com/pandas-dev/pandas/pull/40747#issuecomment-812508672... probably need to include in (or f... | https://api.github.com/repos/pandas-dev/pandas/pulls/40963 | 2021-04-15T16:56:11Z | 2021-04-16T01:03:57Z | 2021-04-16T01:03:57Z | 2021-04-16T07:03:33Z |
[ArrowStringArray] API: StringArray -> ObjectStringArray | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 329023ed7ba6a..cf8787e9e97aa 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1120,22 +1120,30 @@ def string_dtype(request):
@pytest.fixture(
params=[
- "string",
- pytest.param(
- "arrow_string", marks=td.skip_if_no... | xref https://github.com/pandas-dev/pandas/issues/35169#issuecomment-712372349
this PR is draft as this change has not yet been discussed. (maybe could keep the StringArray the same and create a StringArrayBase instead)
also probably want to do this after #39908 (which is not yet ready) and then move the common ba... | https://api.github.com/repos/pandas-dev/pandas/pulls/40962 | 2021-04-15T12:34:43Z | 2021-11-28T21:04:56Z | null | 2021-11-28T21:04:56Z |
[ArrowStringArray] CLN: imports | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index fd47597b2191f..52bdcd03d3b49 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -25,19 +25,17 @@
from pandas.core.dtypes.base import ExtensionDtype
from pandas.core.dtypes.common impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/40961 | 2021-04-15T10:23:57Z | 2021-04-15T17:27:59Z | 2021-04-15T17:27:58Z | 2021-04-16T07:12:17Z | |
[ArrowStringArray] CLN: move and rename test_string_methods | diff --git a/pandas/tests/arrays/string_/test_string.py b/pandas/tests/arrays/string_/test_string.py
index 749f3d0aee8a5..2fec1925149ad 100644
--- a/pandas/tests/arrays/string_/test_string.py
+++ b/pandas/tests/arrays/string_/test_string.py
@@ -1,4 +1,7 @@
-import operator
+"""
+This module tests the functionality of S... | follow-up to #40708
in #40708 the str accessor was enabled and tests changed in `pandas/tests/arrays/string_/test_string.py` and `pandas/tests/strings/test_string_array.py`
This PR colocates the str accessor test in `pandas/tests/arrays/string_/test_string.py` with those in `pandas/tests/strings/test_string_array... | https://api.github.com/repos/pandas-dev/pandas/pulls/40960 | 2021-04-15T09:11:13Z | 2021-04-15T17:49:44Z | 2021-04-15T17:49:44Z | 2021-04-16T07:11:28Z |
Add 'virt' and 'group' settings for arm64-graviton2 | diff --git a/.travis.yml b/.travis.yml
index 0098e3872bec7..540cd026a43d5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,6 +36,8 @@ matrix:
include:
- arch: arm64-graviton2
+ virt: lxd
+ group: edge
env:
- JOB="3.7, arm64" PYTEST_WORKERS="auto" ENV_FILE="ci/deps/travis-37-arm64.ya... | https://github.com/pandas-dev/pandas/pull/40868 tried to change from `arm64` to `arm64-graviton2` but actually changed it to `amd64` because of the missing `virt` and `group` settings, as explained at https://blog.travis-ci.com/2020-09-11-arm-on-aws, section "Quick tips" | https://api.github.com/repos/pandas-dev/pandas/pulls/40959 | 2021-04-15T07:33:27Z | 2021-04-15T17:27:37Z | 2021-04-15T17:27:37Z | 2021-04-16T05:54:39Z |
CLN: refactor tests outside of class setup in `style/test_matplotlib.py` | diff --git a/pandas/tests/io/formats/style/test_matplotlib.py b/pandas/tests/io/formats/style/test_matplotlib.py
index f0158711664ce..496344c59ec04 100644
--- a/pandas/tests/io/formats/style/test_matplotlib.py
+++ b/pandas/tests/io/formats/style/test_matplotlib.py
@@ -10,218 +10,236 @@
pytest.importorskip("matplotlib"... | This is a refactor to remove the pytest class setup structure, reverting to class-less fixtures.
It also parametrises some of the tests.
No test is altered or removed.
```
def test_background_gradient(styler):
def test_background_gradient_color(styler):
def test_background_gradient_axis(styler, axis, expected):... | https://api.github.com/repos/pandas-dev/pandas/pulls/40958 | 2021-04-15T07:26:55Z | 2021-04-15T17:49:00Z | 2021-04-15T17:49:00Z | 2021-04-15T21:55:44Z |
REF: move union_categoricals call outside of cython | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 153ac4b5f0893..8e7c927b7e2d5 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -94,7 +94,6 @@ from pandas._libs.khash cimport (
)
from pandas.errors import (
- DtypeWarning,
EmptyDataError,
ParserError,
Pa... | There's no real perf bump to calling union_categoricals inside cython, better to do it in the python code where we can e.g. get the benefit of mypy. Plus gets us closer to dependency structure goals. | https://api.github.com/repos/pandas-dev/pandas/pulls/40957 | 2021-04-15T04:20:35Z | 2021-04-15T15:41:29Z | null | 2021-04-15T15:41:29Z |
TYP: annotations | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index b80a127be970d..4dc5e7516db7e 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -791,7 +791,8 @@ cdef class StringHashTable(HashTable):
raise K... | getting close to ... who am i kidding, no we're not. | https://api.github.com/repos/pandas-dev/pandas/pulls/40955 | 2021-04-14T22:38:27Z | 2021-04-16T19:08:33Z | 2021-04-16T19:08:33Z | 2021-04-16T21:22:12Z |
Add keyword sort to pivot_table | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 38a1802340c69..afe6a3296f04d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -219,6 +219,7 @@ Other enhancements
- :meth:`pandas.read_csv` and :meth:`pandas.read_json` expose the argument ``encoding_e... | - [x] closes #39143
- [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 adds support for sort=False to pivot_table if we want to do this | https://api.github.com/repos/pandas-dev/pandas/pulls/40954 | 2021-04-14T21:14:15Z | 2021-04-20T23:23:08Z | 2021-04-20T23:23:07Z | 2021-04-21T20:40:35Z |
Clarify docs for MultiIndex drops and levels | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 38766d2856cfe..f9ad737bff46c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4749,7 +4749,8 @@ def drop(
Remove rows or columns by specifying label names and corresponding
axis, or by specifying directly index or column na... | - [x] closes #36227
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
I did something like this in the past but this got lost back then between prs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/40953 | 2021-04-14T20:29:23Z | 2021-04-20T22:50:55Z | 2021-04-20T22:50:55Z | 2021-04-21T20:40:19Z |
BUG: various groupby ewm times issues | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 38a1802340c69..065390820d7e6 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -787,6 +787,9 @@ Groupby/resample/rolling
- Bug in :class:`core.window.ewm.ExponentialMovingWindow` when calling ``__getite... | - [x] closes #40951
- [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/40952 | 2021-04-14T19:55:40Z | 2021-04-16T18:42:55Z | 2021-04-16T18:42:55Z | 2021-04-16T18:43:53Z |
TYP: Index.reindex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 705a279638097..c79518702169a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3762,7 +3762,9 @@ def _validate_can_reindex(self, indexer: np.ndarray) -> None:
if not self._index_as_unique and len(indexer):... | - [ ] 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/40950 | 2021-04-14T19:15:25Z | 2021-04-16T01:07:49Z | 2021-04-16T01:07:49Z | 2021-04-16T01:15:17Z |
TYP use typeddict to define cssdict | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 9f23fcc56597f..a58dc0dba1bf1 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -36,7 +36,10 @@
# and use a string literal forward reference to it in subsequent types
# https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
if TYPE_CHECK... | xref https://github.com/pandas-dev/pandas/pull/39942#issuecomment-783363832 - here's a solution, the [docs](https://docs.python.org/3/library/typing.html#typing.TypedDict) say that
> At runtime it is a plain dict | https://api.github.com/repos/pandas-dev/pandas/pulls/40947 | 2021-04-14T15:45:09Z | 2021-04-27T08:54:41Z | 2021-04-27T08:54:41Z | 2021-04-27T09:00:22Z |
TYP: timestamps.pyi | diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi
new file mode 100644
index 0000000000000..8728b700a1f6d
--- /dev/null
+++ b/pandas/_libs/tslibs/timestamps.pyi
@@ -0,0 +1,205 @@
+from datetime import (
+ date as _date,
+ datetime,
+ time as _time,
+ timedelta,
+ tzinfo... | - [ ] 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/40945 | 2021-04-14T14:44:23Z | 2021-04-26T09:31:48Z | 2021-04-26T09:31:47Z | 2021-04-26T17:18:07Z |
REF: handle dtype dispatch in libhashtable, share Vector/Hashtable code | diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd
index a5679af44ac06..80d7ab58dc559 100644
--- a/pandas/_libs/hashtable.pxd
+++ b/pandas/_libs/hashtable.pxd
@@ -128,10 +128,12 @@ cdef struct Int64VectorData:
int64_t *data
Py_ssize_t n, m
-cdef class Int64Vector:
+cdef class Vector:
+ ... | - [ ] 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/40944 | 2021-04-14T14:23:49Z | 2021-05-10T13:52:45Z | 2021-05-10T13:52:45Z | 2021-05-10T14:07:16Z |
Backport PR #40924: BUG: concat with DTI and all-None Index | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index cdfc2e5686b91..16f9284802407 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-
+- Regression in :func:`concat`... | Backport PR #40924 | https://api.github.com/repos/pandas-dev/pandas/pulls/40942 | 2021-04-14T14:11:39Z | 2021-04-14T15:41:27Z | 2021-04-14T15:41:27Z | 2021-04-14T15:41:31Z |
BUG: Dataframe mask method does not work properly with pd.StringDtype() | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 2b0b62ab7facf..8ebb5437978ea 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -830,7 +830,7 @@ ExtensionArray
- Bug in :meth:`DataFrame.where` when ``other`` is a :class:`Series` with :class:`Extension... | - [x] closes #40824
- [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/40941 | 2021-04-14T14:04:23Z | 2021-04-16T16:14:42Z | 2021-04-16T16:14:42Z | 2021-04-16T16:16:25Z |
DOC: clarify (un)aware logic in tz_localize() docstring | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 1be2ec0dd92d7..06ff6ffa61559 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -857,8 +857,9 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise") -> DatetimeArr
This method t... | A simple hopefully no-brainer documentation patch; came across this while reading https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.tz_localize.html#pandas-datetimeindex-tz-localize.
| https://api.github.com/repos/pandas-dev/pandas/pulls/40940 | 2021-04-14T10:54:48Z | 2021-04-16T16:24:04Z | 2021-04-16T16:24:04Z | 2021-04-16T16:24:09Z |
call pytest with python3 -m | diff --git a/test_fast.sh b/test_fast.sh
index 6444b81b3c6da..e64d21b330824 100755
--- a/test_fast.sh
+++ b/test_fast.sh
@@ -5,4 +5,4 @@
# https://github.com/pytest-dev/pytest/issues/1075
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
-pytest pandas --skip-slow --skip-netwo... | This runs pytest as
```sh
python3 -m pytest # ...
```
This allows running the tests in a venv. (Otherwise, if pytest is not installed in the venv, it falls back to the system pytest, leading to some surprises down the road.) | https://api.github.com/repos/pandas-dev/pandas/pulls/40939 | 2021-04-14T10:10:24Z | 2021-04-14T12:47:18Z | null | 2021-04-14T12:47:23Z |
DOC/CI: add missing import to ipython directive in `whatsnew/v0.11.0.rst` | diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst
index a69d1ad1dec3b..0fba784e36661 100644
--- a/doc/source/whatsnew/v0.11.0.rst
+++ b/doc/source/whatsnew/v0.11.0.rst
@@ -306,6 +306,7 @@ Astype conversion on ``datetime64[ns]`` to ``object``, implicitly converts ``NaT
.. ipython:: python... | some of the builds have failed recently due to this ipython directive, so I added the fix as advised in the error warning. | https://api.github.com/repos/pandas-dev/pandas/pulls/40937 | 2021-04-14T08:17:33Z | 2021-04-15T08:56:14Z | 2021-04-15T08:56:14Z | 2021-04-15T11:41:31Z |
CLN: remove unused out kwd from take functions | diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py
index b97a777400134..93d87f6bb4dfa 100644
--- a/pandas/core/array_algos/take.py
+++ b/pandas/core/array_algos/take.py
@@ -100,14 +100,13 @@ def take_nd(
return arr.take(indexer, fill_value=fill_value, allow_fill=allow_fill)
a... | Un-revert part of #40510 in the hopes of tracking down where the perf impact was. xref #40852 which un-reverted a different part.
Let's not merge for a few days to make sure that any surprising effects from #40852 show up in the asvs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/40934 | 2021-04-13T22:34:56Z | 2021-04-20T22:48:34Z | 2021-04-20T22:48:33Z | 2021-04-20T23:05:19Z |
TYP: fix mypy on master | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index d6c5935ecf685..a381a7bcb33f5 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -177,9 +177,6 @@ def pinner(cls):
class SeriesGroupBy(GroupBy[Series]):
_apply_allowlist = base.series_apply_allowlist... | - [ ] 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/40930 | 2021-04-13T16:49:25Z | 2021-04-13T20:55:24Z | 2021-04-13T20:55:24Z | 2021-04-13T20:55:35Z |
CLN: preliminary refactor before `Styler.highlight_quantile` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 9b4673ddb7906..f51f81d7c3504 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1558,55 +1558,10 @@ def highlight_between(
.. figure:: ../../_static/style/hbetw_props.png
"""
-
- def f(
- ... | The current structure is:
```
def highlight_between:
def f:
return x
return self.apply(f)
```
So that `Styler.highlight_quantile` can reuse code this PR refactors the above to:
```
def highlight_between:
return self.apply(_new_name)
def _new_name:
return x
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/40928 | 2021-04-13T15:34:33Z | 2021-04-13T23:19:12Z | 2021-04-13T23:19:12Z | 2021-04-14T05:08:38Z |
Fix 40420: Interpret NaN in clip() as no bound. | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 34269185bccd6..34d833bb52d99 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -910,6 +910,7 @@ Other
- Bug in :meth:`DataFrame.equals`, :meth:`Series.equals`, :meth:`Index.equals` with object-dtype con... | - [x] closes #40420
- [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/40927 | 2021-04-13T15:34:11Z | 2021-04-23T14:58:08Z | 2021-04-23T14:58:07Z | 2021-12-15T06:44:52Z |
ENH: `Styler.highlight_quantile` method | diff --git a/doc/source/_static/style/hq_ax1.png b/doc/source/_static/style/hq_ax1.png
new file mode 100644
index 0000000000000..95d840b7c8f99
Binary files /dev/null and b/doc/source/_static/style/hq_ax1.png differ
diff --git a/doc/source/_static/style/hq_axNone.png b/doc/source/_static/style/hq_axNone.png
new file mod... |

| https://api.github.com/repos/pandas-dev/pandas/pulls/40926 | 2021-04-13T15:24:37Z | 2021-04-20T23:21:23Z | 2021-04-20T23:21:23Z | 2021-04-21T06:08:34Z |
DOC: inconsistency in doc argument types #40560 | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 41e1ff41d9ba2..cba1a15934bb8 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -24,7 +24,7 @@
is_datetime_or_timedelta_dtype,
is_extension_array_dtype,
is_integer,
- is_integer_dtype,
+ is_numer... | This PR is used to address documentation inconsistencies as in issue #40560. All Array_like has been changed to array-like. However, Array_like that is used as a parameter cannot be changed as it would be identified as "array minus like". | https://api.github.com/repos/pandas-dev/pandas/pulls/40925 | 2021-04-13T14:24:34Z | 2021-04-16T04:13:24Z | null | 2021-04-16T04:13:24Z |
BUG: concat with DTI and all-None Index | diff --git a/doc/source/whatsnew/v1.2.5.rst b/doc/source/whatsnew/v1.2.5.rst
index cdfc2e5686b91..16f9284802407 100644
--- a/doc/source/whatsnew/v1.2.5.rst
+++ b/doc/source/whatsnew/v1.2.5.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-
+- Regression in :func:`concat`... | - [x] closes #40841
- [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/40924 | 2021-04-13T14:19:16Z | 2021-04-14T12:53:22Z | 2021-04-14T12:53:21Z | 2021-04-14T14:27:06Z |
PR for DOC: inconsistency in doc argument types #40560 | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 9e2dd846f0379..486e424003103 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1546,13 +1546,13 @@ def searchsorted(arr, value, side="left", sorter=None) -> np.ndarray:
Input array. If `sorter` is None, then it mu... | This PR is used to address documentation inconsistencies as in issue #40560. Array_like have been changed to array-like | https://api.github.com/repos/pandas-dev/pandas/pulls/40923 | 2021-04-13T13:56:53Z | 2021-04-13T14:16:32Z | null | 2021-04-13T14:16:32Z |
Backport PR #40761 on branch 1.2.x (DOC: collapse subpages in sidebar for API reference docs) | diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html
new file mode 100644
index 0000000000000..7e0043e771e72
--- /dev/null
+++ b/doc/_templates/sidebar-nav-bs.html
@@ -0,0 +1,9 @@
+<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
+ <div class="bd-toc-item active">
+ ... | Backport PR #40761: DOC: collapse subpages in sidebar for API reference docs | https://api.github.com/repos/pandas-dev/pandas/pulls/40922 | 2021-04-13T12:26:39Z | 2021-04-13T14:21:25Z | 2021-04-13T14:21:25Z | 2021-04-13T14:21:26Z |
ENH: Nullable integer/boolean/floating support in lib inferencing functions | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index 4c647056641f5..11f578d9e4d60 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -5,6 +5,8 @@ from typing import (
Any,
Callable,
Generator,
+ Literal,
+ overload,
)
import numpy as np
@@ -70,12 +72,24 @@ def maybe_conve... | Precursor for #40687
| https://api.github.com/repos/pandas-dev/pandas/pulls/40914 | 2021-04-13T03:00:36Z | 2021-05-05T12:46:39Z | 2021-05-05T12:46:39Z | 2021-05-29T17:55:11Z |
TST: Add test to verify DataFrame's constructor doesn't convert Nones to strings on string columns | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index ca68885fdc470..cb9fbdf6fa4a8 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -2396,6 +2396,20 @@ def check_views():
# assert b[0] == 0
asse... | - [x] closes #32218
- [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
Adds a very simple test to verify that `None`s are not casted to strings as `"None"` inside the Da... | https://api.github.com/repos/pandas-dev/pandas/pulls/40912 | 2021-04-13T01:31:14Z | 2021-09-01T00:10:51Z | null | 2021-09-01T00:10:51Z |
Add type to arg of series/drop-duplicates | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 5ba68aaa5c16d..93e3fbf769118 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2004,11 +2004,13 @@ def unique(self) -> ArrayLike:
return super().unique()
@overload
- def drop_duplicates(self, keep=..., inplace: Literal[... | - [ ] 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
I noticed in https://github.com/pandas-dev/pandas/pull/40867 that keep didn't specify a typ... | https://api.github.com/repos/pandas-dev/pandas/pulls/40910 | 2021-04-12T23:08:28Z | 2021-05-22T16:04:59Z | null | 2021-05-22T16:04:59Z |
REF: re-use maybe_cast_result in Series.combine | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index f62aa95e1e814..b68ec3c473a41 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -102,7 +102,6 @@
if TYPE_CHECKING:
from typing import Literal
- from pandas import Series
from pandas.core.arrays import (
... | - [ ] 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/40909 | 2021-04-12T22:23:22Z | 2021-04-13T15:25:30Z | 2021-04-13T15:25:30Z | 2021-04-13T16:54:33Z |
ENH: Make maybe_convert_object respect dtype itemsize | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a286d152f03c3..8cebdbe5ca7b0 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -221,6 +221,7 @@ Other enhancements
- :meth:`pandas.read_csv` and :meth:`pandas.read_json` expose the argument ``encoding_e... | - [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
Precursor to #40790
This adds support for e.g. `float32` NumPy dtypes to maybe_convert_object. If any non-NumPy scalar is hit, the behavior is the same as mas... | https://api.github.com/repos/pandas-dev/pandas/pulls/40908 | 2021-04-12T22:18:39Z | 2021-04-21T12:53:28Z | 2021-04-21T12:53:28Z | 2021-04-21T15:37:42Z |
BUG: to_string truncation column with index=False | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0ec9758477eba..fcfac2d2d63f1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -740,6 +740,7 @@ I/O
- Bug in :func:`read_hdf` returning unexpected records when filtering on categorical string columns us... | - [x] closes #40904
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40907 | 2021-04-12T21:02:05Z | 2021-04-16T01:11:25Z | 2021-04-16T01:11:25Z | 2021-04-16T01:11:32Z |
STYLE use pandas-dev-flaker | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9424b2f34eaff..5b11490479088 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,7 +38,10 @@ repos:
rev: 3.9.0
hooks:
- id: flake8
- additional_dependencies: [flake8-comprehensions>=3.1.0, flake8-bugbear>=... | - [ ] closes #40826
- [ ] closes #40873
- [ ] 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 means that, just by running `flake8`, you'll be able to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/40906 | 2021-04-12T20:40:51Z | 2021-04-16T01:06:48Z | 2021-04-16T01:06:48Z | 2021-04-16T07:17:01Z |
Backport PR #40902 on branch 1.2.x (DOC: Start v1.2.5 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 8739694c20e33..e546c8c8b80e3 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.5
v1.2.4
v1.2.3
v1.2.2
diff --git a/doc/source/... | Backport PR #40902: DOC: Start v1.2.5 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/40905 | 2021-04-12T19:29:22Z | 2021-04-12T20:36:13Z | 2021-04-12T20:36:13Z | 2021-04-12T20:36:13Z |
DOC: Fixed documentation for few files | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a2a108924a0f2..c178e9f7cecbe 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -110,10 +110,13 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pytest -q --doctest-modules \
pandas/core/accessor.py \
pandas/core/aggregation.py \
... | - [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/40903 | 2021-04-12T17:59:27Z | 2021-04-26T21:21:37Z | 2021-04-26T21:21:37Z | 2021-04-28T13:01:44Z |
DOC: Start v1.2.5 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 8697182f5ca6f..986cf43b80494 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.5
v1.2.4
v1.2.3
v1.2.2
diff --git a/doc/source/... | ~~do not merge yet. will merge to master after github release to trigger website update~~
| https://api.github.com/repos/pandas-dev/pandas/pulls/40902 | 2021-04-12T17:30:14Z | 2021-04-12T19:29:00Z | 2021-04-12T19:29:00Z | 2021-04-12T19:29:04Z |
CLN: change jinja2 template name to `template_html` | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 90ec5a2283f1e..6eacc90f4f62a 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -23,7 +23,7 @@ Styler properties
:toctree: api/
Styler.env
- Styler.template
+ Styler.template_html
Styler... | prior to adding `template_latex` this changes the name of the html template to `template_html` including:
- updating docs on the new name for subclassing
- updating the custom method for subclassing
- updating tests which refer to it
| https://api.github.com/repos/pandas-dev/pandas/pulls/40901 | 2021-04-12T17:12:06Z | 2021-04-13T14:15:41Z | 2021-04-13T14:15:41Z | 2021-04-13T19:00:12Z |
DOC: whats new `other` section reduced | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0ec9758477eba..0066eabf36c2b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -117,6 +117,9 @@ We provided some focused development on :class:`.Styler`, including altering met
to accept more universal ... | - [x] closes #40897
| https://api.github.com/repos/pandas-dev/pandas/pulls/40900 | 2021-04-12T16:23:37Z | 2021-04-13T14:09:32Z | 2021-04-13T14:09:32Z | 2021-04-13T14:21:50Z |
t | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index bfb633ae55095..7543ea177d58c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -360,8 +360,8 @@ class DataFrame(NDFrame, OpsMixin):
Parameters
----------
- data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40899 | 2021-04-12T16:10:51Z | 2021-04-12T16:13:04Z | null | 2021-04-12T16:13:04Z |
CLN: refactor `Styler._translate` into composite translate functions | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 82f57b71caebf..0b7279d796464 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -173,15 +173,6 @@ def _translate(self):
BLANK_CLASS = "blank"
BLANK_VALUE = " "
- ... | This composites `Styler._translate()` into:
```
def _translate():
...
self._translate_header()
...
self._translate_body()
...
```
where the `_translate_header()` and `_translate_body()` methods are given some documentation explaining what they are building. The code is not fundamentally... | https://api.github.com/repos/pandas-dev/pandas/pulls/40898 | 2021-04-12T16:08:10Z | 2021-04-13T15:26:21Z | 2021-04-13T15:26:21Z | 2021-04-13T15:26:25Z |
Backport PR #40878 on branch 1.2.x (REGR: ufunc with DataFrame input not passing all kwargs) | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index 54652ecc4dceb..dd74091b64014 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.where` not returning a copy in the case of an all T... | Backport PR #40878: REGR: ufunc with DataFrame input not passing all kwargs | https://api.github.com/repos/pandas-dev/pandas/pulls/40895 | 2021-04-12T14:29:47Z | 2021-04-12T15:46:14Z | 2021-04-12T15:46:14Z | 2021-04-12T15:46:14Z |
Backport PR #40880 on branch 1.2.x (DOC: 1.2.4 release date) | diff --git a/doc/source/whatsnew/v1.2.4.rst b/doc/source/whatsnew/v1.2.4.rst
index fffdf333178fc..54652ecc4dceb 100644
--- a/doc/source/whatsnew/v1.2.4.rst
+++ b/doc/source/whatsnew/v1.2.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_124:
-What's new in 1.2.4 (April ??, 2021)
----------------------------------------
+What's new... | Backport PR #40880: DOC: 1.2.4 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/40894 | 2021-04-12T12:17:57Z | 2021-04-12T13:30:57Z | 2021-04-12T13:30:57Z | 2021-04-12T13:30:57Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b6df108a3166c..fa5bc10f979ed 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -51,7 +51,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
- rev: v2.11.0
+ rev: v2.12.0
hooks:
... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/40890 | 2021-04-12T07:20:11Z | 2021-04-12T08:25:46Z | 2021-04-12T08:25:45Z | 2021-04-12T08:25:50Z |
Raising ValueError when xlim and ylim contain non-int and non-float dtype elements | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index c9267a756bef3..d4a179903e174 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -753,7 +753,7 @@ Plotting
- Prevent warnings when matplotlib's ``constrained_layout`` is enabled (:issue:`25261`)
- Bug in... | - [x] closes #40781
- [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/40889 | 2021-04-11T23:55:09Z | 2021-10-08T18:24:10Z | null | 2021-10-08T18:25:23Z |
TST: add test for Index.where when needing to cast to object dtype | diff --git a/pandas/tests/indexes/numeric/test_indexing.py b/pandas/tests/indexes/numeric/test_indexing.py
index 5f2f8f75045bb..43dc1daf6f392 100644
--- a/pandas/tests/indexes/numeric/test_indexing.py
+++ b/pandas/tests/indexes/numeric/test_indexing.py
@@ -376,6 +376,18 @@ def test_where(self, klass, index):
r... | - [x] closes #32413
- [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: Adds a basic test for #32413.
Hey! This is my first PR with actual code: added a very bas... | https://api.github.com/repos/pandas-dev/pandas/pulls/40888 | 2021-04-11T23:28:14Z | 2021-09-01T00:08:28Z | null | 2021-09-01T00:08:29Z |
TYP overload fillna #40737 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 045776c3f5c50..37fc5de95b3d2 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5007,6 +5007,121 @@ def rename(
errors=errors,
)
+ @overload
+ def fillna(
+ self,
+ value=...,
+ method: str | ... | - [x] closes #40737
- [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/40887 | 2021-04-11T23:15:42Z | 2021-04-15T21:21:57Z | 2021-04-15T21:21:56Z | 2021-04-15T21:21:57Z |
Addressing #40781 to raise ValueError as per discussion when a list with xlim or ylim is supplied, that contains elements in other format than integer or float type. | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index c9267a756bef3..5ac5d30fe49f8 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -753,7 +753,7 @@ Plotting
- Prevent warnings when matplotlib's ``constrained_layout`` is enabled (:issue:`25261`)
- Bug in... | - [x] closes #40781
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/40886 | 2021-04-11T22:11:41Z | 2021-04-11T23:26:21Z | null | 2021-04-11T23:26:21Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.