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 |
|---|---|---|---|---|---|---|---|
DEPR: positional indexing on Series __getitem__/__setitem__ | diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst
index 34965a2a6d711..7335f1cb066ce 100644
--- a/doc/source/user_guide/basics.rst
+++ b/doc/source/user_guide/basics.rst
@@ -1364,7 +1364,7 @@ We illustrate these fill methods on a simple Series:
rng = pd.date_range("1/3/2000", period... | - [ ] 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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53201 | 2023-05-12T16:52:21Z | 2023-05-19T21:13:50Z | 2023-05-19T21:13:50Z | 2023-05-19T21:28:08Z |
PERF: Performance regression in Groupby.apply with group_keys=True | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 0d6647dc38b3c..c8159be4d7b6b 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed performance regression 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/53195 | 2023-05-12T07:14:34Z | 2023-05-12T16:58:18Z | 2023-05-12T16:58:18Z | 2023-05-16T16:18:15Z |
use is_integer in df.insert | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 52fc8512c9db3..e659bf7adbf1a 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -351,6 +351,7 @@ Conversion
- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non-nanosecond ``pyarrow... | - [ ] closes #53193
- [ ] [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/53194 | 2023-05-12T05:51:34Z | 2023-05-14T05:30:58Z | 2023-05-14T05:30:58Z | 2023-05-14T05:31:31Z |
CI/BLD: Build Linux ARM wheels on GHA | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 549a6374246a0..beb4c319eeaed 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -18,78 +18,3 @@ jobs:
PATH=$HOME/miniconda3/envs/pandas-dev/bin:$HOME/miniconda3/condabin:$PATH
LD_PRELOAD=$HOME/miniconda3/envs/pandas-dev/l... | Builds on top of https://github.com/pandas-dev/pandas/pull/53087
Uses QEMU on GHA to build/test these wheels instead of using CircleCI separately | https://api.github.com/repos/pandas-dev/pandas/pulls/53191 | 2023-05-11T23:19:16Z | 2023-05-14T02:40:32Z | null | 2023-05-14T02:40:38Z |
ENH: allow better categorical dtype strings, e.g. `category[string]` | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index 4bd56ccb1b5ce..d1dcbbb0063f1 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -44,7 +44,7 @@
pd.UInt16Dtype,
pd.UInt32Dtype,
pd.UInt64D... | - [X] closes #48515
- [ ] [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/53190 | 2023-05-11T22:27:49Z | 2023-10-12T16:48:16Z | null | 2023-10-12T16:48:17Z |
BUG/CoW: Series.rename not making a lazy copy when passed a scalar | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 0d6647dc38b3c..8ef733f825d00 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -31,6 +31,7 @@ Bug fixes
- Bug in :meth:`DataFrame.__getitem__` not preserving dtypes for :class:`MultiIndex` partial keys ... | - [ ] closes #52450 (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/53189 | 2023-05-11T22:23:39Z | 2023-05-14T09:03:31Z | 2023-05-14T09:03:31Z | 2023-05-14T09:56:44Z |
DOC: Fix version switcher | diff --git a/doc/source/versions.json b/web/pandas/versions.json
similarity index 100%
rename from doc/source/versions.json
rename to web/pandas/versions.json
| - [X] closes #53180 | https://api.github.com/repos/pandas-dev/pandas/pulls/53188 | 2023-05-11T18:09:10Z | 2023-05-11T23:45:29Z | 2023-05-11T23:45:29Z | 2023-05-11T23:47:50Z |
DOC: Fix rst formatting in dev environment docs | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index 38e354d8c57d6..8bc15d6968afc 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -225,7 +225,7 @@ To compile pandas with ... | - [ ] 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/53187 | 2023-05-11T18:04:54Z | 2023-05-11T20:17:25Z | 2023-05-11T20:17:25Z | 2023-05-11T20:17:42Z |
MNT: Mark explicitly cdivision to support cython3 | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c62e60b7cdaa0..11f1342883c3c 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -136,6 +136,7 @@ cdef float64_t median_linear(float64_t* a, int n) nogil:
return result
+@cython.cdivision(True)
cdef float64_t calc_media... | - [ ] 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/53186 | 2023-05-11T16:55:15Z | 2023-05-11T17:02:36Z | null | 2023-05-11T17:02:41Z |
CI: Clean caches of closed PRs | diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml
new file mode 100644
index 0000000000000..099974141c1d1
--- /dev/null
+++ b/.github/workflows/cache-cleanup.yml
@@ -0,0 +1,30 @@
+name: Clean closed branch caches
+on:
+ pull_request:
+ types:
+ - closed
+
+jobs:
+ cleanup:... | Looks like we regularly go over the 10GB CI cache limit. One step that should help is removing CI caches from closed PRs
https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries | https://api.github.com/repos/pandas-dev/pandas/pulls/53184 | 2023-05-11T16:49:00Z | 2023-05-15T20:27:19Z | 2023-05-15T20:27:19Z | 2023-05-15T20:27:23Z |
DOC: add missing parameters to offsets classes: BYearEnd, BusinessHour, WeekOfMonth | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index ffbaddfcd2afa..87b511d92ac30 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1714,6 +1714,8 @@ cdef class BusinessHour(BusinessMixin):
Start time of your custom business hour in 24h forma... | - [x] towards #52431
Updated documentation for offsets classes: `BYearEnd,` `BusinessHour`, `WeekOfMonth`, added missing parameters. | https://api.github.com/repos/pandas-dev/pandas/pulls/53183 | 2023-05-11T15:54:07Z | 2023-05-16T11:10:27Z | 2023-05-16T11:10:27Z | 2023-05-16T11:33:54Z |
DOC: Move version.json back to web | diff --git a/doc/source/versions.json b/web/versions.json
similarity index 100%
rename from doc/source/versions.json
rename to web/versions.json
| - [ ] closes #53180 (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/53182 | 2023-05-11T15:48:06Z | 2023-05-11T17:43:02Z | null | 2023-05-11T17:43:05Z |
DOC Fixing EX01 - added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 022b85b9eb55c..99bd90750b676 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -80,12 +80,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings... | Towards #37875
I couldn't locally build the html files for `Series.SeriesGroupBy.is_monotonic_increasing` and `Series.SeriesGroupBy.is_monotonic_decreasing`. Followed https://github.com/noatamir/pyladies-berlin-sprints/issues/13 to split the docstrings from Series - but I'm not sure if adding #GH13 to the docstring ... | https://api.github.com/repos/pandas-dev/pandas/pulls/53181 | 2023-05-11T15:29:07Z | 2023-05-15T14:46:46Z | 2023-05-15T14:46:46Z | 2023-05-15T14:54:17Z |
Switch to setup-micromamba | diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml
index 700197e400c5f6..a12102dc25f9ec 100644
--- a/.github/actions/setup-conda/action.yml
+++ b/.github/actions/setup-conda/action.yml
@@ -6,20 +6,12 @@ inputs:
environment-name:
description: Name to use for the Conda en... | - [ ] 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/53179 | 2023-05-11T13:31:41Z | 2023-05-11T15:31:19Z | null | 2023-05-11T15:42:55Z |
Add asv benchmarks for Block.setitem() | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 53827cfcf64fb..84d95a23bd446 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -3,6 +3,7 @@
lower-level methods directly on Index and subclasses, see index_object.py,
indexing_engine.py, and in... | - [x] closes #25756 (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/53177 | 2023-05-11T13:09:18Z | 2023-05-15T20:28:10Z | 2023-05-15T20:28:10Z | 2023-05-15T20:28:19Z |
Add `np.intc` to `_factorizers` in `pd.merge` | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index e47c8c9b1714a..a40eb47508609 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -14,11 +14,11 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed performance regression i... | - [x] closes #52451
- [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/53175 | 2023-05-11T10:32:15Z | 2023-05-17T16:45:33Z | 2023-05-17T16:45:32Z | 2023-05-17T16:49:48Z |
Add test for groupby with TimeGrouper | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 2e432a768af9e..7bda7c575d994 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -3058,3 +3058,27 @@ def test_groupby_selection_other_methods(df):
tm.assert_frame_equal(
... | - [x] closes #17202
- [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/53173 | 2023-05-10T23:21:14Z | 2023-05-11T15:23:30Z | 2023-05-11T15:23:30Z | 2023-05-11T15:23:37Z |
BUG/REF: ArrowExtensionArray non-nanosecond units | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b264e6da82b50..299adc5af8aea 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -438,6 +438,7 @@ Sparse
ExtensionArray
^^^^^^^^^^^^^^
+- Bug in :class:`~arrays.ArrowExtensionArray` converting pandas n... | - [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/53171 | 2023-05-10T22:02:22Z | 2023-05-16T00:04:47Z | 2023-05-16T00:04:47Z | 2023-05-30T22:16:27Z |
Switch to setup-micromamba | diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml
index 700197e400c5f..84e81b9a9297f 100644
--- a/.github/actions/setup-conda/action.yml
+++ b/.github/actions/setup-conda/action.yml
@@ -3,23 +3,14 @@ inputs:
environment-file:
description: Conda environment file to use.... | We are deprecating `provision-with-micromamba` and replacing it with https://github.com/mamba-org/setup-micromamba.
- [ ] 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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/53168 | 2023-05-10T15:55:04Z | 2023-05-12T17:24:27Z | 2023-05-12T17:24:27Z | 2023-05-12T17:48:06Z |
ENH/DEPR: infer date objects to date[pyarrow] dtype | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index a622de742a840..c66322aa99fd1 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -6,6 +6,7 @@ from typing import (
Literal,
_GenericAlias,
)
+import warnings
cimport cython
from cpython.datetime cimport (
@@ -99,6 +100,8 @@ cdef e... | Sits on top of #53025.
A few issues this brings up that we should decide on before merging
- [ ] constructing a Categorical from an object-dtype Index does type inference on the categories; is that always wanted?
- [ ] infer_dtype will see a mixed sequence of dates-and-datetimes and return "date"; sure we want t... | https://api.github.com/repos/pandas-dev/pandas/pulls/53165 | 2023-05-10T14:15:41Z | 2023-07-06T20:34:26Z | null | 2023-07-06T20:34:30Z |
BUG: from_dataframe with empty objects | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5b62883c2741e..a5e39dc999129 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -449,6 +449,7 @@ Metadata
Other
^^^^^
- Bug in :class:`FloatingArray.__contains__` with ``NaN`` item incorrectly returnin... | - [ ] closes #53155 (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/53161 | 2023-05-09T23:08:04Z | 2023-05-15T20:36:52Z | 2023-05-15T20:36:52Z | 2023-05-15T20:36:56Z |
BUG: SparseDtype requires numpy dtype | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 62d56f684a11d..64c8f06349449 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -423,6 +423,7 @@ Reshaping
Sparse
^^^^^^
+- Bug in :class:`SparseDtype` constructor failing to raise ``TypeError`` when ... | - [ ] 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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53160 | 2023-05-09T23:02:07Z | 2023-05-11T00:57:22Z | 2023-05-11T00:57:22Z | 2023-05-11T01:55:54Z |
TYP: remove mypy ignore[assignment] from pandas/core/methods/to_dict.py | diff --git a/pandas/core/methods/to_dict.py b/pandas/core/methods/to_dict.py
index e89f641e17296..7417fafb123a6 100644
--- a/pandas/core/methods/to_dict.py
+++ b/pandas/core/methods/to_dict.py
@@ -81,17 +81,14 @@ def to_dict(
# GH16122
into_c = com.standardize_mapping(into)
- # error: Incompatible types... | Related to #37715
mypy ignore[assignment] was removed from pandas/core/methods/to_dict.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53159 | 2023-05-09T20:14:56Z | 2023-05-25T15:44:25Z | null | 2023-05-25T15:44:25Z |
DOC: #53035 clarify the behavior of sep=None. | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 8b2a02f0ac63a..ad9e5b646371e 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -103,11 +103,12 @@
sep : str, default {_default_sep}
Delimiter to use. If sep is None, the C engine cannot automatically detec... | Clarified that only the first valid line is used to detect the separator if sep=None in read_csv.
- [ ] closes #53035 (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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/53153 | 2023-05-09T13:00:54Z | 2023-05-09T16:52:10Z | 2023-05-09T16:52:10Z | 2023-05-09T21:57:54Z |
PERF: Series.str.get for pyarrow-backed strings | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 281db2759b9f0..07cedda9f9009 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -292,6 +292,7 @@ Performance improvements
- Performance improvement in :meth:`DataFrame.loc` when selecting rows and column... | - [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/53152 | 2023-05-09T10:43:27Z | 2023-05-10T00:58:38Z | 2023-05-10T00:58:38Z | 2023-05-30T22:16:32Z |
DOC: Adding Docstring to using_copy_on_write #15580 | diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py
index 73ed99c3a4640..4c9a38a99aa36 100644
--- a/pandas/_config/__init__.py
+++ b/pandas/_config/__init__.py
@@ -31,6 +31,28 @@
def using_copy_on_write() -> bool:
+ """
+ Determine if copy-on-write mode is enabled.
+
+ Copy-on-write is a ... | - [ ] Adding docstring to a function #15580 | https://api.github.com/repos/pandas-dev/pandas/pulls/53151 | 2023-05-09T04:06:13Z | 2023-05-12T17:15:24Z | null | 2023-07-21T00:54:46Z |
PERF: Series.add for pyarrow string/binary dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 258c14cec7925..295f0367e4c16 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -289,6 +289,7 @@ Performance improvements
- Performance improvement in :func:`concat` when ``axis=1`` and objects have diff... | - [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/53150 | 2023-05-09T00:44:40Z | 2023-05-09T16:53:37Z | 2023-05-09T16:53:37Z | 2023-05-30T22:16:33Z |
OpenMP Groupby any/all | diff --git a/meson.build b/meson.build
index adbf87f8e3390..327cb83eccc7e 100644
--- a/meson.build
+++ b/meson.build
@@ -22,7 +22,7 @@ py = py_mod.find_installation('python')
py_dep = py.dependency()
tempita = files('generate_pxi.py')
versioneer = files('generate_version.py')
-
+openmp = dependency('openmp', require... | Seems to give a small boost with our current test suite, though this could depend on the shape of the input data:
```sh
before after ratio
[824fc830] [f7d33366]
<main> <parallel-shift>
- 46.3±0.4μs 41.6±0.4μs 0.90 groupby.GroupByMethods.time_dtyp... | https://api.github.com/repos/pandas-dev/pandas/pulls/53149 | 2023-05-08T23:58:54Z | 2023-05-16T22:08:28Z | null | 2023-05-29T21:28:33Z |
New test branch | diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py
index 5eaa2eb20f6bf..e0d52764e0a33 100644
--- a/pandas/tests/groupby/test_apply.py
+++ b/pandas/tests/groupby/test_apply.py
@@ -19,6 +19,23 @@
from pandas.tests.groupby import get_groupby_method_args
+def test_apply_func_that_appe... | - [ ] 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/53148 | 2023-05-08T23:47:46Z | 2023-05-09T00:22:18Z | null | 2023-05-09T00:22:19Z |
Backport PR #53027 on branch 2.0.x (CI: Add job to validate conda-forge meta.yaml) | diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml
index fa1b5e5d4fba3..6f1fa771a7854 100644
--- a/.github/workflows/package-checks.yml
+++ b/.github/workflows/package-checks.yml
@@ -14,6 +14,10 @@ on:
permissions:
contents: read
+defaults:
+ run:
+ shell: bash -el {0}
+
... | Backport PR #53027: CI: Add job to validate conda-forge meta.yaml | https://api.github.com/repos/pandas-dev/pandas/pulls/53146 | 2023-05-08T22:45:35Z | 2023-05-09T00:10:23Z | 2023-05-09T00:10:23Z | 2023-05-09T00:10:24Z |
MNT: Add support of Cython 3 master | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index ae1d20ca4e225..a45299c8ba896 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -303,19 +303,19 @@ PandasParser_IMPORT
# cdef extern'ed declarations seem to leave behind an undefined symbol
cdef double xstrtod_wrapper(const ch... | - [ ] 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/53145 | 2023-05-08T22:07:05Z | 2023-05-09T16:59:00Z | 2023-05-09T16:59:00Z | 2023-05-09T17:25:16Z |
MNT: Explicitly set cdef functions as noexcept | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 406b1a0f1f807..c62e60b7cdaa0 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1360,7 +1360,7 @@ cdef inline void _check_below_mincount(
int64_t[:, ::1] nobs,
int64_t min_count,
mincount_t[:, ::1] resx,
-) nogil... | - [ ] 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/53144 | 2023-05-08T21:40:48Z | 2023-05-09T16:59:36Z | 2023-05-09T16:59:36Z | 2023-05-13T18:04:48Z |
BUG: Setting frame into df with dup cols loses dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 258c14cec7925..2d505cd7a2ed1 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -361,7 +361,7 @@ Interval
Indexing
^^^^^^^^
--
+- Bug in :meth:`DataFrame.__setitem__` losing dtype when setting a :clas... | - [ ] 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/53143 | 2023-05-08T20:11:30Z | 2023-05-09T23:09:40Z | 2023-05-09T23:09:40Z | 2023-05-10T05:40:32Z |
CLN: Cleanup after CoW setitem PRs | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index a949ec808c5cd..762f41b4049c2 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -14,10 +14,12 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
-.. _whatsnew_210.enhancements.enhancemen... | - [ ] 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/53142 | 2023-05-08T19:54:44Z | 2023-06-09T13:48:17Z | 2023-06-09T13:48:17Z | 2023-06-12T06:00:41Z |
DOC: Move whatsnew after backport | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index c234de3e3b3ae..0d6647dc38b3c 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -28,6 +28,7 @@ Bug fixes
- Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect si... | - [ ] 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/53141 | 2023-05-08T19:48:02Z | 2023-05-09T14:02:51Z | 2023-05-09T14:02:51Z | 2023-05-09T14:03:09Z |
CI: Address non-failing warnings in CI jobs | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 6831eaba9e3fa..bec07c077ad59 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -232,7 +232,7 @@ jobs:
python -m pip install -U pip wheel setuptools meson[ninja]==1.0.1 meson-python==0.... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53139 | 2023-05-08T17:35:51Z | 2023-05-12T17:16:31Z | 2023-05-12T17:16:31Z | 2023-05-12T17:16:34Z |
Add test case for applying a function to a groupby object that append… | diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py
index 5eaa2eb20f6bf..b52b708de50a6 100644
--- a/pandas/tests/groupby/test_apply.py
+++ b/pandas/tests/groupby/test_apply.py
@@ -19,6 +19,23 @@
from pandas.tests.groupby import get_groupby_method_args
+def test_apply_func_that_appe... | …s each group to a list without using copy() function. The test checks if the groups are correctly appended to the list. This resolves GH issue 17718.
- [ ] closes #17718 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_cod... | https://api.github.com/repos/pandas-dev/pandas/pulls/53138 | 2023-05-08T17:07:53Z | 2023-05-09T16:45:19Z | 2023-05-09T16:45:19Z | 2023-05-09T16:55:13Z |
Backport PR #53118 on branch 2.0.x (REGR: read_sql dropping duplicated columns) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 7864791f8bc59..fae0f06beb3a8 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :func:`rea... | Backport PR #53118: REGR: read_sql dropping duplicated columns | https://api.github.com/repos/pandas-dev/pandas/pulls/53136 | 2023-05-08T13:15:47Z | 2023-05-08T16:32:21Z | 2023-05-08T16:32:21Z | 2023-05-08T16:32:22Z |
TYP: remove mypy ignore[assignment] from pandas/core/internals/construction.py | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 29e0bb11be4dc..f080683d76df7 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -675,8 +675,7 @@ def reorder_arrays(
if columns is not None:
if not columns.equals... | Related to #37715
mypy ignore[assignment] was removed from pandas/core/internals/construction.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53135 | 2023-05-08T09:24:42Z | 2023-05-12T11:06:11Z | 2023-05-12T11:06:11Z | 2023-05-12T11:06:11Z |
DOC: Updated applymap docstring | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index b2505bc63926c..c599bcbfd4170 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -2051,7 +2051,7 @@ def applymap(
.. deprecated:: 2.1.0
- Styler.applymap_index has been deprecated. Use Styler.map_in... | - [X] closes #53097 (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/53132 | 2023-05-07T22:49:05Z | 2023-05-08T16:36:18Z | 2023-05-08T16:36:18Z | 2023-05-08T16:36:24Z |
TST: Added test for query method with string dtype and null values (#… | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index ae199d5c373d5..66695baf3ef73 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -1070,6 +1070,37 @@ def test_query_string_scalar_variable(self, parser, engine):
r = df... | …31516)
- [x] closes #31516
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/53130 | 2023-05-07T17:23:16Z | 2023-06-02T17:29:16Z | null | 2023-06-02T17:29:16Z |
CI: Don't run cron for forks | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 23609f692df7c..8715c5306a3b0 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -18,6 +18,7 @@ jobs:
actions: read
contents: read
security-events: write
+ if: github.repository_owner == 'p... | - [n/a] closes #xxxx (Replace xxxx with the GitHub issue number)
- [n/a] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/53129 | 2023-05-07T15:16:54Z | 2023-05-08T16:37:50Z | 2023-05-08T16:37:50Z | 2023-05-08T16:38:30Z |
BUG `pd.NA` not treated correctly in `where` and `mask` operations | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 040ca048d1224..88740608e015a 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -735,6 +735,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` losing dtype when setting a :class:`DataFrame` into duplic... | - [ ] Closes #52955
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)
- [x] Added an entry in the latest `doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/53124 | 2023-05-07T00:58:11Z | 2023-11-07T00:48:14Z | null | 2023-11-07T00:55:27Z |
ENH: Arithmetic operations on intervals #43629 | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index fe405b98f218c..1de04ab6263f2 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -489,6 +489,69 @@ cdef class Interval(IntervalMixin):
)
):
return Interval(y.left + self, y.right + self, clo... | - [ ] closes #43629 (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/53123 | 2023-05-07T00:47:23Z | 2023-06-12T18:24:44Z | null | 2023-06-12T18:24:44Z |
ENH: add validate parameter to Categorical.from_codes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 36b2aa3c28da5..a6302ca09f90a 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -95,6 +95,7 @@ Other enhancements
- Improved error message when creating a DataFrame with empty data (0 rows), no index and... | - [x] closes #50975
- [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/53122 | 2023-05-07T00:09:52Z | 2023-05-09T17:43:53Z | 2023-05-09T17:43:53Z | 2023-08-15T17:56:03Z |
Backport PR #51895 on branch 2.0.x (BUG: Fix getitem dtype preservation with multiindexes) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 7864791f8bc59..f8ac59b49e6e3 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -29,6 +29,7 @@ Bug fixes
- Bug in :meth:`DataFrame.convert_dtypes` ignores ``convert_*`` keywords when set to False ``dtype... | xref #53119
cc @jorisvandenbossche @jbrockmendel
This fixes a pretty bad performance bottleneck for CoW. Would like to backport.
| https://api.github.com/repos/pandas-dev/pandas/pulls/53121 | 2023-05-06T21:28:20Z | 2023-05-08T16:40:06Z | 2023-05-08T16:40:06Z | 2023-05-08T17:34:32Z |
TYP: remove ignore from pandas/tseries/frequencies.py II | diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py
index 522daf7188bfb..caa34a067ac69 100644
--- a/pandas/tseries/frequencies.py
+++ b/pandas/tseries/frequencies.py
@@ -140,10 +140,7 @@ def infer_freq(
>>> pd.infer_freq(idx)
'D'
"""
- from pandas.core.api import (
- Date... | Related to pr #52623, which doesn't work correctly.
mypy ignore[assignment] was removed from pandas/tseries/frequencies.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53120 | 2023-05-06T15:36:53Z | 2023-05-08T14:59:17Z | 2023-05-08T14:59:17Z | 2023-05-08T14:59:25Z |
REGR: read_sql dropping duplicated columns | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 1bc2fda7b8af9..c234de3e3b3ae 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :func:`rea... | - [x] closes #53117 (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/53118 | 2023-05-06T10:51:14Z | 2023-05-08T13:14:35Z | 2023-05-08T13:14:35Z | 2023-05-08T15:55:45Z |
REF: move SparseDtype, ArrowDtype to dtypes.dtypes | diff --git a/pandas/__init__.py b/pandas/__init__.py
index ffdd7294cace1..d11a429987ac4 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -108,7 +108,7 @@
DataFrame,
)
-from pandas.core.arrays.sparse import SparseDtype
+from pandas.core.dtypes.dtypes import SparseDtype
from pandas.tseries.api impor... | - [ ] 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/53116 | 2023-05-05T22:54:17Z | 2023-05-15T20:44:28Z | 2023-05-15T20:44:28Z | 2023-05-15T20:50:42Z |
Backport PR #53102 on branch 2.0.x (REGR: MultiIndex.join not resorting levels of new index) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index ae251f25de578..7864791f8bc59 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -15,6 +15,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.loc` losing :class:`MultiIndex` ... | Backport PR #53102: REGR: MultiIndex.join not resorting levels of new index | https://api.github.com/repos/pandas-dev/pandas/pulls/53113 | 2023-05-05T22:24:35Z | 2023-05-06T14:42:11Z | 2023-05-06T14:42:11Z | 2023-05-06T14:42:11Z |
TYP: remove mypy ignore from pandas/core/construction.py | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 7e03d2ec8092e..9b4d67a20a7cd 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -502,9 +502,7 @@ def sanitize_masked_array(data: ma.MaskedArray) -> np.ndarray:
if mask.any():
dtype, fill_value = maybe_p... | Related to #37715
mypy ignore[assignment] was removed from pandas/core/construction.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53112 | 2023-05-05T21:01:14Z | 2023-05-06T17:29:30Z | 2023-05-06T17:29:30Z | 2023-05-06T17:29:30Z |
CLN: Wheel scripts | diff --git a/ci/fix_wheels.py b/ci/fix_wheels.py
index 76b70fdde9ea0..d09940fd24d7a 100644
--- a/ci/fix_wheels.py
+++ b/ci/fix_wheels.py
@@ -1,6 +1,6 @@
"""
This file "repairs" our Windows wheels by copying the necessary DLLs for pandas to run
-on a barebones Windows installation() into the wheel.
+on a barebones Win... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53109 | 2023-05-05T18:36:05Z | 2023-05-08T23:30:51Z | null | 2023-05-08T23:30:54Z |
DEPR: downcast inferring round floats to ints | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 2392928e17df3..c43059a5844ad 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -296,6 +296,8 @@ Deprecations
- Deprecated behavior of :func:`assert_series_equal` and :func:`assert_frame_equal` consideri... | - [ ] 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/53108 | 2023-05-05T18:27:47Z | 2023-06-29T22:20:21Z | null | 2023-06-29T22:20:28Z |
Backport PR #53055 on branch 2.0.x (BUG: Fix regression when printing backslash in DataFrame.to_string) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 726ff60f7a197..ae251f25de578 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | Backport PR #53055: BUG: Fix regression when printing backslash in DataFrame.to_string | https://api.github.com/repos/pandas-dev/pandas/pulls/53107 | 2023-05-05T17:16:08Z | 2023-05-05T19:26:53Z | 2023-05-05T19:26:53Z | 2023-05-05T19:26:54Z |
ENH: EADtype._find_compatible_dtype | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index 6b00a5284ec5b..c6386db82c23e 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -65,6 +65,7 @@ class ExtensionDtype:
* _is_numeric
* _is_boolean
* _get_common_dtype
+ * _find_compatible_dtype
The... | - [x] closes #24246
- [x] closes #45349
- [x] closes #32346
- [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/53106 | 2023-05-05T15:51:53Z | 2024-01-10T16:22:12Z | null | 2024-01-10T16:22:12Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py
index a1939de0d2a8d..cfc42e81a4234 100644
--- a/pandas/tests/frame/indexing/test_where.py
+++ b/pandas/tests/frame/indexing/test_where.py
@@ -328,15 +328,14 @@ def test_where_bug_mixed(self, any_signed_int_numpy_dtype):
... | another precursor to PDEP6, similar to https://github.com/pandas-dev/pandas/pull/52957
turns out there were even more of these which could be factored upon further inspection | https://api.github.com/repos/pandas-dev/pandas/pulls/53104 | 2023-05-05T14:36:58Z | 2023-05-05T17:43:55Z | 2023-05-05T17:43:55Z | 2023-05-05T21:37:01Z |
DEPR: stricter downcast values in fillna | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..d29aa8d8a2d1d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -259,6 +259,7 @@ Deprecations
- Deprecated unused "closed" and "normalize" keywords in the :class:`DatetimeIndex` construct... | xref #40988 (doesn't close) | https://api.github.com/repos/pandas-dev/pandas/pulls/53103 | 2023-05-05T14:04:32Z | 2023-05-05T19:25:54Z | 2023-05-05T19:25:54Z | 2023-05-05T19:58:51Z |
REGR: MultiIndex.join not resorting levels of new index | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 7dc00e8e4bfeb..1bc2fda7b8af9 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -15,6 +15,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.loc` losing :class:`MultiIndex` ... | - [x] closes #53093 (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/53102 | 2023-05-05T13:57:17Z | 2023-05-05T19:26:24Z | 2023-05-05T19:26:24Z | 2023-05-14T16:20:32Z |
TYP: added explanation of the join methods within df.align | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 09f5e0542db18..017fb44413c8f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9471,6 +9471,14 @@ def align(
----------
other : DataFrame or Series
join : {{'outer', 'inner', 'left', 'right'}}, default 'oute... | - closes #53092
Added type annotations of the join methods within df.align - ([here](https://github.com/Antony-evm/pandas-aevmorfop/blob/0.21.x/pandas/core/generic.py))
from join : {{'outer', 'inner', 'left', 'right'}}, default 'outer'
To
join : {{'outer', 'inner', 'left', 'right'}}, default 'ou... | https://api.github.com/repos/pandas-dev/pandas/pulls/53101 | 2023-05-05T13:36:47Z | 2023-05-09T16:43:39Z | 2023-05-09T16:43:39Z | 2023-05-09T16:43:47Z |
Fix bug #37782 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 36b2aa3c28da5..8fac2f7737fc3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -374,6 +374,7 @@ I/O
^^^
- :meth:`DataFrame.to_orc` now raising ``ValueError`` when non-default :class:`Index` is given (:... | - [X] closes #37782
- [X] [Tests added and passed]
- [X] All [code checks passed]
- [X] Added an entry in the latest `doc/source/whatsnew/v2.1.0.rst` file.
| https://api.github.com/repos/pandas-dev/pandas/pulls/53099 | 2023-05-05T11:14:25Z | 2023-05-08T16:44:34Z | 2023-05-08T16:44:33Z | 2023-05-08T16:44:40Z |
Function signature53071 | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 5928c32e22b7f..91c018645872c 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -57,7 +57,6 @@ class providing the base-class of operations.
T,
npt,
)
-from pandas.compat.numpy import function ... | - [x] closes #53071 (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/53096 | 2023-05-05T05:57:08Z | 2023-06-12T18:24:17Z | null | 2023-06-12T18:24:18Z |
REF: define _header_line and have_mi_columns non-dynamically | diff --git a/pandas/io/parsers/python_parser.py b/pandas/io/parsers/python_parser.py
index 4e1bcf54c0ae9..36d5ef7111685 100644
--- a/pandas/io/parsers/python_parser.py
+++ b/pandas/io/parsers/python_parser.py
@@ -365,6 +365,17 @@ def _convert_data(
clean_dtypes,
)
+ @cache_readonly
+ def _... | Trying to make this code a little less stateful. Not having much luck. Pushing what I have before it falls off the radar. | https://api.github.com/repos/pandas-dev/pandas/pulls/53091 | 2023-05-04T23:51:24Z | 2023-05-05T20:45:39Z | 2023-05-05T20:45:39Z | 2023-05-05T21:04:21Z |
ENH: EA._from_scalars | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index e7b7ecba60e0b..05e6fc09a5ef6 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -86,6 +86,7 @@
AstypeArg,
AxisInt,
Dtype,
+ DtypeObj,
FillnaOptions,
InterpolateOptions,... | - [x] closes #33254
- [x] closes #31108 (someone double-check me on this)
xref #33254 _from_sequence is generally not very strict. This implements _from_scalars for a few EAs as a POC to get rid of an ugly kluge in `maybe_cast_pointwise_result`. The changed behavior in test_resample_categorical_data_with_timedel... | https://api.github.com/repos/pandas-dev/pandas/pulls/53089 | 2023-05-04T23:24:00Z | 2023-10-16T18:50:28Z | 2023-10-16T18:50:28Z | 2023-10-16T18:50:43Z |
PERF: Improve performance when accessing GroupBy.groups | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..468a0eefc62ef 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -285,6 +285,7 @@ Performance improvements
- Performance improvement accessing :attr:`arrays.IntegerArrays.dtype` & :attr:`a... | - [ ] 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/53088 | 2023-05-04T22:59:39Z | 2023-05-05T17:59:41Z | 2023-05-05T17:59:41Z | 2023-05-05T18:00:59Z |
CI: Build wheel from sdist | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 0ebede6501f5f..0a508a8b1701f 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -4,7 +4,7 @@
# In an attempt to save CI resources, wheel builds do
# not run on each push but only weekly and for releases.
# W... | Builds the wheels for all platforms/Python versions from the sdist
Other changes:
* Cleans up the `wheel.yml` file
* Uses `delvewheel` to repair the windows wheels instead of manually patching
* Tests windows wheels with `windows-servercore` directly in the `wheels.yml` file
* Runs `wheel unpack` for every whe... | https://api.github.com/repos/pandas-dev/pandas/pulls/53087 | 2023-05-04T22:55:19Z | 2023-06-01T23:12:22Z | 2023-06-01T23:12:22Z | 2023-06-12T23:46:38Z |
CLN: assorted | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..4139b65e248d8 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -438,7 +438,7 @@ Metadata
Other
^^^^^
-- Bug in :class:`FloatingArray.__contains__` with ``NaN`` item incorrectly return... | - [ ] 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/53086 | 2023-05-04T22:54:54Z | 2023-05-05T18:02:30Z | 2023-05-05T18:02:30Z | 2023-05-05T18:23:17Z |
PERF: avoid accessing has_dropped_na | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index d177ca324ec54..d1fbcbf567734 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -799,7 +799,14 @@ def _cython_operation(
"""
assert kind in ["transform", "aggregate"]
- cy_op = WrappedCythonOp(... | When profiling `q1` in the "pandas_queries" from https://github.com/pola-rs/tpch I found the single check to has_dropped_na took 6.5 seconds, 15% of the total runtime. Turns out we only need has_dropped_na in transform cases, so this PR just avoids accessing it unless it is necessary.
cc @rhshadrach since I think y... | https://api.github.com/repos/pandas-dev/pandas/pulls/53084 | 2023-05-04T21:19:11Z | 2023-05-04T21:35:42Z | null | 2023-05-04T21:35:51Z |
STY: Enable more ruff checks | diff --git a/pyproject.toml b/pyproject.toml
index 042d13ea7956a..6eef8e4fa9b7c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -208,8 +208,12 @@ select = [
"B",
# flake8-quotes
"Q",
+ # flake8-debugger
+ "T10",
+ # flake8-gettext
+ "INT",
# pylint
- "PLE", "PLR", "PLW",
+ "PLC", "PLE", "PLR", "PL... | Enable ruff's pylint PLC, flake8-gettext, and flake8-debugger | https://api.github.com/repos/pandas-dev/pandas/pulls/53082 | 2023-05-04T20:14:36Z | 2023-05-05T10:37:24Z | 2023-05-05T10:37:24Z | 2023-05-05T17:09:47Z |
Backport PR #53078 on branch 2.0.x (BUG: pd.api.interchange.from_pandas raises with all-null categorical) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 8322c8408a0e3..71c31e61fa6a3 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -20,6 +20,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Bug in :func:`api.interchange.from_dataframe` was raising ``Inde... | Backport PR #53078: BUG: pd.api.interchange.from_pandas raises with all-null categorical | https://api.github.com/repos/pandas-dev/pandas/pulls/53081 | 2023-05-04T17:45:12Z | 2023-05-04T20:15:55Z | 2023-05-04T20:15:55Z | 2023-05-04T20:15:55Z |
Backport PR #53060 on branch 2.0.x (REGR: df.loc setitem losing midx names) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 8322c8408a0e3..4b5735c5721fd 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Dat... | Backport PR #53060: REGR: df.loc setitem losing midx names | https://api.github.com/repos/pandas-dev/pandas/pulls/53080 | 2023-05-04T17:23:11Z | 2023-05-04T20:32:22Z | 2023-05-04T20:32:22Z | 2023-05-04T20:32:23Z |
CLN: clean Apply._try_aggregate_string_function | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 0c2adb89a2422..585afc571132f 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -278,7 +278,7 @@ def transform_str_or_callable(self, func) -> DataFrame | Series:
kwargs = self.kwargs
if isinstance(func, str):
- re... | CC @rhshadrach. | https://api.github.com/repos/pandas-dev/pandas/pulls/53079 | 2023-05-04T16:25:21Z | 2023-05-18T16:27:19Z | 2023-05-18T16:27:19Z | 2023-05-18T16:49:38Z |
BUG: pd.api.interchange.from_pandas raises with all-null categorical | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index b6c6df8424ef1..e10fc77699dd6 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -20,6 +20,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Bug in :func:`api.interchange.from_dataframe` was raising ``Inde... | - [ ] closes #53077 (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/53078 | 2023-05-04T15:27:38Z | 2023-05-04T17:45:05Z | 2023-05-04T17:45:05Z | 2023-05-04T17:45:11Z |
Added test for sort_index parameter multiindex 'sort_remaining' = False | diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py
index af55bc424d396..d7de369703ae9 100644
--- a/pandas/tests/frame/methods/test_sort_index.py
+++ b/pandas/tests/frame/methods/test_sort_index.py
@@ -914,3 +914,32 @@ def test_sort_index_na_position(self):
... | - [x] closes #24247
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
Issue fixed on main, added validation tests | https://api.github.com/repos/pandas-dev/pandas/pulls/53076 | 2023-05-04T15:01:50Z | 2023-05-06T14:43:31Z | 2023-05-06T14:43:31Z | 2023-05-08T07:08:34Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py
index 9df6cb640257e..01315647c464b 100644
--- a/pandas/tests/indexing/test_at.py
+++ b/pandas/tests/indexing/test_at.py
@@ -114,9 +114,10 @@ def test_at_setitem_multiindex(self):
@pytest.mark.parametrize("row", (Timestamp("2019-01-0... | another precursor to PDEP6, similar to https://github.com/pandas-dev/pandas/pull/52957
getting there...I think most of the remaining ones are when the test explicitly checks for upcasting behaviour, and so probably can't be changed right now | https://api.github.com/repos/pandas-dev/pandas/pulls/53075 | 2023-05-04T14:39:53Z | 2023-05-04T17:05:16Z | 2023-05-04T17:05:16Z | 2023-05-04T17:05:23Z |
Fix ns precision isoformat | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 27ff719b1a143..9e4bba1cf3544 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1026,7 +1026,7 @@ cdef class _Timestamp(ABCTimestamp):
base1, base2 = base, ""
if t... | - [x] closes #53020
- [x] [Tests added and passed] Added new tests
- [x] All [code checks passed]
- [x] Added [type annotations]
- [x] Added an entry in the latest `doc/source/whatsnew/v2.1.0.rst` file
| https://api.github.com/repos/pandas-dev/pandas/pulls/53073 | 2023-05-04T13:35:35Z | 2023-05-09T18:04:04Z | 2023-05-09T18:04:04Z | 2023-05-09T18:04:13Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/arrays/masked_shared.py b/pandas/tests/arrays/masked_shared.py
index 831fc64512b98..b0523ed496d45 100644
--- a/pandas/tests/arrays/masked_shared.py
+++ b/pandas/tests/arrays/masked_shared.py
@@ -24,11 +24,11 @@ def _compare_other(self, data, op, other):
ser = pd.Series(data)
... | another precursor to PDEP6, similar to #52957 | https://api.github.com/repos/pandas-dev/pandas/pulls/53070 | 2023-05-04T10:25:08Z | 2023-05-04T13:43:13Z | 2023-05-04T13:43:13Z | 2023-05-04T13:43:20Z |
Security upgrade python from 3.10.8 to 3.10.10 | diff --git a/Dockerfile b/Dockerfile
index 7230dcab20f6e..9bb533285a352 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.10.8
+FROM python:3.10.10
WORKDIR /home/pandas
RUN apt-get update && apt-get -y upgrade
| Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
#### Changes included in this PR
- Dockerfile
I recommend upgrading to `python:3.10.10`, as this image has only 246 known vulnerabilities.
Some of the most important vulnera... | https://api.github.com/repos/pandas-dev/pandas/pulls/53069 | 2023-05-04T08:11:51Z | 2023-06-01T17:29:10Z | null | 2023-06-01T17:29:11Z |
DOC: Adding docstring to using_copy_on_write #15580 | diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py
index 73ed99c3a4640..b21c91d832c5d 100644
--- a/pandas/_config/__init__.py
+++ b/pandas/_config/__init__.py
@@ -31,6 +31,29 @@
def using_copy_on_write() -> bool:
+ """
+ Determine if copy-on-write mode is being used.
+
+ This function ex... | - [ ] Adding to Issue #15580
Adding docstring for using_copy_on_write() function. | https://api.github.com/repos/pandas-dev/pandas/pulls/53067 | 2023-05-04T01:50:29Z | 2023-05-04T04:17:43Z | null | 2023-05-04T04:18:51Z |
REF: implement Manager.concat_vertical, concat_horizontal | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index c3be914aa095d..d7b899cc192fc 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -3,6 +3,7 @@
"""
from __future__ import annotations
+import itertools
from typing impor... | - [ ] 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/53066 | 2023-05-04T01:48:49Z | 2023-05-04T22:11:07Z | 2023-05-04T22:11:07Z | 2023-05-04T22:14:54Z |
CLN: remove pandas_dtype kwd from infer_dtype_from_x | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index 8c8d962e7782b..74cc30a4e030d 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -136,7 +136,7 @@ def setitem_datetimelike_compat(values: np.ndarray, num_set: int, other):
other : Any
... | The only non-test place it is not True is in mask_missing, where that leads to an unnecessary object-dtype cast. | https://api.github.com/repos/pandas-dev/pandas/pulls/53064 | 2023-05-04T00:29:24Z | 2023-05-04T17:15:13Z | 2023-05-04T17:15:13Z | 2023-05-04T17:49:25Z |
CLN: avoid infer_dtype | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index b90ceb7c2074d..8c9b45bd452a0 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -75,7 +75,11 @@
from pandas.core.array_algos.quantile import quantile_with_mask
from pandas.core.arraylike import OpsMixin
from p... | - [ ] 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/53063 | 2023-05-04T00:01:35Z | 2023-05-04T17:19:53Z | 2023-05-04T17:19:53Z | 2023-05-04T17:46:10Z |
STY: Enable pygrep ruff checks | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index 97d91111e833a..4bd56ccb1b5ce 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -17,7 +17,7 @@
try:
import pandas._testing as tm
except ImportError:
- imp... | - [ ] 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/53062 | 2023-05-03T23:42:28Z | 2023-05-06T07:07:17Z | 2023-05-06T07:07:17Z | 2023-05-06T19:32:23Z |
REF: privatize maybe_cast_to_extension_array | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 165a421989002..27eb7994d3ccb 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -38,7 +38,7 @@
validate_insert_loc,
)
-from pandas.core.dtypes.cast import maybe_cast_to_extension_array
+from pandas.core.dtypes.ca... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53061 | 2023-05-03T21:42:06Z | 2023-05-04T17:16:24Z | 2023-05-04T17:16:24Z | 2023-05-04T17:48:26Z |
REGR: df.loc setitem losing midx names | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index b6c6df8424ef1..5c3187cda15ae 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Dat... | - [x] closes #53053 (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/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/53060 | 2023-05-03T21:36:00Z | 2023-05-04T17:21:41Z | 2023-05-04T17:21:41Z | 2023-05-04T17:29:26Z |
POC: Use khash sets instead of maps for isin | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index c69e61c899600..d461452f15a85 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -493,6 +493,7 @@ Performance improvements
- Performance improvement in :meth:`Series.value_counts` and :meth:`Series.mode` ... | This is a POC towards what @realead described in #39799
The IsIn benchmarks overall seemed a bit unreliable, but I could consistently get results of `algos.isin.IsinWithArangeSorted` that look like:
```sh
>>> asv continuous upstream/main HEAD -b algos.isin.IsinWithArangeSorted
before after ... | https://api.github.com/repos/pandas-dev/pandas/pulls/53059 | 2023-05-03T21:04:12Z | 2024-03-19T20:05:29Z | null | 2024-03-19T20:05:29Z |
BUG: incorrect is_array_like checks | diff --git a/pandas/_typing.py b/pandas/_typing.py
index dc3f2f54a54ca..9d4acbe76ba15 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -155,7 +155,7 @@
RandomState = Union[
int,
- ArrayLike,
+ np.ndarray,
np.random.Generator,
np.random.BitGenerator,
np.random.RandomState,
diff --gi... | - [ ] 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/53057 | 2023-05-03T18:40:38Z | 2023-05-04T17:25:40Z | 2023-05-04T17:25:40Z | 2023-05-04T17:45:35Z |
STY: Enable ruff C4 - comprehensions | diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py
index 52c87455b12b3..c33043c0eddc1 100644
--- a/asv_bench/benchmarks/dtypes.py
+++ b/asv_bench/benchmarks/dtypes.py
@@ -24,7 +24,7 @@
class Dtypes:
- params = _dtypes + list(map(lambda dt: dt.name, _dtypes))
+ params = _dtypes + [dt... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53056 | 2023-05-03T17:43:52Z | 2023-05-03T21:37:42Z | 2023-05-03T21:37:42Z | 2023-05-03T21:37:45Z |
BUG: Fix regression when printing backslash in DataFrame.to_string | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 692315bb88d30..7dc00e8e4bfeb 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [x] closes #53054
- [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/53055 | 2023-05-03T15:53:57Z | 2023-05-05T17:15:02Z | 2023-05-05T17:15:02Z | 2023-05-08T07:43:08Z |
DOC: Typo on the close argument of pandas.DataFrame.rolling | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e26b4779ef7fa..56d6aa92022f9 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2771,7 +2771,7 @@ def rolling(self, *args, **kwargs) -> RollingGroupby:
If ``'left'``, the last point in the... | The documentation "close" argument of pandas.DataFrame.rolling for option "both" had an extra "the", it is removed here.
| https://api.github.com/repos/pandas-dev/pandas/pulls/53050 | 2023-05-03T08:03:41Z | 2023-05-03T15:55:09Z | 2023-05-03T15:55:09Z | 2023-05-03T15:55:17Z |
BUG: `GroupBy.quantile` implicitly sorts `index.levels` | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 9fb039de8f73a..08ea347708b8f 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -412,6 +412,7 @@ Groupby/resample/rolling
the function operated on the whole index rather than each element of the index.... | - [x] Closes #53009
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)
- [x] Added an entry in the latest `doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/53049 | 2023-05-03T07:09:33Z | 2023-05-12T17:20:30Z | 2023-05-12T17:20:30Z | 2023-06-28T05:43:11Z |
STY: Bump black to 23.3.0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2116bc64a5805..de1e615beaaa2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,7 +26,7 @@ repos:
language: python
require_serial: true
types_or: [python, pyi]
- additional_dependencies: [black=... | - [ ] 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/53048 | 2023-05-03T03:14:32Z | 2023-05-03T08:42:00Z | 2023-05-03T08:42:00Z | 2023-05-03T15:45:40Z |
ERR: Raise TypeError for groupby.var with timeldeta | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 84e011bf80da6..4e0f31aa24f84 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -401,7 +401,7 @@ Groupby/resample/rolling
the function operated on the whole index rather than each element of the index.... | - [ ] 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/53045 | 2023-05-02T21:09:25Z | 2023-05-03T14:41:35Z | 2023-05-03T14:41:35Z | 2023-05-03T18:25:31Z |
BUG: `MultiIndex` displays incorrectly with a long element | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 84e011bf80da6..c390f57a904cb 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -372,7 +372,7 @@ I/O
- Bug in :func:`read_hdf` not properly closing store after a ``IndexError`` is raised (:issue:`52781`)... | - [x] Closes #52960
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)
- [x] Added an entry in the latest `doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/53044 | 2023-05-02T20:31:03Z | 2023-05-05T18:05:48Z | 2023-05-05T18:05:48Z | 2023-09-23T13:40:07Z |
DEPR: require SparseDtype.fill_value be compatible with SparseDtype.subtype | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5b62883c2741e..63e212e40e9a3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -261,6 +261,7 @@ Deprecations
- Deprecated unused "closed" keyword in the :class:`TimedeltaIndex` constructor (:issue:`5262... | - [x] closes #23124 (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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53043 | 2023-05-02T20:09:56Z | 2023-05-11T20:24:02Z | 2023-05-11T20:24:02Z | 2023-05-11T20:30:26Z |
BUG: NaT instead of error for timestamp concat with None | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 7b9efd7f593dd..eb4bd0e2eb010 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -363,6 +363,7 @@ Datetimelike
^^^^^^^^^^^^
- :meth:`DatetimeIndex.map` with ``na_action="ignore"`` now works as expected. ... | - [x] closes #52093
- [ ] [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/53042 | 2023-05-02T18:58:56Z | 2023-08-01T17:27:29Z | null | 2023-08-01T17:27:30Z |
REF: merge.py check for known arraylikes | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 0c438a7b8eb7c..a96a08f18e81f 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -52,7 +52,6 @@
ensure_float64,
ensure_int64,
ensure_object,
- is_array_like,
is_bool,
is_bool_dtype,
... | #48454 was going to do this as a deprecation, but before that got merged another PR accidentally made most weird-arraylikes raise (making it difficult to write a test for the deprecation). We agreed to wait a while to see if anyone complained about that, then to change over the checks explicitly. Among other things t... | https://api.github.com/repos/pandas-dev/pandas/pulls/53041 | 2023-05-02T16:10:44Z | 2023-05-04T17:41:27Z | 2023-05-04T17:41:27Z | 2023-05-04T17:43:47Z |
PERF: BaseMaskedArray._empty | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index f1df86788ac44..7c30d53522ad9 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -132,6 +132,19 @@ def _from_sequence(cls, scalars, *, dtype=None, copy: bool = False) -> Self:
values, mask = cls._coerce_t... | 10x improvement in this method (but small effect overall as this is typically a small part of total time cost). | https://api.github.com/repos/pandas-dev/pandas/pulls/53040 | 2023-05-02T16:10:17Z | 2023-05-02T19:40:55Z | 2023-05-02T19:40:54Z | 2023-05-02T21:02:23Z |
DEPR: SparseArray(scalar) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 35f9f623bf8ef..2c655301e44ce 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -259,6 +259,8 @@ Deprecations
- Deprecated unused "closed" and "normalize" keywords in the :class:`DatetimeIndex` construct... | - [ ] 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
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53039 | 2023-05-02T15:55:41Z | 2023-05-02T19:41:37Z | 2023-05-02T19:41:37Z | 2023-05-02T19:42:44Z |
Backport PR #53001 on branch 2.0.x (BUG: Series.describe treating pyarrow timestamps/timedeltas as categorical) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 3ee7031795d16..8322c8408a0e3 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -23,6 +23,7 @@ Bug fixes
- Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect si... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53031 | 2023-05-02T00:42:09Z | 2023-05-02T03:49:03Z | 2023-05-02T03:49:03Z | 2023-05-30T22:16:34Z |
DEPS: Unpin pydata-sphinx-theme | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 6f7e770e5d554..66fca61c2c6e5 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -237,14 +237,14 @@
html_theme_options = {
"external_links": [],
- "footer_items": ["pandas_footer", "sphinx-version"],
+ "footer_start": ["pandas_footer", "sp... | - [ ] closes #48988 (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/53029 | 2023-05-01T23:49:00Z | 2023-05-11T01:04:35Z | 2023-05-11T01:04:35Z | 2023-05-11T01:04:38Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.