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: safe_sort losing MultiIndex dtypes | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 2e6737b2e61aa..77de1636a92eb 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -14,6 +14,7 @@
Sequence,
cast,
final,
+ overload,
)
import warnings
@@ -101,6 +102,7 @@
Categorical,
Dat... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48412 | 2022-09-06T13:36:20Z | 2022-09-06T19:27:51Z | 2022-09-06T19:27:51Z | 2022-10-07T21:13:07Z |
REGR: get_loc for ExtensionEngine not returning bool indexer for na | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 0cf7c4d45c634..617760c2981c4 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -1061,7 +1061,7 @@ cdef class ExtensionEngine(SharedEngine):
cdef ndarray _get_bool_indexer(self, val):
if checknull(val):
- retu... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48411 | 2022-09-06T11:21:50Z | 2022-09-07T07:12:37Z | 2022-09-07T07:12:37Z | 2022-09-08T19:19:14Z |
DOC: Add missing functions to docs | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 6d09e10f284af..56ea1b1f02025 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -629,11 +629,13 @@ Scalar introspection
api.types.is_bool
api.types.is_categorical
api.types.is_complex
+... | - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/48410 | 2022-09-06T10:25:00Z | 2022-09-06T15:42:17Z | null | 2022-09-06T15:42:19Z |
Docs: Added 'cross' option to one part of DataFrame.join() docstring where it was missing | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b20decab26928..4cdd62b038485 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9862,7 +9862,7 @@ def join(
values given, the `other` DataFrame must have a MultiIndex. Can
pass an array as the join key if it is not al... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48407 | 2022-09-06T01:09:27Z | 2022-09-06T09:10:02Z | 2022-09-06T09:10:02Z | 2022-10-13T17:00:48Z |
PERF: MultiIndex.argsort / MultiIndex.sort_values | diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py
index ca1d71f50bd5f..89d74e784b64c 100644
--- a/asv_bench/benchmarks/multiindex_object.py
+++ b/asv_bench/benchmarks/multiindex_object.py
@@ -8,6 +8,7 @@
MultiIndex,
RangeIndex,
Series,
+ array,
dat... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/48406 | 2022-09-06T01:08:11Z | 2022-09-09T17:40:46Z | 2022-09-09T17:40:46Z | 2022-10-13T17:00:47Z |
CI: Update python to 3.10 | diff --git a/environment.yml b/environment.yml
index 68c8994326a56..8ab367d2ee0af 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,7 +3,7 @@ name: pandas-dev
channels:
- conda-forge
dependencies:
- - python=3.8
+ - python=3.10
- pip
# test dependencies
| - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48404 | 2022-09-05T19:50:17Z | 2022-09-05T20:42:58Z | null | 2022-10-23T17:39:59Z |
ENH: Add use_nullable_dtypes in csv internals | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index e8b7160af9b2c..07bf7f69ec907 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -15,6 +15,13 @@ import warnings
from pandas.util._exceptions import find_stack_level
+from pandas import StringDtype
+from pandas.core.arrays i... | - [x] xref #36712 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/48403 | 2022-09-05T18:57:54Z | 2022-09-19T23:13:54Z | 2022-09-19T23:13:54Z | 2022-10-13T17:00:46Z |
Backport PR #48381 on branch 1.5.x (CI: Pin mambaforge image) | diff --git a/Dockerfile b/Dockerfile
index 0bfb0e15d63fe..02c360d2f3d49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM quay.io/condaforge/mambaforge
+FROM quay.io/condaforge/mambaforge:4.13.0-1
# if you forked pandas, you can pass in your own GitHub username to use your fork
# i.e. gh_username=mynam... | Backport PR #48381: CI: Pin mambaforge image | https://api.github.com/repos/pandas-dev/pandas/pulls/48401 | 2022-09-05T17:07:48Z | 2022-09-05T19:42:10Z | 2022-09-05T19:42:10Z | 2022-09-05T19:42:11Z |
CLN: Refactor groupby._make_wrapper | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 7a7050ea8bad7..48822d9d01ddb 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -550,10 +550,12 @@ def apply_str(self) -> DataFrame | Series:
func = getattr(obj, f, None)
if callable(func):
sig = inspect.getfullar... | - [x] closes #48028 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48400 | 2022-09-05T15:48:52Z | 2022-09-12T18:21:52Z | 2022-09-12T18:21:52Z | 2022-10-13T17:00:45Z |
WARN: Avoid FutureWarnings in tests | diff --git a/pandas/tests/frame/methods/test_fillna.py b/pandas/tests/frame/methods/test_fillna.py
index 4cf6706707569..3d7e5c6823e9d 100644
--- a/pandas/tests/frame/methods/test_fillna.py
+++ b/pandas/tests/frame/methods/test_fillna.py
@@ -777,6 +777,6 @@ def test_fillna_nonconsolidated_frame():
],
c... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48398 | 2022-09-05T14:50:59Z | 2022-09-06T19:47:31Z | 2022-09-06T19:47:31Z | 2022-09-08T16:28:46Z |
WARN: Remove false positive warning for iloc inplaceness | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 1035fd08a1a36..c15e597558221 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -459,7 +459,8 @@ def all_timeseries_index_generator(k: int = 10) -> Iterable[Index]:
def make_rand_series(name=None, dtype=np.float64) ... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48397 | 2022-09-05T14:46:29Z | 2022-09-16T17:18:43Z | 2022-09-16T17:18:43Z | 2022-09-16T22:00:10Z |
ENH: mask support for hastable functions for indexing | diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd
index 80d7ab58dc559..b32bd4880588d 100644
--- a/pandas/_libs/hashtable.pxd
+++ b/pandas/_libs/hashtable.pxd
@@ -41,75 +41,123 @@ cdef class HashTable:
cdef class UInt64HashTable(HashTable):
cdef kh_uint64_t *table
+ cdef int64_t na_position... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48396 | 2022-09-05T14:30:30Z | 2022-10-20T16:32:49Z | 2022-10-20T16:32:49Z | 2022-10-25T16:25:48Z |
DOC: Don't show traceback for :okexcept: | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 6671cefae9073..516d78319ee89 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -51,8 +51,8 @@
extensions = [
"contributors", # custom pandas extension
- "IPython.sphinxext.ipython_directive",
- "IPython.sphinxext.ipython_console_highlig... | Draft to see if docs build on CI
- use local modified _ipython_directive_ to add optional `no_traceback`
argument to `:ok_except:` which prevents the (sometimes long) traceback
from being printed (default is no argument, i.e. the traceback is
printed) and enable the `@okexcept` pseudodecorator so that it ca... | https://api.github.com/repos/pandas-dev/pandas/pulls/48394 | 2022-09-05T12:03:14Z | 2023-07-07T17:37:12Z | null | 2023-07-07T17:37:19Z |
ENH: raise_assert_detail shows the difference between the columns | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index ee5085fd9ad89..5c4de03cb8a10 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -29,6 +29,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
- :meth:`Series.add_suffix`, :meth:`DataFrame.add_suffi... | - [x] xref https://github.com/pandas-dev/pandas/pull/48033 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.py... | https://api.github.com/repos/pandas-dev/pandas/pulls/48390 | 2022-09-04T21:23:53Z | 2022-09-12T16:56:20Z | 2022-09-12T16:56:20Z | 2022-10-13T17:00:44Z |
TST: add tests for parser functions being pickle-able. | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index e9e99f6dd0ad7..3f95dd616a09c 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -12,6 +12,7 @@
import mmap
import os
from pathlib import Path
+import pickle
import tempfile
import pytest
@@ -604,3 ... | - [x] closes #22265
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/48389 | 2022-09-04T19:09:59Z | 2022-09-06T17:44:13Z | 2022-09-06T17:44:13Z | 2022-10-13T17:00:43Z |
ENH: Suppport masks in median groupby algo | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 90cb31577a1b4..3007d2d1e126c 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -5,6 +5,7 @@
import numpy as np
from pandas import (
+ NA,
Categorical,
DataFrame,
Index,
@@ -592,... | - [x] xref #37493 (Replace xxxx with the Github issue number)
- [] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/48387 | 2022-09-04T16:23:27Z | 2022-09-06T20:03:19Z | 2022-09-06T20:03:19Z | 2022-10-13T17:00:43Z |
CLN/DOC: Adjust xpath validation and error messaging in read_xml with IO tools doc note and example | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 7a7e518e1f7db..15b3b894c68b6 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3174,6 +3174,42 @@ But assigning *any* temporary name to correct URI allows parsing by nodes.
However, if XPath does not reference... | - [X] closes #48181
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48386 | 2022-09-04T16:02:27Z | 2022-09-06T20:08:49Z | 2022-09-06T20:08:49Z | 2022-10-29T17:39:18Z |
CLN: assorted | diff --git a/pandas/_libs/tslibs/offsets.pyi b/pandas/_libs/tslibs/offsets.pyi
index c3d550c7a5ba9..0390aad23d83a 100644
--- a/pandas/_libs/tslibs/offsets.pyi
+++ b/pandas/_libs/tslibs/offsets.pyi
@@ -81,6 +81,7 @@ class BaseOffset:
@property
def freqstr(self) -> str: ...
def apply_index(self, dtindex: D... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48385 | 2022-09-04T03:44:58Z | 2022-09-12T18:23:38Z | 2022-09-12T18:23:38Z | 2022-10-13T17:00:41Z |
PERF: avoid unnecessary reordering in MultiIndex._reorder_indexer | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index a7c9a7eb88221..75e107bfb5892 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -109,6 +109,7 @@ Performance improvements
- Performance improvement in :meth:`.GroupBy.mean` and :meth:`.GroupBy.var` for e... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/48384 | 2022-09-04T02:35:49Z | 2022-09-14T17:38:38Z | 2022-09-14T17:38:38Z | 2022-10-13T17:00:41Z |
TYP: contextmanager expects a Generator | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index fc35b95bba7dd..e1a6cf04a435e 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -59,9 +59,9 @@
from typing import (
Any,
Callable,
+ Generator,
Generic,
Iterable,
- Iterator,
NamedTuple,
cast... | `contextmanager` should expect a `Generator`, not an `Iterator`. `Iterator[...]` and `Generator[..., None, None]` are not the same, see https://github.com/python/typeshed/issues/2772
This might help @asottile a bit with https://github.com/python/typeshed/pull/7430. Basically, staled because it would impact too many ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48383 | 2022-09-04T00:07:05Z | 2022-09-06T20:14:16Z | 2022-09-06T20:14:16Z | 2022-10-13T17:00:40Z |
CI: Pin mambaforge image | diff --git a/Dockerfile b/Dockerfile
index 0bfb0e15d63fe..02c360d2f3d49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM quay.io/condaforge/mambaforge
+FROM quay.io/condaforge/mambaforge:4.13.0-1
# if you forked pandas, you can pass in your own GitHub username to use your fork
# i.e. gh_username=mynam... | - [x] xref #48382 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/48381 | 2022-09-03T21:58:08Z | 2022-09-05T17:07:19Z | 2022-09-05T17:07:18Z | 2022-09-05T17:13:38Z |
DOC: Clarify that objects dtype takes precedence in where | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 8671b73526f80..4a0619b7beb5b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -308,6 +308,7 @@ Other enhancements
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``p... | - [x] closes #48373 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48380 | 2022-09-03T19:26:34Z | 2022-09-07T18:08:16Z | 2022-09-07T18:08:16Z | 2022-09-07T19:06:05Z |
PERF: Add var to masked arrays | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index aff950c6933dd..9260ac0e63771 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -108,6 +108,7 @@ Performance improvements
- Performance improvement for :meth:`Series.value_counts` with nullable dtype (:i... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48379 | 2022-09-03T19:20:45Z | 2022-09-13T16:16:10Z | 2022-09-13T16:16:09Z | 2022-12-28T03:37:18Z |
BUG: masked mean unnecessarily overflowing | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index c393b8a57f805..42d3ce8069322 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -200,7 +200,7 @@ Sparse
ExtensionArray
^^^^^^^^^^^^^^
--
+- Bug in :meth:`Series.mean` overflowing unnecessarily with nu... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48378 | 2022-09-03T18:02:11Z | 2022-09-07T17:39:42Z | 2022-09-07T17:39:42Z | 2022-10-13T17:00:39Z |
DOC: More types for groupby's by argument | diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index 296e25fd5c187..210d7d79bfe15 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -94,7 +94,7 @@
Parameters
----------
-by : mapping, function, label, pd.Grouper or list of labels
+by : mapping, function, label, pd.Gro... | Added to the typing of the `by` argument in the documentation of the `groupby` functions, to allow lists of functions/mappings/`pd.Grouper` and not just lists of labels.
| https://api.github.com/repos/pandas-dev/pandas/pulls/48377 | 2022-09-03T16:26:37Z | 2022-09-06T20:21:17Z | 2022-09-06T20:21:17Z | 2022-10-13T17:00:38Z |
DOC: how to_datetime %S differs from strptime | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 203a5711b7a59..78e12c96ceee8 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -777,11 +777,19 @@ def to_datetime(
#time-zone-handling>`_.
format : str, default None
- The strftime... | - [ ] closes #47134
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48376 | 2022-09-03T11:40:37Z | 2022-09-03T15:37:40Z | 2022-09-03T15:37:40Z | 2022-10-13T17:00:37Z |
TYPE: annotate np.dtype | diff --git a/pandas/_typing.py b/pandas/_typing.py
index dc51c04447bef..539fc6263d894 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -125,12 +125,13 @@
]
# dtypes
-NpDtype = Union[str, np.dtype, type_t[Union[str, complex, bool, object]]]
+# using type: ignore due to incompatible types in assignment
+NpDt... | This PR helps with annotating `np.dtype` for `pandas._typing.NpDtype` and
`pandas._typing.DtypeObj` so that type-checker won't throw `Unknown` errors when
accessing `pd.DataFrame[col].dtype`.
Imo we would like `dtype` to be inferred from `DataFrame`, but `Any` will be sufficient
for now.
- [ ] closes #xxxx (Replace x... | https://api.github.com/repos/pandas-dev/pandas/pulls/48375 | 2022-09-03T04:19:52Z | 2022-10-24T21:12:51Z | null | 2022-10-24T21:12:52Z |
DOC: Reword DataFrame.assign | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b20decab26928..01140a23a8724 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4816,31 +4816,37 @@ def assign(self, **kwargs) -> DataFrame:
r"""
Assign new columns to a DataFrame.
- Returns a new object with all ori... | I think wording is now a bit more precise, and the explicit
comparison with assignment helps to understand what this does.
I've also moved the note on multiple assignments into the **kargs
description because I think it really belongs there and is not
only a remark we should make further down in the docstring.
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/48374 | 2022-09-02T23:50:59Z | 2022-10-24T21:13:15Z | null | 2022-10-24T21:13:16Z |
TST: to_numeric(large_float, downcast=float) isn't lossy | diff --git a/pandas/tests/tools/test_to_numeric.py b/pandas/tests/tools/test_to_numeric.py
index 38a50a10b3482..1347f6eb50b09 100644
--- a/pandas/tests/tools/test_to_numeric.py
+++ b/pandas/tests/tools/test_to_numeric.py
@@ -799,3 +799,11 @@ def test_to_numeric_scientific_notation():
result = to_numeric("1.7e+308"... | - [x] closes #19729 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48372 | 2022-09-02T18:53:22Z | 2022-09-02T21:26:18Z | 2022-09-02T21:26:18Z | 2022-10-13T17:00:37Z |
Backport PR #48265 on branch 1.5.x (CI: Setting up ssh key to upload prod docs) | diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml
index 5ad146eccb253..031e1ca054ba8 100644
--- a/.github/workflows/docbuild-and-upload.yml
+++ b/.github/workflows/docbuild-and-upload.yml
@@ -67,7 +67,7 @@ jobs:
echo "${{ secrets.server_ssh_key }}" > ~/.ssh/id_r... | Backport PR #48265: CI: Setting up ssh key to upload prod docs | https://api.github.com/repos/pandas-dev/pandas/pulls/48370 | 2022-09-02T17:26:57Z | 2022-09-02T21:11:55Z | 2022-09-02T21:11:55Z | 2022-09-02T21:11:56Z |
Fix build warning for use of `strdup` in ultrajson | diff --git a/pandas/_libs/src/headers/portable.h b/pandas/_libs/src/headers/portable.h
index cb8e5ba8138eb..3464fba963a5e 100644
--- a/pandas/_libs/src/headers/portable.h
+++ b/pandas/_libs/src/headers/portable.h
@@ -1,8 +1,16 @@
#ifndef _PANDAS_PORTABLE_H_
#define _PANDAS_PORTABLE_H_
+// To get `strdup` from strin... | When building with `-std=c99` (I was having a look at @lithomas1's `meson-poc` branch) on Linux this gives a warning:
```
[2/3] Compiling C object pandas/_libs/json.cpython-310-x86_64-linux-gnu.so.p/src_ujson_lib_ultrajsonenc.c.o
../pandas/_libs/src/ujson/lib/ultrajsonenc.c: In function 'JSON_EncodeObject':
../pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/48369 | 2022-09-02T16:57:32Z | 2022-09-20T13:49:42Z | 2022-09-20T13:49:42Z | 2022-10-13T17:00:36Z |
DOC: update query/eval figures on performance comparison | diff --git a/doc/scripts/eval_performance.py b/doc/scripts/eval_performance.py
new file mode 100644
index 0000000000000..27d9bf23fc1af
--- /dev/null
+++ b/doc/scripts/eval_performance.py
@@ -0,0 +1,108 @@
+from timeit import repeat as timeit
+
+import numpy as np
+import seaborn as sns
+
+from pandas import DataFrame
+... | Feature reviewed by Joris (https://github.com/jorisvandenbossche) during the EuroScipy 2022 Sprint.
This feature updates the pandas.eval() performance graphs here: https://pandas.pydata.org/docs/user_guide/enhancingperf.html#technical-minutia-regarding-expression-evaluation and the performance of the query here https... | https://api.github.com/repos/pandas-dev/pandas/pulls/48368 | 2022-09-02T16:11:31Z | 2022-10-28T16:31:25Z | 2022-10-28T16:31:25Z | 2022-10-28T16:31:38Z |
STYLE: upgrade codespell | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ca5b5c9b896b..0b8131caaffda 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -22,7 +22,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
- rev: v2.1.0
+ rev: v2.2.1
h... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48365 | 2022-09-02T15:15:51Z | 2022-09-02T16:05:33Z | null | 2022-09-02T16:05:48Z |
Upgrade codespell version and fix misspelled words | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ca5b5c9b896b..33e23e8ddb206 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -22,7 +22,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
- rev: v2.1.0
+ rev: v2.2.1
ho... | - [x] closes #48349 | https://api.github.com/repos/pandas-dev/pandas/pulls/48364 | 2022-09-02T14:49:00Z | 2022-09-06T20:24:01Z | 2022-09-06T20:24:01Z | 2022-10-13T17:00:35Z |
Added timeout on request.get() for ensuring that if a recipient serve… | diff --git a/web/pandas_web.py b/web/pandas_web.py
index 290443d1d2970..2a4d9b7bafb35 100755
--- a/web/pandas_web.py
+++ b/web/pandas_web.py
@@ -157,7 +157,8 @@ def maintainers_add_info(context):
for kind in ("active", "inactive"):
context["maintainers"][f"{kind}_with_github_info"] = []
... | We have detected this issue in the `main` branch of `pandas` project on the version with commit hash `f0814b`. This is an instance of an api usage issue.
**Fixes for api usage issues:**
In file: `web/pandas_web.py`, in method `roadmap_pdeps`, `home_add_releases` and `maintainers_add_info` a request is made without ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48363 | 2022-09-02T12:08:19Z | 2022-10-04T18:30:14Z | null | 2022-10-04T18:30:15Z |
BUG: DataFrame.at must fail when adding more than one value | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index 4b7f136be3c16..03b3acbae6eb3 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -39,10 +39,45 @@ Notable bug fixes
These are bug fixes that might have notable behavior changes.
-.. _whatsnew_160.nota... | Greetings from EuroScipy 2022 and thanks to @jorisvandenbossche for support.
The problem occurred because when adding a new column to a DataFrame using
DataFrame.at, DataFrame._set_value falls back to DataFrame.loc before the
InvalidIndexError is raised.
The proposed solution makes sure that both, the column in... | https://api.github.com/repos/pandas-dev/pandas/pulls/48362 | 2022-09-02T10:51:18Z | 2022-09-19T09:36:41Z | null | 2022-09-19T09:36:42Z |
Add missing pytest-asyncio to test extras | diff --git a/setup.cfg b/setup.cfg
index f2314316f7732..b9ec2ab2363fa 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -53,6 +53,7 @@ test =
hypothesis>=5.5.3
pytest>=6.0
pytest-xdist>=1.31
+ pytest-asyncio>=0.17
[build_ext]
inplace = True
| While testing for #48360 locally I got some errors due to `pytest-asyncio` missing after I did:
```
pip install -e .[test]
```
This should fix it!
| https://api.github.com/repos/pandas-dev/pandas/pulls/48361 | 2022-09-02T09:38:30Z | 2022-10-14T22:43:35Z | null | 2022-10-14T22:43:36Z |
FIX: Reject any non-array, non-ns datetimes and timedeltas | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 4244217da7865..c4dda24f857d9 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1308,7 +1308,7 @@ def maybe_cast_to_datetime(
# TODO: _from_sequence would raise ValueError in cases where
# _ensure_nan... | Done at euroSciPy2022! Fixes #48312.
On suggestion of @jorisvandenbossche, we opted to raise an error instead of converting to `[ns]` in order to make it easier in the future to add support for other granularity levels.
co-author: @kislovskiy
- [x] closes #48312
- [x] [Tests added and passed](https://pandas.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/48360 | 2022-09-02T09:31:20Z | 2022-11-17T01:28:00Z | null | 2022-11-17T01:28:01Z |
pytest: Use colored output | diff --git a/pyproject.toml b/pyproject.toml
index 67c56123a847c..592994ce6e520 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,7 +34,7 @@ exclude = '''
[tool.pytest.ini_options]
# sync minversion with pyproject.toml & install.rst
minversion = "6.0"
-addopts = "--strict-data-files --strict-markers --strict-... | This gives nice colored output locally and on GitHub Actions.
- [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48359 | 2022-09-02T06:26:57Z | 2022-09-02T16:54:18Z | 2022-09-02T16:54:18Z | 2022-10-13T17:00:35Z |
TST: Address/catch more test warnings | diff --git a/pandas/io/date_converters.py b/pandas/io/date_converters.py
index 5885a3b9d14d7..99a838c61b996 100644
--- a/pandas/io/date_converters.py
+++ b/pandas/io/date_converters.py
@@ -92,9 +92,7 @@ def generic_parser(parse_func, *cols) -> np.ndarray:
"""
warnings.warn(
- """
- Use pd.to_d... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). | https://api.github.com/repos/pandas-dev/pandas/pulls/48358 | 2022-09-02T03:55:32Z | 2022-09-06T14:03:56Z | 2022-09-06T14:03:55Z | 2022-10-13T17:00:34Z |
DOC: add pd.Grouper type to groupby by argument types | diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index 09c8cf39f5839..296e25fd5c187 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -94,7 +94,7 @@
Parameters
----------
-by : mapping, function, label, or list of labels
+by : mapping, function, label, pd.Grouper or lis... | - [ ] closes #48230
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48357 | 2022-09-02T03:37:14Z | 2022-09-02T16:56:03Z | 2022-09-02T16:56:03Z | 2022-10-13T17:00:33Z |
CLN: consistent use of rval within left_join_indexer_unique (minor cleanup) | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index cc7d863bf326c..e574aa10f6b57 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -298,7 +298,7 @@ def left_join_indexer_unique(
indexer[i] = j
i += 1
- if left[i] == right[j]:
+ if left[i] == rval:
... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Very minor cleanup. Replacing `right[j]` with `rval` to be consistent with code above and below the line in question. (`rval = right[j]`) | https://api.github.com/repos/pandas-dev/pandas/pulls/48356 | 2022-09-02T01:38:59Z | 2022-09-02T07:05:27Z | 2022-09-02T07:05:27Z | 2022-10-13T17:00:33Z |
CI: Bump timeout to 180 minutes | diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml
index 9cbd41917110e..8b3d69943bd9d 100644
--- a/.github/workflows/macos-windows.yml
+++ b/.github/workflows/macos-windows.yml
@@ -28,7 +28,7 @@ jobs:
defaults:
run:
shell: bash -el {0}
- timeout-minutes: 120
+... | Noticing a few timeouts on builds lately.
Investigating whether we need to bump the timeout limit or some tests are stalling.
| https://api.github.com/repos/pandas-dev/pandas/pulls/48354 | 2022-09-01T21:33:35Z | 2022-09-07T22:50:15Z | 2022-09-07T22:50:15Z | 2022-09-08T21:32:27Z |
Backport PR #48254 on branch 1.5.x (REF: avoid FutureWarning about using deprecates loc.__setitem__ non-inplace usage) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index abab32ae145bd..7b345a58bda88 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6869,14 +6869,48 @@ def fillna(
if not is_dict
else downcast.get(k) # type: ignore[union-attr]
... | Backport PR #48254: REF: avoid FutureWarning about using deprecates loc.__setitem__ non-inplace usage | https://api.github.com/repos/pandas-dev/pandas/pulls/48353 | 2022-09-01T21:28:38Z | 2022-09-02T16:21:43Z | 2022-09-02T16:21:43Z | 2022-09-02T16:21:43Z |
Added test for `assert_index_equal` to check that function raises an exception if two different types | diff --git a/pandas/tests/util/test_assert_index_equal.py b/pandas/tests/util/test_assert_index_equal.py
index 1fa7b979070a7..0b2c2e12a2d2a 100644
--- a/pandas/tests/util/test_assert_index_equal.py
+++ b/pandas/tests/util/test_assert_index_equal.py
@@ -2,6 +2,7 @@
import pytest
from pandas import (
+ NA,
Ca... | - [x] closes #31884
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48351 | 2022-09-01T20:17:44Z | 2022-09-02T21:32:44Z | 2022-09-02T21:32:44Z | 2022-10-13T17:00:32Z |
Backport PR #48334 on branch 1.5.x (BUG: read_html(extract_links=all) with no header) | diff --git a/pandas/io/html.py b/pandas/io/html.py
index f890ad86519df..acf98a2f83921 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -34,6 +34,7 @@
from pandas import isna
from pandas.core.construction import create_series_with_explicit_dtype
from pandas.core.indexes.base import Index
+from pandas.core.in... | Backport PR #48334: BUG: read_html(extract_links=all) with no header | https://api.github.com/repos/pandas-dev/pandas/pulls/48350 | 2022-09-01T19:28:28Z | 2022-09-02T16:21:57Z | 2022-09-02T16:21:57Z | 2022-09-02T16:21:58Z |
REF: simplify Block.diff | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e471e7efb20ae..eb265dd655e34 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9241,8 +9241,14 @@ def diff(self, periods: int = 1, axis: Axis = 0) -> DataFrame:
periods = int(periods)
axis = self._get_axis_number(axis)... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48348 | 2022-09-01T15:13:50Z | 2022-09-09T18:09:32Z | 2022-09-09T18:09:32Z | 2022-10-13T17:00:31Z |
ENH: __pandas_priority__ | diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst
index c7286616672b9..1d52a5595472b 100644
--- a/doc/source/development/extending.rst
+++ b/doc/source/development/extending.rst
@@ -488,3 +488,49 @@ registers the default "matplotlib" backend as follows.
More information on how ... | Will allow dask/modin to address #38946 and https://github.com/modin-project/modin/issues/4646, respectively.
Also can be used to make non-masked EAs defer to masked EAs. | https://api.github.com/repos/pandas-dev/pandas/pulls/48347 | 2022-09-01T15:00:56Z | 2023-03-14T18:06:38Z | 2023-03-14T18:06:38Z | 2023-03-14T18:34:34Z |
Backport PR #48324 on branch 1.5.x (BUG: Add note in whatsnew for DataFrame.at behavior change) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5471beba44486..75941a3d8edef 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1081,7 +1081,7 @@ Indexing
- Bug in :meth:`DataFrame.sum` min_count changes dtype if input contains NaNs (:issue:`46947`)
... | Backport PR #48324: BUG: Add note in whatsnew for DataFrame.at behavior change | https://api.github.com/repos/pandas-dev/pandas/pulls/48345 | 2022-09-01T07:16:30Z | 2022-09-01T08:56:31Z | 2022-09-01T08:56:31Z | 2022-09-01T08:56:31Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ca5b5c9b896b..5fb38bc0589ef 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,11 +18,11 @@ repos:
pass_filenames: true
require_serial: false
- repo: https://github.com/python/black
- rev: 22.6.0
+ re... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/main)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_... | https://api.github.com/repos/pandas-dev/pandas/pulls/48344 | 2022-09-01T07:09:38Z | 2022-09-01T18:58:02Z | null | 2022-09-08T18:50:30Z |
DOC: Correct return type of read_csv | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 1c3d37912743b..4c8437736ea35 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -427,7 +427,7 @@
Returns
-------
-DataFrame or TextParser
+DataFrame or TextFileReader
A comma-separated values (csv) file ... | - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/48343 | 2022-09-01T06:51:13Z | 2022-09-01T08:57:13Z | 2022-09-01T08:57:13Z | 2022-10-13T17:00:31Z |
Backport PR #48336 on branch 1.5.x (DOC: Add whatsnew note for #45404) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5471beba44486..1cef615a7706b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1060,6 +1060,7 @@ Indexing
- Bug when setting a value too large for a :class:`Series` dtype failing to coerce to a common ... | Backport PR #48336: DOC: Add whatsnew note for #45404 | https://api.github.com/repos/pandas-dev/pandas/pulls/48341 | 2022-09-01T00:19:14Z | 2022-09-01T08:57:41Z | 2022-09-01T08:57:41Z | 2022-09-01T08:57:42Z |
REF: de-duplicate take_nd | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 010358d3a21ec..d0d67a01584c9 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -881,8 +881,13 @@ def take_nd(
)
# Called from three places in managers, all of which satisfy
- ... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48339 | 2022-08-31T23:10:50Z | 2022-09-15T00:23:51Z | 2022-09-15T00:23:51Z | 2022-10-13T17:00:30Z |
PERF: Performance improvement value_counts for masked arrays | diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py
index b58200911749e..df9d171a70397 100644
--- a/asv_bench/benchmarks/array.py
+++ b/asv_bench/benchmarks/array.py
@@ -32,9 +32,10 @@ def time_from_float_array(self):
class IntegerArray:
def setup(self):
- self.values_integer = np.... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48338 | 2022-08-31T21:44:46Z | 2022-09-09T19:10:32Z | 2022-09-09T19:10:32Z | 2022-10-13T17:00:29Z |
Switch to mambaforge for circleci | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 6d494f28d75d1..52a8cab1cd2de 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -1,16 +1,16 @@
#!/bin/bash -e
-echo "Install Miniconda"
-CONDA_URL="https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Miniforge3-4.14.0... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48337 | 2022-08-31T20:07:43Z | 2022-09-01T07:14:55Z | 2022-09-01T07:14:55Z | 2022-10-13T17:00:29Z |
DOC: Add whatsnew note for #45404 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5471beba44486..1cef615a7706b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1060,6 +1060,7 @@ Indexing
- Bug when setting a value too large for a :class:`Series` dtype failing to coerce to a common ... | - [x] Added an entry in the latest `doc/source/whatsnew/v1.5.0.rst` file if fixing a bug or adding a new feature.
xref https://github.com/pandas-dev/pandas/pull/45404#issuecomment-1014066695
cc @jbrockmendel just in case you had documented this elsewhere in the whatsnew. | https://api.github.com/repos/pandas-dev/pandas/pulls/48336 | 2022-08-31T19:51:05Z | 2022-09-01T00:18:42Z | 2022-09-01T00:18:42Z | 2022-09-01T00:18:45Z |
BUG: MultiIndex.unique losing ea dtype | diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py
index a498c6b2e4944..ca1d71f50bd5f 100644
--- a/asv_bench/benchmarks/multiindex_object.py
+++ b/asv_bench/benchmarks/multiindex_object.py
@@ -3,9 +3,11 @@
import numpy as np
from pandas import (
+ NA,
DataFram... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48335 | 2022-08-31T17:55:17Z | 2022-09-01T20:35:07Z | 2022-09-01T20:35:07Z | 2022-10-13T17:00:28Z |
BUG: read_html(extract_links=all) with no header | diff --git a/pandas/io/html.py b/pandas/io/html.py
index f890ad86519df..acf98a2f83921 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -34,6 +34,7 @@
from pandas import isna
from pandas.core.construction import create_series_with_explicit_dtype
from pandas.core.indexes.base import Index
+from pandas.core.in... | - [x] closes #48316 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48334 | 2022-08-31T17:12:50Z | 2022-09-01T19:27:56Z | 2022-09-01T19:27:56Z | 2022-09-01T19:28:00Z |
BUG: make Series handle dtype='int64' for string array | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index c393b8a57f805..5629c0729e76e 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -138,7 +138,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in constructing :class:`Series` with ``int64`` dtype from a str... | - [x] closes #44923
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48333 | 2022-08-31T16:55:16Z | 2022-09-12T18:31:53Z | 2022-09-12T18:31:53Z | 2023-04-12T13:23:50Z |
to_sql: Adding overwrite or ignore behavior for row conflicts | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2dfa505bc4932..1c80e102ea0d6 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2821,6 +2821,7 @@ def to_sql(
con,
schema: str | None = None,
if_exists: str = "fail",
+ on_row_conflict: str = "fail",
... | - [x] closes https://github.com/pandas-dev/pandas/issues/14553, continuation of https://github.com/pandas-dev/pandas/pull/46232 and https://github.com/pandas-dev/pandas/pull/29636
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48331 | 2022-08-31T15:34:55Z | 2023-01-16T19:39:06Z | null | 2023-01-16T19:39:07Z |
BUG: test for empty input construct | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index b4f027f3a832a..12661a8cbb6cb 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -3177,3 +3177,10 @@ def test_frame_allow_non_nano(self, arr):
def test_frame_from_d... | - [ ] closes #47959
- [ ] [Tests added ]
| https://api.github.com/repos/pandas-dev/pandas/pulls/48330 | 2022-08-31T14:39:22Z | 2022-09-06T04:11:11Z | null | 2022-09-06T04:11:11Z |
WEB: Update to `jupyterlite==0.1.0b12` | diff --git a/environment.yml b/environment.yml
index ee6982fc897a4..68c8994326a56 100644
--- a/environment.yml
+++ b/environment.yml
@@ -129,5 +129,5 @@ dependencies:
# build the interactive terminal
- jupyterlab >=3.4,<4
- pip:
- - jupyterlite==0.1.0b10
+ - jupyterlite==0.1.0b12
- sphinx-togg... | Update to the latest `jupyterlite` release to bring some more bug fixes and improvements.
This should help fix an issue with the current repl failing to load
- [x] ~closes #xxxx (Replace xxxx with the Github issue number)~
- [x] ~[Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/48329 | 2022-08-31T13:47:44Z | 2022-09-01T20:59:00Z | 2022-09-01T20:59:00Z | 2022-10-13T17:00:27Z |
BUG: dataframe returned for alternative agg method call np.size and "size" are inconsistent | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index d2882f46d25bf..3da7c1341cfc9 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1604,3 +1604,20 @@ def test_unique_agg_type_is_series(test, constant):
result = df1.ag... | - [ ] closes #47959
- [ ] [Tests added ]
| https://api.github.com/repos/pandas-dev/pandas/pulls/48328 | 2022-08-31T13:39:50Z | 2022-09-02T15:54:11Z | null | 2022-09-02T15:54:22Z |
BUG: inconsistent behaviour for empty DataFrames | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index b4f027f3a832a..0eab6575d68a9 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -3177,3 +3177,35 @@ def test_frame_allow_non_nano(self, arr):
def test_frame_from_d... | - [ ] Closes #47959
- [x] Tests added
| https://api.github.com/repos/pandas-dev/pandas/pulls/48327 | 2022-08-31T13:03:00Z | 2022-11-29T03:00:01Z | null | 2022-11-29T03:00:01Z |
Backport PR #48301 on branch 1.5.x (DEPR: Deprecate positional arguments in pivot) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 711352775400e..5471beba44486 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -911,6 +911,7 @@ Other Deprecations
- Deprecated :attr:`Timedelta.freq` and :attr:`Timedelta.is_populated` (:issue:`46430`)... | Backport PR #48301: DEPR: Deprecate positional arguments in pivot | https://api.github.com/repos/pandas-dev/pandas/pulls/48326 | 2022-08-31T06:48:44Z | 2022-08-31T11:22:40Z | 2022-08-31T11:22:40Z | 2022-08-31T11:22:40Z |
BUG: Add note in whatsnew for DataFrame.at behavior change | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 711352775400e..54faa70535043 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1080,7 +1080,7 @@ Indexing
- Bug in :meth:`DataFrame.sum` min_count changes dtype if input contains NaNs (:issue:`46947`)
... | - [x] closes #48296 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48324 | 2022-08-31T01:50:45Z | 2022-09-01T07:16:20Z | 2022-09-01T07:16:20Z | 2022-09-02T03:19:46Z |
dataframe.astype() exception message to include column name | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 508d5d8bc4cc1..70e9895504eb9 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -36,7 +36,7 @@ Other enhancements
- Added ``index`` parameter to :meth:`DataFrame.to_dict` (:issue:`46398`)
- Added metada... | - [X] closes #47571(Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48321 | 2022-08-30T22:16:58Z | 2022-10-14T17:06:30Z | 2022-10-14T17:06:30Z | 2022-10-14T17:22:58Z |
Backport PR #48314 on branch 1.5.x (DOC: v1.4.4 release date and tidy up release notes) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index d438c5705f2df..56b1254d8a359 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_144:
-What's new in 1.4.4 (July ??, 2022)
------------------------------------
+What's new in 1... | Backport PR #48314: DOC: v1.4.4 release date and tidy up release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/48320 | 2022-08-30T20:40:19Z | 2022-08-30T21:55:14Z | 2022-08-30T21:55:14Z | 2022-08-30T21:55:14Z |
Backport PR #48314 on branch 1.4.x (DOC: v1.4.4 release date and tidy up release notes) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index d438c5705f2df..56b1254d8a359 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_144:
-What's new in 1.4.4 (July ??, 2022)
------------------------------------
+What's new in 1... | Backport PR #48314: DOC: v1.4.4 release date and tidy up release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/48319 | 2022-08-30T20:39:57Z | 2022-08-30T21:55:32Z | 2022-08-30T21:55:32Z | 2022-08-30T21:55:32Z |
TST: Filter false positive matplotlib warning | diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py
index 0b6e5b346062a..7a469f9f19d80 100644
--- a/pandas/plotting/_matplotlib/core.py
+++ b/pandas/plotting/_matplotlib/core.py
@@ -1177,7 +1177,11 @@ def _plot_colorbar(self, ax: Axes, **kwds):
# use the last one which contai... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
xref https://github.com/... | https://api.github.com/repos/pandas-dev/pandas/pulls/48317 | 2022-08-30T17:17:47Z | 2022-08-31T19:13:26Z | 2022-08-31T19:13:26Z | 2022-11-04T21:44:49Z |
CI: Clean circleci setup env file | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index c03a7ff4be8b3..6d494f28d75d1 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -1,46 +1,15 @@
#!/bin/bash -e
-# edit the locale file if needed
-if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then
- echo "Adding locale to the fir... | - [x] closes #48307 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
#48307 is tracked by #47305. Cleaning the `setup_ev.sh` file since it's only used for... | https://api.github.com/repos/pandas-dev/pandas/pulls/48315 | 2022-08-30T16:54:28Z | 2022-08-31T19:11:30Z | 2022-08-31T19:11:30Z | 2022-10-13T17:00:25Z |
DOC: v1.4.4 release date and tidy up release notes | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index d438c5705f2df..56b1254d8a359 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -1,7 +1,7 @@
.. _whatsnew_144:
-What's new in 1.4.4 (July ??, 2022)
------------------------------------
+What's new in 1... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/48314 | 2022-08-30T14:09:53Z | 2022-08-30T20:39:30Z | 2022-08-30T20:39:30Z | 2022-08-30T20:40:13Z |
REGR: AttributeError: 'bool' object has no attribute 'to_numpy' in "mask_missing" | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index d438c5705f2df..70054d4bb5467 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -33,6 +33,7 @@ Fixed regressions
- Fixed regression in :meth:`DatetimeIndex.intersection` when the :class:`DatetimeIndex` h... | - [ ] closes #47101(Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48313 | 2022-08-30T13:48:46Z | 2022-08-30T20:38:40Z | null | 2022-08-30T20:38:40Z |
Backport PR #48246 on branch 1.5.x (REGR: iloc not possible for sparse DataFrame) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index e03e6cd41ebd3..fc7a7c915bde5 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -32,7 +32,7 @@ Fixed regressions
- Fixed regression in :meth:`DatetimeIndex.intersection` when the :class:`DatetimeIndex` h... | Backport PR #48246: REGR: iloc not possible for sparse DataFrame | https://api.github.com/repos/pandas-dev/pandas/pulls/48311 | 2022-08-30T12:28:05Z | 2022-08-30T14:24:55Z | 2022-08-30T14:24:55Z | 2022-08-30T14:24:56Z |
Backport PR #48246 on branch 1.4.x (REGR: iloc not possible for sparse DataFrame) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index e03e6cd41ebd3..fc7a7c915bde5 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -32,7 +32,7 @@ Fixed regressions
- Fixed regression in :meth:`DatetimeIndex.intersection` when the :class:`DatetimeIndex` h... | Backport PR #48246 | https://api.github.com/repos/pandas-dev/pandas/pulls/48310 | 2022-08-30T12:27:21Z | 2022-08-30T14:31:38Z | 2022-08-30T14:31:38Z | 2022-08-30T14:31:42Z |
Backport PR #47762 on branch 1.5.x (REGR: preserve reindexed array object (instead of creating new array) for concat with all-NA array) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index e03e6cd41ebd3..2ce4d4b37f922 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.fillna` not working :class:`DataFrame` with :class:... | Backport PR #47762: REGR: preserve reindexed array object (instead of creating new array) for concat with all-NA array | https://api.github.com/repos/pandas-dev/pandas/pulls/48309 | 2022-08-30T12:16:42Z | 2022-08-30T14:11:36Z | 2022-08-30T14:11:36Z | 2022-08-30T14:11:36Z |
Backport PR #47762 on branch 1.4.x (REGR: preserve reindexed array object (instead of creating new array) for concat with all-NA array) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index e03e6cd41ebd3..2ce4d4b37f922 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.fillna` not working :class:`DataFrame` with :class:... | Backport PR #47762: REGR: preserve reindexed array object (instead of creating new array) for concat with all-NA array | https://api.github.com/repos/pandas-dev/pandas/pulls/48308 | 2022-08-30T12:16:26Z | 2022-08-30T13:50:25Z | 2022-08-30T13:50:25Z | 2022-08-30T13:50:25Z |
Backport PR #48299 on branch 1.5.x (Bump s3fs to 2021.08.00) | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index d986a289ad75a..da3578e7191eb 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -19,7 +19,6 @@ dependencies:
- pytz
# optional dependencies
- - aiobotocore<2.0.0
- beautifulsoup4
- blosc
- bottleneck
@@ -44,7 +... | Backport PR #48299: Bump s3fs to 2021.08.00 | https://api.github.com/repos/pandas-dev/pandas/pulls/48305 | 2022-08-29T22:46:24Z | 2022-08-30T00:49:33Z | 2022-08-30T00:49:33Z | 2022-08-30T07:48:08Z |
Select_dtypes considers numpy int and pandas nullable integer types as the same | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 592b0f0ba62b8..ad3dcf3f79e83 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4724,6 +4724,8 @@ def check_int_infer_dtype(dtypes):
elif dtype == "float" or dtype is float:
# GH#42452 : np.dtype("float") ... | - [ ] closes #40234
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48303 | 2022-08-29T21:51:32Z | 2022-10-24T12:39:10Z | null | 2022-10-24T12:39:10Z |
Backport PR #48027 on branch 1.5.x (ENH: Support masks in groupby prod) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9de855dea407d..90108bc3f5a60 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1165,7 +1165,7 @@ Groupby/resample/rolling
- Bug when using ``engine="numba"`` would return the same jitted function when ... | Backport PR #48027: ENH: Support masks in groupby prod | https://api.github.com/repos/pandas-dev/pandas/pulls/48302 | 2022-08-29T21:44:31Z | 2022-08-30T08:06:11Z | 2022-08-30T08:06:11Z | 2022-08-30T08:06:11Z |
DEPR: Deprecate positional arguments in pivot | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 711352775400e..5471beba44486 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -911,6 +911,7 @@ Other Deprecations
- Deprecated :attr:`Timedelta.freq` and :attr:`Timedelta.is_populated` (:issue:`46430`)... | - [x] xref #30228 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/48301 | 2022-08-29T19:30:01Z | 2022-08-31T06:48:33Z | 2022-08-31T06:48:33Z | 2022-08-31T22:32:55Z |
TYPE: Move any all to _typing | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 08096569c61a7..dc51c04447bef 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -328,3 +328,6 @@ def closed(self) -> bool:
# plotting
PlottingOrientation = Literal["horizontal", "vertical"]
+
+# dropna
+AnyAll = Literal["any", "all"]
diff --git a/panda... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48300 | 2022-08-29T19:20:50Z | 2022-08-29T22:48:34Z | 2022-08-29T22:48:34Z | 2022-10-13T17:00:25Z |
Bump s3fs to 2021.08.00 | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index d986a289ad75a..da3578e7191eb 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -19,7 +19,6 @@ dependencies:
- pytz
# optional dependencies
- - aiobotocore<2.0.0
- beautifulsoup4
- blosc
- bottleneck
@@ -44,7 +... | - [x] closes #48271 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48299 | 2022-08-29T19:08:50Z | 2022-08-29T22:45:17Z | 2022-08-29T22:45:17Z | 2022-08-30T07:47:12Z |
The indexes of DataFrame.describe(percentiles=[0.29, 0.57, 0.58]) are incorrect | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index 848e87f0bc029..50f7104fb59c1 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -154,7 +154,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.reindex` filling with wrong values when indexing columns and ... | - [ ] closes #46362
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48298 | 2022-08-29T18:39:45Z | 2022-09-06T17:31:40Z | 2022-09-06T17:31:40Z | 2022-10-13T17:00:24Z |
CI: Check enforcing min botocore due to PY310 six ImportWarning | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index d986a289ad75a..50941ee249715 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -19,7 +19,7 @@ dependencies:
- pytz
# optional dependencies
- - aiobotocore<2.0.0
+ - botocore>=1.23.0
- beautifulsoup4
- blosc
-... | xref https://github.com/pandas-dev/pandas/pull/48291 https://github.com/pandas-dev/pandas/pull/48278
Checking if botocore's vendored six fixes allow environments to solve and not raise this `ImportWarning`
| https://api.github.com/repos/pandas-dev/pandas/pulls/48297 | 2022-08-29T18:29:47Z | 2022-08-29T19:15:37Z | null | 2022-08-29T19:15:40Z |
Passing tolerance | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 945639ef4b00a..85e33aada5d2a 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -580,7 +580,7 @@ def assert_categorical_equal(
def assert_interval_array_equal(
- left, right, exact="equiv", obj="IntervalA... | - [x] closes #43913
- [x] continued from #47947
- [x] passed tolerance down in place of creating an entirely new function
| https://api.github.com/repos/pandas-dev/pandas/pulls/48295 | 2022-08-29T02:27:48Z | 2022-08-29T17:04:55Z | null | 2022-08-29T17:04:55Z |
Run GC in file leak check | diff --git a/pandas/util/_test_decorators.py b/pandas/util/_test_decorators.py
index 4a4f27f6c7906..5a799cdb89146 100644
--- a/pandas/util/_test_decorators.py
+++ b/pandas/util/_test_decorators.py
@@ -26,6 +26,7 @@ def test_foo():
from __future__ import annotations
from contextlib import contextmanager
+import gc
... | This fixes a problem with `file_leak_context` (xref https://github.com/pandas-dev/pandas/pull/30096#issuecomment-1222094485).
Demo:
```py
import gc
import pandas as pd
import pandas.util._test_decorators as td
with td.file_leak_context():
reader = pd.read_csv("t.csv", iterator=True)
reader.cycle =... | https://api.github.com/repos/pandas-dev/pandas/pulls/48294 | 2022-08-28T20:54:36Z | 2022-08-31T17:34:17Z | 2022-08-31T17:34:17Z | 2022-10-13T17:00:23Z |
BUG: DataFrame.pivot not respecting None as column name | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index ee5085fd9ad89..a57eded8e3472 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -193,6 +193,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
+- Bug in :meth:`DataFrame.pivot` not respecting ``None`` ... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48293 | 2022-08-28T19:14:59Z | 2022-09-12T18:34:03Z | 2022-09-12T18:34:03Z | 2022-10-13T17:00:22Z |
ENH: Allow to skip series type check in assert_frame_equal (#48287) | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 945639ef4b00a..7cd0fbe7be055 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -1149,6 +1149,7 @@ def assert_frame_equal(
rtol=1.0e-5,
atol=1.0e-8,
obj="DataFrame",
+ check_series_type: bool = ... | Add an option check_series_type that is passed to assert_series_equal
in compare by columns.
- [x] closes #48287
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](htt... | https://api.github.com/repos/pandas-dev/pandas/pulls/48292 | 2022-08-28T18:21:12Z | 2022-10-24T21:16:42Z | null | 2022-10-24T21:16:43Z |
CI: Force newer S3FS | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index d986a289ad75a..da3578e7191eb 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -19,7 +19,6 @@ dependencies:
- pytz
# optional dependencies
- - aiobotocore<2.0.0
- beautifulsoup4
- blosc
- bottleneck
@@ -44,7 +... | - [ ] closes #48271 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/48291 | 2022-08-28T16:08:20Z | 2022-08-29T22:47:42Z | null | 2022-08-29T22:47:46Z |
CLN, STYLE: remove unused variables and imports in Cython files | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ca5b5c9b896b..0cd4e86cb24fa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,6 +26,10 @@ repos:
hooks:
- id: codespell
types_or: [python, rst, markdown]
+- repo: https://github.com/MarcoGorelli/cython-l... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48290 | 2022-08-28T13:25:45Z | 2022-09-07T17:58:35Z | 2022-09-07T17:58:35Z | 2022-10-13T17:00:22Z |
TYP: Specify how in dropna | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4302b14da6418..52b5dd87f58f4 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6423,7 +6423,7 @@ def dropna(
self,
*,
axis: Axis = ...,
- how: str | NoDefault = ...,
+ how: Literal["any", "all"] | NoDe... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48289 | 2022-08-28T11:49:15Z | 2022-08-29T18:14:38Z | 2022-08-29T18:14:38Z | 2022-10-23T17:39:51Z |
BUG: MultiIndex.append not checking names for equality | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index eac5e5d3a0f52..83dfacb46784b 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -161,7 +161,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Bug in :meth:`MultiIndex.append` not checking names for equality (:... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48288 | 2022-08-28T11:44:37Z | 2022-08-30T17:25:29Z | 2022-08-30T17:25:29Z | 2022-10-13T17:00:20Z |
TST: add tests for using .at() with DateTime indexes | diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py
index 96c73b007cef3..96b4158ff7c94 100644
--- a/pandas/tests/indexing/test_at.py
+++ b/pandas/tests/indexing/test_at.py
@@ -10,6 +10,7 @@
CategoricalDtype,
CategoricalIndex,
DataFrame,
+ DatetimeIndex,
MultiIndex,
... | - [x] closes #29709
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/48286 | 2022-08-27T22:45:59Z | 2022-08-31T16:30:10Z | 2022-08-31T16:30:10Z | 2022-10-13T17:00:19Z |
WEB: Unpin pydata sphinx theme | diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html
index 7e0043e771e72..f592a910dfbda 100644
--- a/doc/_templates/sidebar-nav-bs.html
+++ b/doc/_templates/sidebar-nav-bs.html
@@ -1,9 +1,9 @@
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
<div class="bd-toc-ite... | - [x] closes #46615 (Replace xxxx with the Github issue number)
- [x] closes #42744 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks... | https://api.github.com/repos/pandas-dev/pandas/pulls/48285 | 2022-08-27T21:47:49Z | 2022-09-16T17:32:58Z | 2022-09-16T17:32:58Z | 2022-11-21T09:31:44Z |
deboog | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index e6de5caf955fc..26f2e0bb8f06a 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -24,7 +24,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then
XVFB="xvfb-run "
fi
-PYTEST_CMD="${XVFB}pytest -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48284 | 2022-08-27T20:39:34Z | 2022-08-27T20:39:46Z | null | 2022-08-27T20:39:46Z |
BLD: Build wheels using cibuildwheel | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
new file mode 100644
index 0000000000000..afd30debee7fb
--- /dev/null
+++ b/.github/workflows/wheels.yml
@@ -0,0 +1,180 @@
+# Workflow to build wheels for upload to PyPI.
+# Inspired by numpy's cibuildwheel config https://github.com/numpy/numpy/b... | - [ ] closes #44027 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/48283 | 2022-08-27T19:28:17Z | 2022-09-21T18:54:47Z | 2022-09-21T18:54:47Z | 2022-10-13T17:00:19Z |
DOC: fix a typo: relaying -> relying | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index 5bd2e8a53e8e8..59117a3400bfd 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -336,7 +336,7 @@ def bootstrap_plot(
Bootstrap plot on mean, median and mid-range statistics.
The bootstrap plot is used to estimate the... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/48282 | 2022-08-27T16:47:10Z | 2022-08-29T17:40:56Z | 2022-08-29T17:40:56Z | 2022-10-13T17:00:18Z |
DOC: Add none as a default argument for orient | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 02a0b27f82ef8..7614413692b03 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -501,7 +501,7 @@ def read_json(
By file-like object, we refer to objects with a ``read()`` method,
such as a file handle (e.g. via bui... | - [x] closes #48252
Add None as an acceptable argument for orient in read_json over [here](https://pandas.pydata.org/docs/reference/api/pandas.read_json.html)
| https://api.github.com/repos/pandas-dev/pandas/pulls/48281 | 2022-08-27T11:15:31Z | 2022-09-04T11:54:27Z | 2022-09-04T11:54:27Z | 2022-10-16T18:43:51Z |
BUG: array ufuncs with more than 2 inputs fails with 2 or more pd.Series and scalar arguments | diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst
index bdaea89776b7c..ce60844f68b51 100644
--- a/doc/source/whatsnew/v1.6.0.rst
+++ b/doc/source/whatsnew/v1.6.0.rst
@@ -189,7 +189,7 @@ Timezones
Numeric
^^^^^^^
--
+- Bug in :meth:`DataFrame.add` cannot apply ufunc when inputs contain mix... | - [ ] closes #39853
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/48280 | 2022-08-27T10:29:02Z | 2022-10-11T20:44:22Z | 2022-10-11T20:44:22Z | 2022-10-13T17:00:17Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.