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
CLN: Unused doc files
diff --git a/doc/source/_static/legacy_0.10.h5 b/doc/source/_static/legacy_0.10.h5 deleted file mode 100644 index b1439ef16361a..0000000000000 Binary files a/doc/source/_static/legacy_0.10.h5 and /dev/null differ diff --git a/doc/source/_static/stub b/doc/source/_static/stub deleted file mode 100644 index e69de29bb2d1d...
Didn't find any usages of these files in the docs
https://api.github.com/repos/pandas-dev/pandas/pulls/51850
2023-03-08T22:15:20Z
2023-03-08T23:46:53Z
2023-03-08T23:46:53Z
2023-03-09T00:09:03Z
Backport PR #51464 on branch 2.0.x (CoW: Ignore copy=True when copy_on_write is enabled)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4d171a6490ccc..36fd0dda5d2bc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -11028,7 +11028,7 @@ def to_timestamp( >>> df2.index DatetimeIndex(['2023-01-31', '2024-01-31'], dtype='datetime64[ns]', freq=None) """ -...
Backport PR #51464: CoW: Ignore copy=True when copy_on_write is enabled
https://api.github.com/repos/pandas-dev/pandas/pulls/51849
2023-03-08T22:04:58Z
2023-03-08T23:45:44Z
2023-03-08T23:45:44Z
2023-03-08T23:45:44Z
Backport PR #51689 on branch 2.0.x (BUG: mask/where raising for mixed dtype frame and no other)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 65f76f7e295a6..2e335e3f79f3d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6069,8 +6069,8 @@ def _is_mixed_type(self) -> bool_t: def _check_inplace_setting(self, value) -> bool_t: """check whether we allow in-place s...
Backport PR #51689: BUG: mask/where raising for mixed dtype frame and no other
https://api.github.com/repos/pandas-dev/pandas/pulls/51848
2023-03-08T21:45:24Z
2023-03-08T23:46:25Z
2023-03-08T23:46:25Z
2023-03-08T23:46:25Z
Remove flake8-rst usage
diff --git a/setup.cfg b/setup.cfg index 88b61086e1e0f..77717f4347473 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,35 +33,3 @@ exclude = versioneer.py, # exclude asv benchmark environments from linting env - -[flake8-rst] -max-line-length = 84 -bootstrap = - import numpy as np - import pandas as p...
This is required to make all the tests pass and merge #51827 As background, flake8-rst is breaking on python3.10, and the repository has not been maintained since December 2020: [https://pypi.org/project/flake8-rst/#history](url)
https://api.github.com/repos/pandas-dev/pandas/pulls/51847
2023-03-08T20:59:51Z
2023-03-08T21:24:41Z
2023-03-08T21:24:41Z
2023-03-08T21:24:42Z
STYLE Remove flake8-rst
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d39de3ee301f3..f10cfac5f1276 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -160,14 +160,6 @@ repos: types: [pyi] args: [scripts/run_stubtest.py] stages: [manual] - - id: flake8-rst - name:...
- [ ] 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/51843
2023-03-08T16:17:51Z
2023-03-08T19:22:48Z
2023-03-08T19:22:48Z
2023-03-09T15:00:50Z
DOC add example of Series.index
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45df480779ee7..c046d55d80b49 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,7 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
Added the example section. - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/p...
https://api.github.com/repos/pandas-dev/pandas/pulls/51842
2023-03-08T15:22:04Z
2023-04-16T20:44:11Z
2023-04-16T20:44:11Z
2023-04-17T06:05:24Z
Backport PR #51741 on branch 2.0.x (BUG: indexing empty pyarrow backed object returning corrupt object)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 12eb2375b69e1..317eca7dc8723 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1247,6 +1247,7 @@ Indexing - Bug in :meth:`DataFrame.compare` does not recognize differences when comparing ``NA`` with va...
#51741
https://api.github.com/repos/pandas-dev/pandas/pulls/51841
2023-03-08T13:23:12Z
2023-03-08T17:25:58Z
2023-03-08T17:25:58Z
2023-03-08T17:26:25Z
Backport PR #51766 on branch 2.0.x (CLN: Use type_mapper instead of manual conversion)
diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index 8a21d99124ec6..1a09157fabd09 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -18,10 +18,8 @@ from pandas.compat._optional import import_optional_dependency from pandas.util._decorators import doc -from pandas ...
#51766
https://api.github.com/repos/pandas-dev/pandas/pulls/51840
2023-03-08T13:19:51Z
2023-03-08T17:26:11Z
2023-03-08T17:26:11Z
2023-03-08T17:26:17Z
CLN: Remove pep8speaks
diff --git a/.pep8speaks.yml b/.pep8speaks.yml deleted file mode 100644 index 5a83727ddf5f8..0000000000000 --- a/.pep8speaks.yml +++ /dev/null @@ -1,4 +0,0 @@ -# File : .pep8speaks.yml - -scanner: - diff_only: True # If True, errors caused by only the patch are shown
Looks like this integration hasn't been working since ~October 2022 https://github.com/OrkoHunter/pep8speaks/issues/189. Also don't think it's entirely necessary as it only covers a small fraction of code checks that are done
https://api.github.com/repos/pandas-dev/pandas/pulls/51838
2023-03-08T02:04:12Z
2023-03-08T04:33:04Z
2023-03-08T04:33:04Z
2023-03-08T04:33:09Z
Update to the Dark Mode issues
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index 2a348e5b84e6e..c5ffb2ef38e22 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -236,11 +236,12 @@ ul.task-bullet > li > p:first-child { .tutorial-card ....
This should solve the Dark Mode issue when you expand the cards.
https://api.github.com/repos/pandas-dev/pandas/pulls/51837
2023-03-08T01:37:01Z
2023-03-08T01:53:05Z
null
2023-03-08T01:53:26Z
PERF: ArrowExtensionArray._from_sequence
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index ce2ac4213d806..f0d6774c833db 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1,6 +1,5 @@ from __future__ import annotations -from copy import deepcopy import operator import re from ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51836
2023-03-08T01:18:40Z
2023-03-08T04:34:45Z
2023-03-08T04:34:45Z
2023-03-17T22:04:23Z
STYLE: enable ruff TCH on some file
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 3d763ebb7a11f..0fbd587c1971e 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -1,7 +1,6 @@ from __future__ import annotations import importlib -import types from typing import ( TYPE_CHECKING, Sequence, @@ -9,7 ...
xref #51740, to fix ``` "pandas/core/construction.py" = ["TCH"] "pandas/core/missing.py" = ["TCH"] "pandas/tseries/*" = ["TCH"] "pandas/tests/*" = ["TCH"] "pandas/plotting/*" = ["TCH"] ```
https://api.github.com/repos/pandas-dev/pandas/pulls/51835
2023-03-08T01:00:33Z
2023-03-09T10:15:24Z
2023-03-09T10:15:24Z
2023-03-11T00:10:47Z
CoW: Set copy=False in internal usages of Series/DataFrame constructors
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 19e3eed2d3444..6d0a522becddc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1603,16 +1603,21 @@ def dot(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: if isinstance(other, DataFrame): return self._con...
- [ ] 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/51834
2023-03-08T00:31:21Z
2023-03-16T07:05:19Z
2023-03-16T07:05:19Z
2023-03-17T09:36:54Z
PERF: avoid non-cython in testing.pyx
diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx index 5e1f9a2f723fb..ca19670f37710 100644 --- a/pandas/_libs/testing.pyx +++ b/pandas/_libs/testing.pyx @@ -7,17 +7,14 @@ from numpy cimport import_array import_array() +from pandas._libs.missing cimport checknull from pandas._libs.util cimport ( ...
- [ ] 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/51833
2023-03-08T00:22:47Z
2023-03-08T20:07:01Z
2023-03-08T20:07:01Z
2023-03-08T20:19:06Z
BUG / CoW: Series.view not respecting CoW
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 15e3d66ecc551..05957f4da3f0d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -221,6 +221,8 @@ Copy-on-Write improvements - Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51832
2023-03-08T00:10:57Z
2023-03-13T19:17:33Z
2023-03-13T19:17:33Z
2023-03-13T22:37:56Z
New feature: Read first n_rows of Parquet File
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index b4330349a8c9d..71099a56642f1 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -21,6 +21,7 @@ DataFrame, MultiIndex, arrays, + concat, get_option, ) from pandas.core.shared_docs import _shared_docs @@ -218,8 +219,9 @@ ...
- [x] closes #51830 - [ ] [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/51831
2023-03-07T22:56:04Z
2023-03-08T09:38:57Z
null
2023-11-17T08:22:03Z
ERR: Raise ValueError when non-default index is given for orc format
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7e8403c94ceef..933709ce2cde8 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -183,7 +183,7 @@ MultiIndex I/O ^^^ -- +- :meth:`DataFrame.to_orc` now raising ``ValueError`` when non-default :class:`I...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51828
2023-03-07T22:19:15Z
2023-03-14T02:31:43Z
2023-03-14T02:31:43Z
2023-03-14T10:51:11Z
Enabled ruff TCH on some files
diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py index c0ab72e9d796b..87b3091fca75a 100644 --- a/pandas/core/ops/array_ops.py +++ b/pandas/core/ops/array_ops.py @@ -7,7 +7,10 @@ import datetime from functools import partial import operator -from typing import Any +from typing import ( + TY...
#51740 for the following elements: - [ ] "pandas/core/apply.py": no change was required - [ ] "pandas/core/base.py": no change was required - [ ] "pandas/core/algorithms.py": no change was required - [ ] "pandas/core/ops/*" - [ ] "pandas/core/sorting.py" No change was required means that the command: `pre-com...
https://api.github.com/repos/pandas-dev/pandas/pulls/51827
2023-03-07T21:38:17Z
2023-03-09T19:07:31Z
2023-03-09T19:07:31Z
2023-03-09T19:07:32Z
DOC: sort has no effect on filters
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 184b77c880238..f3917f539ae3f 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -112,13 +112,23 @@ If the axis is a MultiIndex (hierarchical), group by a particular level or levels. Do not specify both ``by`` a...
- [x] closes #51692 Updated docs for `DataFrame.groupby` and `Series.groupby`, pointed out that the parameter the `sort` parameter has no effect on filters.
https://api.github.com/repos/pandas-dev/pandas/pulls/51825
2023-03-07T21:20:50Z
2023-03-10T12:17:10Z
2023-03-10T12:17:09Z
2023-03-10T13:11:30Z
Fix to_excel not rendering None values in MultiIndex
diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index 98f7b64d2cda0..f11127eb97dd9 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -647,7 +647,9 @@ def _format_header_mi(self) -> Iterable[ExcelCell]: for lnum, (spans, levels, level_codes) in enumerate( ...
- [x] closes #51252 - [ ] [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/51824
2023-03-07T20:23:57Z
2023-04-07T17:53:22Z
null
2023-04-07T17:53:23Z
PERF/REF: make window/groupby imports lazy
diff --git a/pandas/__init__.py b/pandas/__init__.py index 1a549c09d22f7..9f181f08b678a 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -98,11 +98,9 @@ to_timedelta, # misc Flags, - Grouper, factorize, unique, value_counts, - NamedAgg, array, Categorical, s...
Maybe makes 20ms difference, hard to measure. But separating this out from other import-speed stuff bc the docstring movement makes the diff big.
https://api.github.com/repos/pandas-dev/pandas/pulls/51823
2023-03-07T20:12:32Z
2023-04-19T20:35:06Z
null
2023-04-19T20:35:16Z
Backport PR #51762 on branch 2.0.x (DOC: Add explanation how to convert arrow table to pandas df)
diff --git a/doc/source/user_guide/pyarrow.rst b/doc/source/user_guide/pyarrow.rst index 94b2c724cd229..876ca9c164823 100644 --- a/doc/source/user_guide/pyarrow.rst +++ b/doc/source/user_guide/pyarrow.rst @@ -76,6 +76,18 @@ the pyarrow array constructor on the :class:`Series` or :class:`Index`. idx = pd.Index(ser) ...
Backport PR #51762: DOC: Add explanation how to convert arrow table to pandas df
https://api.github.com/repos/pandas-dev/pandas/pulls/51822
2023-03-07T18:26:23Z
2023-03-07T20:18:37Z
2023-03-07T20:18:37Z
2023-03-07T20:18:37Z
DEPR: scalar index for length-1-list level groupby
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 74319b0444659..ee6f8b81e3b5b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -813,6 +813,7 @@ Deprecations - Deprecated :meth:`DataFrame.pad` in favor of :meth:`DataFrame.ffill` (:issue:`33396`) - De...
- [x] closes #51583 - [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/51817
2023-03-07T11:16:12Z
2023-03-18T12:23:36Z
2023-03-18T12:23:36Z
2023-03-18T20:55:38Z
add concat function dtype test
diff --git a/pandas/tests/reshape/concat/test_datetimes.py b/pandas/tests/reshape/concat/test_datetimes.py index f16358813488e..43c6bb03b6a9a 100644 --- a/pandas/tests/reshape/concat/test_datetimes.py +++ b/pandas/tests/reshape/concat/test_datetimes.py @@ -538,3 +538,40 @@ def test_concat_multiindex_datetime_nat(): ...
- [ ] closes #32934 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). The old PR closed, so created new one to close #32934.
https://api.github.com/repos/pandas-dev/pandas/pulls/51816
2023-03-07T04:59:23Z
2023-03-10T18:17:00Z
2023-03-10T18:17:00Z
2023-03-11T00:37:44Z
REF: define arithmetic methods non-dynamically
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index dd48da9ab6c16..be6c8493963ea 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1349,7 +1349,7 @@ def __array__(self, dtype: NpDtype | None = None) -> np.ndarray: def __array_ufunc__(s...
- [ ] 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/51813
2023-03-07T01:32:27Z
2023-03-08T21:31:49Z
2023-03-08T21:31:49Z
2023-03-08T21:33:48Z
STYLE: Enable ruff TCH on some files
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 6758ab9cb6814..9a4aa69345248 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -19,11 +19,6 @@ from pandas._config import using_copy_on_write -from pandas._typing import ( - Axis, - AxisInt, - ...
xref #51740, and fix ``` "pandas/core/reshape/*" "pandas/core/strings/*" "pandas/core/tools/*" "pandas/core/window/*" "pandas/io/*" ```
https://api.github.com/repos/pandas-dev/pandas/pulls/51812
2023-03-07T01:20:44Z
2023-03-07T10:23:06Z
2023-03-07T10:23:06Z
2023-03-08T00:17:44Z
DEPR: observed=False default in groupby
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 6fc53fe09d791..7c98c99fecd5b 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -702,11 +702,11 @@ Sorting is per order in the categories, not lexical order: df.sort_values(by="grade") -Group...
- [x] closes #43999 (Replace xxxx with the GitHub issue number) - [x] closes #30552 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/51811
2023-03-07T00:04:45Z
2023-03-17T17:03:05Z
2023-03-17T17:03:05Z
2023-03-18T11:58:02Z
Backport PR #51688 on branch 2.0.x (BUG: ArrowExtensionArray logical ops raising KeyError)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c6dd6d00f7c5a..12eb2375b69e1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1368,6 +1368,7 @@ ExtensionArray - Bug in :class:`Series` constructor unnecessarily overflowing for nullable unsigned inte...
Backport PR #51688: BUG: ArrowExtensionArray logical ops raising KeyError
https://api.github.com/repos/pandas-dev/pandas/pulls/51810
2023-03-06T23:43:58Z
2023-03-07T22:20:07Z
2023-03-07T22:20:07Z
2023-03-07T22:20:08Z
REF: Add ExtensionArray.map
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c12807304f74d..2dea25d6f10f4 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -32,6 +32,7 @@ Other enhancements - :meth:`MultiIndex.sortlevel` and :meth:`Index.sortlevel` gained a new keyword ``na_posi...
- [x] closes https://github.com/pandas-dev/pandas/issues/23179 Working with the `.map` method is very uncomfortable in main, because of issues with `ExtensionArray`: * `ExtensionArray` is not required to have a `.map` method, but may have it. * Some `ExtensionArray` subclasses, that do have a `map` method have on...
https://api.github.com/repos/pandas-dev/pandas/pulls/51809
2023-03-06T23:04:26Z
2023-03-13T16:49:55Z
2023-03-13T16:49:55Z
2023-09-25T08:33:34Z
DOC Fix EX01 issues in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bb1b2ab8accbb..8fefa47c16bab 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,8 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.item \ pandas.Series.pipe \ pandas.Series.mode \ - pandas....
- [ ] 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/51806
2023-03-06T11:32:55Z
2023-03-06T14:57:29Z
2023-03-06T14:57:29Z
2023-03-06T15:32:44Z
STYLE Enable ruff TCH for pandas/core/util/*
diff --git a/pandas/core/common.py b/pandas/core/common.py index 073af11b719cc..8f3b3bff5641a 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -30,13 +30,6 @@ import numpy as np from pandas._libs import lib -from pandas._typing import ( - AnyArrayLike, - ArrayLike, - NpDtype, - RandomSt...
ref #51740 This PR will enable ruff TCH for `pandas/core/util/*` and fix associated issues
https://api.github.com/repos/pandas-dev/pandas/pulls/51805
2023-03-06T07:01:43Z
2023-03-06T08:39:02Z
2023-03-06T08:39:02Z
2023-03-06T08:39:02Z
CLN: Enable codespell for all files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 484107af678a7..d39de3ee301f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: rev: v2.2.2 hooks: - id: codespell - types_or: [python, rst, markdown] + types_or: [python, rst, ma...
- [x] closes #44045 (Replace xxxx with the GitHub issue number) It seems works fine in current main branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/51804
2023-03-06T05:52:54Z
2023-03-06T14:10:16Z
2023-03-06T14:10:16Z
2023-03-06T23:56:17Z
CoW: Add reference tracking to index when created from series
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 277243d72c536..7323bdfc4c6d7 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -890,6 +890,16 @@ cdef class BlockValuesRefs: """ self.referenced_blocks.append(weakref.ref(blk)) + def add_index_ref...
- [ ] 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/51803
2023-03-05T23:26:52Z
2023-03-15T20:43:07Z
2023-03-15T20:43:07Z
2023-04-21T16:01:14Z
PERF: enabling TCH for pandas/core/resample.py
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 665e32829a57e..0ca01efe0c855 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -25,20 +25,7 @@ Timestamp, to_offset, ) -from pandas._typing import ( - AnyArrayLike, - Axis, - AxisInt, - Frequency, - IndexL...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51802
2023-03-05T22:10:38Z
2023-03-06T07:27:07Z
2023-03-06T07:27:07Z
2023-03-06T07:27:07Z
BUG: ArrowDtype.numpy_dtype returning ns units for non-nano timestamp and duration types
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 12d35288d1ee6..e03b1958de703 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -144,7 +144,7 @@ Numeric Conversion ^^^^^^^^^^ -- +- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units fo...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51800
2023-03-05T17:18:58Z
2023-03-06T17:02:37Z
2023-03-06T17:02:37Z
2023-03-17T22:04:30Z
PDEP-9: Allow third-party projects to register pandas connectors with a standard API
diff --git a/web/pandas/pdeps/0009-io-extensions.md b/web/pandas/pdeps/0009-io-extensions.md new file mode 100644 index 0000000000000..aeda990cea7df --- /dev/null +++ b/web/pandas/pdeps/0009-io-extensions.md @@ -0,0 +1,406 @@ +# PDEP-9: Allow third-party projects to register pandas connectors with a standard API + +- C...
@pandas-dev/pandas-core another PDEP. There is a short summary at the beginning of the proposal for people not immediately having the time to read the whole document.
https://api.github.com/repos/pandas-dev/pandas/pulls/51799
2023-03-05T16:20:13Z
2023-06-13T15:48:12Z
2023-06-13T15:48:12Z
2023-06-13T16:36:20Z
STYLE: Enable ruff TCH for pandas/core/common.py
diff --git a/pandas/core/common.py b/pandas/core/common.py index 073af11b719cc..8f3b3bff5641a 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -30,13 +30,6 @@ import numpy as np from pandas._libs import lib -from pandas._typing import ( - AnyArrayLike, - ArrayLike, - NpDtype, - RandomSt...
- [X] partly fixes #51740 - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Hi everyone! Thanks for this awesome package 👍 This PR will enable `ruff TCH` for the `pandas/core/common.py` file, the necessary changes in said file have been ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51798
2023-03-05T14:56:08Z
2023-03-05T19:37:20Z
2023-03-05T19:37:20Z
2023-03-05T19:37:21Z
STYLE enable ruff PLW2901
diff --git a/doc/source/conf.py b/doc/source/conf.py index 6671cefae9073..c73a91aa90365 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -101,20 +101,20 @@ reldir = os.path.relpath(dirname, source_path) for fname in fnames: if os.path.splitext(fname)[-1] in (".rst", ".ipynb"): ...
- [ ] closes #51708 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added relative entries in "to be gradually enabled" inside pyproject.toml.
https://api.github.com/repos/pandas-dev/pandas/pulls/51797
2023-03-05T11:48:02Z
2023-03-17T15:09:25Z
2023-03-17T15:09:25Z
2023-03-17T15:18:55Z
STYLE: Enable ruff TCH on "pandas/_libs/*"
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98dc671a8b35f..02acba4804eb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruf...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51794
2023-03-05T00:27:21Z
2023-03-17T15:15:15Z
2023-03-17T15:15:15Z
2023-03-17T15:15:16Z
PERF: PeriodArray._format_native_types
diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi index 946ae1215f1e3..690518a9fa88f 100644 --- a/pandas/_libs/tslibs/period.pyi +++ b/pandas/_libs/tslibs/period.pyi @@ -42,6 +42,12 @@ def extract_ordinals( def extract_freq( values: npt.NDArray[np.object_], ) -> BaseOffset: ... +def pe...
- [x] closes #23979 (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/51793
2023-03-04T23:48:15Z
2023-03-07T23:16:29Z
2023-03-07T23:16:29Z
2023-03-07T23:43:08Z
PERF: cache sortings in groupby.ops
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 457352564f255..96f39bb99e544 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1167,8 +1167,8 @@ def _wrap_applied_output( @final def _numba_prep(self, data: DataFrame): ids, _, ngrou...
xref #51077 doesn't close as there is more we can potentially cache. Also moved apply_groupwise down to be adjacent to thematically similar methods, unrelated.
https://api.github.com/repos/pandas-dev/pandas/pulls/51792
2023-03-04T23:23:14Z
2023-03-08T21:29:58Z
2023-03-08T21:29:58Z
2023-03-08T21:35:54Z
BUG: PeriodDtype constructor allowing invalid construction, incorrect exception class
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 2ac20e97409e7..987807a4d7265 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -178,7 +178,8 @@ I/O Period ^^^^^^ -- +- Bug in :class:`PeriodDtype` constructor failing to raise ``TypeError`` when no ...
- [x] closes #27388 (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/51790
2023-03-04T22:43:24Z
2023-03-06T11:29:44Z
2023-03-06T11:29:44Z
2023-03-06T15:16:19Z
DOC: Add section about copy on write and mutating objects
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index 94dde9a6ffd70..d16b41decd57a 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -6,11 +6,6 @@ Copy-on-Write (CoW) ******************* -.. ipython:: python - :sup...
- [ ] 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/51788
2023-03-04T20:25:17Z
2023-03-15T22:37:23Z
2023-03-15T22:37:23Z
2023-03-15T22:37:28Z
ENH: Let to_feather accept index and non string column names
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 12d35288d1ee6..392a7b9870b32 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -29,7 +29,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ - Improve error message when setting :class:`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/51787
2023-03-04T20:18:42Z
2023-03-06T11:34:33Z
2023-03-06T11:34:33Z
2023-04-27T19:53:02Z
STYLE enable ruff TCH on pandas/core/arrays
diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py index c93fc94685358..f2582cd6f2e58 100644 --- a/pandas/core/arrays/_ranges.py +++ b/pandas/core/arrays/_ranges.py @@ -4,6 +4,8 @@ """ from __future__ import annotations +from typing import TYPE_CHECKING + import numpy as np from pandas._...
- [ ] 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/51786
2023-03-04T18:02:41Z
2023-03-11T12:44:24Z
2023-03-11T12:44:24Z
2023-03-11T12:44:25Z
Backport PR #51780 on branch 2.0.x (CI: Fix np dev build failure)
diff --git a/pandas/tests/apply/test_frame_apply_relabeling.py b/pandas/tests/apply/test_frame_apply_relabeling.py index 2da4a78991f5a..ed3836de47051 100644 --- a/pandas/tests/apply/test_frame_apply_relabeling.py +++ b/pandas/tests/apply/test_frame_apply_relabeling.py @@ -1,4 +1,7 @@ import numpy as np +import pytest ...
Backport PR #51780: CI: Fix np dev build failure
https://api.github.com/repos/pandas-dev/pandas/pulls/51785
2023-03-04T16:39:11Z
2023-03-04T19:30:21Z
2023-03-04T19:30:21Z
2023-03-04T19:30:22Z
PERF: use "_name" instead of "name" as Series metadata to avoid validation
diff --git a/pandas/core/series.py b/pandas/core/series.py index fa5673b1c6326..26d93cfcb678e 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -346,8 +346,8 @@ class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc] _HANDLED_TYPES = (Index, ExtensionArray, np.ndarray) _name: Hashab...
See https://github.com/pandas-dev/pandas/issues/46505#issuecomment-1454733273 for context (and related to https://github.com/pandas-dev/pandas/pull/51109). The `_metadata` of a pandas object is what gets propagated in `__finalize__` calls. For example the reason that `ser.round()` preserves its name is because of th...
https://api.github.com/repos/pandas-dev/pandas/pulls/51784
2023-03-04T13:23:42Z
2023-03-23T18:46:25Z
2023-03-23T18:46:25Z
2023-03-23T18:46:29Z
STYLE: Enable ruff TCH on some files
diff --git a/pandas/core/array_algos/masked_accumulations.py b/pandas/core/array_algos/masked_accumulations.py index 07113128e0947..1798c0b366a46 100644 --- a/pandas/core/array_algos/masked_accumulations.py +++ b/pandas/core/array_algos/masked_accumulations.py @@ -5,18 +5,22 @@ from __future__ import annotations -...
xref #51740, for ``` "pandas/core/array_algos/*" "pandas/core/dtypes/*" "pandas/core/generic.py" "pandas/core/frame.py" "pandas/core/series.py" ```
https://api.github.com/repos/pandas-dev/pandas/pulls/51781
2023-03-04T11:23:21Z
2023-03-06T07:50:31Z
2023-03-06T07:50:31Z
2023-03-06T10:05:35Z
CI: Fix np dev build failure
diff --git a/pandas/tests/apply/test_frame_apply_relabeling.py b/pandas/tests/apply/test_frame_apply_relabeling.py index 95103de857399..2dcd228cdc19c 100644 --- a/pandas/tests/apply/test_frame_apply_relabeling.py +++ b/pandas/tests/apply/test_frame_apply_relabeling.py @@ -1,4 +1,7 @@ import numpy as np +import pytest ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51780
2023-03-04T11:22:44Z
2023-03-04T16:38:43Z
2023-03-04T16:38:43Z
2023-03-04T19:29:49Z
STYLE: Enable ruff TCH on pandas/core/indexers and more
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 1b8f08da07ea5..4037a9c7c6b4a 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -32,18 +32,6 @@ lib, reduction as libreduction, ) -from pandas._typing import ( - ArrayLike, - Axis, - A...
xref #51740, for ``` "pandas/core/indexers/*" "pandas/core/indexes/*" "pandas/core/internals/*" "pandas/core/groupby/*" "pandas/core/methods/*" ```
https://api.github.com/repos/pandas-dev/pandas/pulls/51779
2023-03-04T06:07:07Z
2023-03-04T09:43:17Z
2023-03-04T09:43:17Z
2023-03-04T11:04:47Z
BUG/PERF: Series.combine_first converting int64 to float64
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 47a61d41b2440..e9c091b14810b 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -115,6 +115,7 @@ Performance improvements - Performance improvement in :meth:`~arrays.ArrowExtensionArray.isna` when array ...
- [x] closes #51764 - [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/51777
2023-03-04T01:38:47Z
2023-03-10T18:57:04Z
2023-03-10T18:57:04Z
2023-03-17T22:04:16Z
Backport PR #51674 on branch 2.0.x (BUG: ArrowDtype().type raising for fixed size pa binary)
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index e8adab019b097..b6515c2875718 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -108,7 +108,11 @@ def type(self): return float elif pa.types.is_string(pa_type): ...
Backport PR #51674: BUG: ArrowDtype().type raising for fixed size pa binary
https://api.github.com/repos/pandas-dev/pandas/pulls/51776
2023-03-04T01:29:07Z
2023-03-04T10:41:42Z
2023-03-04T10:41:42Z
2023-03-04T10:41:43Z
CLN: assorted
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3a6d3cc2141be..f9e170597b822 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -789,7 +789,6 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated parsing datetime strings with system-local time...
- [x] closes #34381 (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/51775
2023-03-03T23:42:26Z
2023-03-07T23:14:17Z
2023-03-07T23:14:17Z
2023-03-07T23:41:55Z
WEB: Add robots.txt to disallow docs preview
diff --git a/web/pandas/robots.txt b/web/pandas/robots.txt new file mode 100644 index 0000000000000..91ac176b957a3 --- /dev/null +++ b/web/pandas/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /preview/
With the new doc previewer system, we have multiple copies of our web and docs in the `/preview/` path of our domain. I initially added a `robots.txt` file in that directory to be excluded by crawlers, but I double-checked, and seems like crawlers just check for the file in the root. So, it needs to be added here.
https://api.github.com/repos/pandas-dev/pandas/pulls/51774
2023-03-03T23:40:40Z
2023-03-06T11:46:49Z
2023-03-06T11:46:49Z
2023-03-06T11:46:59Z
PERF: fastpaths in tzconversion
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index c5f3b0ab7154f..cd496869b5525 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -224,6 +224,11 @@ timedelta-like} ------- localized : ndarray[int64_t] """ + + if ...
Should address some asv regressions that happened between 1.4.0 and 1.5.0
https://api.github.com/repos/pandas-dev/pandas/pulls/51773
2023-03-03T21:11:43Z
2023-03-07T23:11:53Z
2023-03-07T23:11:53Z
2023-03-07T23:44:12Z
Potap75 tch remove
diff --git a/pyproject.toml b/pyproject.toml index b7e4a3cf2416f..31d313998d0fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -292,7 +292,6 @@ exclude = [ "asv_bench/*" = ["TID"] # TCH to be enabled gradually "pandas/core/arrays/*" = ["TCH"] -"pandas/core/io/*" = ["TCH"] "pandas/core/indexers/*" = ["TCH"] "p...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51771
2023-03-03T20:17:53Z
2023-03-03T20:45:12Z
null
2023-03-03T20:46:56Z
STYLE enable TCH on pandas/core/io
diff --git a/pyproject.toml b/pyproject.toml index 9545cb0573320..dea3a39cb0ccc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -292,7 +292,6 @@ exclude = [ "asv_bench/*" = ["TID"] # TCH to be enabled gradually "pandas/core/arrays/*" = ["TCH"] -"pandas/core/io/*" = ["TCH"] "pandas/core/nanops.py" = ["TCH"] "pa...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51770
2023-03-03T20:07:11Z
2023-03-06T19:05:29Z
2023-03-06T19:05:29Z
2023-03-06T19:05:30Z
ENH: Implement DataFrame.from_pyarrow and DataFrame.to_pyarrow
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3a6d3cc2141be..4cb3a7b59a814 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -281,6 +281,7 @@ Other enhancements - Added new argument ``engine`` to :func:`read_json` to support parsing JSON with pyarr...
- [X] closes #51760 A mention in the docs is missing, and I guess we can add `pyarrow.Table` to the type annotations of what `DataFrame` accepts, but this should be mostly done otherwise.
https://api.github.com/repos/pandas-dev/pandas/pulls/51769
2023-03-03T19:56:24Z
2023-03-07T18:23:25Z
null
2023-03-07T18:23:26Z
checked 'removed pandas/core/io/* = [TCH]' for errors
diff --git a/pyproject.toml b/pyproject.toml index b7e4a3cf2416f..31d313998d0fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -292,7 +292,6 @@ exclude = [ "asv_bench/*" = ["TID"] # TCH to be enabled gradually "pandas/core/arrays/*" = ["TCH"] -"pandas/core/io/*" = ["TCH"] "pandas/core/indexers/*" = ["TCH"] "p...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/51768
2023-03-03T19:54:46Z
2023-03-03T20:00:23Z
null
2023-03-03T20:00:23Z
Start debugging
diff --git a/.github/workflows/deprecation-tracking-bot.yml b/.github/workflows/deprecation-tracking-bot.yml index c0d871ed54ed6..5375153b7bf37 100644 --- a/.github/workflows/deprecation-tracking-bot.yml +++ b/.github/workflows/deprecation-tracking-bot.yml @@ -4,9 +4,6 @@ on: pull_request: branches: - ma...
- [ ] 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/51767
2023-03-03T19:18:30Z
2023-03-04T12:05:20Z
null
2023-08-28T21:09:19Z
CLN: Use type_mapper instead of manual conversion
diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index 4593c48c926f4..63aba65274de4 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -13,10 +13,8 @@ from pandas.compat._optional import import_optional_dependency from pandas.util._decorators import doc -from pandas ...
- [ ] 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/51766
2023-03-03T18:37:54Z
2023-03-08T09:12:21Z
2023-03-08T09:12:21Z
2023-03-08T13:23:52Z
`SubClassedDataFrame.groupby().mean()` etc. use method of `SubClassedDataFrame`
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 2c5263f447951..db07b46771083 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -417,6 +417,10 @@ Plotting - Bug in :meth:`Series.plot` when invoked with ``color=None`` (:issue:`51953`) - +Groupby +- ...
- [x] closes #51757 - [ ] [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/51765
2023-03-03T18:11:01Z
2023-08-11T00:59:01Z
null
2023-08-11T00:59:01Z
DOC: Add explanation how to convert arrow table to pandas df
diff --git a/doc/source/user_guide/pyarrow.rst b/doc/source/user_guide/pyarrow.rst index 94b2c724cd229..876ca9c164823 100644 --- a/doc/source/user_guide/pyarrow.rst +++ b/doc/source/user_guide/pyarrow.rst @@ -76,6 +76,18 @@ the pyarrow array constructor on the :class:`Series` or :class:`Index`. idx = pd.Index(ser) ...
- [ ] closes #51760 (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/51762
2023-03-03T16:10:13Z
2023-03-07T18:25:52Z
2023-03-07T18:25:52Z
2023-03-07T22:28:03Z
TST: Test to verify behavior of groupby.std with no numeric columns and numeric_only=True
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 4682d262bf300..ea4bb42fb7ee1 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2873,3 +2873,21 @@ def test_obj_with_exclusions_duplicate_columns(): result = gb._obj_with_exc...
- [x] closes #51080 - [ ] [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/51761
2023-03-03T15:42:45Z
2023-03-06T21:49:34Z
2023-03-06T21:49:34Z
2023-03-06T21:49:43Z
CI: fixup pre-commit failure
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 40dfe0b33d66c..c0ca5b2320338 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -92,8 +92,8 @@ Other API changes Deprecations ~~~~~~~~~~~~ -- Deprecated accepting slices in :meth:`DataFrame.take`, cal...
some PR was merged after #51715 but before having merged main
https://api.github.com/repos/pandas-dev/pandas/pulls/51759
2023-03-03T12:16:52Z
2023-03-03T12:53:27Z
2023-03-03T12:53:27Z
2023-03-03T12:53:28Z
DEPR: added deprecation warning for NDFrame.bool
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 5c2f2410e688c..16a85ccc74b43 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -329,16 +329,6 @@ You can test if a pandas object is empty, via the :attr:`~DataFrame.empty` prope df.empty ...
- [x] closes #51749 - [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/51756
2023-03-03T09:41:31Z
2023-04-02T12:51:46Z
2023-04-02T12:51:46Z
2023-04-02T12:53:15Z
Backport PR #51732 on branch 2.0.x (CoW: Add property for references to series class)
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 4dbdd5e5b77fe..005c166bb1f2a 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -567,10 +567,7 @@ def _homogenize( # Forces alignment. No need to copy data sin...
Backport PR #51732: CoW: Add property for references to series class
https://api.github.com/repos/pandas-dev/pandas/pulls/51755
2023-03-03T09:20:53Z
2023-03-03T14:10:13Z
2023-03-03T14:10:13Z
2023-03-03T14:10:14Z
STYLE enable ruff TCH on pandas/core/arrays
diff --git a/LICENSES/SCIPY_LICENSE b/LICENSES/SCIPY_LICENSE index d887ce5f9890f..3d617560f408a 100644 --- a/LICENSES/SCIPY_LICENSE +++ b/LICENSES/SCIPY_LICENSE @@ -28,4 +28,3 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51754
2023-03-03T07:31:03Z
2023-03-04T17:02:02Z
null
2023-03-04T18:04:07Z
Add test to check numeric precision GH33234
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 14bd466b052bf..ad53cf6629adb 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -1377,6 +1377,33 @@ def func(ser): tm.assert_fr...
This a new PR to fix #33234 since old PR closed.
https://api.github.com/repos/pandas-dev/pandas/pulls/51753
2023-03-03T06:33:07Z
2023-03-13T17:50:19Z
2023-03-13T17:50:19Z
2023-03-13T22:35:42Z
STYLE enable ruff PLR5501 #51709
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index feda414a0113d..dc89c11bef231 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -2104,11 +2104,10 @@ def __call__(self, num: float) -> str: if self.use_eng_prefix: prefix = self.ENG_PREFIXES[i...
- [x] closes #51709 - [x] Added "elif instead of else if"
https://api.github.com/repos/pandas-dev/pandas/pulls/51747
2023-03-02T20:28:26Z
2023-03-07T20:32:52Z
2023-03-07T20:32:52Z
2023-03-10T20:12:43Z
DOC: Fix item docstring
diff --git a/pandas/core/base.py b/pandas/core/base.py index 9f02e20b1605d..d9b2647d19f93 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -361,7 +361,7 @@ def item(self): Returns ------- scalar - The first element of %(klass)s. + The first element of Series...
- [ ] 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/51746
2023-03-02T19:50:56Z
2023-03-02T22:12:23Z
2023-03-02T22:12:22Z
2023-05-10T17:09:06Z
REF: remove usage of `np.product` and `np.cumproduct`
diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py index 1154940f2c4a6..a92b439927fff 100644 --- a/pandas/core/reshape/util.py +++ b/pandas/core/reshape/util.py @@ -41,7 +41,7 @@ def cartesian_product(X) -> list[np.ndarray]: return [] lenX = np.fromiter((len(x) for x in X), dtype=np....
These will be deprecated soon, so use the preferred names (`np.prod` and `np.cumprod`) instead.
https://api.github.com/repos/pandas-dev/pandas/pulls/51743
2023-03-02T11:32:40Z
2023-03-02T13:42:22Z
2023-03-02T13:42:21Z
2023-03-02T13:46:46Z
Revert "CLN: Remove read_orc dtype checking (#51604)"
diff --git a/pandas/io/orc.py b/pandas/io/orc.py index 3999fc5840f02..1b9be9adc1196 100644 --- a/pandas/io/orc.py +++ b/pandas/io/orc.py @@ -19,8 +19,16 @@ ReadBuffer, WriteBuffer, ) +from pandas.compat import pa_version_under8p0 from pandas.compat._optional import import_optional_dependency +from pandas....
This reverts commit b69bd0755d654c0dba42042df7b2251918274327. - [x] closes #51733 (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...
https://api.github.com/repos/pandas-dev/pandas/pulls/51742
2023-03-02T10:24:02Z
2023-03-03T01:09:36Z
2023-03-03T01:09:36Z
2023-03-03T15:48:03Z
BUG: indexing empty pyarrow backed object returning corrupt object
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 15e3d66ecc551..374a1e43daa11 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1249,6 +1249,7 @@ Indexing - Bug in :meth:`DataFrame.compare` does not recognize differences when comparing ``NA`` with va...
- [x] closes #51734 (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/51741
2023-03-02T10:18:55Z
2023-03-08T09:13:05Z
2023-03-08T09:13:05Z
2023-08-28T21:09:47Z
PERF: accessing sliced indexes with populated indexing engines
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index cb2ca6d16ec0a..cafa196aaf77b 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -110,6 +110,7 @@ Performance improvements - Performance improvement in :meth:`read_orc` when reading a remote URI file path...
Improves performance of indexes that are sliced from indexes with already-built indexing engines by copying the relevant data from the existing indexing engine, thereby avoiding recomputation. Performance example: ```python >>> import pandas as pd >>> >>> idx = pd.Index(np.arange(1_000_000)) >>> idx.is_unique...
https://api.github.com/repos/pandas-dev/pandas/pulls/51738
2023-03-02T08:11:12Z
2023-03-08T17:50:56Z
2023-03-08T17:50:56Z
2023-03-08T19:39:26Z
Is ExtensionDtype.type a property or a ClassVar?
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 2dba557eda169..7515b99ca15a5 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -64,10 +64,8 @@ class BooleanDtype(BaseMaskedDtype): name = "boolean" - # https://github.com/python/mypy/issues/4125...
`ExtensionDtype.type` is a `property` but a few (not all) sub-classes define it as a class variable. I assume it should be a `property` but I'm not sure. There are a few more cases where `type` is used a class variable in pandas/core/arrays/floating.py and pandas/core/arrays/integer.py. I will address them but I fir...
https://api.github.com/repos/pandas-dev/pandas/pulls/51736
2023-03-02T02:39:33Z
2023-04-06T01:19:21Z
null
2023-08-09T15:08:38Z
Backport PR #51592 on branch 2.0.x (PERF: maybe_promote)
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 5877c60df41fd..8aadb67aea533 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -23,6 +23,7 @@ from pandas._libs.missing import ( NA, NAType, + checknull, ) from pandas._libs.tslibs import ( NaT, @@ ...
Backport PR #51592: PERF: maybe_promote
https://api.github.com/repos/pandas-dev/pandas/pulls/51735
2023-03-02T02:04:23Z
2023-03-02T10:23:25Z
2023-03-02T10:23:25Z
2023-03-02T10:23:25Z
CoW: Add property for references to series class
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 4dbdd5e5b77fe..005c166bb1f2a 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -567,10 +567,7 @@ def _homogenize( # Forces alignment. No need to copy data sin...
- [ ] 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/51732
2023-03-02T00:39:38Z
2023-03-03T09:20:15Z
2023-03-03T09:20:15Z
2023-03-03T15:48:32Z
API / CoW: Copy NumPy arrays by default in DataFrame constructor
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 55185afc0a098..25ff4d6e7d7e1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -190,6 +190,13 @@ Copy-on-Write improvements of Series objects and specifying ``copy=False``, will now use a lazy copy ...
- Parent issue: https://github.com/pandas-dev/pandas/issues/50776 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/...
https://api.github.com/repos/pandas-dev/pandas/pulls/51731
2023-03-01T23:47:08Z
2023-03-17T14:11:43Z
2023-03-17T14:11:43Z
2023-03-17T14:18:02Z
PERF: ArrowExtensionArray._from_sequence_of_strings(dtype=pa.bool_())
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 68159cd211a5e..1f76add24ad71 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -106,6 +106,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.where` when ``cond`` is backed by a...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51730
2023-03-01T23:18:43Z
2023-03-06T12:03:15Z
2023-03-06T12:03:15Z
2023-03-17T22:04:32Z
Backport PR #51498: PERF: Implement round on the block level
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 11b30ce601be6..761a6f7e9c9c1 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -739,4 +739,22 @@ def time_memory_usage_object_dtype(self): self.df2.memory_usage(deep=...
- [ ] 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/51729
2023-03-01T23:00:04Z
2023-03-02T01:29:01Z
2023-03-02T01:29:01Z
2023-03-11T17:23:26Z
Backport PR #51640 on branch 2.0.x (COMPAT: Update code for latest Cython 3 beta)
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7b31c5392849b..2ca22e6356b11 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,9 +14,6 @@ on: paths-ignore: - "doc/**" -env: - PANDAS_CI: 1 - permissions: contents: read @@ -32,6 +29,7 @...
Backport PR #51640: COMPAT: Update code for latest Cython 3 beta
https://api.github.com/repos/pandas-dev/pandas/pulls/51728
2023-03-01T22:55:02Z
2023-03-02T01:28:51Z
2023-03-02T01:28:51Z
2023-03-02T01:28:51Z
BUG: read_parquet does not respect index for arrow dtype backend
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index aec31f40f8570..3d8346aeb97a2 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -24,7 +24,9 @@ from pandas import ( DataFrame, + Index, MultiIndex, + RangeIndex, arrays, get_option, ) @@ -250,14 +252,37 @@ def read...
- [x] closes #51717 (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/51726
2023-03-01T22:36:00Z
2023-03-14T10:59:23Z
null
2023-08-28T21:09:48Z
DOC: updated docstrings for EX02 validation and updated code_checks
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 865f6d46cfee0..9bf106e1cc065 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -79,8 +79,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (EX04, GL01, GL02, GL03, GL04, GL05, GL06, GL07, G...
- [x] closes #51236 - [ ] [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/51724
2023-03-01T22:08:28Z
2023-03-02T08:36:00Z
2023-03-02T08:36:00Z
2023-03-21T22:36:22Z
CI: Add bot to track deprecation prs
diff --git a/.github/workflows/deprecation-tracking-bot.yml b/.github/workflows/deprecation-tracking-bot.yml new file mode 100644 index 0000000000000..c0d871ed54ed6 --- /dev/null +++ b/.github/workflows/deprecation-tracking-bot.yml @@ -0,0 +1,31 @@ +name: Deprecations Bot + +on: + pull_request: + branches: + -...
We tend to forget to register deprecation prs in our deprecation log. This bot aims to solve this. Every time a PR with the label Deprecate is merged, it adds a new entry to the deprecation log. In a future version I'd like to add the option to also check enforced deprecations automatically. One TODO is how to ha...
https://api.github.com/repos/pandas-dev/pandas/pulls/51723
2023-03-01T21:55:32Z
2023-03-03T19:07:51Z
2023-03-03T19:07:51Z
2023-03-04T01:18:51Z
PERF: GroupBy.quantile
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index f1e370a0b8316..98465b5686ca1 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -176,6 +176,7 @@ Other enhancements - Performance improvement in :func:`concat` with homogeneous ``np.float64`` or ``np.flo...
- [x] closes #51385 (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/51722
2023-03-01T21:27:33Z
2023-08-01T02:04:33Z
2023-08-01T02:04:33Z
2023-08-01T02:42:51Z
Backport PR #51454 on branch 2.0.x (DOC: Add user guide section about copy on write)
diff --git a/doc/source/development/copy_on_write.rst b/doc/source/development/copy_on_write.rst index 757a871b495c5..9a2309b8a77a3 100644 --- a/doc/source/development/copy_on_write.rst +++ b/doc/source/development/copy_on_write.rst @@ -1,4 +1,4 @@ -.. _copy_on_write: +.. _copy_on_write_dev: {{ header }} @@ -9,7 +...
Backport PR #51454: DOC: Add user guide section about copy on write
https://api.github.com/repos/pandas-dev/pandas/pulls/51719
2023-03-01T16:24:01Z
2023-03-02T22:12:50Z
2023-03-02T22:12:50Z
2023-03-02T22:12:51Z
DEV: reduce merge conflicts by sorting whatsnew notes by issue number?
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0468aa8137a2..484107af678a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -436,3 +436,10 @@ repos: types: [python] files: ^pandas/tests language: python + - id: sort-whatsnew-items + name...
- [ ] closes #51712 (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/51715
2023-03-01T12:47:13Z
2023-03-02T23:31:15Z
2023-03-02T23:31:14Z
2023-03-02T23:31:22Z
Backport PR #50778 on branch 2.0.x (PERF: Use generator expression for Blocks.replace_list)
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 06c4589297cda..204393cbb76f2 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -386,4 +386,33 @@ def time_to_numpy_copy(self): self.ser.to_numpy(copy=True) +c...
Backport PR #50778: PERF: Use generator expression for Blocks.replace_list
https://api.github.com/repos/pandas-dev/pandas/pulls/51714
2023-03-01T12:24:30Z
2023-03-01T14:39:57Z
2023-03-01T14:39:57Z
2023-03-01T14:39:58Z
Backport PR #51669 on branch 2.0.x (ENH: Add CoW mechanism to replace_regex)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 2cfab63f8a63f..96b3355872dc6 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -651,6 +651,7 @@ def _replace_regex( value, inplace: bool = False, mask=None, + using_...
Backport PR #51669: ENH: Add CoW mechanism to replace_regex
https://api.github.com/repos/pandas-dev/pandas/pulls/51713
2023-03-01T12:20:34Z
2023-03-01T14:39:43Z
2023-03-01T14:39:43Z
2023-03-01T14:39:43Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 576c929c26b9b..e0468aa8137a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruf...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/main) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/node_...
https://api.github.com/repos/pandas-dev/pandas/pulls/51707
2023-03-01T07:05:04Z
2023-03-01T08:30:39Z
2023-03-01T08:30:39Z
2023-03-04T01:14:42Z
TST: add test for apply/reconstruct_func
diff --git a/pandas/tests/apply/test_frame_apply_relabeling.py b/pandas/tests/apply/test_frame_apply_relabeling.py index 2da4a78991f5a..95103de857399 100644 --- a/pandas/tests/apply/test_frame_apply_relabeling.py +++ b/pandas/tests/apply/test_frame_apply_relabeling.py @@ -95,3 +95,11 @@ def test_agg_namedtuple(): ...
- [ ] closes #28472 - [ ] [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/51705
2023-03-01T05:26:24Z
2023-03-03T03:00:20Z
2023-03-03T03:00:20Z
2023-03-04T01:26:01Z
DOC: Improve groupby in the User Guide
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index b5bf7ee25a50f..31c4bd1d7c87c 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -476,41 +476,71 @@ Or for an object grouped on multiple columns: Aggregation ----------- -Once the GroupBy 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/51704
2023-03-01T02:48:39Z
2023-03-08T21:35:56Z
2023-03-08T21:35:56Z
2023-04-02T14:21:58Z
DEPR: pinning name in SeriesGroupBy.agg
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 45b5c16415f9d..acc76217d4d17 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -93,6 +93,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated accepting slices in :meth:`DataFrame.take`, call ...
- [ ] 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/51703
2023-03-01T02:30:51Z
2023-03-03T02:29:18Z
2023-03-03T02:29:18Z
2023-03-03T02:31:54Z
REF: Remove sanitize_column from _iset_item
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dbbe2c0751f3a..b8632a52f8988 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4105,9 +4105,11 @@ def _set_item_mgr(self, key, value: ArrayLike) -> None: if len(self): self._check_setitem_copy() - def _iset_item(sel...
- [ ] 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/51702
2023-02-28T23:47:20Z
2023-03-01T21:47:53Z
2023-03-01T21:47:53Z
2023-03-01T21:47:57Z
ERR: Add explicit error message for isetitem for DataFrame
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 45b5c16415f9d..dd27fd9e128ae 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -28,7 +28,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ -- +- Improve error message when setting :class:`DataF...
- [ ] 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/51701
2023-02-28T23:37:16Z
2023-03-01T16:22:11Z
2023-03-01T16:22:11Z
2023-03-01T16:22:16Z
BUG: changing period array formats to specified date formats in `to_csv`
diff --git a/pandas/io/formats/csvs.py b/pandas/io/formats/csvs.py index baf264353fca7..303bc56c46380 100644 --- a/pandas/io/formats/csvs.py +++ b/pandas/io/formats/csvs.py @@ -307,7 +307,10 @@ def _save_chunk(self, start_i: int, end_i: int) -> None: df = self.obj.iloc[slicer] res = df._mgr.to_nativ...
- This is intended to fix #51621 - This issue is that PeriodArrays can not change to the specified `date_format` in `to_csv`. - The cause is that PeriodArray is established as `NDArrayBackedExtensionBlock` instead of `DatetimeLikeBlock` so that `df._mgr.to_native_types` does not change 'PeriodArray' to desired string...
https://api.github.com/repos/pandas-dev/pandas/pulls/51700
2023-02-28T22:48:20Z
2023-04-21T17:29:51Z
null
2023-04-21T17:29:52Z
Backport PR #51659 on branch 2.0.x (ENH: Improve replace lazy copy for categoricals)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 7a24649fc60af..2cfab63f8a63f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -701,8 +701,7 @@ def replace_list( # TODO: avoid special-casing # GH49404 if usin...
Backport PR #51659: ENH: Improve replace lazy copy for categoricals
https://api.github.com/repos/pandas-dev/pandas/pulls/51699
2023-02-28T22:44:50Z
2023-03-01T00:47:08Z
2023-03-01T00:47:08Z
2023-03-01T00:47:08Z
CoW: Delay copy when setting Series into DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9cd3a4e91eaf8..b6c80a51cec16 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -201,6 +201,7 @@ if TYPE_CHECKING: import datetime + from pandas._libs.internals import BlockValuesRefs from pandas._typing import ( AggFun...
- [ ] 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/51698
2023-02-28T22:41:58Z
2023-05-05T15:18:57Z
2023-05-05T15:18:57Z
2023-05-05T15:25:20Z
DEP: Deprecate passing a DataFrame to from_records
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c0ca5b2320338..2ac20e97409e7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -93,6 +93,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecating pinning ``group.name`` to each group in :meth:`S...
- [x] closes #51353 (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/51697
2023-02-28T22:11:07Z
2023-03-03T19:08:31Z
2023-03-03T19:08:31Z
2023-03-03T19:08:40Z