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 |
|---|---|---|---|---|---|---|---|
Remove NpyDateTimeToEpoch | diff --git a/pandas/_libs/include/pandas/datetime/date_conversions.h b/pandas/_libs/include/pandas/datetime/date_conversions.h
index 42a16f33cc2ea..9a4a02ea89b4d 100644
--- a/pandas/_libs/include/pandas/datetime/date_conversions.h
+++ b/pandas/_libs/include/pandas/datetime/date_conversions.h
@@ -21,8 +21,4 @@ int scale... | Duplicative of scaleNanosecToUnit but swallows errors | https://api.github.com/repos/pandas-dev/pandas/pulls/56276 | 2023-12-01T03:38:23Z | 2023-12-01T18:34:38Z | 2023-12-01T18:34:38Z | 2023-12-01T18:34:45Z |
Remove inline_helper.h header file | diff --git a/pandas/_libs/include/pandas/inline_helper.h b/pandas/_libs/include/pandas/inline_helper.h
deleted file mode 100644
index 1e03da1327470..0000000000000
--- a/pandas/_libs/include/pandas/inline_helper.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Copyright (c) 2016, PyData Development Team
-All rights reserved.
-
-Di... | `inline` is a part of C99, so we don't need to define a helper for it anymore (we now require a C11 compiler) | https://api.github.com/repos/pandas-dev/pandas/pulls/56275 | 2023-12-01T02:56:43Z | 2023-12-01T18:35:36Z | 2023-12-01T18:35:36Z | 2023-12-01T18:35:43Z |
Clean up tokenizer / parser files | diff --git a/pandas/_libs/include/pandas/parser/io.h b/pandas/_libs/include/pandas/parser/io.h
index cbe6bc04b7663..c707c23b567d2 100644
--- a/pandas/_libs/include/pandas/parser/io.h
+++ b/pandas/_libs/include/pandas/parser/io.h
@@ -25,7 +25,7 @@ typedef struct _rd_source {
void *new_rd_source(PyObject *obj);
-int... | Same pattern as before - remove C89 constructs, add const / static where possible
This has an added tweak to remove unnecessary int return values from destructors | https://api.github.com/repos/pandas-dev/pandas/pulls/56274 | 2023-12-01T01:37:36Z | 2023-12-01T18:36:42Z | 2023-12-01T18:36:42Z | 2023-12-01T23:25:09Z |
DOC: Added Documentation for MultiIndex.codes | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 86693f241ddb1..2eea0c2dff84c 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1079,6 +1079,42 @@ def levshape(self) -> Shape:
@property
def codes(self) -> FrozenList:
+ '''
+ codes in... | - [X] closes #55437 (Replace xxxx with the GitHub issue number)
- [ ] 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/56265 | 2023-11-30T20:38:25Z | 2023-12-01T05:26:15Z | null | 2023-12-01T05:26:21Z |
TST/CLN: Remove makeTime methods | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index ead00cd778d7b..676757d8e095f 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -6,7 +6,6 @@
import operator
import os
import re
-import string
from sys import byteorder
from typing import (
TYPE_CHECKING,
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56264 | 2023-11-30T19:58:56Z | 2023-12-01T18:37:05Z | 2023-12-01T18:37:05Z | 2024-01-30T21:09:38Z |
Backport PR #56179 on branch 2.1.x (BUG: to_numeric casting to ea for new string dtype) | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 684b68baa123c..3a72c0864d29c 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -23,6 +23,7 @@ Bug fixes
~~~~~~~~~
- Bug in :meth:`DataFrame.apply` where passing ``raw=True`` ignored ``args`` passed to ... | Backport PR #56179: BUG: to_numeric casting to ea for new string dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/56263 | 2023-11-30T17:47:57Z | 2023-11-30T19:59:33Z | 2023-11-30T19:59:33Z | 2023-11-30T19:59:33Z |
BUG: support non-nano times in ewm | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index c73adc25cb1dd..7b09d12697055 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -561,12 +561,14 @@ Groupby/resample/rolling
- Bug in :meth:`.DataFrameGroupBy.idxmin`, :meth:`.DataFrameGroupBy.idxmax`, :m... | - [ ] 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/56262 | 2023-11-30T16:42:10Z | 2023-11-30T23:20:48Z | 2023-11-30T23:20:48Z | 2023-11-30T23:29:31Z |
TST: dt64 units | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index a635ac77566e1..4dc0d477f89e8 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -686,7 +686,8 @@ def na_value_for_dtype(dtype: DtypeObj, compat: bool = True):
if isinstance(dtype, ExtensionDtype):
... | Aimed at trimming the diff in #55901 | https://api.github.com/repos/pandas-dev/pandas/pulls/56261 | 2023-11-30T16:31:55Z | 2023-12-04T19:11:54Z | 2023-12-04T19:11:54Z | 2023-12-04T20:09:23Z |
TYP: overload tz_to_dtype | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index de5832ba31b70..496a6987c3264 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -8,6 +8,7 @@
from typing import (
TYPE_CHECKING,
cast,
+ overload,
)
import warnings
@@ -93,6 +94,16 @... | I'm getting bunches of bogus mypy failures on main locally, so will need the CI to tell me if this is OK. | https://api.github.com/repos/pandas-dev/pandas/pulls/56260 | 2023-11-30T16:20:12Z | 2023-11-30T17:28:11Z | 2023-11-30T17:28:11Z | 2023-11-30T21:59:01Z |
Support e.g. modern MacBooks running Linux containers | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 67c6f9bedd9c9..3a764866eb1f8 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -93,7 +93,9 @@ jobs:
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
buildplat:
... | Modern MacBooks have aarch64 CPUs. When using containers (or virtualized Linux in general), they now have to build Pandas from source if installing from the PyPI index. This costs a lot of time and complexity that is better dealt with in the Pandas product build environment.
- [ ] closes #xxxx (Replace xxxx with the... | https://api.github.com/repos/pandas-dev/pandas/pulls/56258 | 2023-11-30T13:15:02Z | 2024-01-01T00:39:20Z | null | 2024-01-02T07:54:42Z |
Less C89, most const, static funcs | diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c
index 89f101964aff7..6271791fe201e 100644
--- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c
@@ -146,12 +146,10 @@ typedef struct __PyObject... | Will have to do this in a few passes for other files, but generally we:
1. Are removing C89 style variable declarations at the top of functions
2. Adding `const` qualifiers where we can
3. Making more functions static that aren't intended to be linked outside of their translation unit
Point 1 helps with code r... | https://api.github.com/repos/pandas-dev/pandas/pulls/56254 | 2023-11-30T08:07:47Z | 2023-11-30T17:29:14Z | 2023-11-30T17:29:14Z | 2023-11-30T17:29:21Z |
FIX: Solving Int64 precision loss when read_csv(StringIO(data), dtype… | diff --git a/=2.2.0 b/=2.2.0
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/=6.46.1 b/=6.46.1
new file mode 100644
index 0000000000000..dc9132a1fecbe
--- /dev/null
+++ b/=6.46.1
@@ -0,0 +1,16 @@
+Requirement already satisfied: cython in /home/martins/virtualenvs/pandas-dev/lib/python3.10/site-pack... | …={"a": "Int64"}, engine=pyarrow)
[] closes [BUG: read_csv losing precision when reading Int64[pyarrow] data with N/A values #56135](https://github.com/pandas-dev/pandas/issues/56135) and [BUG: read_csv loses precision when engine='pyarrow' and dtype Int64 #56136](https://github.com/pandas-dev/pandas/issues/56136)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/56253 | 2023-11-30T07:51:54Z | 2023-11-30T17:32:27Z | null | 2023-11-30T17:32:28Z |
JSON code removals and cleanups | diff --git a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
index 147282c476c3b..e7c58d498f9be 100644
--- a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
+++ b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
@@ -45,16 +45,11 @@ Numeric decoder derived fro... | Not sure this code ever did anything - seems to be optimized out. Still more to be done but this works for a first pass
As far as the functions go, adding `static` is a best practice for functions that aren't meant to be exported from a shared library (C defaults functions to extern visibility, which you could argue... | https://api.github.com/repos/pandas-dev/pandas/pulls/56252 | 2023-11-30T07:10:36Z | 2023-11-30T17:31:06Z | 2023-11-30T17:31:06Z | 2023-11-30T20:57:08Z |
FIX: Solving Int64 precision loss when read_csv(StringIO(data), dtype… | diff --git a/pandas/io/parsers/arrow_parser_wrapper.py b/pandas/io/parsers/arrow_parser_wrapper.py
index 5786073c9d9cc..4eec761ab76de 100644
--- a/pandas/io/parsers/arrow_parser_wrapper.py
+++ b/pandas/io/parsers/arrow_parser_wrapper.py
@@ -272,7 +272,7 @@ def read(self) -> DataFrame:
raise ParserError(e) ... | …={a:Int64}, engine=pyarrow)
- [] closes #56135 and #56136
- [ ] [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/56251 | 2023-11-30T06:29:08Z | 2023-12-27T19:17:16Z | null | 2023-12-27T19:17:17Z |
BUG: Read CSV on python engine fails when skiprows and chunk size are specified (#55677, #56323) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 5ee2bb1778cb1..c20e667774b3c 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -566,6 +566,8 @@ MultiIndex
I/O
^^^
+- Bug in :func:`read_csv` where ``engine="python"`` did not respect ``chunksize`` a... | -Added support for the python parser to handle using skiprows and chunk_size options at the same time to ensure API contract is met.
-Added a regression test to ensure this #55677 can be quickly caught in the future if it reappears.
-Fixed a flawed test case that now screens for #56323 regressions.
- [✅ ] clos... | https://api.github.com/repos/pandas-dev/pandas/pulls/56250 | 2023-11-30T02:24:35Z | 2023-12-05T00:27:37Z | 2023-12-05T00:27:37Z | 2023-12-05T00:27:44Z |
ENH: Disallowed ambiguous units to pd.Timedelta. | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8cb4b3f24d435..46e011b834bdb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -194,6 +194,7 @@ Other enhancements
- :meth:`ExtensionArray.duplicated` added to allow extension type implementations of th... | - [ ] closes #53801 (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/56249 | 2023-11-30T01:25:56Z | 2023-12-27T19:15:17Z | null | 2023-12-27T19:15:17Z |
ENH: Disallowed ambiguous units to pd.Timedelta. | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8cb4b3f24d435..46e011b834bdb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -194,6 +194,7 @@ Other enhancements
- :meth:`ExtensionArray.duplicated` added to allow extension type implementations of th... | - [x] closes #53801 (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/56248 | 2023-11-30T01:17:20Z | 2023-11-30T01:19:13Z | null | 2023-11-30T01:19:13Z |
Added deprecation to the check_exact field in assert_series_equal. | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8cb4b3f24d435..6da2b026d73ac 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -397,6 +397,7 @@ Other Deprecations
- Deprecated strings ``T``, ``S``, ``L``, ``U``, and ``N`` denoting frequencies in :cla... | - [x] closes #56132 (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/56247 | 2023-11-30T00:50:41Z | 2023-12-27T19:17:49Z | null | 2023-12-27T19:17:49Z |
Merge pull request #1 from pandas-dev/main | - [ ] 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/56246 | 2023-11-30T00:35:09Z | 2023-11-30T00:35:46Z | null | 2023-11-30T00:35:51Z | |
BUG: __eq__ raising for new arrow string dtype for incompatible objects | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 70039cc697b8a..cda4da9d76c42 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -604,6 +604,7 @@ Strings
- Bug in :meth:`Series.str.find` when ``start < 0`` for :class:`ArrowDtype` with ``pyarrow.string`... | - [ ] closes #56008 (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/56245 | 2023-11-29T23:22:39Z | 2023-12-21T22:45:36Z | 2023-12-21T22:45:36Z | 2023-12-21T22:45:39Z |
DEPR: Deprecate dtype inference on pandas objects | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8209525721b98..89a03ddbef2a2 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -460,6 +460,7 @@ Other Deprecations
- Deprecated behavior of :meth:`Index.insert` with an object-dtype index silently perfo... | - [ ] closes #56012 (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/56244 | 2023-11-29T22:26:14Z | 2023-12-21T22:45:21Z | 2023-12-21T22:45:21Z | 2023-12-21T22:45:24Z |
ENH: Raise TypeError when converting DatetimeIndex to PeriodIndex with invalid period frequency | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8cb4b3f24d435..85dfc3ebde873 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -195,6 +195,7 @@ Other enhancements
- Allow passing ``read_only``, ``data_only`` and ``keep_links`` arguments to openpyxl u... | xref #55844
Added to `dt64arr_to_periodarr` check if frequency is supported as period frequency, if not a TypeError is raised.
The reason: so far in the example below
```
>>> ts = pd.date_range('1/1/2012', periods=4, freq="BMS")
>>> ts.to_period()
```
we get
`AttributeError: 'pandas._libs.tslibs.offsets.Bus... | https://api.github.com/repos/pandas-dev/pandas/pulls/56243 | 2023-11-29T22:03:13Z | 2023-12-04T11:14:58Z | 2023-12-04T11:14:58Z | 2023-12-04T11:15:02Z |
CoW: Remove false positive warnings for inplace operators | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 56001fabfdc9d..30646cea706e5 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -12500,6 +12500,7 @@ def _inplace_method(self, other, op) -> Self:
and result._indexed_same(self)
and result.dtype == self.dtype
... | - [ ] 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/56242 | 2023-11-29T21:11:31Z | 2023-12-04T10:13:33Z | 2023-12-04T10:13:33Z | 2023-12-04T11:05:37Z |
TST/CLN: Remove getSeriesData/makeObjectSeries/makeDatetimeIndex | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index b1918e1b1d7c2..ead00cd778d7b 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -2,7 +2,6 @@
import collections
from collections import Counter
-from datetime import datetime
from decimal import Decimal
import ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56241 | 2023-11-29T19:46:43Z | 2023-11-30T17:35:19Z | 2023-11-30T17:35:19Z | 2023-11-30T17:35:22Z |
TST: dt64 units | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 149bc2d932f0e..26cbc77e4e8ae 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -467,13 +467,15 @@ def _array_strptime_with_fallback(
"""
result, tz_out = array_strptime(arg, fmt, exact=exact, e... | - [ ] 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/56239 | 2023-11-29T16:51:01Z | 2023-11-29T17:50:27Z | 2023-11-29T17:50:27Z | 2023-11-30T01:31:26Z |
BUG: Read CSV on python engine fails with callable skiprows and chunk size specified (#55677) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index efa4a52993a90..08fa594632259 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -407,6 +407,7 @@ MultiIndex
I/O
^^^
+- Bug in :func:`read_csv` where ``engine="python"`` was causing a ``TypeError`` whe... | -Added support for the python parser to handle using skiprows and chunk_size options at the same time to ensure API contract is met.
-Added a regression test to ensure this bug can be quickly caught in the future if it reappears.
- [✅ ] closes #55677 (Replace xxxx with the GitHub issue number)
- [✅] [Tests added... | https://api.github.com/repos/pandas-dev/pandas/pulls/56238 | 2023-11-29T16:16:11Z | 2023-11-30T02:08:19Z | null | 2023-11-30T02:08:24Z |
DEPR: Default of observed=False in DataFrame.pivot_table | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index 34d04745ccdb5..8fb991dca02db 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -647,7 +647,7 @@ Pivot tables:
raw_cat = pd.Categorical(["a", "a", "b", "b"], categories=... | - [x] closes #56236 (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/56237 | 2023-11-29T04:17:59Z | 2023-12-04T18:27:36Z | 2023-12-04T18:27:35Z | 2023-12-04T23:38:37Z |
Table cell styling | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 5d5bf079784be..20a7e9972867b 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -238,7 +238,7 @@ def __init__(
self.extract_links = extract_links
self.storage_options = storage_options
- def parse_tables(self):
+ def parse_tables(... | - [ ] 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/56235 | 2023-11-29T03:01:38Z | 2023-12-27T19:16:55Z | null | 2023-12-27T19:16:55Z |
DOC: Fix typo in copy_on_write docs | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index 9dbc46ca2db0e..fb0da70a0ea07 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -26,7 +26,7 @@ Previous behavior
-----------------
pandas indexing behavior is trick... | - [ ] 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
- [x ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/56234 | 2023-11-29T01:47:11Z | 2023-11-29T17:51:27Z | 2023-11-29T17:51:27Z | 2023-11-29T17:51:34Z |
DOC: Update release instructions | diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst
index 29cc256f35a4e..c7803d8401e4e 100644
--- a/doc/source/development/maintaining.rst
+++ b/doc/source/development/maintaining.rst
@@ -449,9 +449,13 @@ which will be triggered when the tag is pushed.
git tag -a v1.5.0.dev... | - [ ] 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/56232 | 2023-11-28T22:57:04Z | 2023-11-29T17:43:03Z | 2023-11-29T17:43:03Z | 2023-12-18T16:26:09Z |
CoW warning mode: enable chained assignment warning for DataFrame setitem in default mode | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 008c1e0d10ba4..847f514451add 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4230,15 +4230,14 @@ def __setitem__(self, key, value) -> None:
warnings.warn(
_chained_assignment_msg, ChainedAssignmentError... | Follow-up on https://github.com/pandas-dev/pandas/pull/55522#discussion_r1406831714
This ensures the chained assignment warning is shown in the default mode as well.
This does mean you currently get some noise cases of both this new warning and the existing SettingWithCopyWarning. But either this SettingWithCopy w... | https://api.github.com/repos/pandas-dev/pandas/pulls/56230 | 2023-11-28T19:15:08Z | 2023-12-04T08:29:32Z | 2023-12-04T08:29:32Z | 2023-12-04T08:29:50Z |
TST/CLN: Remove makeFloat/Period/Int/NumericIndex | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index d70ad144a3455..5e23cba2e1074 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -6,12 +6,12 @@
import pandas as pd
from pandas import (
DataFrame,
+ Index,
Series,
Time... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56229 | 2023-11-28T17:45:42Z | 2023-11-29T17:51:55Z | 2023-11-29T17:51:55Z | 2023-11-29T17:51:59Z |
BUG: DataFrame.update not operating in-place for datetime64[ns, UTC] dtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index dce776755ad7e..90566f62bfdaf 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -520,7 +520,7 @@ Indexing
Missing
^^^^^^^
--
+- Bug in :meth:`DataFrame.update` wasn't updating in-place for tz-aware da... | - [ ] closes #56227 (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/56228 | 2023-11-28T17:41:32Z | 2023-11-29T18:00:48Z | 2023-11-29T18:00:48Z | 2023-12-01T12:01:27Z |
Backport PR #56222 on branch 2.1.x (Add doc notes for deprecations) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 3281d245dca56..564d572254f8d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9456,6 +9456,10 @@ def first(self, offset) -> Self:
"""
Select initial periods of time series data based on a date offset.
+ .. ... | Backport PR #56222: Add doc notes for deprecations | https://api.github.com/repos/pandas-dev/pandas/pulls/56225 | 2023-11-28T15:48:27Z | 2023-11-28T17:07:52Z | 2023-11-28T17:07:52Z | 2023-11-28T17:07:53Z |
Add doc notes for deprecations | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 56001fabfdc9d..579d66be994e6 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9661,6 +9661,10 @@ def first(self, offset) -> Self:
"""
Select initial periods of time series data based on a date offset.
+ .. ... | We should probably back port | https://api.github.com/repos/pandas-dev/pandas/pulls/56222 | 2023-11-28T14:05:17Z | 2023-11-28T15:47:18Z | 2023-11-28T15:47:18Z | 2023-11-28T15:53:33Z |
Switch arrow type for string array to large string | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 70039cc697b8a..e0aa4d1306c95 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -236,6 +236,8 @@ Other enhancements
- Implemented :meth:`Series.str.extract` for :class:`ArrowDtype` (:issue:`56268`)
- Im... | - [ ] closes #56259
- [ ] [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/56220 | 2023-11-28T11:48:41Z | 2023-12-21T21:05:39Z | 2023-12-21T21:05:39Z | 2023-12-21T21:05:42Z |
DOC: DataFrame.update doctests | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6110f694a6700..b6493614e05a0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8826,26 +8826,27 @@ def update(
1 b e
2 c f
- For Series, its name attribute must be set.
-
>>> df = pd.DataFrame({'A': ['a... |
I felt this original documentation was doing too much in this code block - the description doesn't match the second code example.
<kbd><img width="762" alt="image" src="https://github.com/pandas-dev/pandas/assets/122238526/cd897229-5366-40d9-8034-5521b7ecd0e7"></kbd>
So I broke it out into these two separat... | https://api.github.com/repos/pandas-dev/pandas/pulls/56219 | 2023-11-28T06:53:02Z | 2023-11-29T17:48:12Z | 2023-11-29T17:48:12Z | 2023-11-29T17:48:23Z |
TST: specify dt64 units | diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py
index 0d71fb0926df9..5456615f6f028 100644
--- a/pandas/tests/frame/test_reductions.py
+++ b/pandas/tests/frame/test_reductions.py
@@ -798,7 +798,7 @@ def test_std_timedelta64_skipna_false(self):
"values", [["2022-01-01",... | Aimed at trimming the diff in #55901 | https://api.github.com/repos/pandas-dev/pandas/pulls/56217 | 2023-11-28T00:28:35Z | 2023-11-28T15:43:47Z | 2023-11-28T15:43:47Z | 2023-11-28T16:04:49Z |
impl for DP | diff --git a/pandas/_typing.py b/pandas/_typing.py
index c2d51f63eb2ab..77984a7088e7c 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -28,7 +28,11 @@
overload,
)
-import numpy as np
+import os
+if os.environ.get("DP_NUMPY", "1") == "0":
+ import numpy as np
+else:
+ import dp_numpy as np
# To... | できるだけ最小限の書き換えでpandasにdp_numpyを組み込む。
このPull Requestは、mainとの差分の可視化用。 | https://api.github.com/repos/pandas-dev/pandas/pulls/56216 | 2023-11-28T00:18:18Z | 2023-11-28T00:19:22Z | null | 2023-11-28T00:29:34Z |
CoW: Avoid warning for ArrowDtypes when setting inplace | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 843441e4865c7..8fce2be8e4e44 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -54,7 +54,11 @@
)
import pandas.core.algorithms as algos
-from pandas.core.arrays import DatetimeArray
+from... | xref https://github.com/pandas-dev/pandas/issues/56019
We shouldn't warn if we know that we are not actually inplace | https://api.github.com/repos/pandas-dev/pandas/pulls/56215 | 2023-11-28T00:00:02Z | 2023-12-04T11:17:24Z | 2023-12-04T11:17:24Z | 2023-12-04T11:17:31Z |
CoW: Add warning for slicing a Series with a MultiIndex | diff --git a/pandas/core/series.py b/pandas/core/series.py
index ff03b5071e3b1..b1ac6225cb71e 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1175,7 +1175,7 @@ def _get_values_tuple(self, key: tuple):
# If key is contained, would have returned by now
indexer, new_index = self.index.... | xref https://github.com/pandas-dev/pandas/issues/56019
Fixing one more todo
| https://api.github.com/repos/pandas-dev/pandas/pulls/56214 | 2023-11-27T23:29:08Z | 2023-12-04T12:26:35Z | 2023-12-04T12:26:35Z | 2023-12-04T12:41:20Z |
CoW: Avoid warning in apply for mixed dtype frame | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index bb3cc3a03760f..169a44accf066 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -20,6 +20,7 @@
from pandas._config import option_context
from pandas._libs import lib
+from pandas._libs.internals import BlockValuesRefs
from pandas._typing i... | - [ ] 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/56212 | 2023-11-27T21:58:44Z | 2023-12-04T19:37:18Z | 2023-12-04T19:37:18Z | 2023-12-05T08:37:12Z |
CoW: Avoid warning if temporary object is a copy | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 847f514451add..c9da273b99ce9 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8903,7 +8903,7 @@ def update(
ChainedAssignmentError,
stacklevel=2,
)
- elif not PYPY and not usi... | xref https://github.com/pandas-dev/pandas/issues/56019
That's the stricter check we talked about today. The cases we exclude here are no-ops without CoW as well, so no need to warn | https://api.github.com/repos/pandas-dev/pandas/pulls/56211 | 2023-11-27T21:40:28Z | 2023-12-04T12:27:15Z | 2023-12-04T12:27:15Z | 2023-12-04T12:40:42Z |
TST/CLN: Remove makeDataFrame | diff --git a/pandas/tests/frame/methods/test_set_index.py b/pandas/tests/frame/methods/test_set_index.py
index 98113b6c41821..d958c80fbcdef 100644
--- a/pandas/tests/frame/methods/test_set_index.py
+++ b/pandas/tests/frame/methods/test_set_index.py
@@ -155,7 +155,11 @@ def test_set_index(self, float_string_frame):
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56210 | 2023-11-27T20:13:13Z | 2023-11-28T17:08:38Z | 2023-11-28T17:08:38Z | 2024-01-22T18:38:11Z |
Update indexing unpacking logic for single block case | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 8bc30cb5f0ddc..e3928621a4e48 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -2140,6 +2140,12 @@ def _setitem_single_block(self, indexer, value, name: str) -> None:
"""
from pandas import Series
+ if (i... | - [ ] 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/56209 | 2023-11-27T20:12:43Z | 2023-11-29T18:02:02Z | 2023-11-29T18:02:02Z | 2023-11-29T18:06:02Z |
BUG: inferred resolution with ISO8601 and tzoffset | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index fbff38aeefc51..70d43b852945d 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -457,6 +457,7 @@ Datetimelike
- Bug in :meth:`Index.view` to a datetime64 dtype with non-supported resolution incorrectly r... | - [ ] 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/56208 | 2023-11-27T17:54:04Z | 2023-11-27T21:17:14Z | 2023-11-27T21:17:14Z | 2023-11-27T22:03:04Z |
WEB: Better management of releases | diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml
index af452363666b5..4e88bfff69327 100644
--- a/.github/workflows/docbuild-and-upload.yml
+++ b/.github/workflows/docbuild-and-upload.yml
@@ -46,6 +46,9 @@ jobs:
- name: Build Pandas
uses: ./.github/actions/bu... | Added releases sorting by version number and sorting out obsolete releases in web/pandas_web.py
- [ ] closes #50885
- [x] Tests added and passed
- [x] All code checks passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/56207 | 2023-11-27T17:47:50Z | 2023-12-13T05:22:55Z | 2023-12-13T05:22:55Z | 2023-12-13T05:23:24Z |
Simply code by using % formatter | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 39d5b45862a8f..ab08f4580cf5b 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -4002,8 +4002,8 @@ def css_bar(start: float, end: float, color: str) -> str:
if end > start:
cell_css += "background: ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56206 | 2023-11-27T16:42:31Z | 2023-11-27T17:03:56Z | null | 2023-11-27T17:03:56Z |
CI: Fix ci | diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py
index 37431f39bdaa0..55781370a5a59 100644
--- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py
+++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py
@@ ... | cc @jorisvandenbossche
merging this to get ci green again | https://api.github.com/repos/pandas-dev/pandas/pulls/56205 | 2023-11-27T14:25:44Z | 2023-11-27T14:26:05Z | 2023-11-27T14:26:05Z | 2023-11-27T14:34:52Z |
TST/CLN: Remove makeMixedDataFrame and getMixedTypeDict | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index c73d869b6c39c..14ee29d24800e 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -482,23 +482,6 @@ def makeDataFrame() -> DataFrame:
return DataFrame(data)
-def getMixedTypeDict():
- index = Index(["a", "b... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56202 | 2023-11-27T03:42:20Z | 2023-11-27T11:15:40Z | 2023-11-27T11:15:40Z | 2024-01-30T21:09:31Z |
DOC: Add clarifications to docs for setting up a development environment | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index 7fc42f6021f00..325c902dd4f9e 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -44,8 +44,9 @@ and consult the ``Linux``... | Hi all - having just been through the setup process (Mac, mamba) and as a non-expert I thought I'd feed back some things that would have made my experience faster and smoother.
---
**Change 1**
- It wasn't 100% clear to me that I did **_not_** need to use any information from the link `https://devguide.python.org/... | https://api.github.com/repos/pandas-dev/pandas/pulls/56201 | 2023-11-27T03:29:52Z | 2023-11-28T15:34:39Z | 2023-11-28T15:34:39Z | 2023-11-28T15:34:47Z |
TST/CLN: Remove makeUInt/Timedelta/RangeIndex | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 14ee29d24800e..d30929d07245b 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -47,6 +47,7 @@
RangeIndex,
Series,
bdate_range,
+ timedelta_range,
)
from pandas._testing._io import (
round_tr... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56200 | 2023-11-27T03:03:05Z | 2023-11-28T15:54:17Z | 2023-11-28T15:54:17Z | 2023-11-28T15:54:21Z |
Backport PR #56194 on branch 2.1.x (BUG: hdf can't deal with ea dtype columns) | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index eb28e42d303a1..684b68baa123c 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -24,6 +24,7 @@ Bug fixes
- Bug in :meth:`DataFrame.apply` where passing ``raw=True`` ignored ``args`` passed to the applied... | Backport PR #56194: BUG: hdf can't deal with ea dtype columns | https://api.github.com/repos/pandas-dev/pandas/pulls/56199 | 2023-11-27T02:43:13Z | 2023-11-27T11:09:55Z | 2023-11-27T11:09:55Z | 2023-11-27T11:09:56Z |
Adjust tests in xml folder for new string option | diff --git a/pandas/tests/io/xml/test_xml.py b/pandas/tests/io/xml/test_xml.py
index 88655483800ee..e4456b0a78e06 100644
--- a/pandas/tests/io/xml/test_xml.py
+++ b/pandas/tests/io/xml/test_xml.py
@@ -32,6 +32,7 @@
ArrowStringArray,
StringArray,
)
+from pandas.core.arrays.string_arrow import ArrowStringArray... | - [ ] 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/56198 | 2023-11-26T23:40:07Z | 2023-11-27T02:31:24Z | 2023-11-27T02:31:24Z | 2023-11-27T11:10:22Z |
Adjust tests in json folder for new string option | diff --git a/pandas/tests/io/json/test_json_table_schema.py b/pandas/tests/io/json/test_json_table_schema.py
index 79dbe448e9cbe..7569a74752bf2 100644
--- a/pandas/tests/io/json/test_json_table_schema.py
+++ b/pandas/tests/io/json/test_json_table_schema.py
@@ -56,7 +56,7 @@ def df_table():
class TestBuildSchema:
-... | sits on #56195 | https://api.github.com/repos/pandas-dev/pandas/pulls/56197 | 2023-11-26T23:37:34Z | 2023-11-30T17:41:24Z | 2023-11-30T17:41:24Z | 2023-11-30T17:42:00Z |
DOC: reoder whatsnew enhancements | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d252c19a95d4a..6bd20ace44b65 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -14,81 +14,6 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
-.. _whatsnew_220.enhancements.calamine:
-... | Reodering this for potential impact for users, e.g.
- ADBC driver should go first
- read_excel improvements are probably relatively low-key for most users, so I put it at the end.
These blocks are relatively long, so we should make sure that the more impactful items go first | https://api.github.com/repos/pandas-dev/pandas/pulls/56196 | 2023-11-26T23:13:34Z | 2023-11-27T02:32:58Z | 2023-11-27T02:32:58Z | 2023-11-27T11:10:15Z |
BUG: read_json not handling string dtype when converting to dates | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d252c19a95d4a..5cb99afdcb98d 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -530,6 +530,7 @@ I/O
- Bug in :func:`read_csv` where ``on_bad_lines="warn"`` would write to ``stderr`` instead of raise a 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/56195 | 2023-11-26T23:09:57Z | 2023-11-27T17:30:36Z | 2023-11-27T17:30:36Z | 2023-11-27T17:33:28Z |
BUG: hdf can't deal with ea dtype columns | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 77ce303dc1bfe..0cbf211305d12 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -24,6 +24,7 @@ Bug fixes
- Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a list of :class... | - [ ] closes #55088 (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/56194 | 2023-11-26T22:23:53Z | 2023-11-27T02:43:05Z | 2023-11-27T02:43:05Z | 2023-11-27T11:09:32Z |
Adjust test in excel folder for new string option | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index abbdb77efad0e..caa2da1b6123b 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -14,6 +14,8 @@
import numpy as np
import pytest
+from pandas._config import using_pyarrow_st... | - [ ] 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/56193 | 2023-11-26T22:12:04Z | 2023-11-27T02:44:42Z | 2023-11-27T02:44:42Z | 2023-11-27T11:09:23Z |
Adjust tests in extension folder for new string option | diff --git a/pandas/tests/extension/base/dtype.py b/pandas/tests/extension/base/dtype.py
index 5ba65ceaeeada..c7b768f6e3c88 100644
--- a/pandas/tests/extension/base/dtype.py
+++ b/pandas/tests/extension/base/dtype.py
@@ -59,7 +59,12 @@ def test_check_dtype(self, data):
# check equivalency for using .dtypes
... | - [ ] 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/56191 | 2023-11-26T21:11:49Z | 2023-12-08T23:30:40Z | 2023-12-08T23:30:40Z | 2023-12-17T20:17:22Z |
Adjust tests for apply folder for new string option | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index 2d7549e09a986..b7eac6b8f0ea1 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1464,13 +1464,16 @@ def test_apply_datetime_tz_issue(engine, request):
@pytest.mark.para... | sits on #56189 | https://api.github.com/repos/pandas-dev/pandas/pulls/56190 | 2023-11-26T20:32:34Z | 2023-11-30T18:28:24Z | 2023-11-30T18:28:24Z | 2023-11-30T18:29:10Z |
BUG: numba raises for string columns or index | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d252c19a95d4a..d4954e6caf2d0 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -496,8 +496,8 @@ Conversion
Strings
^^^^^^^
- Bug in :func:`pandas.api.types.is_string_dtype` while checking object array... | - [ ] 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/56189 | 2023-11-26T20:29:28Z | 2023-11-27T02:52:43Z | 2023-11-27T02:52:43Z | 2023-11-27T11:08:24Z |
Adjust tests in array folder for new string option | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 82de8ae96160f..cfa41a4e1969b 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -932,7 +932,10 @@ def value_counts_internal(
idx = Index(keys)
if idx.dtype == bool and keys.dtype == object:
... | sits on top of #56187 | https://api.github.com/repos/pandas-dev/pandas/pulls/56188 | 2023-11-26T20:09:46Z | 2023-12-09T23:35:25Z | 2023-12-09T23:35:25Z | 2023-12-09T23:35:52Z |
BUG: value_counts not preserving object dtype | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 77ce303dc1bfe..41355645fca26 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -26,6 +26,7 @@ Bug fixes
- Fixed bug in :meth:`DataFrame.__setitem__` casting :class:`Index` with object-dtype to PyArrow b... | - [ ] 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/56187 | 2023-11-26T20:09:24Z | 2023-12-08T21:57:01Z | null | 2023-12-08T21:57:05Z |
TST/CLN: Remove makeCategoricalIndex | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 7e70db5681850..1716110b619d6 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -6,8 +6,6 @@
import pandas as pd
-from .pandas_vb_common import tm
-
try:
from pandas.api... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56186 | 2023-11-26T19:41:03Z | 2023-11-28T17:07:35Z | 2023-11-28T17:07:35Z | 2023-11-28T17:07:38Z |
Backport PR #56152 on branch 2.1.x (BUG: translate losing object dtype with new string dtype) | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index e4f973611c578..eb28e42d303a1 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -25,7 +25,7 @@ Bug fixes
- Bug in :meth:`Index.__getitem__` returning wrong result for Arrow dtypes and negative stepsize (... | Backport PR #56152: BUG: translate losing object dtype with new string dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/56185 | 2023-11-26T18:25:40Z | 2023-11-26T20:11:45Z | 2023-11-26T20:11:45Z | 2023-11-26T20:11:45Z |
Adjust tests in root directory for new string option | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 0cbf211305d12..5f6514946d4a2 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -26,6 +26,7 @@ Bug fixes
- Fixed bug in :meth:`DataFrame.__setitem__` casting :class:`Index` with object-dtype to PyArrow b... | sits on #56183 | https://api.github.com/repos/pandas-dev/pandas/pulls/56184 | 2023-11-26T18:06:06Z | 2023-11-30T17:45:44Z | 2023-11-30T17:45:44Z | 2023-11-30T17:46:31Z |
BUG: mode not preserving object dtype for string option | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 0cbf211305d12..5f6514946d4a2 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -26,6 +26,7 @@ Bug fixes
- Fixed bug in :meth:`DataFrame.__setitem__` casting :class:`Index` with object-dtype to PyArrow b... | - [ ] 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/56183 | 2023-11-26T18:04:12Z | 2023-11-30T17:47:59Z | 2023-11-30T17:47:59Z | 2023-11-30T17:48:45Z |
Adjust tests in window folder for new string option | diff --git a/pandas/tests/window/test_api.py b/pandas/tests/window/test_api.py
index 33858e10afd75..fe2da210c6fe9 100644
--- a/pandas/tests/window/test_api.py
+++ b/pandas/tests/window/test_api.py
@@ -70,7 +70,9 @@ def tests_skip_nuisance(step):
def test_sum_object_str_raises(step):
df = DataFrame({"A": range(5),... | - [ ] 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/56182 | 2023-11-26T17:55:09Z | 2023-11-27T17:42:24Z | 2023-11-27T17:42:24Z | 2023-11-27T17:42:57Z |
Adjust tests in util folder for new string option | diff --git a/pandas/tests/util/test_assert_frame_equal.py b/pandas/tests/util/test_assert_frame_equal.py
index 2d3b47cd2e994..0c93ee453bb1c 100644
--- a/pandas/tests/util/test_assert_frame_equal.py
+++ b/pandas/tests/util/test_assert_frame_equal.py
@@ -109,12 +109,16 @@ def test_empty_dtypes(check_dtype):
@pytest.... | - [ ] 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/56181 | 2023-11-26T17:35:58Z | 2023-11-26T18:36:13Z | 2023-11-26T18:36:13Z | 2023-11-26T19:34:10Z |
Adjust tests in tseries folder for new string option | diff --git a/pandas/tests/tseries/frequencies/test_inference.py b/pandas/tests/tseries/frequencies/test_inference.py
index ee8f161858b2b..75528a8b99c4d 100644
--- a/pandas/tests/tseries/frequencies/test_inference.py
+++ b/pandas/tests/tseries/frequencies/test_inference.py
@@ -431,12 +431,18 @@ def test_series_invalid_t... | - [ ] 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/56180 | 2023-11-26T17:28:06Z | 2023-11-26T18:25:44Z | 2023-11-26T18:25:44Z | 2023-11-26T18:25:56Z |
BUG: to_numeric casting to ea for new string dtype | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 0cbf211305d12..332f8da704e38 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -23,6 +23,7 @@ Bug fixes
~~~~~~~~~
- Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a lis... | - [ ] 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/56179 | 2023-11-26T17:24:35Z | 2023-11-30T17:46:47Z | 2023-11-30T17:46:47Z | 2023-11-30T17:47:22Z |
Adjust test in tools for new string option | diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py
index 503032293dc81..ee209f74eb4e0 100644
--- a/pandas/tests/tools/test_to_datetime.py
+++ b/pandas/tests/tools/test_to_datetime.py
@@ -183,7 +183,7 @@ def test_to_datetime_format_YYYYMMDD_ignore_with_outofbounds(self, cache):
... | - [ ] 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/56178 | 2023-11-26T17:19:34Z | 2023-11-26T18:24:53Z | 2023-11-26T18:24:53Z | 2023-11-26T18:25:02Z |
DOC: Fix broken link for mamba installation | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index 0cc1fe2629e46..7fc42f6021f00 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -86,7 +86,7 @@ Before we begin, please:
... | Prior to this change, this link:
https://pandas.pydata.org/docs/dev/development/contributing_environment.html#contributing-mamba
<img width="1051" alt="image" src="https://github.com/pandas-dev/pandas/assets/122238526/aa20e607-a764-49c2-92fc-e32a7c92fae8">
was broken:
 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/56175 | 2023-11-26T01:04:22Z | 2024-02-12T22:27:47Z | 2024-02-12T22:27:47Z | 2024-02-17T17:19:57Z |
CI: Add 3.12 builds | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 4c38324280528..30397632a0af6 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -26,7 +26,7 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
- env_file: [actions-39.yaml, act... | Some CoW warnings broke for 3.11, so we should test at least CoW for 3.12 as well | https://api.github.com/repos/pandas-dev/pandas/pulls/56174 | 2023-11-26T00:08:56Z | 2023-11-30T14:38:02Z | 2023-11-30T14:38:02Z | 2023-12-04T23:29:19Z |
CI: Add CoW builds and fix inplace warnings | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 33b6e7a8c2340..4c38324280528 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -73,6 +73,14 @@ jobs:
env_file: actions-311.yaml
pattern: "not slow and not network and no... | related to #56172, want to check that the other pr fails and this fixes the warnings | https://api.github.com/repos/pandas-dev/pandas/pulls/56173 | 2023-11-26T00:05:53Z | 2023-11-27T11:26:40Z | 2023-11-27T11:26:40Z | 2023-11-27T11:28:50Z |
CI: Add CoW warning builds | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 33b6e7a8c2340..4c38324280528 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -73,6 +73,14 @@ jobs:
env_file: actions-311.yaml
pattern: "not slow and not network and no... | I am on 3.10 and getting a bunch of failures locally, since we have this reference tracking issues between different python versions I would rather test those in ci | https://api.github.com/repos/pandas-dev/pandas/pulls/56172 | 2023-11-26T00:00:54Z | 2023-11-27T11:26:55Z | null | 2023-11-27T11:29:03Z |
CoW: Fix warnings for eval | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 0c99e5e7bdc54..f1fe528de06f8 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -388,17 +388,10 @@ def eval(
# we will ignore numpy warnings here; e.g. if trying
# to use a n... | This is an option if eval can't do inplace on numpy under the hood
xref https://github.com/pandas-dev/pandas/issues/56019 | https://api.github.com/repos/pandas-dev/pandas/pulls/56170 | 2023-11-25T23:19:06Z | 2023-12-04T10:55:57Z | 2023-12-04T10:55:57Z | 2023-12-04T11:04:53Z |
CoW: Remove todos that aren't necessary | diff --git a/pandas/tests/apply/test_invalid_arg.py b/pandas/tests/apply/test_invalid_arg.py
index 9f5157181843e..53de64c72674b 100644
--- a/pandas/tests/apply/test_invalid_arg.py
+++ b/pandas/tests/apply/test_invalid_arg.py
@@ -152,7 +152,7 @@ def test_transform_axis_1_raises():
# TODO(CoW-warn) should not need to ... | xref https://github.com/pandas-dev/pandas/issues/56019
This should warn, row is a Series and the setitem is inplace then
The Index case is a bug at the moment, creating the df is zero copy, updating the df afterwards will propagate to the index, but will be fixed with CoW
``test_del_frame`` the parent is a sin... | https://api.github.com/repos/pandas-dev/pandas/pulls/56169 | 2023-11-25T22:41:51Z | 2023-11-27T22:45:46Z | 2023-11-27T22:45:46Z | 2023-11-27T22:45:49Z |
CoW: Warn for cases that go through putmask | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index ced930b936ba5..87c0df7164967 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10496,6 +10496,7 @@ def _where(
inplace: bool_t = False,
axis: Axis | None = None,
level=None,
+ warn: bool_t = True,
... | - [ ] 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/56168 | 2023-11-25T22:32:57Z | 2023-12-04T10:08:26Z | 2023-12-04T10:08:26Z | 2023-12-04T11:05:56Z |
[ENH]: Expand types allowed in Series.struct.field | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index d1481639ca5a0..39361c3505e61 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -251,6 +251,14 @@ DataFrame. (:issue:`54938`)
)
series.struct.explode()
+Use :meth:`Series.struct.field` to inde... | This expands the set of types allowed by Series.struct.field to allow those allowed by pyarrow.
Closes https://github.com/pandas-dev/pandas/issues/56065
- [x] closes #56065
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments... | https://api.github.com/repos/pandas-dev/pandas/pulls/56167 | 2023-11-25T22:20:47Z | 2024-01-02T19:15:33Z | 2024-01-02T19:15:33Z | 2024-01-02T22:55:04Z |
CoW: Fix deprecation warning for chained assignment | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e4e95a973a3c1..64f1341235710 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -101,6 +101,7 @@
SettingWithCopyWarning,
_chained_assignment_method_msg,
_chained_assignment_warning_method_msg,
+ _check_cacher,
)
from... | - [ ] 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/56166 | 2023-11-25T19:35:12Z | 2023-11-27T14:07:48Z | 2023-11-27T14:07:48Z | 2023-11-27T14:08:12Z |
TST: parametrize over dt64 unit | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index a63bfbf1835a9..9014ba4b6093e 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -905,7 +905,7 @@ def test_dt64arr_add_sub_td64_nat(self, box_with_array, tz_... | - [ ] 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/56165 | 2023-11-25T15:35:12Z | 2023-11-25T21:05:02Z | 2023-11-25T21:05:02Z | 2023-11-25T23:30:13Z |
TST/CLN: Remove make_rand_series | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 3a3c98f253fcc..a74fb2bf48bc4 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -456,23 +456,6 @@ def makePeriodIndex(k: int = 10, name=None, **kwargs) -> PeriodIndex:
return pi
-# make series
-def make_rand... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56163 | 2023-11-25T02:13:44Z | 2023-11-26T18:35:26Z | 2023-11-26T18:35:26Z | 2023-11-26T18:35:31Z |
DOC: Add note about CoW change to copy keyword docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5d05983529fba..b86e9e08f2cce 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -369,6 +369,18 @@
values must not be None.
copy : bool, default True
If False, avoid copy if possible.
+
+ .. note::
+ The `copy` keyword will ... | - [ ] 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/56162 | 2023-11-24T23:57:12Z | 2023-12-02T00:14:21Z | 2023-12-02T00:14:21Z | 2023-12-02T00:17:49Z |
DEPR: dtype inference in value_counts | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8893fe0ecd398..9318e1d9ffaff 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -396,6 +396,7 @@ Other Deprecations
- Deprecated the ``errors="ignore"`` option in :func:`to_datetime`, :func:`to_timedelta... | - [ ] 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/56161 | 2023-11-24T23:56:41Z | 2023-11-26T04:13:39Z | 2023-11-26T04:13:39Z | 2023-11-26T05:03:10Z |
BUG: reset_index not preserving object dtype for string option | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 723c33280a679..1c412701ae5e9 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -30,6 +30,7 @@ Bug fixes
- Fixed bug in :meth:`DataFrame.to_hdf` raising when columns have ``StringDtype`` (:issue:`55088`)... | - [ ] 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/56160 | 2023-11-24T23:47:10Z | 2023-12-07T20:05:12Z | 2023-12-07T20:05:12Z | 2023-12-07T21:35:46Z |
Adjust tests in strings folder for new string option | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 9fa6e9973291d..75866c6f6013a 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -44,6 +44,7 @@
)
from pandas.core.dtypes.missing import isna
+from pandas.core.arrays import ExtensionArray
from pa... | - [ ] 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/56159 | 2023-11-24T23:40:32Z | 2023-12-09T19:24:31Z | 2023-12-09T19:24:31Z | 2023-12-09T19:38:49Z |
BUG: round with non-nanosecond raising OverflowError | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8893fe0ecd398..494d1931d9fa7 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -452,6 +452,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.union` returning object dtype for tz-aware indexes with the sam... | - [ ] 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/56158 | 2023-11-24T23:08:11Z | 2023-11-26T04:23:38Z | 2023-11-26T04:23:38Z | 2023-11-26T05:00:13Z |
BUG: Index.str.cat casting result always to object | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index c878fd2664dc4..99faad8aff986 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -576,6 +576,7 @@ Strings
^^^^^^^
- Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no ele... | - [ ] 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/56157 | 2023-11-24T22:52:01Z | 2023-12-08T23:28:19Z | 2023-12-08T23:28:19Z | 2023-12-08T23:28:46Z |
BUG fixes for date_range boundaries | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 129f5cedb86c2..b9a066c3b88dd 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -892,6 +892,8 @@ Other
- Bug in :func:`DataFrame.describe` when formatting percentiles in the resulting percentile 99.999% ... | - [X] closes #56134
- [X] closes #56147
- [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.ht... | https://api.github.com/repos/pandas-dev/pandas/pulls/56156 | 2023-11-24T21:34:29Z | 2024-01-11T11:19:01Z | null | 2024-01-11T11:19:25Z |
TST/CLN: Remove makeStringIndex | diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py
index 3c78b0a9a60c8..933e8fbc175d8 100644
--- a/asv_bench/benchmarks/algorithms.py
+++ b/asv_bench/benchmarks/algorithms.py
@@ -4,8 +4,6 @@
import pandas as pd
-from .pandas_vb_common import tm
-
for imp in ["pandas.util", "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/56155 | 2023-11-24T20:48:49Z | 2023-11-27T02:59:21Z | 2023-11-27T02:59:21Z | 2023-11-27T02:59:24Z |
TST/CLN: make equalContents more strict | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 832919db442d4..51de242522074 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -302,13 +302,6 @@ def reset_display_options() -> None:
# Comparators
-def equalContents(arr1, arr2) -> bool:
- """
- Checks i... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56154 | 2023-11-24T19:13:07Z | 2023-11-24T22:56:12Z | 2023-11-24T22:56:12Z | 2023-11-25T01:22:12Z |
CLN: Remove reset_display_options | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 832919db442d4..788272f9583aa 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -291,13 +291,6 @@
comparison_dunder_methods = ["__eq__", "__ne__", "__le__", "__lt__", "__ge__", "__gt__"]
-def reset_display_optio... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56153 | 2023-11-24T18:00:35Z | 2023-11-24T22:57:16Z | 2023-11-24T22:57:16Z | 2023-11-25T01:21:56Z |
BUG: translate losing object dtype with new string dtype | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 543a9864ced26..77ce303dc1bfe 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -25,7 +25,7 @@ Bug fixes
- Bug in :meth:`Index.__getitem__` returning wrong result for Arrow dtypes and negative stepsize (... | - [ ] 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/56152 | 2023-11-24T15:48:58Z | 2023-11-26T18:22:57Z | 2023-11-26T18:22:57Z | 2023-11-26T18:24:37Z |
DOC: to_datetime origin argument not unit specific | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 076b506670d40..e42e89b76e6f2 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -843,8 +843,8 @@ def to_datetime(
to the day starting at noon on January 1, 4713 BC.
- If Timestamp conv... | - [ ] closes #55874
- [ ] [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/56151 | 2023-11-24T15:34:55Z | 2023-11-24T22:58:56Z | 2023-11-24T22:58:56Z | 2023-11-24T22:59:05Z |
Adjust tests in resample folder for new string option | diff --git a/pandas/tests/resample/test_base.py b/pandas/tests/resample/test_base.py
index fee52780585b8..6ecbdff0018fa 100644
--- a/pandas/tests/resample/test_base.py
+++ b/pandas/tests/resample/test_base.py
@@ -5,6 +5,7 @@
from pandas import (
DataFrame,
+ Index,
MultiIndex,
NaT,
PeriodIndex... | - [ ] 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/56150 | 2023-11-24T14:13:48Z | 2023-11-26T04:30:18Z | 2023-11-26T04:30:18Z | 2023-11-26T11:33:32Z |
DEPR: Some Grouper and Grouping attributes | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0e613760f4927..a77fb18353cd9 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -303,6 +303,8 @@ Other Deprecations
- Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel... | - [x] closes #56148 (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/56149 | 2023-11-24T13:45:33Z | 2023-11-26T04:35:43Z | 2023-11-26T04:35:43Z | 2023-11-26T13:35:37Z |
BUG raise pdep6 warning for loc full setter | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 6a232365fbfeb..64d297069080f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -797,6 +797,7 @@ Conversion
- Bug in :meth:`DataFrame.astype` when called with ``str`` on unpickled array - the array might... | - [x] addresses the inconsistency brought up in https://github.com/pandas-dev/pandas/issues/39584#issuecomment-1748891309
- [ ] [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://api.github.com/repos/pandas-dev/pandas/pulls/56146 | 2023-11-24T11:56:17Z | 2024-01-09T22:30:06Z | 2024-01-09T22:30:06Z | 2024-01-10T12:47:44Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.