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
DOC: Add examples for creating an index accessor
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 99b5053ce250c..aa2bf2f527bd8 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -231,7 +231,7 @@ def __get__(self, obj, cls): return accessor_obj -@doc(klass="", others="") +@doc(klass="", examples="", others="") def _...
Picked up issue #49202. This adds examples for creating index, dataframe, and series accessors. - [X] closes #49202 - [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/57867
2024-03-16T16:39:14Z
2024-04-03T18:12:52Z
2024-04-03T18:12:52Z
2024-04-03T18:12:59Z
DOC: Update CoW user guide docs
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index 15537fd2ce566..90353d9f49f00 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -8,16 +8,12 @@ Copy-on-Write (CoW) .. note:: - Copy-on-Write will become the def...
- [ ] closes #57828 (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/57866
2024-03-16T14:17:51Z
2024-03-16T17:24:05Z
2024-03-16T17:24:05Z
2024-03-16T17:24:08Z
BUG: Replace on Series/DataFrame stops replacing after first NA
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 7263329d2e53b..dfbebae8d42b6 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -296,6 +296,7 @@ Bug fixes - Fixed bug in :meth:`DataFrameGroupBy.apply` that was returning a completely empty DataFrame wh...
- [x] closes #56599 - [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/57865
2024-03-16T13:59:56Z
2024-03-20T17:06:56Z
2024-03-20T17:06:56Z
2024-03-24T07:39:54Z
DOC: Fix F821 error in docstring
diff --git a/pandas/tests/io/xml/conftest.py b/pandas/tests/io/xml/conftest.py index 40a94f27e98a9..8900b0dc46754 100644 --- a/pandas/tests/io/xml/conftest.py +++ b/pandas/tests/io/xml/conftest.py @@ -11,7 +11,7 @@ def xml_data_path(): Examples -------- >>> def test_read_xml(xml_data_path): - ... ...
- [ ] xref #22900 (I think this PR can also close the linked issue as now `pandas` and `numpy` are considered defaults import before linting docstring) The command below returns no error now. ``` flake8 --doctest --ignore="" --select=F821 pandas/ | grep -v "F821 undefined name 'pd'" | grep -v "F821 undefined nam...
https://api.github.com/repos/pandas-dev/pandas/pulls/57863
2024-03-16T12:21:02Z
2024-03-19T19:51:22Z
2024-03-19T19:51:22Z
2024-03-19T19:54:09Z
DOC: RT03 fix for various DataFrameGroupBy and SeriesGroupBy methods
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a9967dcb8efe6..52d236ae7460d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -682,60 +682,40 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.groupby.DataFrameGroupBy.__iter__ RT03,SA01" \ -i "pandas.core.group...
- [x] xref https://github.com/pandas-dev/pandas/issues/57416 - [ ] [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/57862
2024-03-16T04:53:08Z
2024-04-01T18:41:12Z
2024-04-01T18:41:12Z
2024-04-01T18:41:19Z
Backport PR #57843: DOC: Remove Dask and Modin sections in scale.rst in favor of linking to ecosystem docs.
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index b262de5d71439..29df2994fbc35 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -156,7 +156,7 @@ fits in memory, you can work with datasets that are much larger than memory. Chunking works well ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57861
2024-03-15T21:46:21Z
2024-03-15T22:43:38Z
2024-03-15T22:43:38Z
2024-03-15T22:43:42Z
CLN: Remove unused code
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 931f19a7901bd..e4862ac1030b6 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -767,17 +767,6 @@ def _format_native_types( # ----------------------------------------------------------------- ...
I conclude my `vulture` check (for now)
https://api.github.com/repos/pandas-dev/pandas/pulls/57860
2024-03-15T20:48:01Z
2024-03-15T21:41:36Z
2024-03-15T21:41:36Z
2024-03-15T22:20:49Z
CLN: Remove unused code
diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py index ca2c7a3b9664f..5d519a1e121ba 100644 --- a/pandas/core/array_algos/take.py +++ b/pandas/core/array_algos/take.py @@ -164,64 +164,6 @@ def _take_nd_ndarray( return out -def take_1d( - arr: ArrayLike, - indexer: npt.NDArray...
I find it a bit hard to believe that this function is unused, but it really _does_ look like that
https://api.github.com/repos/pandas-dev/pandas/pulls/57858
2024-03-15T20:16:22Z
2024-03-15T21:07:26Z
2024-03-15T21:07:26Z
2024-03-15T22:20:55Z
REF: Don't materialize range if not needed
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 5023a4b8bd3dd..0b61938d474b9 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2686,7 +2686,7 @@ def _value_counts( names = result_series.index.names # GH#55951 - Temporarily r...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57857
2024-03-15T19:58:55Z
2024-03-16T22:46:31Z
2024-03-16T22:46:31Z
2024-03-16T22:51:38Z
PERF: Remove slower short circut checks in RangeIndex__getitem__
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 728f42a9c264c..c03c1e237f67e 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -1153,11 +1153,6 @@ def __getitem__(self, key): else: key = np.asarray(key, dtype=bool) c...
- [ ] closes #57712 (Replace xxxx with the GitHub issue number) Although the `all()` and `not any()` checks were supposed to be for short-circuiting, I think these cases are not common enough to always check in this if branch. The `not any()` check will get reduced by `np.flatnonzero`. The `all()` check cannot short...
https://api.github.com/repos/pandas-dev/pandas/pulls/57856
2024-03-15T18:18:02Z
2024-03-16T13:41:10Z
2024-03-16T13:41:10Z
2024-03-16T22:25:04Z
PERF: Skip _shallow_copy for RangeIndex._join_empty where other is RangeIndex
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 728f42a9c264c..aee2ac6a349ab 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -943,7 +943,7 @@ def symmetric_difference( def _join_empty( self, other: Index, how: JoinHow, sort: bool ) -> tup...
- [ ] closes #57852 (Replace xxxx with the GitHub issue number) ```python In [1]: from pandas import *; import numpy as np + /opt/miniconda3/envs/pandas-dev/bin/ninja [1/1] Generating write_version_file with a custom command In [2]: df = DataFrame({"A": np.arange(100_000)}) In [3]: df_empty = DataFrame(co...
https://api.github.com/repos/pandas-dev/pandas/pulls/57855
2024-03-15T17:46:12Z
2024-03-16T13:54:07Z
2024-03-16T13:54:07Z
2024-03-16T22:25:50Z
Backport PR #57848 on branch 2.2.x (DOC: Remove duplicated Series.dt.normalize from docs)
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index a4ea0ec396ceb..d40f6e559b8fa 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -342,7 +342,6 @@ Datetime properties Series.dt.tz Series.dt.freq Series.dt.unit - Series.dt.normalize D...
Backport PR #57848: DOC: Remove duplicated Series.dt.normalize from docs
https://api.github.com/repos/pandas-dev/pandas/pulls/57854
2024-03-15T16:09:57Z
2024-03-15T18:16:46Z
2024-03-15T18:16:46Z
2024-03-15T18:16:46Z
CLN: Remove unused code
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index f2fb503be86f5..de2fd9394e2fa 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -12,7 +12,6 @@ Literal, cast, ) -import warnings import numpy as np @@ -30,7 +29,6 @@ from pandas.compat._optional import import_optional_dependenc...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57851
2024-03-15T05:41:57Z
2024-03-15T16:04:49Z
2024-03-15T16:04:49Z
2024-03-15T16:07:14Z
DOC: Remove duplicated Series.dt.normalize from docs
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 0654ed52e0cfb..43d7480899dc4 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -335,7 +335,6 @@ Datetime properties Series.dt.tz Series.dt.freq Series.dt.unit - Series.dt.normalize D...
`Series.dt.normalize` is listed both as an attribute and as a method. Removing the attribute instance, since it's a method.
https://api.github.com/repos/pandas-dev/pandas/pulls/57848
2024-03-15T00:23:54Z
2024-03-15T16:09:24Z
2024-03-15T16:09:24Z
2024-03-15T16:09:31Z
DEPR: don't silently drop Nones in concat
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 7263329d2e53b..4e020d8b7bcdc 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -144,6 +144,7 @@ Other API changes ^^^^^^^^^^^^^^^^^ - 3rd party ``py.path`` objects are no longer explicitly supported in...
- [x] closes #57846 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/57847
2024-03-14T22:32:10Z
2024-03-16T20:16:11Z
null
2024-04-07T10:59:11Z
Debug ASAN build
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 39ab0890a32d1..76502eef845f8 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -10,7 +10,7 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.toml" -PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYT...
- [ ] 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/57845
2024-03-14T21:33:34Z
2024-03-19T17:02:38Z
null
2024-03-19T17:02:40Z
CLN: Remove unused functions
diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py index 9432635f62a35..abf86fc415641 100644 --- a/pandas/compat/numpy/function.py +++ b/pandas/compat/numpy/function.py @@ -258,10 +258,6 @@ def validate_cum_func_with_skipna(skipna: bool, args, kwargs, name) -> bool: MINMAX_DEFAULTS, fna...
It's pretty hard to be 100% sure that these non-private functions are unused, but I'm pretty sure that they are not commonly used, if at all, after some searches in Google, GitHub, and pandas doc.
https://api.github.com/repos/pandas-dev/pandas/pulls/57844
2024-03-14T19:01:45Z
2024-03-14T20:46:17Z
2024-03-14T20:46:17Z
2024-03-15T05:01:50Z
DOC: Remove Dask and Modin sections in scale.rst in favor of linking to ecosystem docs.
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index 080f8484ce969..29df2994fbc35 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -156,7 +156,7 @@ fits in memory, you can work with datasets that are much larger than memory. Chunking works well ...
- [x] closes #57831 - [ ] [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/57843
2024-03-14T18:34:00Z
2024-03-15T21:43:32Z
2024-03-15T21:43:31Z
2024-03-15T22:03:31Z
CLN: Remove private unused code
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index ebf2ba2510aa4..e970c5c00fe17 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -56,10 +56,8 @@ TYPE_CHECKING, Any, Callable, - Literal, NamedTuple, cast, - overload, ) import warnings @@ -69,7...
Remove some more private unused code
https://api.github.com/repos/pandas-dev/pandas/pulls/57842
2024-03-14T17:21:56Z
2024-03-14T18:25:20Z
2024-03-14T18:25:20Z
2024-03-14T18:37:40Z
improve accuracy of to_pytimedelta
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 10d5a518f686d..3f2bfaf489487 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -313,7 +313,7 @@ Datetimelike Timedelta ^^^^^^^^^ -- +- Accuracy improvement in :meth:`Timedelta.to_pytimedelta` to roun...
``` >>> a = pd.Timedelta(1152921504609987375) >>> a.to_pytimedelta() datetime.timedelta(days=13343, seconds=86304, microseconds=609988) >>> ``` 609988 for microseconds but expected is 609987 ``` >>> a = pd.Timedelta(1152921504609987374) >>> a.to_pytimedelta() datetime.timedelta(days=13343, seconds=86304, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57841
2024-03-14T17:12:55Z
2024-03-25T18:10:55Z
2024-03-25T18:10:55Z
2024-03-25T23:04:19Z
CLN: Remove some unused code
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index ebf2ba2510aa4..2f0846e0808ed 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -583,12 +583,6 @@ def _get_root(key: str) -> tuple[dict[str, Any], str]: return cursor, path[-1] -def _is_deprecated(key: str) -> bool: - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57839
2024-03-14T14:02:25Z
2024-03-14T18:23:48Z
2024-03-14T18:23:48Z
2024-03-14T18:37:43Z
Backport PR #57796 on branch 2.2.x (Fix issue with Tempita recompilation)
diff --git a/pandas/_libs/meson.build b/pandas/_libs/meson.build index c27386743c6e9..7621915ebcfdb 100644 --- a/pandas/_libs/meson.build +++ b/pandas/_libs/meson.build @@ -54,25 +54,37 @@ _intervaltree_helper = custom_target('intervaltree_helper_pxi', py, tempita, '@INPUT@', '-o', '@OUTDIR@' ] ) -_khash...
Backport PR #57796: Fix issue with Tempita recompilation
https://api.github.com/repos/pandas-dev/pandas/pulls/57834
2024-03-13T23:29:56Z
2024-03-14T00:39:41Z
2024-03-14T00:39:41Z
2024-03-14T00:39:41Z
PERF: RangeIndex.insert maintains RangeIndex when empty
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e17d5b0cf8edb..8c793a02ada86 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -275,6 +275,7 @@ Performance improvements - Performance improvement in :meth:`RangeIndex.__getitem__` with a boolean mask o...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57833
2024-03-13T23:02:56Z
2024-03-16T23:13:31Z
2024-03-16T23:13:31Z
2024-03-17T00:35:06Z
Backport PR #57830 on branch 2.2.x (DOC: Pin dask/dask-expr for scale.rst)
diff --git a/environment.yml b/environment.yml index 9cec788ca600b..7db2767661d62 100644 --- a/environment.yml +++ b/environment.yml @@ -60,9 +60,9 @@ dependencies: - zstandard>=0.19.0 # downstream packages - - dask-core + - dask-core<=2024.2.1 - seaborn-base - - dask-expr + - dask-expr<=0.5.3 # loc...
Backport PR #57830: DOC: Pin dask/dask-expr for scale.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/57832
2024-03-13T18:35:03Z
2024-03-13T19:30:33Z
2024-03-13T19:30:33Z
2024-03-13T19:30:33Z
DOC: Pin dask/dask-expr for scale.rst
diff --git a/environment.yml b/environment.yml index 08c2c02d91582..edc0eb88eeb0c 100644 --- a/environment.yml +++ b/environment.yml @@ -60,9 +60,9 @@ dependencies: - zstandard>=0.19.0 # downstream packages - - dask-core + - dask-core<=2024.2.1 - seaborn-base - - dask-expr + - dask-expr<=0.5.3 # loc...
Currently failing on main e.g. https://github.com/pandas-dev/pandas/actions/runs/8268872378/job/22622790949?pr=57812
https://api.github.com/repos/pandas-dev/pandas/pulls/57830
2024-03-13T17:45:16Z
2024-03-13T18:34:33Z
2024-03-13T18:34:33Z
2024-03-13T18:34:36Z
DOC: Fix remove_unused_levels doctest on main
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index bfebf126ec303..2ef80469a7a13 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2063,7 +2063,7 @@ def remove_unused_levels(self) -> MultiIndex: >>> mi2 = mi[2:].remove_unused_levels() >>> mi2...
e.g https://github.com/pandas-dev/pandas/actions/runs/8257178732/job/22587251828
https://api.github.com/repos/pandas-dev/pandas/pulls/57827
2024-03-13T00:45:40Z
2024-03-13T02:39:58Z
2024-03-13T02:39:58Z
2024-03-13T02:40:01Z
CI: speedup docstring check consecutive runs
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fcbd0a855dcc8..4b8e632f3246c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -65,1541 +65,1236 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (EX01, EX03, EX04, GL01, GL02, GL03, GL04, G...
- [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). This PR brings the runti...
https://api.github.com/repos/pandas-dev/pandas/pulls/57826
2024-03-13T00:30:04Z
2024-03-17T21:59:40Z
2024-03-17T21:59:40Z
2024-03-17T22:02:17Z
PERF: Unary methods on RangeIndex returns RangeIndex
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e17d5b0cf8edb..64ae578806e6b 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -281,6 +281,7 @@ Performance improvements - Performance improvement in :meth:`RangeIndex.take` returning a :class:`RangeInd...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57825
2024-03-12T23:48:52Z
2024-03-14T16:27:22Z
2024-03-14T16:27:22Z
2024-03-14T16:27:25Z
PERF: RangeIndex.round returns RangeIndex when possible
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 1f42b75c5c5d2..88d36439af1d5 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -274,6 +274,7 @@ Performance improvements - Performance improvement in :meth:`MultiIndex.equals` for equal length indexes (...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57824
2024-03-12T22:35:08Z
2024-03-13T19:32:22Z
2024-03-13T19:32:22Z
2024-03-13T19:32:26Z
PERF: RangeIndex.argmin/argmax
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 88d36439af1d5..e17d5b0cf8edb 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -274,6 +274,7 @@ Performance improvements - Performance improvement in :meth:`MultiIndex.equals` for equal length indexes (...
```python In [1]: import pandas as pd In [2]: ri = pd.RangeIndex(100_000) In [3]: %timeit ri.argmin() 651 ns ± 8.43 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) # PR In [3]: %timeit ri.argmin() 19.6 µs ± 73 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # main ```
https://api.github.com/repos/pandas-dev/pandas/pulls/57823
2024-03-12T21:13:41Z
2024-03-14T02:02:54Z
2024-03-14T02:02:54Z
2024-03-14T15:07:45Z
Backport PR #57821 on branch 2.2.x (Fix doc build)
diff --git a/environment.yml b/environment.yml index 58eb69ad1f070..9cec788ca600b 100644 --- a/environment.yml +++ b/environment.yml @@ -62,6 +62,7 @@ dependencies: # downstream packages - dask-core - seaborn-base + - dask-expr # local testing dependencies - moto diff --git a/requirements-dev.txt b/re...
Backport PR #57821: Fix doc build
https://api.github.com/repos/pandas-dev/pandas/pulls/57822
2024-03-12T20:06:11Z
2024-03-12T21:15:24Z
2024-03-12T21:15:24Z
2024-03-12T21:15:25Z
Fix doc build
diff --git a/environment.yml b/environment.yml index 3528f12c66a8b..08c2c02d91582 100644 --- a/environment.yml +++ b/environment.yml @@ -62,6 +62,7 @@ dependencies: # downstream packages - dask-core - seaborn-base + - dask-expr # local testing dependencies - moto diff --git a/requirements-dev.txt b/re...
@mrocklin would you mind taking a look at this PR? I think it'll fix the doc build on `main`
https://api.github.com/repos/pandas-dev/pandas/pulls/57821
2024-03-12T17:55:31Z
2024-03-12T20:05:36Z
2024-03-12T20:05:36Z
2024-03-12T20:06:34Z
CLN: enforce deprecation of `interpolate` with object dtype
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 391553909383b..ba99c304c760e 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -201,6 +201,7 @@ Removal of prior version deprecations/changes - Changed the default value of ``observed`` in :meth:`DataFr...
xref #53638 enforced deprecation of `interpolate` with object dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/57820
2024-03-12T13:27:42Z
2024-03-15T16:01:10Z
2024-03-15T16:01:10Z
2024-03-30T01:24:02Z
CLN: Remove unused private code in sas module
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index 49287ddf5ff38..6a392a0f02caf 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -17,10 +17,7 @@ from __future__ import annotations from collections import abc -from datetime import ( - datetime, - timedelta, -) +fr...
- [ ] 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/57819
2024-03-12T06:09:12Z
2024-03-12T17:44:12Z
2024-03-12T17:44:12Z
2024-03-12T17:46:01Z
CLN: Remove unused private attributes in stata module
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 4f8afd99cbe32..fe8b4896d097e 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1121,11 +1121,8 @@ def __init__( # State variables for the file self._close_file: Callable[[], None] | None = None - self._missing_values = Fals...
According to https://github.com/pandas-dev/pandas/pull/49228, all of the internal state of the reader object is now `_private`, so I try to remove the unused one detected by `vulture`
https://api.github.com/repos/pandas-dev/pandas/pulls/57818
2024-03-12T06:03:32Z
2024-03-12T17:43:32Z
2024-03-12T17:43:32Z
2024-03-12T17:46:03Z
DOC: Updated the returns for DataFrame.any/all to return either a Series or scalar
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a7a69a6b835fb..44a58a7504a13 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -12022,8 +12022,8 @@ def last_valid_index(self) -> Hashable: Returns ------- -{name1} or {name2} - If level is specified, then, {name2} is returned; ...
#57088 updated documentation for reflect the return types for Dataframe.any/all calls.
https://api.github.com/repos/pandas-dev/pandas/pulls/57817
2024-03-12T02:21:46Z
2024-03-19T17:19:40Z
null
2024-03-19T17:19:41Z
Fix some typing errors
diff --git a/pandas/core/methods/selectn.py b/pandas/core/methods/selectn.py index 20aec3ccadded..283acaca2c117 100644 --- a/pandas/core/methods/selectn.py +++ b/pandas/core/methods/selectn.py @@ -213,7 +213,7 @@ def compute(self, method: str) -> DataFrame: f"cannot use method {method!r} with this ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57816
2024-03-11T20:42:08Z
2024-03-12T23:39:34Z
2024-03-12T23:39:34Z
2024-03-12T23:43:24Z
CLN: remove deprecated classes 'NumericBlock' and 'ObjectBlock'
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index fb14c5ad82f4f..31234fb1f116f 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -35,8 +35,6 @@ def __getattr__(name: str): return create_block_manager_from_blocks if name in [ ...
xref #52817 removed deprecated classes `NumericBlock` and `ObjectBlock`
https://api.github.com/repos/pandas-dev/pandas/pulls/57815
2024-03-11T20:24:05Z
2024-03-12T17:49:21Z
2024-03-12T17:49:21Z
2024-03-12T17:49:28Z
Remove maybe unused function
diff --git a/pandas/plotting/_matplotlib/converter.py b/pandas/plotting/_matplotlib/converter.py index 0eb3318ac96c5..e2121526c16af 100644 --- a/pandas/plotting/_matplotlib/converter.py +++ b/pandas/plotting/_matplotlib/converter.py @@ -4,7 +4,6 @@ import datetime as pydt from datetime import ( datetime, - ti...
This is a private function that's only a part of one `xfail` test. I wonder if it's possible to remove it or not, given that the current minimum required version of `matplotlib` is already `3.6.3`.
https://api.github.com/repos/pandas-dev/pandas/pulls/57814
2024-03-11T20:16:50Z
2024-03-11T21:18:13Z
2024-03-11T21:18:13Z
2024-03-12T03:17:23Z
CI: Fail tests on all builds for FutureWarning/DeprecationWarning from numpy or pyarrow
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 855973a22886a..70afe39bd15ea 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -60,11 +60,9 @@ jobs: - name: "Pypy" env_file: actions-pypy-39.yaml pattern: "n...
I don't think we should necessarily limit this to just to nightly build of these libraries
https://api.github.com/repos/pandas-dev/pandas/pulls/57813
2024-03-11T20:01:39Z
2024-04-01T18:39:46Z
null
2024-04-01T18:39:49Z
PERF: Avoid np.divmod in maybe_sequence_to_range
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 34193a9b1d231..b39d32d069619 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -231,3 +231,7 @@ def is_range_indexer( left: np.ndarray, n: int, # np.ndarray[np.int64, ndim=1] ) -> bool: ... +def is_sequence_range( + sequence: np...
xref https://github.com/pandas-dev/pandas/pull/57534#issuecomment-1957832841 Made a `is_range` method (like `is_range_indexer`) that avoids a `np.divmod` operation ```python In [1]: from pandas import *; import numpy as np ...: np.random.seed(123) ...: size = 1_000_000 ...: ngroups = 1000 ...: da...
https://api.github.com/repos/pandas-dev/pandas/pulls/57812
2024-03-11T18:34:44Z
2024-03-21T17:14:44Z
2024-03-21T17:14:44Z
2024-03-21T17:14:48Z
DOC: fix typo in `DataFrame.plot.hist` docstring
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index c9d1e5a376bfd..763244c5bdf0e 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -1397,7 +1397,7 @@ def hist( Returns ------- - class:`matplotlib.Axes` + :class:`matplotlib.axes.Axes` ...
Spot a rendering issue [here](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.plot.hist.html) ![hist](https://github.com/pandas-dev/pandas/assets/47032563/16f57912-de5d-4d21-aaa5-4d3671d1cb90)
https://api.github.com/repos/pandas-dev/pandas/pulls/57808
2024-03-11T07:04:10Z
2024-03-11T17:26:05Z
2024-03-11T17:26:05Z
2024-03-12T04:50:06Z
Doc: Fix GL08 error for pandas.ExcelFile.book
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8227047839f3d..66708eb88ca87 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -144,7 +144,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (GL08)' ; echo $MSG $BASE_DIR/scripts/validate_docstring...
All GL08 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.ExcelFile.book - [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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57807
2024-03-11T01:40:10Z
2024-03-11T04:48:25Z
2024-03-11T04:48:25Z
2024-03-12T06:33:22Z
Fix PR01 errors for melt, option_context, read_fwf, reset_option
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8227047839f3d..bafc1573e37d1 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -490,11 +490,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.errors.AbstractMethodError\ pandas.errors.UndefinedVariableError\ pan...
All PR01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.melt 2. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.DataFrame.melt 3. scripts/validate_docstrings.py --format=actions --errors=PR01 pandas.option_context 4. scripts/val...
https://api.github.com/repos/pandas-dev/pandas/pulls/57806
2024-03-11T00:27:14Z
2024-03-11T04:35:40Z
2024-03-11T04:35:40Z
2024-03-11T04:39:03Z
Doc: fix PR07 errors in DatetimeIndex - indexer_between_time, mean and HDFStore - append, get, put
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8227047839f3d..3ed60e1860b5d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -499,11 +499,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR07)' ; echo $MSG $BASE_DIR/scripts/validate_docstrin...
All PR07 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DatetimeIndex.indexer_between_time 2. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DatetimeIndex.mean 3. scripts/validate_docstrings.py --format=actions --errors=PR07 pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/57805
2024-03-10T23:22:57Z
2024-03-11T04:34:09Z
2024-03-11T04:34:09Z
2024-03-11T04:38:14Z
Doc: fix PR07 errors for pandas.DataFrame get, rolling, to_hdf
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..fc52b48e47fdf 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -499,9 +499,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (PR07)' ; echo $MSG $BASE_DIR/scripts/validate_docstring...
All PR07 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DataFrame.get 2. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DataFrame.rolling 3. scripts/validate_docstrings.py --format=actions --errors=PR07 pandas.DataFrame.to_hdf ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57804
2024-03-10T22:33:49Z
2024-03-10T23:27:06Z
2024-03-10T23:27:06Z
2024-03-10T23:29:02Z
Doc: fix SA01 errors for as_ordered and as_unordered
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..1beeedc1831e3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -867,16 +867,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=SA01 --ignore_functions \ ...
All SA01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.Categorical.as_ordered 2. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.Categorical.as_unordered 3. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.Ca...
https://api.github.com/repos/pandas-dev/pandas/pulls/57803
2024-03-10T22:05:13Z
2024-03-10T22:47:23Z
2024-03-10T22:47:23Z
2024-03-10T23:08:59Z
Doc: fix SA01 errors for pandas.BooleanDtype and pandas.StringDtype
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..95ff963664cbe 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -865,7 +865,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (SA01)' ; echo $MSG $BASE_DIR/scripts/validate_docstring...
All SA01 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.BooleanDtype 2. scripts/validate_docstrings.py --format=actions --errors=SA01 pandas.StringDtype - [x] xref #57417 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/57802
2024-03-10T21:23:43Z
2024-03-10T22:46:25Z
2024-03-10T22:46:25Z
2024-03-10T23:08:47Z
Doc: Fix RT03 errors for read_orc, read_sas, read_spss, read_stata
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8227047839f3d..cd9171359cb53 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -845,10 +845,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.plotting.parallel_coordinates\ pandas.plotting.radviz\ pandas.plottin...
All RT03 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.read_orc 2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.read_sas 3. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.read_spss 4. scripts/validate_d...
https://api.github.com/repos/pandas-dev/pandas/pulls/57801
2024-03-10T20:46:29Z
2024-03-11T04:34:44Z
2024-03-11T04:34:44Z
2024-03-11T04:38:52Z
BUG: #57775 Fix groupby apply in case func returns None for all groups
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 16be9e0a4fc34..4e3be4f370113 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -284,6 +284,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.join` inconsistently setting result index name (:issue:`55815`) ...
- [x] closes #57775 - [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/57800
2024-03-10T20:37:55Z
2024-03-12T17:27:25Z
2024-03-12T17:27:25Z
2024-03-12T17:27:32Z
Doc: fix RT03 pandas.timedelta_range and pandas.util.hash_pandas_object
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..d01db76a8fab3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -858,9 +858,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.read_sas\ pandas.read_spss\ pandas.read_stata\ - pandas.set_eng...
All RT03 Errors resolved in the following cases: 1. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.timedelta_range 2. scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.util.hash_pandas_object - [x] xref #57416 - [x] [Tests added and passed](https://pandas.pydata.org/pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/57799
2024-03-10T20:04:00Z
2024-03-10T22:44:35Z
2024-03-10T22:44:35Z
2024-03-10T23:08:13Z
DOC: Remove RT03 docstring errors for selected methods
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..c994975c1a08e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -623,18 +623,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.mean\ pandas.DataFrame.median\ pandas.DataFrame.min\ - ...
Resolve all RT03 errors for the following cases: scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.pop scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.reindex scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.reorder_levels s...
https://api.github.com/repos/pandas-dev/pandas/pulls/57797
2024-03-10T15:03:33Z
2024-03-10T22:44:03Z
2024-03-10T22:44:03Z
2024-03-10T22:44:09Z
Fix issue with Tempita recompilation
diff --git a/pandas/_libs/meson.build b/pandas/_libs/meson.build index c27386743c6e9..7621915ebcfdb 100644 --- a/pandas/_libs/meson.build +++ b/pandas/_libs/meson.build @@ -54,25 +54,37 @@ _intervaltree_helper = custom_target('intervaltree_helper_pxi', py, tempita, '@INPUT@', '-o', '@OUTDIR@' ] ) -_khash...
xref https://github.com/mesonbuild/meson-python/issues/589#issuecomment-1987206217 @rhshadrach I think you mentioned this originally on Slack
https://api.github.com/repos/pandas-dev/pandas/pulls/57796
2024-03-10T14:10:26Z
2024-03-13T23:29:49Z
2024-03-13T23:29:49Z
2024-03-18T23:09:59Z
Fix some typing errors
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index 26c44c2613cb2..28985a1380bee 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -64,7 +64,7 @@ # our Unpickler sub-class to override methods and some dispatcher # functions for compat and uses a non-pub...
- [ ] 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/57795
2024-03-10T09:26:50Z
2024-03-10T22:43:11Z
2024-03-10T22:43:11Z
2024-03-11T05:40:23Z
CLN: remove deprecated strings 'BA', 'BAS', 'AS' denoting frequencies for timeseries
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 16be9e0a4fc34..65b68f16b9bf2 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -203,7 +203,10 @@ Removal of prior version deprecations/changes - Enforced deprecation of :meth:`.DataFrameGroupBy.get_grou...
xref #55479 remove deprecated strings `‘BA, ‘BAS', ‘AS', ‘BA-DEC' ,‘BAS-DEC', ‘AS-DEC',` etc. denoting frequencies for timeseries
https://api.github.com/repos/pandas-dev/pandas/pulls/57793
2024-03-10T00:15:59Z
2024-03-11T14:56:02Z
2024-03-11T14:56:02Z
2024-03-11T14:56:03Z
Migrate ruff config to the latest format
diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py index 89361eb75606c..66e999e251c5e 100755 --- a/doc/sphinxext/announce.py +++ b/doc/sphinxext/announce.py @@ -32,6 +32,7 @@ $ ./scripts/announce.py $GITHUB v1.11.0..v1.11.1 > announce.rst """ + import codecs import os import re diff --git a/d...
Resolves these warnings (available if running `ruff` directly) and fix some formatting errors discovered in the new config that's arguably should be equivalent to the old one. ```bash warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the follo...
https://api.github.com/repos/pandas-dev/pandas/pulls/57791
2024-03-09T21:49:25Z
2024-03-09T22:19:03Z
2024-03-09T22:19:03Z
2024-03-17T07:56:12Z
Updated the pandas.DatetimeIndex.day_name and pandas.DatetimeIndex.month_name docstring
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c4e43b88a0097..337cd0a498bc9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -79,8 +79,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.dt.round\ pandas.Series.dt.floor\ pandas.Series.dt.ceil\ - ...
- closes #57111 partially - 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/57790
2024-03-09T18:50:12Z
2024-03-20T17:26:26Z
null
2024-03-21T00:09:56Z
Small refactoring
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 36edf6116609b..424af58958f04 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -904,13 +904,7 @@ def _build_names_mapper( a list of column names with duplicate names replaced by dummy names """ -...
- [x] closes #52229(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/57789
2024-03-09T07:01:18Z
2024-03-09T19:51:00Z
2024-03-09T19:51:00Z
2024-03-09T21:13:33Z
API: Revert 57042 - MultiIndex.names|codes|levels returns tuples
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 66c209efb740b..da0b29760e498 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -147,7 +147,6 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^^^...
- [ ] 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/57788
2024-03-09T03:18:34Z
2024-04-11T15:38:21Z
2024-04-11T15:38:21Z
2024-04-11T21:31:05Z
PERF: Categorical(range).categories returns RangeIndex instead of Index
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index ca2ca07ff2fae..94501c4fddfd9 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -256,6 +256,7 @@ Removal of prior version deprecations/changes Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ +- :att...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57787
2024-03-08T23:48:13Z
2024-03-11T03:18:09Z
2024-03-11T03:18:09Z
2024-03-11T04:32:33Z
PERF: Allow ensure_index_from_sequence to return RangeIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c2df773326dc9..3c01778e05f3d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -7154,6 +7154,43 @@ def shape(self) -> Shape: return (len(self),) +def maybe_sequence_to_range(sequence) -> Any | range: + ...
Discovered in https://github.com/pandas-dev/pandas/pull/57441 Builds on https://github.com/pandas-dev/pandas/pull/57752
https://api.github.com/repos/pandas-dev/pandas/pulls/57786
2024-03-08T23:15:11Z
2024-03-19T20:01:32Z
2024-03-19T20:01:32Z
2024-03-19T20:37:37Z
DOC: Resolve RT03 errors in several methods #2
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1c37d9bf1c4b3..5437b4c66e300 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -628,13 +628,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.mean\ pandas.DataFrame.median\ pandas.DataFrame.min\ - ...
Resolve all RT03 errors for the following cases: scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.nsmallest scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.nunique scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.pipe scripts...
https://api.github.com/repos/pandas-dev/pandas/pulls/57785
2024-03-08T21:54:56Z
2024-03-08T23:50:31Z
2024-03-08T23:50:31Z
2024-03-08T23:50:38Z
Backport PR #57780 on branch 2.2.x (COMPAT: Adapt to Numpy 2.0 dtype changes)
diff --git a/pandas/_libs/src/datetime/pd_datetime.c b/pandas/_libs/src/datetime/pd_datetime.c index 19de51be6e1b2..4c1969f6d9f57 100644 --- a/pandas/_libs/src/datetime/pd_datetime.c +++ b/pandas/_libs/src/datetime/pd_datetime.c @@ -20,6 +20,9 @@ This file is derived from NumPy 1.7. See NUMPY_LICENSE.txt #include <Pyt...
Backport PR #57780: COMPAT: Adapt to Numpy 2.0 dtype changes
https://api.github.com/repos/pandas-dev/pandas/pulls/57784
2024-03-08T20:28:21Z
2024-03-08T21:36:00Z
2024-03-08T21:36:00Z
2024-03-08T21:36:00Z
Fix SparseDtype comparison
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index ca2ca07ff2fae..16be9e0a4fc34 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -280,6 +280,7 @@ Performance improvements Bug fixes ~~~~~~~~~ +- Fixed bug in :class:`SparseDtype` for equal comparison ...
- [x] closes #54770(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/57783
2024-03-08T18:49:49Z
2024-03-09T20:09:43Z
2024-03-09T20:09:43Z
2024-03-09T21:13:09Z
DOC: Resolve RT03 errors for selected methods
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1c37d9bf1c4b3..d37f4bcf44ee4 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -614,15 +614,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (RT03)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
Resolve all RT03 errors for the following cases: scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.expanding scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.filter scripts/validate_docstrings.py --format=actions --errors=RT03 pandas.DataFrame.first_valid_...
https://api.github.com/repos/pandas-dev/pandas/pulls/57782
2024-03-08T18:15:20Z
2024-03-08T22:47:25Z
2024-03-08T22:47:25Z
2024-03-08T22:47:32Z
COMPAT: Adapt to Numpy 2.0 dtype changes
diff --git a/pandas/_libs/src/datetime/pd_datetime.c b/pandas/_libs/src/datetime/pd_datetime.c index 19de51be6e1b2..4c1969f6d9f57 100644 --- a/pandas/_libs/src/datetime/pd_datetime.c +++ b/pandas/_libs/src/datetime/pd_datetime.c @@ -20,6 +20,9 @@ This file is derived from NumPy 1.7. See NUMPY_LICENSE.txt #include <Pyt...
Based on Thomas Li's work, but wanted to try and see that this is right. Replaces gh-13466.
https://api.github.com/repos/pandas-dev/pandas/pulls/57780
2024-03-08T17:34:01Z
2024-03-08T20:27:52Z
2024-03-08T20:27:52Z
2024-03-08T20:49:47Z
Fix rank method with nullable int
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index cd6977f43d322..1146d7fb1ae4a 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -281,6 +281,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.to_string` that raised ``StopIteration`` with nested DataFrames....
We can't pass only `self._values_for_argsort()` to `rank` as the missing data info will be lost. Fortunately, passing `self` directly to `rank` seems to work just fine. - [x] closes #56976 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/developmen...
https://api.github.com/repos/pandas-dev/pandas/pulls/57779
2024-03-08T12:23:59Z
2024-03-08T21:37:04Z
2024-03-08T21:37:04Z
2024-03-17T07:53:37Z
fix: Dockerfile to reduce vulnerabilities
diff --git a/Dockerfile b/Dockerfile index c697f0c1c66c7..7e869522a4f14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10.8 +FROM python:3.13.0a3 WORKDIR /home/pandas RUN apt-get update && apt-get -y upgrade
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-LIBWEBP-5893094 - https://snyk.io/vuln/SNYK-DEBIAN11-LIBWEBP-5893094 - https://snyk.io/vuln/SNYK-DEBIAN11-LIBWEBP-5893094 - https://snyk.io/vuln/SNYK-DEBIAN11-LIBWEBP-5893094 - https://snyk.io/vuln/SNYK-DEBIAN11-NGHTTP2-5...
https://api.github.com/repos/pandas-dev/pandas/pulls/57778
2024-03-08T10:26:03Z
2024-03-08T17:50:37Z
null
2024-03-08T17:51:43Z
DOC: Fix description for pd.concat sort argument
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 88323e5304cc4..f4df4fbb54827 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -203,10 +203,10 @@ def concat( Check whether the new concatenated axis contains duplicates. This can be very e...
- [x] closes #57753 - [ ] [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/57776
2024-03-08T01:28:07Z
2024-03-08T17:52:32Z
2024-03-08T17:52:32Z
2024-03-08T22:25:57Z
COMPAT: Adapt to Numpy 2.0 dtype changes
diff --git a/pandas/_libs/src/vendored/numpy/datetime/np_datetime.c b/pandas/_libs/src/vendored/numpy/datetime/np_datetime.c index 277d01807f2f3..955ce8a67976a 100644 --- a/pandas/_libs/src/vendored/numpy/datetime/np_datetime.c +++ b/pandas/_libs/src/vendored/numpy/datetime/np_datetime.c @@ -1070,5 +1070,8 @@ void pand...
- [ ] 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/57774
2024-03-07T23:48:55Z
2024-03-08T18:43:04Z
null
2024-03-08T18:43:05Z
Enforce numpydoc's GL05
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c3fe73acabcbf..1c37d9bf1c4b3 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, GL06, G...
This error code was shadowed by another with the same name in `pandas`. The old error code was renamed to `PD01` in https://github.com/pandas-dev/pandas/pull/57767 I think `numpydoc`'s GL05 might also be interesting to enforce ``` "GL05": 'Tabs found at the start of line "{line_with_tabs}", please use ' ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57772
2024-03-07T22:15:45Z
2024-03-07T23:41:37Z
2024-03-07T23:41:37Z
2024-03-17T07:53:34Z
DOC: Fix PR01 and SA01 errors in pandas.ExcelFile
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 998e48d96d6b3..1fcaabff89023 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -421,7 +421,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.indexer_at_time\ pandas.DatetimeIndex.snap\ pandas.Datet...
- [x] xref #57438 - [x] xref #57417 - [ ] [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#...
https://api.github.com/repos/pandas-dev/pandas/pulls/57771
2024-03-07T21:17:12Z
2024-03-28T22:21:39Z
null
2024-03-28T22:22:51Z
PERF: RangeIndex.__getitem__ with integers return RangeIndex
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 157b87c93e729..8408f609bdc99 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -255,11 +255,11 @@ Performance improvements - Performance improvement in :meth:`Index.join` by propagating cached attribute...
Builds on #57752 Discovered in #57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57770
2024-03-07T21:13:56Z
2024-03-12T23:51:14Z
2024-03-12T23:51:14Z
2024-03-12T23:51:17Z
Backport PR #57665 on branch 2.2.x (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__...
backports #57665
https://api.github.com/repos/pandas-dev/pandas/pulls/57769
2024-03-07T21:08:40Z
2024-03-08T07:02:16Z
2024-03-08T07:02:16Z
2024-03-08T07:02:16Z
PERF: Return RangeIndex columns instead of Index for str.partition with ArrowDtype
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index cd6977f43d322..37d4d09159d36 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -256,6 +256,7 @@ Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - :meth:`RangeIndex.append` returns a :class:`RangeInde...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57768
2024-03-07T20:51:14Z
2024-03-11T03:22:43Z
2024-03-11T03:22:43Z
2024-03-11T04:32:42Z
Validate docstring error code
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5bbad800b7aa9..c3fe73acabcbf 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...
This PR does 2 things - Validate that all `pandas` error codes are not overlapped with `numpydoc`'s - Validate that all input error codes are valid I wonder if this is a welcome change? Currently, I can detect 1 duplicated error code.
https://api.github.com/repos/pandas-dev/pandas/pulls/57767
2024-03-07T19:05:31Z
2024-03-07T21:15:50Z
2024-03-07T21:15:50Z
2024-03-07T21:32:41Z
Bump ruff to latest version
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 201820c6a8b28..190ea32203807 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.1...
Bump `ruff` to the latest version in a separate PR because of the big formatting change.
https://api.github.com/repos/pandas-dev/pandas/pulls/57766
2024-03-07T17:23:25Z
2024-03-07T22:55:10Z
2024-03-07T22:55:10Z
2024-03-07T22:56:38Z
BUG: PyArrow dtypes were not supported in the interchange protocol
diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst index 96f210ce6b7b9..54084abab7817 100644 --- a/doc/source/whatsnew/v2.2.2.rst +++ b/doc/source/whatsnew/v2.2.2.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - :meth:`DataFrame.__dataframe__` ...
fixes a few things: - closes #57762 - closes #57761 - closes #57664
https://api.github.com/repos/pandas-dev/pandas/pulls/57764
2024-03-07T14:26:05Z
2024-03-20T21:10:55Z
2024-03-20T21:10:55Z
2024-04-10T12:08:23Z
Backport PR #57759 on branch 2.2.x (DOC: add whatsnew for v2.2.2)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 3a2ab4c17d1bd..34a2845290d5a 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 2.2 .. toctree:: :maxdepth: 2 + v2.2.2 v2.2.1 v2.2.0 diff --git a/doc/source/whatsnew/...
Backport PR #57759: DOC: add whatsnew for v2.2.2
https://api.github.com/repos/pandas-dev/pandas/pulls/57763
2024-03-07T12:52:13Z
2024-03-07T17:13:45Z
2024-03-07T17:13:44Z
2024-03-07T17:13:45Z
CLN: enforce deprecation of the `method` keyword on `df.fillna`
diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index be50c34d7d14c..905583c708905 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -242,18 +242,42 @@ labeled the aggregated group with the end of the interval: the next day). - Calling ``fillna`` on Se...
xref #53496 enforced deprecation of the `method` keyword on `df.fillna/ser.fillna`
https://api.github.com/repos/pandas-dev/pandas/pulls/57760
2024-03-07T09:45:25Z
2024-03-14T16:19:19Z
2024-03-14T16:19:19Z
2024-03-14T21:08:20Z
DOC: add whatsnew for v2.2.2
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 5d0e3f3291114..1a1ecdd0effee 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -25,6 +25,7 @@ Version 2.2 .. toctree:: :maxdepth: 2 + v2.2.2 v2.2.1 v2.2.0 diff --git a/doc/source/whatsnew/...
- [ ] 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/57759
2024-03-07T09:28:42Z
2024-03-07T12:51:10Z
2024-03-07T12:51:10Z
2024-03-07T12:51:10Z
BUG: DataFrame Interchange Protocol errors on Boolean columns
diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst index 54084abab7817..2a48403d9a318 100644 --- a/doc/source/whatsnew/v2.2.2.rst +++ b/doc/source/whatsnew/v2.2.2.rst @@ -22,6 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- :meth:`DataFrame.__dataframe__` was producing incorrect data buf...
- [ ] 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/57758
2024-03-07T08:38:04Z
2024-03-27T17:48:16Z
2024-03-27T17:48:16Z
2024-03-27T17:48:23Z
CLN: Enforce deprecation of passing a dict to SeriesGroupBy.agg
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e68a935fe6fd3..4f690e9339f6b 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -201,6 +201,7 @@ Removal of prior version deprecations/changes - Changed the default value of ``observed`` in :meth:`DataFr...
- [ ] 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/57757
2024-03-07T03:12:29Z
2024-03-07T04:40:31Z
2024-03-07T04:40:30Z
2024-03-07T21:09:12Z
CLN: Enforce deprecation of DataFrameGroupBy.dtypes and Grouper attrs
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e68a935fe6fd3..6748edcb4ce49 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -243,6 +243,8 @@ Removal of prior version deprecations/changes - Removed the ``ordinal`` keyword in :class:`PeriodIndex`, u...
- [ ] 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/57756
2024-03-07T02:57:27Z
2024-03-07T04:41:13Z
2024-03-07T04:41:13Z
2024-03-07T21:09:05Z
PERF/CLN: Preserve `concat(keys=range)` RangeIndex level in the result
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 9cae456f21ccf..ca2ca07ff2fae 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -204,6 +204,7 @@ Removal of prior version deprecations/changes - Enforced deprecation of ``axis=None`` acting the same as `...
Enforces #43485 Optimization found in #57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57755
2024-03-07T02:00:07Z
2024-03-08T22:46:31Z
2024-03-08T22:46:31Z
2024-03-08T22:46:36Z
PERF: RangeIndex.take/reindex/join with single/no value returns RangeIndex
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 157b87c93e729..85570cd4a6744 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -257,9 +257,9 @@ Performance improvements - Performance improvement in :meth:`MultiIndex.equals` for equal length indexes (...
Discovered in https://github.com/pandas-dev/pandas/pull/57441
https://api.github.com/repos/pandas-dev/pandas/pulls/57752
2024-03-06T19:46:51Z
2024-03-13T00:09:52Z
null
2024-03-13T00:09:55Z
DOC: fixing GL08 errors for pandas.Series.dt
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7f4911037cff9..fcbd0a855dcc8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -155,7 +155,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Period.ordinal\ pandas.PeriodIndex.freq\ pandas.PeriodIndex.qyear\ - ...
Resolved GL08 error for `scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.Series.dt` xref: #57443 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed]...
https://api.github.com/repos/pandas-dev/pandas/pulls/57751
2024-03-06T17:40:15Z
2024-03-17T00:36:47Z
2024-03-17T00:36:47Z
2024-03-17T08:13:18Z
CLN: Enforce deprecation of groupby.idxmin/idxmax with skipna=False not raising
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index fae7edba057ec..470f25d3860be 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -189,6 +189,7 @@ Other Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- [ ] 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/57746
2024-03-06T04:01:24Z
2024-03-06T23:58:10Z
2024-03-06T23:58:10Z
2024-03-06T23:59:05Z
CLN: Enforce deprecation of groupby.quantile supporting bool dtype
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index fae7edba057ec..98e872221722c 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -202,6 +202,7 @@ Removal of prior version deprecations/changes - In :meth:`DataFrame.stack`, the default value of ``future_...
- [ ] 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/57744
2024-03-06T03:28:08Z
2024-03-07T00:02:39Z
2024-03-07T00:02:39Z
2024-03-07T02:16:13Z
CLN: Enforce deprecation get_group with tuples of length 1
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 157b87c93e729..700256389441f 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -198,9 +198,11 @@ Removal of prior version deprecations/changes - All arguments in :meth:`Series.to_dict` are now keyword o...
- [ ] 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/57743
2024-03-06T02:55:35Z
2024-03-07T04:42:40Z
2024-03-07T04:42:40Z
2024-03-07T21:08:57Z
CLN: Enforce deprecation of method and limit in pct_change methods
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index fae7edba057ec..26d300680a34d 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -226,6 +226,7 @@ Removal of prior version deprecations/changes - Removed ``read_gbq`` and ``DataFrame.to_gbq``. Use ``panda...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/57742
2024-03-06T02:37:11Z
2024-03-06T23:59:42Z
2024-03-06T23:59:42Z
2024-03-07T00:00:16Z
CLN: Enforce deprecation of groupby with as_index=False excluding out-of-axis groupings
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index fae7edba057ec..a757ffb2d9665 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -190,6 +190,7 @@ Other Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- [ ] 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/57741
2024-03-06T02:03:31Z
2024-03-07T00:01:46Z
2024-03-07T00:01:46Z
2024-03-07T02:16:18Z
Backport PR #57172: MAINT: Adjust the codebase to the new 's keyword meaning
diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py index ee6f00b219a15..5c933294fb944 100644 --- a/pandas/core/array_algos/quantile.py +++ b/pandas/core/array_algos/quantile.py @@ -102,7 +102,7 @@ def quantile_with_mask( interpolation=interpolation, ) - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57740
2024-03-05T22:00:43Z
2024-03-06T00:08:18Z
2024-03-06T00:08:17Z
2024-03-06T00:08:21Z
CI/TST: Use worksteal over loadfile for pytest-xdist
diff --git a/ci/deps/actions-311-numpydev.yaml b/ci/deps/actions-311-numpydev.yaml index b62e8630f2059..61a0eabbf133c 100644 --- a/ci/deps/actions-311-numpydev.yaml +++ b/ci/deps/actions-311-numpydev.yaml @@ -13,10 +13,7 @@ dependencies: # test dependencies - pytest>=7.3.2 - pytest-cov - # Once pytest-cov > 4...
In theory, this should help alleviate a worker that is running tests from a larger file. Let's see if it saves any time on the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/57737
2024-03-05T18:12:48Z
2024-03-26T20:35:01Z
2024-03-26T20:35:00Z
2024-03-26T20:35:03Z
DOC: fixing GL08 errors for pandas.IntervalIndex.right and pandas.Series.dt
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5bbad800b7aa9..4c4e5cc640843 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -151,12 +151,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.IntervalIndex.left\ pandas.IntervalIndex.length\ pandas.IntervalInde...
Resolved GL08 errors for the following: 1. `scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.IntervalIndex.right` 2. `scripts/validate_docstrings.py --format=actions --errors=GL08 pandas.Series.dt` xref: #57443 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/57732
2024-03-05T08:13:49Z
2024-03-05T19:02:38Z
null
2024-03-06T17:41:11Z
Replace khash + tempita with khashl
diff --git a/.circleci/config.yml b/.circleci/config.yml index ea93575ac9430..f30b41e9b749a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: - run: | /opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev . ~/virtualenvs/pandas-dev/bin/acti...
supersedes #56432 this is just a research project at the moment, but the main thing this solves is using templated functions to achieve better code organization and runtime performance, compared to what's in main. Haven't spent a ton of time optimization but first benchmark run shows factorization of a high cardi...
https://api.github.com/repos/pandas-dev/pandas/pulls/57730
2024-03-05T02:12:42Z
2024-04-09T03:49:01Z
null
2024-04-09T03:49:01Z
Backport PR #57721 on branch 2.2.x (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...
Backport PR #57721: update from 2022 to 2024 image
https://api.github.com/repos/pandas-dev/pandas/pulls/57729
2024-03-04T21:45:00Z
2024-03-04T22:46:47Z
2024-03-04T22:46:47Z
2024-03-04T22:46:47Z
Backport PR #57726: TST/CI: Fix test_repr on musl for dateutil 2.9
diff --git a/pandas/tests/io/pytables/test_timezones.py b/pandas/tests/io/pytables/test_timezones.py index 8c61830ebe038..c5613daf62207 100644 --- a/pandas/tests/io/pytables/test_timezones.py +++ b/pandas/tests/io/pytables/test_timezones.py @@ -104,7 +104,7 @@ def test_append_with_timezones(setup_path, gettz): ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57728
2024-03-04T21:06:44Z
2024-03-04T22:45:38Z
2024-03-04T22:45:38Z
2024-03-04T22:45:42Z
CI: locking `pytest` version = `8.1.0`
diff --git a/environment.yml b/environment.yml index 3528f12c66a8b..e06c059d20b63 100644 --- a/environment.yml +++ b/environment.yml @@ -13,7 +13,7 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=7.3.2,<8.1.0 - pytest-cov - pytest-xdist>=2.2.0 - pytest-qt>=4.2...
- [x] closes #57718 locked `pytest` to version more then `8.1.0`, as a temporary solution. the reason: with the latest `pytest` version `8.1.0` we get an error when runninig pytest ``` File "/home/panda/miniforge3/envs/pandas-dev/lib/python3.10/site-packages/pluggy/_manager.py", line 342, in _verify_hook ...
https://api.github.com/repos/pandas-dev/pandas/pulls/57727
2024-03-04T19:50:33Z
2024-03-04T22:02:05Z
null
2024-03-04T22:48:23Z
TST/CI: Fix test_repr on musl for dateutil 2.9
diff --git a/pandas/tests/io/pytables/test_timezones.py b/pandas/tests/io/pytables/test_timezones.py index b455235669636..9192804e49bd1 100644 --- a/pandas/tests/io/pytables/test_timezones.py +++ b/pandas/tests/io/pytables/test_timezones.py @@ -104,7 +104,7 @@ def test_append_with_timezones(setup_path, gettz): ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/57726
2024-03-04T19:29:02Z
2024-03-04T21:03:44Z
2024-03-04T21:03:44Z
2024-03-04T21:13:37Z