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: Enforce deprecation of dropping columns when numeric_only=False in groupby / resample
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1ca513e8f5e6a..c51c859040c16 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -557,6 +557,7 @@ Removal of prior version deprecations/changes - Enforced deprecation ``numeric_only=None`` (the default) 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/49665
2022-11-12T15:42:34Z
2022-11-16T21:29:33Z
2022-11-16T21:29:33Z
2022-11-16T21:48:17Z
TYP: MergeHow + JoinHow
diff --git a/pandas/_typing.py b/pandas/_typing.py index dad5ffd48caa8..05421f6bd8126 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -343,6 +343,12 @@ def closed(self) -> bool: # dropna AnyAll = Literal["any", "all"] +# merge +MergeHow = Literal["left", "right", "inner", "outer", "cross"] + +# join +Join...
- [x] closes #48503 - [ ] [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/49664
2022-11-12T13:51:40Z
2022-12-05T09:59:59Z
2022-12-05T09:59:59Z
2022-12-05T10:00:47Z
STYLE: fix pylint redefined-outer-name warnings (#49656)
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index b36eeab70726e..1ba82fc2f063a 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -112,13 +112,13 @@ ) from pandas.core import ( + algorithms, nanops, ops, ) from pandas.c...
Fixed warnings for the following files :- - **pandas/core/arrays/datetimelike.py** - **pandas/core/base.py** - **pandas/core/computation/pytables.py** - [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 feat...
https://api.github.com/repos/pandas-dev/pandas/pulls/49662
2022-11-12T12:57:09Z
2022-11-13T11:12:18Z
2022-11-13T11:12:18Z
2022-11-13T11:12:18Z
API: Float64Index.astype(datetimelike)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 561e39df60b64..b8b9780cd5deb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -329,6 +329,7 @@ Other API changes - Default value of ``dtype`` in :func:`get_dummies` is changed to ``bool`` from ``uint8`...
- [ ] 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/49660
2022-11-12T00:28:26Z
2022-11-17T04:36:41Z
2022-11-17T04:36:41Z
2022-11-17T15:52:48Z
REF: remove no-longer-needed ignore_failures
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index efad2edddf360..b6b731da98d8d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10460,7 +10460,7 @@ def _get_data() -> DataFrame: # After possibly _get_data and transposing, we are now in the # simple case where we...
- [ ] 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/49659
2022-11-12T00:17:24Z
2022-11-16T10:15:29Z
2022-11-16T10:15:29Z
2022-11-16T15:47:40Z
API: Series[bytes].astype(str) behavior
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 43a34c8e18b2d..656f6f13b4e82 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -773,6 +773,7 @@ Other API changes - :func:`read_stata` with parameter ``index_col`` set to ``None`` (the default) will now...
- [x] closes #45326 (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/49658
2022-11-11T22:43:02Z
2023-02-15T18:08:22Z
2023-02-15T18:08:22Z
2023-02-15T18:12:49Z
REF: share astype exception messages
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index d0a932ec378b9..bd134dc11201e 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -641,10 +641,12 @@ def astype(self, dtype, copy: bool = True): elif self.tz is None and isinstance(dtype, Dat...
- [ ] 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/49655
2022-11-11T19:30:47Z
2022-11-16T22:04:10Z
2022-11-16T22:04:10Z
2022-11-16T22:51:20Z
Backport PR #49615 on branch 1.5.x (REGR: Better warning in pivot_table when dropping nuisance columns)
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 66a3425d0d398..7ef58c7836c81 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -21,6 +21,7 @@ Substitution, deprecate_nonkeyword_arguments, ) +from pandas.util._exceptions import rewrite_warning fr...
Backport PR #49615
https://api.github.com/repos/pandas-dev/pandas/pulls/49653
2022-11-11T19:07:32Z
2022-11-11T22:08:13Z
2022-11-11T22:08:13Z
2023-01-12T12:51:32Z
BUG: groupby with dropna=False drops nulls from categorical groupers
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ee08a55c42e4a..8bcc863a0df6c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -751,6 +751,7 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.apply` and :class:`SeriesGroupBy.apply` with ``...
- [x] closes #36327 (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/49652
2022-11-11T18:14:37Z
2022-12-02T18:49:42Z
2022-12-02T18:49:42Z
2022-12-02T20:09:31Z
STYLE: fix pylint reimported warnings
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 6cce1137e707b..64f5d97f588c5 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -610,8 +610,6 @@ def makeCustomIndex( for i in range(nlevels): def keyfunc(x): - import re - num...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49645
2022-11-11T14:59:05Z
2022-11-11T20:53:59Z
2022-11-11T20:53:59Z
2022-11-12T00:53:08Z
BUG: groupby.describe with as_index=False incorrect
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index efb4a572486e3..28c4b89b925dd 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -716,7 +716,9 @@ Groupby/resample/rolling - Bug in :class:`.DataFrameGroupBy` and :class:`.SeriesGroupBy` would not include...
- [x] closes #49256 (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/49643
2022-11-11T14:33:06Z
2022-11-18T01:36:50Z
2022-11-18T01:36:50Z
2022-11-18T03:03:03Z
DOC: Gitpod documentation
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index d0bda0ba42bd7..4e654f68dd317 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -1,4 +1,4 @@ -.. _contributing: +3.. _contributing: {{ header }} diff --git a/doc/s...
xref #48107 Documentation for using the development Gitpod.
https://api.github.com/repos/pandas-dev/pandas/pulls/49642
2022-11-11T13:36:24Z
2023-01-09T23:39:01Z
2023-01-09T23:39:01Z
2023-01-09T23:39:08Z
for #49638 updated the doc
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 6ed8dee044d1f..b230516c9c3e5 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -137,6 +137,7 @@ want to clone your fork to your machine:: git clone https://github...
added the `git fetch upstream` command - [x] closes #49638 - [ ] [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/49639
2022-11-11T10:15:34Z
2022-11-11T10:24:36Z
2022-11-11T10:24:36Z
2022-11-11T10:48:38Z
BUG/API: Indexes on empty frames/series should be RangeIndex
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7838ef8df4164..1fc7a06f8b7f0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -311,6 +311,35 @@ The new behavior, as for datetime64, either gives exactly the requested dtype or ser.astype("timedelta...
- [x] closes #40077 - [x] closes #49572 I've looked into #49572 and it seems that the fix is reasonable simple, see included code. In short, currently if the user hasn't supplied `index` or `columns` values, then the index/columns is a `RangeIndex` if the data has lenght > 0, while they're `Index[object]` if the le...
https://api.github.com/repos/pandas-dev/pandas/pulls/49637
2022-11-11T08:40:09Z
2022-12-07T17:05:35Z
2022-12-07T17:05:35Z
2023-04-04T16:06:50Z
Backport PR #49614 on branch 1.5.x (CI: Updating website sync to new server)
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 48a08d4febbaf..1db8fb9a70254 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -64,22 +64,22 @@ jobs: mkdir -m 700 -p ~/.ssh echo "${{ secret...
Backport PR #49614: CI: Updating website sync to new server
https://api.github.com/repos/pandas-dev/pandas/pulls/49634
2022-11-11T03:07:53Z
2022-11-11T11:41:03Z
2022-11-11T11:41:03Z
2022-11-11T11:41:04Z
DEPR: Remove method and tolerance in Index.get_loc, bump xarray
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 512aa13c6899a..de7e793c46d19 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -54,7 +54,7 @@ dependencies: - sqlalchemy=1.4.16 - tabulate=0.8.9 - tzdata=...
Introduced in https://github.com/pandas-dev/pandas/pull/42269 Requires xarray bump as their `get_loc` usage was cleaned up in 0.21.0
https://api.github.com/repos/pandas-dev/pandas/pulls/49630
2022-11-10T22:56:24Z
2022-12-06T22:01:57Z
2022-12-06T22:01:57Z
2022-12-06T22:06:30Z
Fix accidental loss-of-precision for to_datetime(str, unit=...)
diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst index 54084abab7817..19539918b8c8f 100644 --- a/doc/source/whatsnew/v2.2.2.rst +++ b/doc/source/whatsnew/v2.2.2.rst @@ -15,7 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - :meth:`DataFrame.__dataframe__` was producing incorrect data buffers ...
In Pandas 1.5.3, the `float(val)` cast was inline to the `cast_from_unit` call in `array_with_unit_to_datetime`. This caused the intermediate (unnamed) value to be a Python float. Since #50301, a temporary variable was added to avoid multiple casts, but with explicit type `cdef float`, which defines a _Cython_ float...
https://api.github.com/repos/pandas-dev/pandas/pulls/57548
2024-02-21T12:08:47Z
2024-03-27T16:51:54Z
2024-03-27T16:51:54Z
2024-03-28T09:28:23Z
PERF: Return RangeIndex columns in str.extract when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a77e93c4ab4be..70b4364e6be11 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -175,7 +175,7 @@ Performance improvements - Performance improvement in :meth:`RangeIndex.append` when appending the same in...
Retry at https://github.com/pandas-dev/pandas/pull/57465
https://api.github.com/repos/pandas-dev/pandas/pulls/57542
2024-02-20T23:28:38Z
2024-02-21T20:17:51Z
2024-02-21T20:17:51Z
2024-02-21T20:34:48Z
CLN: Use not .any() instead of comparing to 0
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 2dd6f672eca45..8552839b12d18 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -474,7 +474,7 @@ def _shallow_copy(self, values, name: Hashable = no_default): diff = values[1] - values[0] ...
Follow up to https://github.com/pandas-dev/pandas/pull/57534 ```python In [1]: import numpy as np In [2]: zeros = np.zeros(100_000) In [4]: %timeit (zeros == 0).all() 36.4 µs ± 108 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each) In [5]: %timeit not np.all(zeros) 33.6 µs ± 111 ns per loop (mea...
https://api.github.com/repos/pandas-dev/pandas/pulls/57541
2024-02-20T23:18:21Z
2024-02-21T00:23:00Z
2024-02-21T00:23:00Z
2024-02-21T00:23:03Z
Backport PR #57510 on branch 2.2.x (DOC: Fix xarray example)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0ec17173287f5..1dd471a09f1b1 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3278,18 +3278,18 @@ def to_xarray(self): 2 lion mammal 80.5 4 3 monkey mammal NaN 4 - >>> df....
#57510
https://api.github.com/repos/pandas-dev/pandas/pulls/57538
2024-02-20T20:48:03Z
2024-02-20T21:32:46Z
2024-02-20T21:32:46Z
2024-02-20T21:32:46Z
Backport PR #57536 on branch 2.2.x (BUG: dt64 + DateOffset with milliseconds)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 85b9346aa01a5..ab62a7c7598d5 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -42,6 +42,7 @@ Fixed regressions - Fixed regression in :meth:`Series.astype` introducing decimals when converting from inte...
Backport PR #57536: BUG: dt64 + DateOffset with milliseconds
https://api.github.com/repos/pandas-dev/pandas/pulls/57537
2024-02-20T19:51:27Z
2024-02-20T21:32:30Z
2024-02-20T21:32:29Z
2024-02-20T21:32:30Z
BUG: dt64 + DateOffset with milliseconds
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 85b9346aa01a5..ab62a7c7598d5 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -42,6 +42,7 @@ Fixed regressions - Fixed regression in :meth:`Series.astype` introducing decimals when converting from inte...
- [ ] closes #57529 (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/57536
2024-02-20T18:54:30Z
2024-02-20T19:50:48Z
2024-02-20T19:50:47Z
2024-02-20T19:50:50Z
TST: Allow test_dti_constructor_with_non_nano_now_today to be flaky
diff --git a/pandas/tests/indexes/datetimes/test_constructors.py b/pandas/tests/indexes/datetimes/test_constructors.py index 0756d490cd4fa..009723fc42360 100644 --- a/pandas/tests/indexes/datetimes/test_constructors.py +++ b/pandas/tests/indexes/datetimes/test_constructors.py @@ -1031,23 +1031,28 @@ def test_dti_constr...
I see this test occasionally fail e.g. https://github.com/pandas-dev/pandas/actions/runs/7977358781/job/21780077825?pr=57510 It's probably best in the long run if we can find a way to make now/today be deterministic
https://api.github.com/repos/pandas-dev/pandas/pulls/57535
2024-02-20T18:15:38Z
2024-02-20T19:53:30Z
2024-02-20T19:53:30Z
2024-02-20T19:53:32Z
PERF: Add short circuiting to RangeIndex._shallow_copy
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 20286cad58df9..2dd6f672eca45 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -22,7 +22,6 @@ index as libindex, lib, ) -from pandas._libs.algos import unique_deltas from pandas._libs.lib import no_d...
xref https://github.com/pandas-dev/pandas/pull/57445#issuecomment-1953881838 There needs to be More Work done to attempt to return a RangeIndex, but this should help minimize that Work
https://api.github.com/repos/pandas-dev/pandas/pulls/57534
2024-02-20T18:00:38Z
2024-02-20T23:00:44Z
2024-02-20T23:00:44Z
2024-02-21T20:16:50Z
Backport PR #57489 on branch 2.2.x (REGR: astype introducing decimals when casting from int with na to string)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 6c6a37b2b2f89..85b9346aa01a5 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -39,6 +39,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrameGroupBy.idxmin`, :meth:`DataFrameGroupBy.idxmax`, :m...
Backport PR #57489: REGR: astype introducing decimals when casting from int with na to string
https://api.github.com/repos/pandas-dev/pandas/pulls/57533
2024-02-20T17:27:01Z
2024-02-20T18:51:27Z
2024-02-20T18:51:27Z
2024-02-20T18:51:27Z
TYP: Remove None from copy deep values
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bc5f6b2733b99..19d32f8fb9312 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6327,7 +6327,7 @@ def astype( return cast(Self, result) @final - def copy(self, deep: bool | None = True) -> Self: + def copy(self, d...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/57532
2024-02-20T17:11:39Z
2024-02-20T17:55:36Z
2024-02-20T17:55:36Z
2024-02-20T17:55:44Z
dsintro.rst: Add missing 'the'
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index d1e981ee1bbdc..ebb5b0b94e418 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -111,7 +111,7 @@ However, operations such as slicing will also slice the index. .. note:: We will address...
dsintro.rst: Add missing 'the' to the sentence
https://api.github.com/repos/pandas-dev/pandas/pulls/57530
2024-02-20T16:37:29Z
2024-02-20T17:02:33Z
2024-02-20T17:02:33Z
2024-02-20T17:05:39Z
dsintro.rst: Clarify Series constructor information
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index d1e981ee1bbdc..f0231c4641521 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -41,8 +41,8 @@ Here, ``data`` can be many different things: * an ndarray * a scalar value (like 5) -The pass...
Clarify sentence leading into Series constructor explanation
https://api.github.com/repos/pandas-dev/pandas/pulls/57528
2024-02-20T16:23:46Z
2024-02-20T17:03:23Z
2024-02-20T17:03:23Z
2024-02-20T17:06:30Z
dsintro.rst: Add more info for first mention of ndarray
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index d1e981ee1bbdc..de3bd8131e931 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -97,7 +97,7 @@ provided. The value will be repeated to match the length of **index**. Series is ndarray-like ~...
As this is the first mention of an ndarray, qualify it by adding a link to what it is.
https://api.github.com/repos/pandas-dev/pandas/pulls/57527
2024-02-20T16:19:05Z
2024-02-20T17:03:58Z
2024-02-20T17:03:58Z
2024-02-20T17:06:07Z
TYP: fix mypy failures on main in pandas/core/generic.py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 946bf99e7c9ae..bc5f6b2733b99 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6460,7 +6460,7 @@ def copy(self, deep: bool | None = True) -> Self: 1 [3, 4] dtype: object """ - data = self._mgr.cop...
fixed `mypy` failure on main in `pandas/core/generic.py`: ``` pandas/core/generic.py:6463: error: Argument "deep" to "copy" of "BaseBlockManager" has incompatible type "bool | None"; expected "bool | Literal['all']" [arg-type] ```
https://api.github.com/repos/pandas-dev/pandas/pulls/57522
2024-02-20T11:45:33Z
2024-02-20T17:07:46Z
2024-02-20T17:07:46Z
2024-02-20T17:08:05Z
TST: add a test for selecting columns in DataFrame with `big-endian` dtype
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 59bdd43d48ba0..734cf5debb219 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -1537,6 +1537,16 @@ def test_setitem_value_coercing_dtypes(self, ind...
- [x] closes #57457 added a test in to check that selecting columns in DataFrame with `big-endian` dtype is supported
https://api.github.com/repos/pandas-dev/pandas/pulls/57519
2024-02-20T10:23:12Z
2024-02-20T17:11:01Z
2024-02-20T17:11:01Z
2024-02-20T17:11:09Z
Improving function definition
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 946bf99e7c9ae..e6b367ec18157 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5468,12 +5468,13 @@ def head(self, n: int = 5) -> Self: """ Return the first `n` rows. - This function returns the first `n` row...
- [x] closes #57305 - [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/57518
2024-02-20T06:42:16Z
2024-02-20T21:33:09Z
2024-02-20T21:33:09Z
2024-02-20T21:39:56Z
CI/TST: Use tmp_path for excel test
diff --git a/pandas/tests/io/excel/test_odf.py b/pandas/tests/io/excel/test_odf.py index b5bb9b27258d8..f01827fa4ca2f 100644 --- a/pandas/tests/io/excel/test_odf.py +++ b/pandas/tests/io/excel/test_odf.py @@ -3,16 +3,11 @@ import numpy as np import pytest -from pandas.compat import is_platform_windows - import pan...
- [ ] closes #57511 (Replace xxxx with the GitHub issue number) `tm.ensure_clean` doesn't ensure files are unique if the same name is passed, but `tmp_path` ensures a test gets a unique temp path.
https://api.github.com/repos/pandas-dev/pandas/pulls/57516
2024-02-20T01:19:25Z
2024-02-20T23:32:50Z
2024-02-20T23:32:50Z
2024-02-20T23:32:53Z
Backport PR #57488 on branch 2.2.x (REGR: query raising for all NaT in object column)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index e1da0af59b3b8..6c6a37b2b2f89 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -27,6 +27,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` which was unnecessarily throwing "incompatible...
Backport PR #57488: REGR: query raising for all NaT in object column
https://api.github.com/repos/pandas-dev/pandas/pulls/57515
2024-02-19T23:36:40Z
2024-02-20T01:20:20Z
2024-02-20T01:20:20Z
2024-02-20T01:20:21Z
CoW: Clean up some copy usage
diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index 55421090d4202..f3a82e268c732 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -378,7 +378,7 @@ def eval( try: target = env.target if isinst...
- [ ] 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/57513
2024-02-19T23:03:27Z
2024-02-19T23:56:31Z
2024-02-19T23:56:31Z
2024-02-20T00:05:58Z
DOC: Fix xarray example
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 02d173e7543e6..3289d0e34aec4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3120,18 +3120,18 @@ def to_xarray(self): 2 lion mammal 80.5 4 3 monkey mammal NaN 4 - >>> df....
- [ ] 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/57510
2024-02-19T22:11:36Z
2024-02-20T18:51:06Z
2024-02-20T18:51:06Z
2024-02-20T20:48:10Z
Backport PR #57490 on branch 2.2.x (DOC: Add a few deprecation notes)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 2245359fd8eac..df0251d141984 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -169,6 +169,9 @@ def is_sparse(arr) -> bool: """ Check whether an array-like is a 1-D pandas sparse array. + .. depre...
Backport PR #57490: DOC: Add a few deprecation notes
https://api.github.com/repos/pandas-dev/pandas/pulls/57509
2024-02-19T20:15:32Z
2024-02-19T22:12:25Z
2024-02-19T22:12:25Z
2024-02-19T22:12:25Z
Backport PR #57486 on branch 2.2.x (CI: Run excel tests on single cpu for windows)
diff --git a/pandas/tests/io/excel/test_odf.py b/pandas/tests/io/excel/test_odf.py index f01827fa4ca2f..b5bb9b27258d8 100644 --- a/pandas/tests/io/excel/test_odf.py +++ b/pandas/tests/io/excel/test_odf.py @@ -3,11 +3,16 @@ import numpy as np import pytest +from pandas.compat import is_platform_windows + import pan...
Backport PR #57486: CI: Run excel tests on single cpu for windows
https://api.github.com/repos/pandas-dev/pandas/pulls/57507
2024-02-19T17:34:17Z
2024-02-19T20:15:56Z
2024-02-19T20:15:56Z
2024-02-19T20:15:56Z
DOC: Fix PR01 errors in multiple files (#57438)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 231d40e17c0c0..04c3ff3a42971 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1477,7 +1477,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.std\ pandas.ExcelFile\ pandas.ExcelFile.parse\ - ...
Fixed PR01 errors (#57438) and added parameter descriptions for: - `pandas.Grouper` - `pandas.core.groupby.DataFrameGroupBy.cummax` - `pandas.core.groupby.DataFrameGroupBy.cummin` - `pandas.core.groupby.DataFrameGroupBy.cumprod` - `pandas.core.groupby.DataFrameGroupBy.cumsum` - `pandas.core.groupby.DataFrameGroup...
https://api.github.com/repos/pandas-dev/pandas/pulls/57504
2024-02-19T10:55:45Z
2024-02-21T01:37:56Z
2024-02-21T01:37:56Z
2024-02-21T01:38:03Z
Bump pandas-dev/github-doc-previewer from 0.3.1 to 0.3.2
diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index da9f6ac8bff78..62956f5825782 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -24,7 +24,7 @@ jobs: concurrency: group: ${{ github.actor }}-preview-docs s...
Bumps [pandas-dev/github-doc-previewer](https://github.com/pandas-dev/github-doc-previewer) from 0.3.1 to 0.3.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pandas-dev/github-doc-previewer/releases">pandas-dev/github-doc-previewer's releases</a>.</em></p> <blockquote> <h2>...
https://api.github.com/repos/pandas-dev/pandas/pulls/57503
2024-02-19T08:04:45Z
2024-02-19T23:41:24Z
2024-02-19T23:41:24Z
2024-02-19T23:41:26Z
Fix for small typo
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index e96a905367f69..aa6dbe54645e7 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1544,7 +1544,7 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta): Standard kind of date increment use...
Just a very small fix for a typo I noticed.
https://api.github.com/repos/pandas-dev/pandas/pulls/57502
2024-02-19T07:13:05Z
2024-02-19T07:34:52Z
2024-02-19T07:34:52Z
2024-02-19T08:16:16Z
DOC: Add whatsnew line for #57485
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 54b0d5f93dfa3..e1da0af59b3b8 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -33,6 +33,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_json` converting nullable integers to floats (: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/57497
2024-02-19T03:16:28Z
2024-02-19T09:50:19Z
2024-02-19T09:50:19Z
2024-02-19T22:18:28Z
Backport PR #57474 on branch 2.2.x (REGR: DataFrame.transpose resulting in not contiguous data on nullable EAs)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 8c8db76ccc3d0..e1da0af59b3b8 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -32,6 +32,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_dict` with ``orient='list'`` and datetime or tim...
…uous data on nullable EAs - [ ] 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/p...
https://api.github.com/repos/pandas-dev/pandas/pulls/57496
2024-02-19T03:09:19Z
2024-02-19T09:51:13Z
2024-02-19T09:51:13Z
2024-02-19T22:25:29Z
DOC: Add a few deprecation notes
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 8eee15e13791a..15c51b98aea0b 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -168,6 +168,9 @@ def is_sparse(arr) -> bool: """ Check whether an array-like is a 1-D pandas sparse array. + .. depre...
- [ ] closes #57382 (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/57490
2024-02-18T21:40:39Z
2024-02-19T20:15:24Z
2024-02-19T20:15:24Z
2024-02-19T20:31:06Z
REGR: astype introducing decimals when casting from int with na to string
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 54b0d5f93dfa3..e3efb008be6a9 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -37,6 +37,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrameGroupBy.idxmin`, :meth:`DataFrameGroupBy.idxmax`, :m...
… - [ ] closes #57418 (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/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/57489
2024-02-18T21:05:47Z
2024-02-20T17:26:52Z
2024-02-20T17:26:52Z
2024-02-20T17:27:00Z
REGR: query raising for all NaT in object column
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 54b0d5f93dfa3..6bf2f21c37d38 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -27,6 +27,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` which was unnecessarily throwing "incompatible...
- [ ] closes #57068 (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/57488
2024-02-18T20:19:14Z
2024-02-19T23:36:11Z
2024-02-19T23:36:11Z
2024-02-19T23:36:44Z
CoW: Track references in unstack if there is no copy
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index ff358e8ba346c..d02af0f12c467 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -35,6 +35,7 @@ factorize, unique, ) +from pandas.core.arrays._mixins import NDArrayBackedExtensionArray from pan...
- [ ] xref #56633 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. cc @jorisvandenbossche @rhshadrach @rhshadrach was cor...
https://api.github.com/repos/pandas-dev/pandas/pulls/57487
2024-02-18T16:59:29Z
2024-04-01T18:36:06Z
2024-04-01T18:36:06Z
2024-04-02T16:18:07Z
CI: Run excel tests on single cpu for windows
diff --git a/pandas/tests/io/excel/test_odf.py b/pandas/tests/io/excel/test_odf.py index f01827fa4ca2f..b5bb9b27258d8 100644 --- a/pandas/tests/io/excel/test_odf.py +++ b/pandas/tests/io/excel/test_odf.py @@ -3,11 +3,16 @@ import numpy as np import pytest +from pandas.compat import is_platform_windows + import pan...
I don't want to debug windows builds but we should get ci green again
https://api.github.com/repos/pandas-dev/pandas/pulls/57486
2024-02-18T15:18:33Z
2024-02-19T17:33:47Z
2024-02-19T17:33:47Z
2024-02-19T22:13:47Z
REGR: DataFrame.update emits spurious warning about downcasting
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index ca4fef4f57fb6..8c8db76ccc3d0 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -32,6 +32,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_dict` with ``orient='list'`` and datetime or tim...
- [x] closes #57124 (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/57485
2024-02-18T13:10:51Z
2024-02-18T15:13:56Z
2024-02-18T15:13:56Z
2024-02-19T03:16:52Z
Backport PR #57454 on branch 2.2.x (Release the gil in take for axis=1)
diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in index 88c3abba506a3..385727fad3c50 100644 --- a/pandas/_libs/algos_take_helper.pxi.in +++ b/pandas/_libs/algos_take_helper.pxi.in @@ -184,6 +184,17 @@ def take_2d_axis1_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values, ...
Backport PR #57454: Release the gil in take for axis=1
https://api.github.com/repos/pandas-dev/pandas/pulls/57484
2024-02-18T11:43:48Z
2024-02-18T12:35:55Z
2024-02-18T12:35:55Z
2024-02-18T12:35:55Z
CLN remove dataframe api consortium entrypoint
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index d59ddf272f705..28c56ec7ff03b 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - extra: ["test...
Discussed privately In short: - I'm no longer involved in the project - nobody in pandas has much interest in leading the effort - pandas devs are already carrying out enough (mostly unpaid) maintenance, let's not add to it The Consortium is more than welcome to work on this, but outside of pandas
https://api.github.com/repos/pandas-dev/pandas/pulls/57482
2024-02-18T09:01:11Z
2024-02-19T18:27:57Z
2024-02-19T18:27:57Z
2024-02-19T18:27:57Z
CI: update pyright
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91ca35ce33c49..375c74f29e63a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -129,7 +129,7 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@1....
Pyright 1.1.348 split `reportGeneralTypeIssues` into multiple sub-rules up. Hopefully, this might make it easier to enable some of them more gradually.
https://api.github.com/repos/pandas-dev/pandas/pulls/57481
2024-02-18T03:29:59Z
2024-02-19T23:31:32Z
2024-02-19T23:31:32Z
2024-04-07T10:59:15Z
PERF: Improve performance for fillna with datetime
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 4194ffcee2e44..77f554d24bfb7 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -649,7 +649,7 @@ def _validation_error_message(self, value, allow_listlike: bool = False) -> str: def...
- [ ] 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/57479
2024-02-18T00:21:26Z
2024-02-20T17:25:20Z
2024-02-20T17:25:20Z
2024-02-25T18:15:18Z
PERF: Improve performance for astype is view
diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py index bdb16aa202297..d351d13fdfeb6 100644 --- a/pandas/core/dtypes/astype.py +++ b/pandas/core/dtypes/astype.py @@ -257,6 +257,11 @@ def astype_is_view(dtype: DtypeObj, new_dtype: DtypeObj) -> bool: ------- True if new data is a view or ...
- [ ] 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/57478
2024-02-17T23:16:27Z
2024-03-18T16:47:46Z
2024-03-18T16:47:46Z
2024-03-18T20:56:52Z
CoW: Remove remaining cow occurrences from tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index 254d605e13460..47316a4ba3526 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1987,14 +1987,6 @@ def indexer_ial(request): return request.param -@pytest.fixture -def using_copy_on_write() -> bool: - """ - Fixture to check if Copy-on-W...
This should be all of them
https://api.github.com/repos/pandas-dev/pandas/pulls/57477
2024-02-17T22:58:34Z
2024-02-19T17:21:50Z
2024-02-19T17:21:50Z
2024-02-19T20:30:57Z
TYP: simplify read_csv/fwf/table overloads
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 77c80dcfe7c7e..b57a258d626ee 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -90,6 +90,7 @@ Other API changes ^^^^^^^^^^^^^^^^^ - 3rd party ``py.path`` objects are no longer explicitly supported in I...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57476
2024-02-17T22:06:03Z
2024-02-21T18:05:33Z
2024-02-21T18:05:33Z
2024-04-07T10:59:17Z
REGR: DataFrame.transpose resulting in not contiguous data on nullable EAs
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index ca4fef4f57fb6..54b0d5f93dfa3 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -32,6 +32,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_dict` with ``orient='list'`` and datetime or tim...
- [x] closes #57315 (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/57474
2024-02-17T20:49:51Z
2024-02-18T15:15:09Z
2024-02-18T15:15:09Z
2024-02-23T03:35:35Z
DEPR: remove deprecated method `is_anchored`
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index ab89fe74e7337..b5ddf2a214561 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -35,7 +35,6 @@ Methods :toctree: api/ DateOffset.copy - DateOffset...
xref #56594 removed deprecated methods `DateOffset.is_anchored` and `offsets.Tick.is_anchored`
https://api.github.com/repos/pandas-dev/pandas/pulls/57473
2024-02-17T18:46:12Z
2024-02-19T20:48:28Z
2024-02-19T20:48:28Z
2024-02-19T21:06:02Z
BUG: guess_datetime_format fails to infer timeformat
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a77e93c4ab4be..edcf83953a14e 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -287,6 +287,7 @@ Styler Other ^^^^^ +- Bug in :func:`tseries.api.guess_datetime_format` would fail to infer time format ...
- [x] closes #57452(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/57471
2024-02-17T13:52:50Z
2024-02-21T19:14:10Z
2024-02-21T19:14:10Z
2024-02-22T04:06:48Z
PERF: RangeIndex.append returns a RangeIndex when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 7802ef4798659..157b87c93e729 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -245,6 +245,7 @@ Removal of prior version deprecations/changes Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ +- :met...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57467
2024-02-17T01:16:24Z
2024-03-06T21:15:52Z
2024-03-06T21:15:52Z
2024-03-06T21:15:55Z
Backport PR #57311 on branch 2.2.x (Fixing multi method for to_sql for non-oracle databases)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 5e814ec2a1b92..ca4fef4f57fb6 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -31,6 +31,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.sort_index` not producing a stable sort for a index...
Backport PR #57311: Fixing multi method for to_sql for non-oracle databases
https://api.github.com/repos/pandas-dev/pandas/pulls/57466
2024-02-17T01:10:25Z
2024-02-17T22:33:12Z
2024-02-17T22:33:12Z
2024-02-17T22:33:12Z
DOC: Making pandas always lowercase
diff --git a/doc/source/conf.py b/doc/source/conf.py index c4b1a584836f5..77dd5d03d311c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -431,7 +431,7 @@ "index", "pandas.tex", "pandas: powerful Python data analysis toolkit", - "Wes McKinney and the Pandas Development Team",...
- [ ] 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/57464
2024-02-16T22:35:14Z
2024-02-17T01:10:50Z
2024-02-17T01:10:50Z
2024-02-17T11:15:12Z
DOC: add section Raises to PeriodIndex docstring
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 50c3b251170c2..4aee8293049f1 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -134,6 +134,12 @@ class PeriodIndex(DatetimeIndexOpsMixin): from_fields from_ordinals + Raises + ------ + V...
we raise a ValueError: "freq not specified and cannot be inferred" if both freq and dtype are not specified in `PeriodIndex` ``` >>> pd.PeriodIndex(["2023-01-01", "2023-02-01", "2023-03-01", "2023-04-01"], freq="M") PeriodIndex(['2023-01', '2023-02', '2023-03', '2023-04'], dtype='period[M]') >>> pd.PeriodIndex(...
https://api.github.com/repos/pandas-dev/pandas/pulls/57461
2024-02-16T18:47:16Z
2024-02-16T20:53:46Z
2024-02-16T20:53:46Z
2024-02-16T20:53:52Z
Backport PR #57402 on branch 2.2.x (BUG: wrong future Warning on string assignment in certain condition)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 9733aff0e6eb5..5e814ec2a1b92 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`CategoricalIndex.difference` raising ``KeyError`` when other ...
Backport PR #57402: BUG: wrong future Warning on string assignment in certain condition
https://api.github.com/repos/pandas-dev/pandas/pulls/57460
2024-02-16T17:57:53Z
2024-02-16T19:21:45Z
2024-02-16T19:21:45Z
2024-02-16T19:21:46Z
PERF: DataFrame(ndarray) constructor ensure to copy to column-major layout
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index aab0f1c6dac3c..6bc3556902e80 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -250,10 +250,12 @@ def ndarray_to_mgr( elif isinstance(values, (np.ndarray, ExtensionArra...
Closes https://github.com/pandas-dev/pandas/issues/50756 xref https://github.com/pandas-dev/pandas/issues/57431 With CoW enabled now, the default behaviour of `DataFrame(ndarray)` is to copy the numpy array (before 3.0, this would not copy the data). However, if we do a copy, we should also make sure we copy it t...
https://api.github.com/repos/pandas-dev/pandas/pulls/57459
2024-02-16T17:01:18Z
2024-03-05T00:56:59Z
2024-03-05T00:56:59Z
2024-03-07T08:33:08Z
Backport PR #57450 on branch 2.2.x (DOC: Set verbose parameter as deprecated in docstring)
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index e26e7e7470461..e04f27b560610 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -240,6 +240,8 @@ performance of reading a large file. verbose : bool, default False Indicate number of ``NA`` values plac...
Backport PR #57450: DOC: Set verbose parameter as deprecated in docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/57455
2024-02-16T14:02:29Z
2024-02-16T17:26:32Z
2024-02-16T17:26:32Z
2024-02-16T17:26:33Z
Release the gil in take for axis=1
diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in index 88c3abba506a3..385727fad3c50 100644 --- a/pandas/_libs/algos_take_helper.pxi.in +++ b/pandas/_libs/algos_take_helper.pxi.in @@ -184,6 +184,17 @@ def take_2d_axis1_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values, ...
- [ ] 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/57454
2024-02-16T14:02:11Z
2024-02-16T16:05:18Z
2024-02-16T16:05:18Z
2024-02-18T11:44:10Z
DOC: Set verbose parameter as deprecated in docstring
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index d9dc5b41a81c2..018f597526acd 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -238,6 +238,8 @@ performance of reading a large file. verbose : bool, default False Indicate number of ``NA`` values plac...
This PR follows: - #56556 TODO: - [x] closes #57451 - [ ] [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/contribut...
https://api.github.com/repos/pandas-dev/pandas/pulls/57450
2024-02-16T11:02:22Z
2024-02-16T14:01:44Z
2024-02-16T14:01:44Z
2024-02-16T14:45:38Z
DOC: fix SA05 errors in docstrings for pandas.core.window Expanding and Rolling, and SeriesGroupBy
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f3666647f47e1..231d40e17c0c0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -65,8 +65,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (EX01, EX03, EX04, GL01, GL02, GL03, GL04, GL05, G...
- [x] closes #57392 - [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/57446
2024-02-15T23:52:03Z
2024-02-16T17:24:30Z
2024-02-16T17:24:30Z
2024-02-16T17:24:30Z
PERF: Allow RangeIndex.take to return a RangeIndex when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 483cf659080ea..e74967695a2ff 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -166,6 +166,7 @@ Performance improvements - Performance improvement in :meth:`Index.take` when ``indices`` is a full range ...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57445
2024-02-15T23:45:09Z
2024-02-18T21:43:10Z
2024-02-18T21:43:10Z
2024-02-20T10:12:15Z
CLN: Enforce deprecation of using alias for builtin/NumPy funcs
diff --git a/doc/source/whatsnew/v0.15.1.rst b/doc/source/whatsnew/v0.15.1.rst index 09b59f35972cd..765201996d544 100644 --- a/doc/source/whatsnew/v0.15.1.rst +++ b/doc/source/whatsnew/v0.15.1.rst @@ -92,7 +92,7 @@ API changes .. code-block:: ipython - In [4]: gr.apply(sum) + In [4]: gr.apply("sum") ...
- [ ] 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/57444
2024-02-15T22:39:46Z
2024-02-27T22:47:50Z
2024-02-27T22:47:50Z
2024-02-27T22:49:06Z
adding pow example for dataframe #57419
diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py index bd2e532536d84..5e97d1b67d826 100644 --- a/pandas/core/ops/docstrings.py +++ b/pandas/core/ops/docstrings.py @@ -623,6 +623,15 @@ def make_flex_doc(op_name: str, typ: str) -> str: B square 0.0 0.0 pentagon 0.0 0.0 ...
Added example for DataFrame.pow() - [x] closes #57419 - [ ] [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/contribut...
https://api.github.com/repos/pandas-dev/pandas/pulls/57442
2024-02-15T20:42:22Z
2024-02-19T23:38:30Z
2024-02-19T23:38:30Z
2024-02-20T00:34:31Z
BUG: read_json returning Index instead of RangeIndex
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index ab62a7c7598d5..d81032fafa730 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :func:`concat` changing long-standing behavior that always sorted th...
- [x] closes #57429 (Replace xxxx with the GitHub issue number) `_convert_axes` and `_try_convert_data` could both probably use a cleanup to align with pandas standard inference, but this is a minimal change for 2.2.1
https://api.github.com/repos/pandas-dev/pandas/pulls/57439
2024-02-15T19:48:20Z
2024-02-21T19:41:04Z
2024-02-21T19:41:04Z
2024-02-21T19:41:06Z
DOC: fix SA05 errors in docstrings for `pandas.plotting.bootstrap_plot` and `pandas.plotting.radviz`
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5eae5c6b60c17..35383ca526269 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1871,9 +1871,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.core.groupby.SeriesGroupBy.first\ pandas.core.groupby.SeriesGroupBy.last\ ...
All SA05 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=SA05 pandas.plotting.bootstrap_plot 2. scripts/validate_docstrings.py --format=actions --errors=SA05 pandas.plotting.radviz 3. try to fix a `RT03 Return value has no description` in pandas.plotting.radvi...
https://api.github.com/repos/pandas-dev/pandas/pulls/57434
2024-02-15T09:09:44Z
2024-02-15T17:08:32Z
2024-02-15T17:08:32Z
2024-02-16T07:46:38Z
TYP: misc return types
diff --git a/pandas/_typing.py b/pandas/_typing.py index 9465631e9fe20..85a69f38b3f67 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -118,6 +118,7 @@ Concatenate: Any = None HashableT = TypeVar("HashableT", bound=Hashable) +HashableT2 = TypeVar("HashableT2", bound=Hashable) MutableMappingT = TypeVar...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57430
2024-02-15T03:05:12Z
2024-02-16T17:23:10Z
2024-02-16T17:23:10Z
2024-04-07T10:59:20Z
CLN: Remove inf_as_na
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index ae135fd41d977..18e970f9e89e2 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -139,6 +139,7 @@ Removal of prior version deprecations/changes - Removed ``year``, ``month``, ``quarter``, ``day``, ``hour`...
xref https://github.com/pandas-dev/pandas/pull/53494
https://api.github.com/repos/pandas-dev/pandas/pulls/57428
2024-02-14T21:08:18Z
2024-02-19T23:28:25Z
2024-02-19T23:28:25Z
2024-02-19T23:28:27Z
DOC: fix SA05 errors in docstrings for pandas.core.resample.Resampler…
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 54e12496cf9c5..5eae5c6b60c17 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1870,8 +1870,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=SA05 --ignore_functions \ ...
Small code change, removing the two functions above for SA05 ignore functions. - [ ] xref #57392 - [ ] [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/57426
2024-02-14T20:03:03Z
2024-02-14T21:13:40Z
2024-02-14T21:13:40Z
2024-02-14T21:25:17Z
CLN: shift with freq and fill_value, to_pydatetime returning Series
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 7edc3c50de96d..aa18e1182dccc 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -112,6 +112,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
xref https://github.com/pandas-dev/pandas/pull/52459, https://github.com/pandas-dev/pandas/pull/54818
https://api.github.com/repos/pandas-dev/pandas/pulls/57425
2024-02-14T19:41:30Z
2024-02-20T01:21:52Z
2024-02-20T01:21:52Z
2024-02-27T17:45:37Z
ENH: Preserve Series index on `json_normalize`
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 012fe47c476d1..ab23f0adcb958 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -31,6 +31,7 @@ Other enhancements - :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the character count in a ...
- [ ] closes #51452 - [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/57422
2024-02-14T18:06:34Z
2024-02-14T21:12:56Z
2024-02-14T21:12:56Z
2024-02-14T22:27:33Z
DOC: Resolve SA05 errors for all ExponentialMovingWindow, Expanding, Rolling, and Window
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51257e6ef4258..054a4b3c79411 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1433,52 +1433,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.core.groupby.SeriesGroupBy.last\ pandas.core.resample.Resampler.first\ ...
A small change in a shared template resolved all SA05 errors for the following: ``` pandas.core.window.ewm.ExponentialMovingWindow.corr pandas.core.window.ewm.ExponentialMovingWindow.cov pandas.core.window.ewm.ExponentialMovingWindow.mean pandas.core.window.ewm.ExponentialMovingWindow.std pandas.core.window.ewm....
https://api.github.com/repos/pandas-dev/pandas/pulls/57415
2024-02-14T04:33:49Z
2024-02-14T14:49:22Z
2024-02-14T14:49:22Z
2024-02-14T17:26:56Z
DOC: fix SA05 errors in docstring for pandas.core.groupby.DataFrameGroupBy - first, last
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51257e6ef4258..9ab6fdf4a6d86 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1427,8 +1427,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (SA05)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
- [x] xref #57392 - [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). - [ ] A...
https://api.github.com/repos/pandas-dev/pandas/pulls/57414
2024-02-14T02:29:31Z
2024-02-14T17:08:27Z
2024-02-14T17:08:27Z
2024-02-14T17:08:35Z
Backport PR #57388 on branch 2.2.x (BUG: map(na_action=ignore) not respected for Arrow & masked types)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 94e26ff6aa46a..9733aff0e6eb5 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`CategoricalIndex.difference` raising ``KeyError`` when other ...
Backport PR #57388: BUG: map(na_action=ignore) not respected for Arrow & masked types
https://api.github.com/repos/pandas-dev/pandas/pulls/57413
2024-02-14T00:49:58Z
2024-02-14T02:12:17Z
2024-02-14T02:12:17Z
2024-02-14T02:12:17Z
Remove downcast from Index.fillna
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index d9f545969d9f7..662bf04595026 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2559,7 +2559,7 @@ def notna(self) -> npt.NDArray[np.bool_]: notnull = notna - def fillna(self, value=None, downcast=lib.no_...
- [ ] 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/57410
2024-02-14T00:03:23Z
2024-02-14T02:12:46Z
2024-02-14T02:12:46Z
2024-02-14T09:03:30Z
DOC: fix SA05 errors in docstrings for pandas.PeriodIndex.asfreq, arr…
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bebe3b54d9457..10eb3034f4f7e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1155,9 +1155,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (SA05)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
…ays - ArrowStringArray, StringArray - [x] xref #57392 - [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/contrib...
https://api.github.com/repos/pandas-dev/pandas/pulls/57408
2024-02-13T22:18:15Z
2024-02-14T02:13:30Z
2024-02-14T02:13:30Z
2024-02-14T04:13:20Z
CLN: Misc pre-COW stuff
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index b4cd6d82bb57f..5409c9b1fc0b9 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -72,7 +72,6 @@ get_obj, ) from pandas._testing.contexts import ( - assert_cow_warning, decompress_file, ensure_clean...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57406
2024-02-13T20:48:48Z
2024-02-13T23:00:41Z
2024-02-13T23:00:41Z
2024-02-13T23:00:44Z
CLN: Enforce nonkeyword deprecations
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e07ee3cbe2867..58292ae0ee4de 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -105,7 +105,10 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
xref https://github.com/pandas-dev/pandas/pull/56493
https://api.github.com/repos/pandas-dev/pandas/pulls/57405
2024-02-13T19:55:52Z
2024-02-14T00:46:53Z
2024-02-14T00:46:53Z
2024-02-14T02:11:06Z
DOC: fix SA05 errors in docstring for pandas.DataFrame - agg, aggregate, boxplot
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 39ccf904858d5..d3a79779bb369 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -143,9 +143,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (SA05)' ; echo $MSG $BASE_DIR/scripts/validate_docstring...
All SA05 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=SA05 pandas.DataFrame.agg 2. scripts/validate_docstrings.py --format=actions --errors=SA05 pandas.DataFrame.aggregate 3. scripts/validate_docstrings.py --format=actions --errors=SA05 pandas.DataFrame.boxplo...
https://api.github.com/repos/pandas-dev/pandas/pulls/57404
2024-02-13T18:41:13Z
2024-02-13T19:56:34Z
2024-02-13T19:56:34Z
2024-02-13T20:04:58Z
BUG: wrong future Warning on string assignment in certain condition
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 9733aff0e6eb5..5e814ec2a1b92 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`CategoricalIndex.difference` raising ``KeyError`` when other ...
- [ ] closes #56503 (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/57402
2024-02-13T14:41:08Z
2024-02-16T17:57:46Z
2024-02-16T17:57:46Z
2024-02-16T17:57:55Z
Fix for issue #57268 - ENH: Preserve input start/end type in interval…
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 2ada386f76b87..941ad4612b73c 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -211,7 +211,7 @@ Strings Interval ^^^^^^^^ -- +- Bug in :func:`interval_range` where start and end numeric types were al...
…_range - [ ] closes #57268 - [ ] [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-com...
https://api.github.com/repos/pandas-dev/pandas/pulls/57399
2024-02-13T09:28:49Z
2024-02-15T17:35:06Z
2024-02-15T17:35:06Z
2024-02-15T17:57:56Z
TST: Fix test_str_encode on big endian machines
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 30a504ebd0e0b..f441ecfff02d4 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -26,6 +26,7 @@ import operator import pickle import re +import sys import numpy as np import ...
I couldn't find a way to specify the endianness when creating the `ArrowDtype`, so just pick the right result based on native byte order. - [x] closes #57373 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#wr...
https://api.github.com/repos/pandas-dev/pandas/pulls/57394
2024-02-13T04:36:58Z
2024-02-13T17:09:52Z
2024-02-13T17:09:52Z
2024-02-13T23:20:58Z
TST: Fix IntervalIndex constructor tests on big-endian systems
diff --git a/pandas/tests/indexes/interval/test_constructors.py b/pandas/tests/indexes/interval/test_constructors.py index b0289ded55604..4a9eb4dd9fc0c 100644 --- a/pandas/tests/indexes/interval/test_constructors.py +++ b/pandas/tests/indexes/interval/test_constructors.py @@ -40,12 +40,12 @@ class ConstructorTests: ...
Two tests cases specify the expected data to be little-endian. However, none of the other cases do so, and the test creates native endian data, causing these tests to fail only in these specific cases. - [n/a] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pyd...
https://api.github.com/repos/pandas-dev/pandas/pulls/57393
2024-02-13T03:41:59Z
2024-02-13T17:23:46Z
2024-02-13T17:23:46Z
2024-02-13T23:20:35Z
TST: Ensure Matplotlib is always cleaned up
diff --git a/pandas/conftest.py b/pandas/conftest.py index 868bd365fa0ba..254d605e13460 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -28,6 +28,7 @@ timezone, ) from decimal import Decimal +import gc import operator import os from typing import ( @@ -1863,6 +1864,39 @@ def ip(): return Inte...
The seaborn test also uses Matplotlib but was not wrapped in the cleanup fixture, As there are now 3 files that need this fixture, refactor to reduce code duplication. The leftover figure from `test_seaborn` would cause a DeprecationWarning from Matplotlib 3.8 for closing the figures on the backend change (from the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57389
2024-02-13T00:59:30Z
2024-02-13T02:54:54Z
2024-02-13T02:54:54Z
2024-02-13T03:18:26Z
BUG: map(na_action=ignore) not respected for Arrow & masked types
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 94e26ff6aa46a..9733aff0e6eb5 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`CategoricalIndex.difference` raising ``KeyError`` when other ...
```python In [5]: df = DataFrame({"a": [1, NA, 2], "b": [NA, 4, NA]}, dtype="Int64") In [6]: df.map(lambda x: 42, na_action="ignore") # pd.NA's lost Out[6]: a b 0 42 42 1 42 42 2 42 42 ```
https://api.github.com/repos/pandas-dev/pandas/pulls/57388
2024-02-13T00:52:13Z
2024-02-14T00:49:24Z
2024-02-14T00:49:24Z
2024-02-14T02:11:13Z
CLN: Python 2 pickle/hdf support
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 0758d58ed3912..82b4ab6af0818 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -88,6 +88,7 @@ Other API changes ^^^^^^^^^^^^^^^^^ - 3rd party ``py.path`` objects are no longer explicitly supported in I...
xref https://github.com/pandas-dev/pandas/pull/57155
https://api.github.com/repos/pandas-dev/pandas/pulls/57387
2024-02-12T22:40:44Z
2024-02-14T00:48:13Z
2024-02-14T00:48:13Z
2024-02-14T02:10:51Z
CLN: ._data, PeriodIndex arguments
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index a3e44e6373145..85ee5230b31be 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -26,7 +26,7 @@ dependencies: - beautifulsoup4>=4.11.2 - blosc>=1.21.3 - bottleneck>=1.3.6 - - fastparquet>=2022.12.0 + - fastparquet>=202...
xref https://github.com/pandas-dev/pandas/pull/52003, https://github.com/pandas-dev/pandas/pull/55963 Bumped fastparquet as they updated their `_data` usage in https://github.com/dask/fastparquet/commit/7d9703b82090c5fc8ae3b013ae558f3b06fa287c
https://api.github.com/repos/pandas-dev/pandas/pulls/57385
2024-02-12T21:49:32Z
2024-02-14T17:43:54Z
2024-02-14T17:43:54Z
2024-02-14T17:43:57Z
DOC: add an example to `PeriodIndex.to_timestamp` to clarify the behavior in case len(index)<3
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index ab79622ddd8be..d3760abb8eaf3 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -636,6 +636,20 @@ def to_timestamp(self, freq=None, how: str = "start") -> DatetimeArray: >>> idx.to_timestamp() D...
xref #56213 added an example to `PeriodIndex.to_timestamp` to clarify the behavior in case `len(index) < 3`
https://api.github.com/repos/pandas-dev/pandas/pulls/57384
2024-02-12T21:10:29Z
2024-02-15T16:09:12Z
2024-02-15T16:09:12Z
2024-02-15T16:09:12Z
Backport PR #57379 on branch 2.2.x (Fix numpy-dev CI warnings)
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 8bba95dd456de..74ca8ead3d936 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -447,8 +447,15 @@ static void NpyArrPassThru...
Backport PR #57379: Fix numpy-dev CI warnings
https://api.github.com/repos/pandas-dev/pandas/pulls/57383
2024-02-12T20:33:11Z
2024-02-12T21:50:47Z
2024-02-12T21:50:47Z
2024-02-12T21:50:47Z
Backport PR #57340 on branch 2.2.x (REGR: shift raising for axis=1 and empty df)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index eb6e50c1be160..434a8fd3ea6b4 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.groupby` raising ``ValueError`` when grouping by a ...
Backport PR #57340: REGR: shift raising for axis=1 and empty df
https://api.github.com/repos/pandas-dev/pandas/pulls/57381
2024-02-12T18:25:35Z
2024-02-12T20:33:27Z
2024-02-12T20:33:27Z
2024-02-12T20:33:27Z
Backport PR #57341 on branch 2.2.x (REGR: assert_series_equal defaulting to check_exact=True for Index)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index eb6e50c1be160..47ca96c6eef44 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed performance regression in :meth:`Series.combine_first` (:issue:`55845`) - Fixed r...
Backport PR #57341: REGR: assert_series_equal defaulting to check_exact=True for Index
https://api.github.com/repos/pandas-dev/pandas/pulls/57380
2024-02-12T18:23:50Z
2024-02-12T20:33:18Z
2024-02-12T20:33:18Z
2024-02-12T20:33:19Z
Fix numpy-dev CI warnings
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 8bba95dd456de..74ca8ead3d936 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -447,8 +447,15 @@ static void NpyArrPassThru...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57379
2024-02-12T18:18:43Z
2024-02-12T20:33:04Z
2024-02-12T20:33:04Z
2024-02-12T20:33:11Z