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
[pre-commit.ci] pre-commit autoupdate
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e683fc50c1c5d..e7c14b6400a0c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ ci: skip: [pylint, pyright, mypy] repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.3.0...
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.3.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.13...v0.3.0) - [github.com/jendrikseipp/vulture: v2.10 → v2.11](https://github.com/jendrikseipp/vulture/compare/v2.10...v2.11) - [github.com/pylint-dev/pylint: v3.0.1 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57725
2024-03-04T16:49:11Z
2024-03-07T22:57:32Z
null
2024-03-07T22:57:36Z
update from 2022 to 2024 image
diff --git a/.circleci/config.yml b/.circleci/config.yml index 90afb1ce29684..ea93575ac9430 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 jobs: test-arm: machine: - image: ubuntu-2004:2022.04.1 + image: default resource_class: arm.large envi...
- [x] closes #57719 - [ ] 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.
https://api.github.com/repos/pandas-dev/pandas/pulls/57721
2024-03-04T13:29:47Z
2024-03-04T21:44:35Z
2024-03-04T21:44:35Z
2024-03-29T07:59:02Z
DOC: Remove references to `bfill`, `ffill`, `pad`, and `backfill` in `limit_direction`
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 4a5feb92c02f9..4c87af9ff14c7 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -819,20 +819,6 @@ def interpolate( limit_direction : {{'forward', 'backward', 'both'}}, Optional Consecutive NaNs will be filled i...
Picked up issue #57092. This removes references to `bfill`, `ffill`, `pad`, `backfill` from `limit_direction` as they aren't supported. Also references `bfill` and `ffill` in the "See Also" section. Up to date with latest commit. - [X] closes #57092 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/57720
2024-03-04T13:23:07Z
2024-03-05T02:50:35Z
2024-03-05T02:50:35Z
2024-03-05T02:50:41Z
CLN: remove references to `is_anchored` from ci/code_checks.sh
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 998e48d96d6b3..5bbad800b7aa9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -173,14 +173,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Timestamp.tzinfo\ pandas.Timestamp.value\ pandas.Timestamp.year\ - ...
xref# #57473 removed references to removed method `is_anchored` from `ci/code_checks.sh`
https://api.github.com/repos/pandas-dev/pandas/pulls/57715
2024-03-03T22:29:12Z
2024-03-04T18:25:51Z
2024-03-04T18:25:51Z
2024-03-04T18:25:52Z
#48188 FIX: iloc works with namedtuple
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index c7a938dbc4449..356eaf74c759f 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1734,6 +1734,9 @@ def _getitem_axis(self, key, axis: AxisInt): if isinstance(key, list): key = np.asarray(key) + if type...
- unit test for added for test_iloc.py that verifies that all four uses of iloc given in the reproducible example now works - [x] closes #48188 - [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
https://api.github.com/repos/pandas-dev/pandas/pulls/57714
2024-03-03T16:55:55Z
2024-03-04T20:10:21Z
null
2024-03-04T20:10:21Z
BUG: Line plots aligned from start #57594
diff --git a/pandas/plotting/_matplotlib/timeseries.py b/pandas/plotting/_matplotlib/timeseries.py index d4587a6ccf90a..da395197737b7 100644 --- a/pandas/plotting/_matplotlib/timeseries.py +++ b/pandas/plotting/_matplotlib/timeseries.py @@ -310,7 +310,7 @@ def maybe_convert_index(ax: Axes, data: NDFrameT) -> NDFrameT: ...
#57594 BUG: df.plot makes a shift to the right if frequency multiplies to n > 1 The cause of this bug is that by default all elements are generated to align to the end of a period instead of at the start and the period technically does not end at the start of the last period but rather just before the period subse...
https://api.github.com/repos/pandas-dev/pandas/pulls/57713
2024-03-03T15:34:23Z
2024-04-15T17:24:18Z
null
2024-04-15T17:24:19Z
TST: Add test for `grouby` after `dropna` agg `nunique` and `unique`
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index d02e22c29159f..686279f25939a 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2945,3 +2945,23 @@ def test_decimal_na_sort(test_series): result = gb._grouper.result_index ...
- [x] closes #42016 (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/57711
2024-03-03T02:43:59Z
2024-03-05T00:47:10Z
2024-03-05T00:47:10Z
2024-03-05T01:09:48Z
REF: Remove dynamic docstrings from option methods
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 8ad1da732a449..9decc7eecf033 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -50,17 +50,12 @@ from __future__ import annotations -from contextlib import ( - ContextDecorator, - contextmanager, -) -from inspect impo...
xref https://github.com/pandas-dev/pandas/issues/57578#issuecomment-1960937283 These methods have complex docstrings in an attempt to display all option within the docstring. This makes these docstrings hard to automatically validate and [renders the internal implementation](https://pandas.pydata.org/pandas-docs/sta...
https://api.github.com/repos/pandas-dev/pandas/pulls/57710
2024-03-02T23:09:36Z
2024-03-06T22:00:53Z
2024-03-06T22:00:52Z
2024-03-06T22:00:56Z
REF: Avoid importing xlrd
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 8a287beac7afd..c38ced573531e 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -43,6 +43,7 @@ from pandas.core.dtypes.common import ( is_bool, + is_file_like, is_float, is_integer, is_list_like, @@ -15...
- [x] closes #56692 (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/57708
2024-03-02T20:12:22Z
2024-03-05T00:29:17Z
2024-03-05T00:29:17Z
2024-03-05T00:32:15Z
Backport PR #57668 on branch 2.2.x (CLN: More numpy 2 stuff)
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 74ca8ead3d936..fa91db5fe34e3 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -74,7 +74,6 @@ typedef struct __NpyArrContex...
Backport PR #57668: CLN: More numpy 2 stuff
https://api.github.com/repos/pandas-dev/pandas/pulls/57707
2024-03-02T19:52:37Z
2024-03-03T12:54:00Z
2024-03-03T12:54:00Z
2024-03-03T12:54:00Z
Cython guard against [c|m|re]alloc failures
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index e70ac26a2c28e..e2e93c5242b24 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -180,6 +180,8 @@ def is_lexsorted(list_of_arrays: list) -> bool: n = len(list_of_arrays[0]) cdef int64_t **vecs = <int64_t**>malloc(nlevels * si...
Not sure if these are testable but in the case of the system being exhausted for resources these should explicitly throw a MemoryError instead of allow undefined behavior @MarcoGorelli don't know how difficult it would be but would be cool to have the cython linter catch uses of any low-level allocation function and...
https://api.github.com/repos/pandas-dev/pandas/pulls/57705
2024-03-02T17:42:22Z
2024-03-20T17:00:00Z
2024-03-20T17:00:00Z
2024-03-21T23:20:55Z
CLN: Hashtable rename struct members
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index 22b923580c491..29ace4a339ced 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -174,7 +174,7 @@ cdef class StringHashTable(HashTable): cdef struct Int64VectorData: int64_t *data - Py_ssize_t n, m + Py_ssiz...
Should help with readability
https://api.github.com/repos/pandas-dev/pandas/pulls/57704
2024-03-02T17:34:06Z
2024-03-20T17:48:17Z
2024-03-20T17:48:17Z
2024-03-20T17:52:49Z
Nanosecond fixed precision of DatetimeIndex with time zone information, Fix #53473
diff --git a/pandas/_libs/src/datetime/pd_datetime.c b/pandas/_libs/src/datetime/pd_datetime.c index 19de51be6e1b2..1a45c6883fa9d 100644 --- a/pandas/_libs/src/datetime/pd_datetime.c +++ b/pandas/_libs/src/datetime/pd_datetime.c @@ -71,7 +71,9 @@ static int convert_pydatetime_to_datetimestruct(PyObject *dtobj, out->...
The expected behaviour is now correct from issue #53473 The out->picoseond value wasn't set which ended with a Json error regarding the ns calculations. - [x] closes #53473 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57703
2024-03-02T16:45:54Z
2024-04-15T17:25:25Z
null
2024-04-15T17:25:26Z
Less Heap Usage in Hashtable
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index eaec9e8462450..22b923580c491 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -180,7 +180,7 @@ cdef class Vector: cdef bint external_view_exists cdef class Int64Vector(Vector): - cdef Int64VectorData *data +...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57701
2024-03-01T22:43:53Z
2024-03-05T00:45:30Z
2024-03-05T00:45:30Z
2024-03-12T02:31:20Z
DEPR: remove deprecated freqs/abbrevs 'A', 'A-DEC', 'A-JAN', etc.
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 0f0e6271d8329..0f38d90e18616 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1327,8 +1327,8 @@ frequencies. We will refer to these aliases as *period aliases*. .. deprecated...
xref #55252 remove deprecated string 'A', 'A-DEC', etc. denoting timedelta abbreviations and timeseries frequencies
https://api.github.com/repos/pandas-dev/pandas/pulls/57699
2024-03-01T22:26:56Z
2024-03-08T18:30:25Z
2024-03-08T18:30:25Z
2024-03-08T18:30:33Z
BUG: Fix empty MultiIndex DataFrame xlsx export
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a95f0485abd5f..6b412f5427811 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -324,6 +324,7 @@ MultiIndex I/O ^^^ +- Bug in :meth:`DataFrame.to_excel` when writing empty :class:`DataFrame` with :cla...
Fix Excel xlsx export of empty (zero rows) DataFrame with MultiIndex on both axes. - [x] closes #57696 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/57697
2024-03-01T19:46:53Z
2024-03-02T12:04:19Z
2024-03-02T12:04:19Z
2024-03-02T12:37:32Z
Use memcpy / realloc more effectively in hashtable
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index 29ace4a339ced..a5a3edad63403 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -183,7 +183,7 @@ cdef class Int64Vector(Vector): cdef Int64VectorData data cdef ndarray ao - cdef resize(self) + cdef resi...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57695
2024-03-01T18:25:14Z
2024-03-21T18:29:27Z
2024-03-21T18:29:27Z
2024-03-21T18:29:30Z
Backport PR #57689 on branch 2.2.x (CI: fix ci (calamine typing))
diff --git a/pandas/io/excel/_calamine.py b/pandas/io/excel/_calamine.py index 4f65acf1aa40e..5259469f7a569 100644 --- a/pandas/io/excel/_calamine.py +++ b/pandas/io/excel/_calamine.py @@ -74,9 +74,7 @@ def load_workbook( ) -> CalamineWorkbook: from python_calamine import load_workbook - return l...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/57692
2024-03-01T13:47:28Z
2024-03-01T15:36:48Z
2024-03-01T15:36:48Z
2024-03-01T15:36:48Z
CI: fix ci (calamine typing)
diff --git a/pandas/io/excel/_calamine.py b/pandas/io/excel/_calamine.py index 1f721c65982d4..b8994e679d4b1 100644 --- a/pandas/io/excel/_calamine.py +++ b/pandas/io/excel/_calamine.py @@ -75,7 +75,7 @@ def load_workbook( from python_calamine import load_workbook return load_workbook( - f...
- [ ] 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/57689
2024-03-01T12:14:35Z
2024-03-01T13:42:31Z
2024-03-01T13:42:31Z
2024-03-01T13:47:52Z
BUG: datetime parsing fails on a leapday
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index ad723df485ba6..435f323ce14aa 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -938,6 +938,8 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None: # same default used 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/57685
2024-02-29T22:11:43Z
2024-02-29T23:25:31Z
null
2024-03-01T22:10:33Z
CLN: Enforce deprecation of axis=None in DataFrame reductions
diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py index 89bda81ccf08c..8913293dfa20e 100644 --- a/asv_bench/benchmarks/stat_ops.py +++ b/asv_bench/benchmarks/stat_ops.py @@ -33,6 +33,7 @@ def setup(self, op, axis): ("median", 1), ("median", None), ...
- [ ] 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/57684
2024-02-29T21:28:18Z
2024-03-05T23:04:38Z
2024-03-05T23:04:38Z
2024-03-05T23:09:23Z
wip Remove docstring substitutions
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f530466c0fc30..f8d25fdc6b80f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -187,11 +187,7 @@ console, format as fmt, ) -from pandas.io.formats.info import ( - INFO_DOCSTRING, - DataFrameInfo, - frame_sub_kwargs, -) +fro...
- [ ] 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/57683
2024-02-29T18:37:31Z
2024-03-31T18:38:34Z
null
2024-03-31T18:38:34Z
BUG: Subtraction fails with matching index of different name and type (pandas-dev#57524)
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 0f125af599b12..7b70e9cc54ea9 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -268,6 +268,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.to_string` that raised ``StopIteration`` with nested DataFrames....
- [x] closes #57524 - [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/57680
2024-02-29T15:24:23Z
2024-03-20T17:30:53Z
null
2024-03-20T17:30:54Z
BUG: pd.unique(Index) now returns Index as Index.unique
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 9812521fe2767..cc8f26bf95a2f 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -390,6 +390,7 @@ Other ^^^^^ - Bug in :class:`DataFrame` when passing a ``dict`` with a NA scalar and ``columns`` that wou...
Some old tests are adjusted for consistency. - [x] closes #57043(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://p...
https://api.github.com/repos/pandas-dev/pandas/pulls/57679
2024-02-29T14:49:53Z
2024-03-12T17:26:38Z
2024-03-12T17:26:38Z
2024-03-13T03:58:37Z
DOC: Extended the documentation for `DataFrame.sort_values()`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f530466c0fc30..b64aaf8537ad9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6819,7 +6819,9 @@ def sort_values( 4 D 7 2 e 5 C 4 3 F - Sort by col1 + **Sort by a single column** +...
The current docstring for [`DataFrame.sort_values()`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_values.html) is lacking clarity, and also contains links that are not converted to hyperlinks. I extended and rephrased part of the documentation for this method. In particular: - Added further ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/57678
2024-02-29T12:11:25Z
2024-03-05T20:50:32Z
2024-03-05T20:50:32Z
2024-03-05T20:50:40Z
DOC: Extended the documentation for `DataFrame.sort_values()`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f530466c0fc30..5abe2a2720ef6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6819,7 +6819,9 @@ def sort_values( 4 D 7 2 e 5 C 4 3 F - Sort by col1 + **Sort by a single column** +...
The current docstring for [`DataFrame.sort_values()`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_values.html) is lacking clarity, and also contains links that are not converted to hyperlinks. I extended and rephrased part of the documentation for this method. In particular: - Added further ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/57677
2024-02-29T10:36:50Z
2024-02-29T10:59:54Z
null
2024-02-29T10:59:54Z
WEB: Remove unmaintained projects from Ecosystem
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 58c5da67bcd74..715a2fafbe87a 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -21,10 +21,6 @@ please let us know. ## Statistics and machine learning -### [pandas-tfrecords](https://pypi...
Lots of projects in our Ecosystem page seem to be obsolete and irrelevant now. There are few more that could probably be removed to help users find the relevant ones faster and easier, but I'm just removing the ones that didn't have any commit for at least two years.
https://api.github.com/repos/pandas-dev/pandas/pulls/57675
2024-02-29T09:51:32Z
2024-03-05T00:53:52Z
2024-03-05T00:53:52Z
2024-03-05T00:53:59Z
CI: avoid `guess_datetime_format` failure on 29th of Feburary
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index ad723df485ba6..94c549cbd3db0 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -936,8 +936,10 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None: datetime_attrs_to_...
- [ ] closes #57672 (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/57674
2024-02-29T09:19:22Z
2024-03-05T20:14:53Z
2024-03-05T20:14:53Z
2024-03-05T20:15:00Z
CLN: Enforce deprecation of pinning name in SeriesGroupBy.agg
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a95f0485abd5f..d16d3fa85bc1b 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -191,6 +191,7 @@ Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :func:`read...
- [ ] 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/57671
2024-02-29T04:24:12Z
2024-03-05T00:40:27Z
2024-03-05T00:40:27Z
2024-03-05T00:46:31Z
DOC: Update drop duplicates documentation to specify method limitation
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f530466c0fc30..da354cbfc80dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6506,6 +6506,11 @@ def drop_duplicates( DataFrame or None DataFrame with duplicates removed or None if ``inplace=True``. + Notes + ...
- [x] closes #56784
https://api.github.com/repos/pandas-dev/pandas/pulls/57670
2024-02-29T03:11:19Z
2024-03-05T00:55:24Z
2024-03-05T00:55:24Z
2024-03-05T01:45:57Z
CLN: More numpy 2 stuff
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 74ca8ead3d936..fa91db5fe34e3 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -74,7 +74,6 @@ typedef struct __NpyArrContex...
- [ ] 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/57668
2024-02-28T23:30:02Z
2024-03-02T19:52:12Z
2024-03-02T19:52:12Z
2024-03-02T19:52:13Z
ENH: Report how far off the formatting is
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6fa23ef94d200..8a287beac7afd 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1327,7 +1327,8 @@ def _value_with_fmt( # xref https://support.microsoft.com/en-au/office/excel-specifications-and-limits-1672b34d-7043...
- [ ] 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/57667
2024-02-28T20:34:52Z
2024-02-28T22:21:32Z
2024-02-28T22:21:32Z
2024-02-28T22:56:28Z
BUG: interchange protocol with nullable datatypes a non-null validity
diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst index 058f7aebcd538..96f210ce6b7b9 100644 --- a/doc/source/whatsnew/v2.2.2.rst +++ b/doc/source/whatsnew/v2.2.2.rst @@ -13,6 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- :meth:`DataFrame.__dataframe__...
- [ ] closes #57643 (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/57665
2024-02-28T19:56:04Z
2024-03-07T19:55:05Z
2024-03-07T19:55:05Z
2024-04-10T12:07:45Z
FIX: fix default argument of duplicated
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f530466c0fc30..cd20307214726 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6572,7 +6572,7 @@ def drop_duplicates( def duplicated( self, subset: Hashable | Sequence[Hashable] | None = None, - keep: DropKeep = ...
`df.duplicated(keep=False)` Should have default `keep` parameter as `False` It's proper result for `df.duplicated()` to show all duplicates. - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase...
https://api.github.com/repos/pandas-dev/pandas/pulls/57658
2024-02-28T04:10:02Z
2024-02-28T04:17:38Z
null
2024-02-28T04:17:38Z
Fixing bug_ 57596
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index c7a938dbc4449..ae58e9b52012e 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1490,6 +1490,11 @@ def _convert_to_indexer(self, key, axis: AxisInt): # if we are a label return me try: + i...
- [x] closes #57596 - [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/57657
2024-02-28T03:26:37Z
2024-03-18T01:28:23Z
null
2024-03-18T01:28:24Z
CLN: Enforce deprecation of using alias for builtin/NumPy funcs (#57444)
diff --git a/scripts/handle_outliers.py b/scripts/handle_outliers.py new file mode 100644 index 0000000000000..7b945a6ddf327 --- /dev/null +++ b/scripts/handle_outliers.py @@ -0,0 +1,30 @@ +import pandas as pd +import numpy as np + + +""" +Detect and handle outliers in a DataFrame. + +Parameters: + data: DataFrame +...
* CLN: Enforce deprecation of using alias for builtin/NumPy funcs * GH# and whatsnew * Fixup docs * More tests * Restore docstring * Test fixes * Test fixups * Test fixes * Test fixup * Test fixes - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](...
https://api.github.com/repos/pandas-dev/pandas/pulls/57655
2024-02-27T23:51:12Z
2024-02-28T17:32:32Z
null
2024-02-28T17:32:33Z
REF: simplify pytables _set_tz
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index c7ee1cac2e14a..c835a7365d158 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -21,7 +21,6 @@ Final, Literal, cast, - overload, ) import warnings @@ -85,6 +84,7 @@ DatetimeArray, PeriodArray, ) +from pandas...
yak-shaving aimed at pieces of the Ice Cream Agreement.
https://api.github.com/repos/pandas-dev/pandas/pulls/57654
2024-02-27T23:01:49Z
2024-02-28T00:25:21Z
2024-02-28T00:25:21Z
2024-02-28T00:39:40Z
CLN: unify error message when parsing datetimes with mixed time zones with utc=False
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index a09f4321c0d3c..d320bfdbe3022 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -598,7 +598,8 @@ cpdef array_to_datetime( is_same_offsets = len(out_tzoffset_vals) == 1 if not is_same_offsets: raise ValueEr...
xref #57275, #55793 unified ValueError message when parsing datetimes with mixed time zones with utc=False so far we get two different ValueError messages: ``` import pandas as pd from datetime import datetime import pytz str_my ="2020-10-26 00:00:00+06:00" ts = pd.Timestamp("2018-01-01", tz="US/Pacific") ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57653
2024-02-27T22:18:28Z
2024-02-28T16:42:10Z
2024-02-28T16:42:10Z
2024-02-28T16:42:18Z
TST: fix test_complibs on mac
diff --git a/pandas/tests/io/pytables/test_file_handling.py b/pandas/tests/io/pytables/test_file_handling.py index ed5f8cde7db7b..d8f38e9cdad1f 100644 --- a/pandas/tests/io/pytables/test_file_handling.py +++ b/pandas/tests/io/pytables/test_file_handling.py @@ -8,6 +8,7 @@ is_ci_environment, is_platform_linux,...
- [ ] 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/57652
2024-02-27T22:03:16Z
2024-02-27T23:24:40Z
2024-02-27T23:24:40Z
2024-02-28T00:40:01Z
PERF: Return RangeIndex from RangeIndex.join when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a95f0485abd5f..fa148a2f4a4d8 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -253,6 +253,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/57651
2024-02-27T20:08:44Z
2024-03-05T00:57:57Z
2024-03-05T00:57:57Z
2024-03-05T00:58:01Z
DOC: RT03 fix for read_sql_query, read_feather
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 322942acb429c..c6e8ac43fdc8c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -878,11 +878,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.plotting.parallel_coordinates\ pandas.plotting.radviz\ pandas.plottin...
- [x] xref #57416 (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/57649
2024-02-27T18:09:11Z
2024-02-28T16:41:09Z
2024-02-28T16:41:08Z
2024-02-28T16:41:16Z
DOC: Add clarification to groupby docs regarding hashes and equality
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 787a03471cf6e..06621f7127da3 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -178,6 +178,12 @@ <https://pandas.pydata.org/pandas-docs/stable/groupby.html>`__ for more detailed usage and examples, including splitting...
closes #57526
https://api.github.com/repos/pandas-dev/pandas/pulls/57648
2024-02-27T18:03:37Z
2024-03-06T21:48:04Z
2024-03-06T21:48:04Z
2024-03-06T21:48:13Z
PERF: Return RangeIndex from RangeIndex.reindex when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index fae7edba057ec..23ae0f3ea1bc7 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -256,6 +256,7 @@ Performance improvements - Performance improvement in :meth:`RangeIndex.__getitem__` with a boolean mask r...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57647
2024-02-27T17:33:32Z
2024-03-05T23:03:34Z
2024-03-05T23:03:34Z
2024-03-05T23:03:36Z
BUG: Change output returned by _LocIndexer._convert_to_indexer to return key with greater resolution value
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 310dd921e44f6..ce2c54668ed61 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -62,6 +62,7 @@ Bug fixes - Fixed bug in :func:`pandas.api.interchange.from_dataframe` which wasn't converting columns names...
Resolution info: **Resolution.RESO_SEC - 3 for seconds** **Resolution.RESO_MIN - 4 for minute** Observation: With the previous code, when the current entry (**resolution: 4, entry: '2024-02-24 10:08'**) has a greater resolution value than the smallest amongst previous entries (in this case **resolution: 3, entr...
https://api.github.com/repos/pandas-dev/pandas/pulls/57646
2024-02-27T15:59:38Z
2024-03-20T17:24:38Z
null
2024-03-20T17:24:38Z
Create median_absolute_deviation
diff --git a/median_absolute_deviation b/median_absolute_deviation new file mode 100644 index 0000000000000..a3a456f55877d --- /dev/null +++ b/median_absolute_deviation @@ -0,0 +1,14 @@ +#MedianAbsoluteDeviation(MAD) + +def mad(self): + """ + Calculates the median absolute deviation of each column in the DataFrame. +...
- [ ] 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/57639
2024-02-27T06:01:55Z
2024-02-27T15:28:09Z
null
2024-02-27T15:28:39Z
DOC: RT03 fix for read_sql method
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 875e328110aaf..9d773ade8cd8d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1092,7 +1092,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.read_orc\ pandas.read_sas\ pandas.read_spss\ - pandas.read_sq...
- [x] xref #57416 (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/57638
2024-02-27T04:23:06Z
2024-02-27T17:00:30Z
2024-02-27T17:00:30Z
2024-02-27T17:03:12Z
BUG: Fix dataframe.update not updating dtype #55509 v2
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index a95f0485abd5f..6cba1806d3274 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -265,6 +265,7 @@ Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`DataFrame.join` inconsistently setting result index name (:issu...
- [x] closes #55509. - [x] 3 Tests added and passed. - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in the latest `doc/source/whatsnew/v3.0.rst`. (?) A new PR was opened to replace the previous one (#55634) because...
https://api.github.com/repos/pandas-dev/pandas/pulls/57637
2024-02-27T02:56:34Z
2024-03-02T18:57:28Z
2024-03-02T18:57:28Z
2024-03-05T11:57:44Z
Support structural subtyping with ExtensionArray
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 8bb051b6228ce..7d158706d7433 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -28,6 +28,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :class:`ExtensionArray` now supports the structural...
- [X] closes #57633 This is a very naive implementation. Ideally we would move a lot of the extraneous functions / attributes out of the core `ExtensionArray` class and into a better home
https://api.github.com/repos/pandas-dev/pandas/pulls/57634
2024-02-26T20:21:56Z
2024-03-19T20:04:51Z
null
2024-03-19T20:04:51Z
Compile take functions for uint dtypes
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index caf5425dfc7b4..0a6be851e1efd 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -165,6 +165,15 @@ def take_1d_int32_float64( def take_1d_int64_int64( values: np.ndarray, indexer: npt.NDArray[np.intp], out: np.ndarray, fill_value=....
Not sure why this wasn't compiled before, maybe because of wheel size? We should at least compile the exact matching, not averse to skipping the cross product with different itemsizes
https://api.github.com/repos/pandas-dev/pandas/pulls/57632
2024-02-26T18:18:13Z
2024-03-16T17:47:44Z
2024-03-16T17:47:43Z
2024-03-16T23:38:34Z
DOC: fix PR01/SA01 errors for pandas.tseries.offsets.*.is_(month|quarter|year)_(end|start)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 875e328110aaf..b4a03eaae2aef 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -506,217 +506,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.melt\ pandas.option_context\ pandas.read_fwf\ - pandas.reset_...
- [x] xref #57438 (Replace xxxx with the GitHub issue number) - [x] xref #57417 (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 pas...
https://api.github.com/repos/pandas-dev/pandas/pulls/57630
2024-02-26T15:14:39Z
2024-02-27T16:54:13Z
2024-02-27T16:54:13Z
2024-02-28T04:34:41Z
BUG: Unexpected behaviour when inserting timestamps into Series #57596
diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index b4778b74df335..4a9fe04a8f5f9 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -20,11 +20,6 @@ runs: path: test-data.xml if: failure() - - name: Report Covera...
Resolution info: **Resolution.RESO_SEC - 3 for seconds** **Resolution.RESO_MIN - 4 for minute** Observation: With the previous code, when the current entry (**resolution: 4, entry: '2024-02-24 10:08'**) has a greater resolution value than the smallest amongst previous entries (in this case **resolution: 3, entr...
https://api.github.com/repos/pandas-dev/pandas/pulls/57628
2024-02-26T00:25:00Z
2024-02-27T14:41:58Z
null
2024-02-27T14:41:58Z
DEPR: remove deprecated units ‘H’, ’T’, and smaller from Timedelta, TimedeltaIndex
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index 8e1deb99a66a4..06f488f7baaaf 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -183,7 +183,7 @@ def setup(self): self.dt_ts = Series(5, rng3, dtype="datetime64[ns]") def t...
xref #54061 removed deprecated units `"H", "T", "S", "t", "L", "l", "U", "u", "N", "n"` from Timedelta, TimedeltaIndex UPDATE: - Enforced deprecation of strings ``T, t``, ``L, l``, ``U, u``, and ``N, n`` denoting frequencies in classes`Minute`, `Milli` `Micro`, and `Nano` - Enforced deprecation of strings ``T, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57627
2024-02-25T22:55:17Z
2024-03-21T19:17:20Z
2024-03-21T19:17:20Z
2024-03-21T21:02:04Z
BUG: Unexpected behaviour when inserting timestamps into Series (#57596)
diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index b4778b74df335..4a9fe04a8f5f9 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -20,11 +20,6 @@ runs: path: test-data.xml if: failure() - - name: Report Covera...
…Series #57596 - [x] closes #57596 - [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#p...
https://api.github.com/repos/pandas-dev/pandas/pulls/57626
2024-02-25T22:17:11Z
2024-02-26T00:08:30Z
null
2024-02-26T00:08:30Z
remove check to enforce ES01 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..d8c3690632283 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -414,1048 +414,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.tseries.offsets.YearEnd.rule_code # There should be no backslash in the final line, p...
- [x] closes https://github.com/pandas-dev/pandas/issues/57440 - [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/57625
2024-02-25T22:04:10Z
2024-02-26T17:56:33Z
2024-02-26T17:56:33Z
2024-02-26T18:19:29Z
Remove inline from khash_python
diff --git a/pandas/_libs/include/pandas/vendored/klib/khash_python.h b/pandas/_libs/include/pandas/vendored/klib/khash_python.h index 8bb3f84369b0b..811fdd139de2c 100644 --- a/pandas/_libs/include/pandas/vendored/klib/khash_python.h +++ b/pandas/_libs/include/pandas/vendored/klib/khash_python.h @@ -16,7 +16,7 @@ typed...
@DeaMariaLeon noted that #57575 caused a slight regression in the benchmarks. This is the only thing from that PR that could reasonably affect performance in any way
https://api.github.com/repos/pandas-dev/pandas/pulls/57618
2024-02-25T15:33:34Z
2024-02-26T11:32:24Z
2024-02-26T11:32:24Z
2024-02-26T15:59:41Z
Doc: resolve GL08 for pandas.Timedelta.microseconds, unit & value
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 231d40e17c0c0..a8d1c9d8df056 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -165,9 +165,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.dt.qyear\ pandas.Series.dt.unit\ pandas.Series.empty\ - ...
- [x] xref #57443 - [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/57616
2024-02-25T09:54:14Z
2024-02-28T17:34:29Z
2024-02-28T17:34:29Z
2024-02-28T17:34:36Z
Doc: fixing RT03 errors for pandas.DataFrame.expanding
diff --git a/pandas/core/window/expanding.py b/pandas/core/window/expanding.py index c3ee53c1b4551..abe853a8aa259 100644 --- a/pandas/core/window/expanding.py +++ b/pandas/core/window/expanding.py @@ -51,6 +51,9 @@ class Expanding(RollingAndExpandingMixin): """ Provide expanding window calculations. + An...
All RT03 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.expanding - [x] xref https://github.com/pandas-dev/pandas/issues/57416 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html...
https://api.github.com/repos/pandas-dev/pandas/pulls/57615
2024-02-25T09:31:13Z
2024-02-26T23:05:05Z
2024-02-26T23:05:05Z
2024-03-10T20:00:29Z
DOC: Add `DataFrame.isetitem` method
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index 31a1c6008bce8..7680c8b434866 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -74,6 +74,7 @@ Indexing, iteration DataFrame.where DataFrame.mask DataFrame.query + DataFrame.isetitem For ...
- [x] closes #57602 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/57614
2024-02-25T09:10:37Z
2024-02-27T16:52:07Z
2024-02-27T16:52:07Z
2024-02-28T03:23:23Z
fix SA01 error for pandas.ArrowDtype
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..7f5f2f2d406fc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -2152,7 +2152,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (SA01)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
All SA01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.ArrowDtype - [x] xref https://github.com/pandas-dev/pandas/issues/57417 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-...
https://api.github.com/repos/pandas-dev/pandas/pulls/57613
2024-02-25T08:46:35Z
2024-02-26T18:11:03Z
2024-02-26T18:11:03Z
2024-02-26T18:23:47Z
Doc: Fix PR07 errors for pandas.DataFrame.align
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..bbfe67e2ae94c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1766,7 +1766,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR07)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
All PR07 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DataFrame.align - [x] xref https://github.com/pandas-dev/pandas/issues/57420 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#wri...
https://api.github.com/repos/pandas-dev/pandas/pulls/57612
2024-02-25T08:14:36Z
2024-02-26T18:14:28Z
2024-02-26T18:14:28Z
2024-02-26T18:24:32Z
Doc: fix PR01 docstring errors for pandas.CategoricalIndex.equals and pandas.CategoricalIndex.map
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6de0a8c2ca325..e8e5056694f88 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -415,8 +415,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR01)' ; echo $MSG $BASE_DIR/scripts/validate_docstring...
All PR01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.CategoricalIndex.equals 2. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.CategoricalIndex.map - [x] xref https://github.com/pandas-dev/pandas/issues/57438 - [x] [Tests ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57611
2024-02-25T07:50:42Z
2024-02-26T23:05:32Z
2024-02-26T23:05:32Z
2024-03-11T00:19:59Z
Doc: fix ES01 for pandas.CategoricalDtype
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..e6c47250afaa4 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -423,7 +423,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Categorical.ordered\ pandas.Categorical.remove_unused_categories\ pand...
All ES01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.CategoricalDtype - [x] xref #57440 - [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 n...
https://api.github.com/repos/pandas-dev/pandas/pulls/57610
2024-02-25T07:24:48Z
2024-02-26T17:59:11Z
null
2024-02-26T18:23:35Z
Doc: resolve GL08 for pandas.core.groupby.SeriesGroupBy.value_counts
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6de0a8c2ca325..22c3a71812de7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -178,7 +178,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Timestamp.tzinfo\ pandas.Timestamp.value\ pandas.Timestamp.year\ - ...
All GL08 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.core.groupby.SeriesGroupBy.value_counts - [x] xref https://github.com/pandas-dev/pandas/issues/57443 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contri...
https://api.github.com/repos/pandas-dev/pandas/pulls/57609
2024-02-25T06:31:48Z
2024-02-26T22:34:41Z
2024-02-26T22:34:41Z
2024-02-26T22:34:49Z
TYP: misc annotations
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3253f9ab87363..e683fc50c1c5d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -127,7 +127,7 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@1....
to pass more of the pandas-stubs tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/57606
2024-02-25T01:44:07Z
2024-02-26T18:28:44Z
2024-02-26T18:28:44Z
2024-04-07T10:59:14Z
DOC: fix RT03 for CategoricalIndex.set_categories, DataFrame.astype, DataFrame.at_time and DataFrame.ewm
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..e60e6cec9d89a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1882,10 +1882,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (RT03)' ; echo $MSG $BASE_DIR/scripts/validate_docstr...
Resolve all RT03 errors for the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.CategoricalIndex.set_categories (already valid) 2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.astype 3. scripts/validate_docstrings.py --format=actions --erro...
https://api.github.com/repos/pandas-dev/pandas/pulls/57605
2024-02-24T23:49:36Z
2024-02-26T18:29:43Z
2024-02-26T18:29:43Z
2024-02-26T18:29:49Z
DOC: ES01 fix for HDFS Methods
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..25bb691caed71 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -521,10 +521,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.year\ pandas.DatetimeTZDtype.tz\ pandas.DatetimeTZDtype...
All ES01 Errors resolved in the following cases: scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.HDFStore.put scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.HDFStore.get scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.HDFStore.info scripts/validat...
https://api.github.com/repos/pandas-dev/pandas/pulls/57604
2024-02-24T19:30:39Z
2024-02-26T17:58:50Z
null
2024-02-28T05:20:24Z
DOC: fix RT03 for pandas.Index.to_numpy and pandas.Categorial.set_categories
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f1e7f6d477906..47a2cf93a4f89 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1882,8 +1882,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (RT03)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
Resolve all errors for the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.Index.to_numpy 2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.Categorical.set_categories Also fixes typos and wrong default value in docstring of pandas.Categorical.set_cat...
https://api.github.com/repos/pandas-dev/pandas/pulls/57603
2024-02-24T16:48:03Z
2024-02-24T18:34:28Z
2024-02-24T18:34:28Z
2024-02-24T23:16:57Z
DOC: Fixing GL08 errors for pandas.ExcelFile.sheet_names and pandas.MultiIndex.codes
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 875e328110aaf..4a9e18fb33eaa 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -145,7 +145,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (GL08)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
Resolved GL08 errors for the following: 1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.ExcelFile.sheet_names 2. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.MultiIndex.codes Ref: #57443 - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tes...
https://api.github.com/repos/pandas-dev/pandas/pulls/57601
2024-02-24T14:19:18Z
2024-02-27T22:10:03Z
2024-02-27T22:10:03Z
2024-02-28T03:45:10Z
DOC: Whatsnew notable bugfix on groupby behavior with unobserved groups
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 1f9f5e85a6c4b..da03c8f50086a 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -43,10 +43,63 @@ Notable bug fixes These are bug fixes that might have notable behavior changes. -.. _whatsnew_300.nota...
- [ ] 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/57600
2024-02-24T13:02:58Z
2024-02-26T18:31:47Z
2024-02-26T18:31:47Z
2024-02-27T08:43:05Z
REF: Move compute to BinGrouper.result_index_and_ids
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 46ef0f38706bc..738b4970b0924 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -1113,23 +1113,7 @@ def indices(self): @cache_readonly def group_info(self) -> tuple[npt.NDArray[np.intp], int]: - ngroup...
- [ ] 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/57599
2024-02-24T11:59:24Z
2024-02-24T18:29:05Z
2024-02-24T18:29:05Z
2024-02-24T20:45:53Z
CLN: Use group_info less
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index c90ae4d590b45..3011fa235b22d 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -813,7 +813,7 @@ def value_counts( from pandas.core.reshape.merge import get_join_indexers from pandas.cor...
- [ ] 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/57598
2024-02-24T11:47:58Z
2024-02-24T18:27:37Z
2024-02-24T18:27:37Z
2024-02-24T20:46:08Z
DOC: ES01 fix for to_csv method
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f1e7f6d477906..11257a49761ad 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -476,7 +476,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.sparse.from_spmatrix\ pandas.DataFrame.sparse.to_coo\ pandas...
All ES01 Errors resolved in the following cases: scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.DataFrame.to_csv - [x] xref #57440 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/57597
2024-02-24T11:26:06Z
2024-02-26T17:58:27Z
null
2024-02-26T17:58:28Z
PERF: groupby(...).__len__
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index d44824183f05f..35c88d544c985 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -178,6 +178,7 @@ Performance improvements - Performance improvement in :meth:`RangeIndex.take` returning a :class:`RangeInd...
- [ ] 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/57595
2024-02-23T23:21:07Z
2024-02-24T00:10:17Z
2024-02-24T00:10:17Z
2024-02-24T00:24:42Z
CLN: groupby.first/last unused compat
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 668c9863612d8..711ed1a564868 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3250,27 +3250,10 @@ def first( 1 5.0 1 3 6.0 3 """ - - def first_compat(obj: NDFrameT...
- [ ] 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/57589
2024-02-23T21:09:33Z
2024-02-23T21:54:30Z
null
2024-02-28T22:43:09Z
PERF: Return a RangeIndex from __getitem__ with a bool mask when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index d6e3ac1ea48cc..d07f4f9f05708 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -167,6 +167,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/57588
2024-02-23T20:08:34Z
2024-03-02T02:24:32Z
2024-03-02T02:24:32Z
2024-03-02T02:24:35Z
DOC-#57585: Add `Use Modin` section on `Scaling to large datasets` page
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index b262de5d71439..080f8484ce969 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -374,5 +374,33 @@ datasets. You see more dask examples at https://examples.dask.org. +Use Modin +--------- + +Modin...
- [x] closes #57585 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/57586
2024-02-23T14:55:27Z
2024-03-07T17:17:03Z
2024-03-07T17:17:03Z
2024-03-07T17:17:43Z
Backport PR #57582 on branch 2.2.x (DOC: Add contributors for 2.2.1)
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d9ab0452c8334..e015afb17dce5 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -946,4 +946,4 @@ Other Contributors ~~~~~~~~~~~~ -.. contributors:: v2.1.4..v2.2.0|HEAD +.. contributors:: v2.1.4..v2.2....
Backport PR #57582: DOC: Add contributors for 2.2.1
https://api.github.com/repos/pandas-dev/pandas/pulls/57583
2024-02-23T14:21:06Z
2024-02-23T14:48:32Z
2024-02-23T14:48:32Z
2024-02-23T14:48:32Z
DOC: Add contributors for 2.2.1
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 9d29044c27833..329ef2859f56f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -948,4 +948,4 @@ Other Contributors ~~~~~~~~~~~~ -.. contributors:: v2.1.4..v2.2.0|HEAD +.. contributors:: v2.1.4..v2.2....
- [ ] 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/57582
2024-02-23T13:48:36Z
2024-02-23T14:20:56Z
2024-02-23T14:20:56Z
2024-02-23T14:20:57Z
Updating timeseries.offset_aliases links to use :ref: format
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 668672ed05f72..0880e6730fd93 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8569,8 +8569,8 @@ def asfreq( Notes ----- - To learn more about the frequency strings, please see `this link - <https://p...
During code review on https://github.com/pandas-dev/pandas/pull/57562 it was suggested to update the links from this format `this link <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__. to this format :ref:`this link<timeseries.offset_aliases>` I found several plac...
https://api.github.com/repos/pandas-dev/pandas/pulls/57581
2024-02-23T07:47:20Z
2024-02-23T09:55:27Z
2024-02-23T09:55:27Z
2024-02-23T17:04:21Z
Backport PR #57576 on branch 2.2.x (DOC: Add release date for 2.2.1)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index fa5304c1c3b56..f4ed594613349 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -1,6 +1,6 @@ .. _whatsnew_221: -What's new in 2.2.1 (February XX, 2024) +What's new in 2.2.1 (February 22, 2024) -------...
Backport PR #57576: DOC: Add release date for 2.2.1
https://api.github.com/repos/pandas-dev/pandas/pulls/57579
2024-02-23T03:34:03Z
2024-02-23T04:47:35Z
2024-02-23T04:47:35Z
2024-02-23T04:47:35Z
DOC: Add release date for 2.2.1
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index fa5304c1c3b56..f4ed594613349 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -1,6 +1,6 @@ .. _whatsnew_221: -What's new in 2.2.1 (February XX, 2024) +What's new in 2.2.1 (February 22, 2024) -------...
- [ ] 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/57576
2024-02-23T02:51:14Z
2024-02-23T03:33:51Z
2024-02-23T03:33:51Z
2024-02-23T03:33:51Z
CLN: Assorted khash-python cleanups
diff --git a/pandas/_libs/include/pandas/vendored/klib/khash_python.h b/pandas/_libs/include/pandas/vendored/klib/khash_python.h index 5a933b45d9e21..8bb3f84369b0b 100644 --- a/pandas/_libs/include/pandas/vendored/klib/khash_python.h +++ b/pandas/_libs/include/pandas/vendored/klib/khash_python.h @@ -1,6 +1,9 @@ // Lic...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57575
2024-02-23T02:41:25Z
2024-02-23T17:09:33Z
2024-02-23T17:09:33Z
2024-02-23T17:20:54Z
CLN: Clean up unnecessary templating in hashtable
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index 26dcf0b6c4ce3..c4ed8a5ec30f9 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -82,18 +82,6 @@ cimported_types = ['complex64', 'uint64'...
khash already provides a macro for these which takes the type as the first argument - no need to import function names the way we do
https://api.github.com/repos/pandas-dev/pandas/pulls/57574
2024-02-23T02:00:18Z
2024-02-23T02:07:15Z
null
2024-02-23T02:07:16Z
Backport PR #57314 on branch 2.2.x (BUG: Fix near-minimum timestamp handling)
diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 35d64c99f2002..fa5304c1c3b56 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -21,6 +21,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed memory leak in :func:`read_csv` (:issue:`57039`) - Fixed perfo...
Backport PR #57314: BUG: Fix near-minimum timestamp handling
https://api.github.com/repos/pandas-dev/pandas/pulls/57573
2024-02-22T23:53:48Z
2024-02-23T00:38:10Z
2024-02-23T00:38:10Z
2024-02-23T00:38:10Z
TST: Clean contexts
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 62559c4232b51..39e279fd5c917 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -596,14 +596,15 @@ with the specific exception subcl...
* Replaced only use of `use_numexpr` * Created pytest native `temp_file` fixture for use over `tm.ensure_clean`
https://api.github.com/repos/pandas-dev/pandas/pulls/57571
2024-02-22T20:25:42Z
2024-02-24T18:36:06Z
2024-02-24T18:36:05Z
2024-02-24T18:36:09Z
BUG: Interchange object data buffer has the wrong dtype / from_dataframe incorrect
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 375c74f29e63a..3253f9ab87363 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,13 +53,11 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - - id: check-ast - id: check...
- [ ] closes #54781 (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/57570
2024-02-22T18:30:43Z
2024-02-23T17:12:43Z
2024-02-23T17:12:43Z
2024-02-23T17:12:56Z
Backport PR #57556 on branch 2.2.x (Remove PyArrow deprecation warning)
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 4c7aa1e1e49ee..8736674bbf965 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -92,10 +92,7 @@ jobs: - name: "Numpy Dev" env_file: actions-311-numpydev.yaml p...
#57556
https://api.github.com/repos/pandas-dev/pandas/pulls/57568
2024-02-22T17:45:49Z
2024-02-22T18:45:36Z
2024-02-22T18:45:36Z
2024-02-22T18:45:40Z
DEPS: update numexpr to use not buggy numexpr 2.8.x anymore (update to 2.9.0) - fix critical CVE-2023-39631⁠
diff --git a/pyproject.toml b/pyproject.toml index 82a9d72c8cc74..43cf1274dc380 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ matplotlib = "pandas:plotting._matplotlib" [project.optional-dependencies] test = ['hypothesis>=6.46.1', 'pytest>=7.3.2', 'pytest-xdist>=2.2.0'] pyarrow = ['pyarrow>=10.0...
update numexpr to 2.9.0 to fix CVE-2023-39631⁠ findings HINT: come from other project (apache-superset) where panda is injecting this faulty numexpr inside the project as sub-dependency - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-...
https://api.github.com/repos/pandas-dev/pandas/pulls/57567
2024-02-22T14:22:22Z
2024-02-22T16:54:52Z
null
2024-02-22T16:54:53Z
DOC: fix ES01 for pandas.Flags
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 04c3ff3a42971..6469f39e7c332 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -521,7 +521,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.year\ pandas.DatetimeTZDtype.tz\ pandas.DatetimeTZDtype....
All ES01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=ES01 pandas.Flags - [x] xref https://github.com/pandas-dev/pandas/issues/57440 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests...
https://api.github.com/repos/pandas-dev/pandas/pulls/57563
2024-02-22T07:45:14Z
2024-02-22T17:00:31Z
2024-02-22T17:00:31Z
2024-02-23T02:36:10Z
DOC: fixing GL08 errors for pandas.DatetimeIndex.as_unit and pandas.DatetimeIndex.freq
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 47a2cf93a4f89..d89c64700ffbb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -71,6 +71,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR02)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
All GL08 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.DatetimeIndex.as_unit 2. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.DatetimeIndex.freq _Note: [6232a2e](https://github.com/pandas-dev/pandas/pull/57562/commits/6232a2...
https://api.github.com/repos/pandas-dev/pandas/pulls/57562
2024-02-22T06:32:35Z
2024-02-26T18:12:56Z
2024-02-26T18:12:56Z
2024-02-26T18:24:00Z
DOC: fixing PR01 errors for pandas.Categorical and pandas.Categorical.__array__
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6469f39e7c332..f1e7f6d477906 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -1458,8 +1458,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR01)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
All PR01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.Categorical 2. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.Categorical.__array__ - [x] xref https://github.com/pandas-dev/pandas/issues/57438 - [x] [Tests added and p...
https://api.github.com/repos/pandas-dev/pandas/pulls/57561
2024-02-22T05:43:38Z
2024-02-23T17:13:26Z
2024-02-23T17:13:26Z
2024-02-23T17:14:24Z
PERF: Switch conditions in RangeIndex._shallow_copy
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 8552839b12d18..8a2e3fbf500a4 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -474,8 +474,9 @@ def _shallow_copy(self, values, name: Hashable = no_default): diff = values[1] - values[0] ...
xref https://github.com/pandas-dev/pandas/pull/57534#issuecomment-1957832841 `is_range_indexer` lets us short circuit unlike checking the remainder ```python In [1]: from pandas import *; import numpy as np ...: np.random.seed(123) ...: size = 1_000_000 ...: ngroups = 1000 ...: data = Series(np.r...
https://api.github.com/repos/pandas-dev/pandas/pulls/57560
2024-02-21T23:28:26Z
2024-02-22T14:39:55Z
2024-02-22T14:39:55Z
2024-02-22T16:35:31Z
CLN: correct file names in a comment in _optional.py
diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index ddd9b591d3e83..26beca6a0e4b6 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -16,7 +16,8 @@ if TYPE_CHECKING: import types -# Update install.rst & setup.cfg when updating versions! +# Update install.rst, actio...
corrected file names in a comment in `pandas/compat/_optional.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/57558
2024-02-21T22:49:11Z
2024-02-21T23:50:56Z
2024-02-21T23:50:56Z
2024-02-21T23:51:02Z
Backport PR #57551: BLD: Add pyarrow extra for pip installation
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index d59ddf272f705..7c1da5678a2aa 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...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57557
2024-02-21T22:28:47Z
2024-02-21T23:49:28Z
2024-02-21T23:49:28Z
2024-02-21T23:49:31Z
Remove PyArrow deprecation warning
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 533b81013a264..855973a22886a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -64,10 +64,7 @@ jobs: - name: "Numpy Dev" env_file: actions-311-numpydev.yaml 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/57556
2024-02-21T22:21:14Z
2024-02-22T17:43:15Z
2024-02-22T17:43:15Z
2024-02-22T17:48:22Z
CLN: Remove pickle support pre-pandas 1.0
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 3fdb4af52a8c0..575113434b531 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -94,7 +94,7 @@ Other API changes - Made ``dtype`` a required argument in :meth:`ExtensionArray._from_sequence_of_strings` (...
For a major pandas 3.0 release, I think it's reasonable that pickle support for pre-pandas 1.0 can be removed by now. Retry at https://github.com/pandas-dev/pandas/pull/57155
https://api.github.com/repos/pandas-dev/pandas/pulls/57555
2024-02-21T21:09:59Z
2024-02-22T22:43:58Z
2024-02-22T22:43:58Z
2024-02-22T22:44:01Z
Roadmap: remove ArrayManager
diff --git a/web/pandas/about/roadmap.md b/web/pandas/about/roadmap.md index 4c12e3e786a32..aba95ec2c03fc 100644 --- a/web/pandas/about/roadmap.md +++ b/web/pandas/about/roadmap.md @@ -90,33 +90,6 @@ data types within pandas. This will let us take advantage of its I/O capabilities and provide for better interoperabili...
- [ ] 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/57554
2024-02-21T20:29:46Z
2024-02-21T21:13:55Z
2024-02-21T21:13:55Z
2024-02-21T22:20:48Z
API: avoid passing Manager to subclass __init__
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8fd0cd8c66e3c..1be72c60783ec 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -651,25 +651,36 @@ def _constructor(self) -> type[DataFrame]: return DataFrame def _constructor_from_mgr(self, mgr, axes) -> DataFrame: - if ...
- [x] closes #57032 (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/57553
2024-02-21T20:21:57Z
2024-03-26T01:40:18Z
2024-03-26T01:40:18Z
2024-04-10T12:08:36Z
Backport PR #57439 on branch 2.2.x (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...
Backport PR #57439: BUG: read_json returning Index instead of RangeIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/57552
2024-02-21T19:41:37Z
2024-02-21T20:46:10Z
2024-02-21T20:46:10Z
2024-02-21T20:46:10Z
BLD: Add pyarrow extra for pip installation
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index 28c56ec7ff03b..2de1649d42dfd 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...
Partial feedback from #54466
https://api.github.com/repos/pandas-dev/pandas/pulls/57551
2024-02-21T18:15:16Z
2024-02-21T20:13:44Z
2024-02-21T20:13:44Z
2024-02-21T22:29:11Z