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
STYLE: fix pylint self-assigning-variable warnings
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index a5641465b0be0..0c99ae4b8e03d 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -877,7 +877,7 @@ def assert_series_equal( ) if check_like: - left, right = left.reindex_like(right), right + ...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49919
2022-11-26T20:01:30Z
2022-11-26T22:11:56Z
2022-11-26T22:11:56Z
2022-11-26T22:11:56Z
DOC: Table Visualization gets Error for cell #49874
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 43021fcbc13fb..fc0ba116dcb3f 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -76,7 +76,7 @@ "source": [ "# Hidden cell to just create the below example: code is covered throughout ...
- [x] closes #49874 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Building the documentation passes locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/49918
2022-11-26T19:41:11Z
2022-11-27T18:10:41Z
2022-11-27T18:10:41Z
2022-11-27T18:10:41Z
BLD: Move options to pyproject.toml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc6875589c691..6c8e068b5565c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -270,6 +270,7 @@ repos: entry: python scripts/validate_min_versions_in_sync.py language: python files: ^(ci/deps/actions-.*-m...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49917
2022-11-26T17:38:36Z
2022-11-29T18:59:37Z
2022-11-29T18:59:37Z
2023-01-23T01:01:10Z
DEPR: Change default of numeric_only to False in Resampler methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bc922bace053a..97ee96d8be25d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -573,6 +573,7 @@ Removal of prior version deprecations/changes - Changed default of ``numeric_only`` to ``False`` in :meth:...
- [ ] 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/49915
2022-11-26T13:51:39Z
2022-11-26T16:20:57Z
2022-11-26T16:20:57Z
2022-11-27T14:49:19Z
DOC: update running the test suite documentation
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 08339b8c068ea..91f3d51460f99 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -777,6 +777,14 @@ install pandas) by typing:: ...
- [x] closes #48060 - [ ] [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/49914
2022-11-26T12:28:30Z
2022-11-28T20:29:06Z
2022-11-28T20:29:06Z
2022-12-01T12:13:57Z
Fix some little-endian assumptions in the tests
diff --git a/pandas/tests/arrays/floating/test_arithmetic.py b/pandas/tests/arrays/floating/test_arithmetic.py index ec7419d6346a8..f207540a76f2a 100644 --- a/pandas/tests/arrays/floating/test_arithmetic.py +++ b/pandas/tests/arrays/floating/test_arithmetic.py @@ -162,7 +162,10 @@ def test_error_invalid_values(data, al...
See previous [PR#46681](https://github.com/pandas-dev/pandas/pull/46681). - [ ] closes #xxxx **N/A** - [ ] [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 **N/A, fixes some existing test failures on s390...
https://api.github.com/repos/pandas-dev/pandas/pulls/49913
2022-11-25T17:45:59Z
2022-11-28T21:17:42Z
2022-11-28T21:17:42Z
2022-11-28T21:17:52Z
API: various .value_counts() result in different names / indices
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4039276caa0af..7d9b648887f1a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -330,6 +330,36 @@ a supported dtype: pd.Series(["2016-01-01"], dtype="datetime64[D]") +.. _whatsnew_200.api_breaking...
- [ ] closes #49497 (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/49912
2022-11-25T17:12:05Z
2023-02-01T16:06:21Z
2023-02-01T16:06:21Z
2023-02-01T16:06:22Z
STYLE: Enable unnecessary list index lookup
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 8246d3a7e5c96..09cd989b5ca9d 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -4368,7 +4368,7 @@ def write_data(self, chunksize: int | None, dropna: bool = False) -> None: bvalues = [] for i, v in enumerate(values): ...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Associated with #48855. Enables the Pylint type "R" warning `unnecessary-list-index-lookup`. Also updates the list of intentionally disabled checks.
https://api.github.com/repos/pandas-dev/pandas/pulls/49911
2022-11-25T17:10:50Z
2022-11-28T16:58:53Z
2022-11-28T16:58:53Z
2022-11-28T17:04:00Z
WIP STYLE: Suppress false positives for pylint W0703 ( broad-except)
diff --git a/ci/fix_wheels.py b/ci/fix_wheels.py index 525aacf572cd4..c8df5a690aad1 100644 --- a/ci/fix_wheels.py +++ b/ci/fix_wheels.py @@ -48,7 +48,7 @@ os.path.join(base_redist_dir, "vcruntime140_1.dll"), "pandas/_libs/window/vcruntime140_1.dll", ) - except Exception...
- [ ] partially addresses style issues in #48855 - [ ] [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_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/49910
2022-11-25T16:35:49Z
2022-11-25T16:54:26Z
null
2022-11-25T16:56:17Z
BUG: SeriesGroupBy.apply sets name attribute if result is DataFrame
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index e7428956c50b5..e0bcd81805cc1 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed performance regression in :meth:`Series.isin` when ``values`` is empty (:issue:`49...
- [ ] closes #49907 (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/49908
2022-11-25T14:50:54Z
2022-11-27T16:05:17Z
2022-11-27T16:05:16Z
2022-11-27T16:05:34Z
Fixed redefined-outer-name on pandas/core/generic.py. Removed 3 lines…
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b74dd057e865..094bb4a52c49f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,9 +78,6 @@ repos: |^pandas/util/_test_decorators\.py # keep excluded |^pandas/_version\.py # keep excluded ...
… from .pre-commit-config.yaml - [ ] 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.o...
https://api.github.com/repos/pandas-dev/pandas/pulls/49902
2022-11-24T22:10:11Z
2022-11-27T20:06:39Z
null
2022-11-27T20:06:39Z
adding convert_cell to read_excel
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6362e892f0012..edb569422c054 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -383,6 +383,7 @@ def read_excel( skipfooter: int = ..., storage_options: StorageOptions = ..., use_nullable_dtypes: bool = ..., + ...
- [x ] closes #49872 - [ ] [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/49899
2022-11-24T20:26:12Z
2022-11-28T21:23:42Z
null
2022-11-28T21:24:03Z
STYLE enable pylint: undefined-variable
diff --git a/doc/make.py b/doc/make.py index f5bf170c6274d..398f8651f4a03 100755 --- a/doc/make.py +++ b/doc/make.py @@ -84,7 +84,7 @@ def _process_single_doc(self, single_doc): elif single_doc.startswith("pandas."): try: - obj = pandas # noqa: F821 + obj = pandas ...
Issue #48855. This PR enables pylint warning: `undefined-variable` - [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/49898
2022-11-24T19:07:29Z
2022-11-27T17:48:17Z
null
2022-11-27T17:48:17Z
STYLE pre-commit autoupdate, and other cleanups
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 66bc7cd917b31..638ae336893e3 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -36,6 +36,8 @@ jobs: - name: Run pre-commit uses: pre-commit/action@v2.0.3 + with: + e...
Summary of changes (separated out into separate commits for ease of review): - run `pre-commit autoupdate`, bumping a few versions - It's mostly using double-quotes in Cython files (cc @jbrockmendel 's suggestion in https://github.com/pandas-dev/pandas/pull/49866#discussion_r1030853463) - remove some unused variab...
https://api.github.com/repos/pandas-dev/pandas/pulls/49896
2022-11-24T18:10:42Z
2022-11-28T21:27:17Z
null
2022-11-28T21:27:17Z
manual backport of DEPR Enforce reversion of Size color aliases
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index d65446604a83f..e7428956c50b5 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -15,6 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in :meth:`Series.isin` when ``values`` i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49895
2022-11-24T15:34:22Z
2022-11-24T17:20:08Z
2022-11-24T17:20:08Z
2022-11-24T17:20:08Z
BUG: Do not fail when parsing pydatetime objects in pd.to_datetime
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1fb9a81e85a83..2a2941c7ff9a5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -637,6 +637,7 @@ Datetimelike - Bug in subtracting a ``datetime`` scalar from :class:`DatetimeIndex` failing to retain the ...
- [x] closes #49298 (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/49893
2022-11-24T14:34:21Z
2022-12-01T19:56:45Z
2022-12-01T19:56:45Z
2022-12-05T19:58:55Z
DEPR: Change numeric_only to False in various groupby ops
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 97ee96d8be25d..3833d5ebbdedb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -572,7 +572,7 @@ Removal of prior version deprecations/changes - Changed default of ``numeric_only`` to ``False`` in all Da...
- [ ] 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/49892
2022-11-24T14:33:53Z
2022-11-28T22:52:55Z
2022-11-28T22:52:55Z
2022-11-28T23:47:41Z
BUG: Do not attempt to parse datetime.datetime objects in pd.to_datetime
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index fd7cc0598f850..050cd6a341aeb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -632,6 +632,7 @@ Datetimelike - Bug in subtracting a ``datetime`` scalar from :class:`DatetimeIndex` failing to retain the ...
- [x] closes #49298 (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/49891
2022-11-24T14:31:39Z
2022-11-24T14:34:12Z
null
2022-11-24T14:34:12Z
BUG: Series(nullable).tolist() -> numpy scalars
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 42170aaa09978..dad7249de64d8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -761,6 +761,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ - Bug in :meth:`Series.mean` overflowing unnecessarily with nullabl...
- [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/49890
2022-11-24T14:18:47Z
2022-11-29T20:51:41Z
2022-11-29T20:51:41Z
2022-12-20T00:46:25Z
Backport PR #49886 on branch 1.5.x (CI: Remove deprecated numpy dtype aliases)
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index d871f907232f5..10390cb4493cd 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -219,12 +219,12 @@ def setup(self, fill_value): d = 1e-5 arr = make_array(N, d, np.nan, np.float64) ...
Backport PR #49886: CI: Remove deprecated numpy dtype aliases
https://api.github.com/repos/pandas-dev/pandas/pulls/49887
2022-11-24T11:59:17Z
2022-11-24T14:06:03Z
2022-11-24T14:06:03Z
2022-11-24T14:06:03Z
CI: Remove deprecated numpy dtype aliases
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index d871f907232f5..10390cb4493cd 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -219,12 +219,12 @@ def setup(self, fill_value): d = 1e-5 arr = make_array(N, d, np.nan, np.float64) ...
- [ ] 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/49886
2022-11-24T10:00:16Z
2022-11-24T11:58:42Z
2022-11-24T11:58:42Z
2022-11-24T12:00:12Z
STYLE enable pylint's redefined-outer-name: _version.py
diff --git a/pandas/_version.py b/pandas/_version.py index 4877bdff3eb3a..1426eaa3431fd 100644 --- a/pandas/_version.py +++ b/pandas/_version.py @@ -232,7 +232,7 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): @register_vcs_handler("git", "pieces_from_vcs") -def git_pieces_from_vcs(tag_prefix, ro...
- [ ] 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/49885
2022-11-24T02:41:56Z
2022-11-24T02:43:14Z
null
2022-11-24T02:43:22Z
STYLE: fix pylint style checks for access-member-before-definition
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c64898cf7df09..039b3c4e4d86c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,10 @@ repos: - flake8==5.0.4 - flake8-bugbear==22.7.1 - pandas-dev-flaker==0.5.0 +- repo: https://github.com/pycq...
- [ ] xref #48855 - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Added an ignore statement in `resample.py`.
https://api.github.com/repos/pandas-dev/pandas/pulls/49884
2022-11-24T02:23:49Z
2022-11-25T07:05:29Z
null
2022-11-25T07:05:29Z
Change run_command into run_cmd
diff --git a/pandas/_version.py b/pandas/_version.py index 4877bdff3eb3a..1426eaa3431fd 100644 --- a/pandas/_version.py +++ b/pandas/_version.py @@ -232,7 +232,7 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): @register_vcs_handler("git", "pieces_from_vcs") -def git_pieces_from_vcs(tag_prefix, ro...
- [ ] 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/49883
2022-11-24T01:26:46Z
2022-11-24T02:35:42Z
null
2022-11-24T02:43:26Z
REF: remove _time_shift
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index d32d664aae22b..be20d825b0c80 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -70,7 +70,6 @@ from pandas.errors import ( AbstractMethodError, InvalidComparison, - NullFrequ...
One of a number of steps to getting `freq` out of DTA/TDA. Only user-facing change is a slightly-improved exception message for PeriodIndex.shift
https://api.github.com/repos/pandas-dev/pandas/pulls/49882
2022-11-24T00:44:18Z
2022-11-24T14:10:57Z
2022-11-24T14:10:57Z
2022-11-24T15:37:25Z
48855 style fix pylint issues pointless string statement
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 64bd66bb5fe0d..9772788fe2b9d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -587,20 +587,18 @@ def _dtype_to_subclass(cls, dtype: DtypeObj): raise NotImplementedError(dtype) - """ - NOTE for ne...
- [ ] Accomplishes a task for #48855 - [ ] [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#pr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49880
2022-11-24T00:03:11Z
2022-11-29T08:12:36Z
2022-11-29T08:12:36Z
2022-11-29T08:12:37Z
CLN: move coverage config to pyproject.toml
diff --git a/pyproject.toml b/pyproject.toml index 74779e181abc4..7b4c9425d557c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -306,3 +306,32 @@ reportOptionalOperand = false reportOptionalSubscript = false reportPrivateImportUsage = false reportUnboundVariable = false + +[tool.coverage.run] +branch = true +omi...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/49879
2022-11-23T23:52:11Z
2022-11-24T14:53:24Z
2022-11-24T14:53:24Z
2022-11-27T00:14:35Z
BUG: MultiIndex.join losing dtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 42170aaa09978..973c51307ed9c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -705,6 +705,7 @@ MultiIndex - Bug in :meth:`MultiIndex.union` not sorting when sort=None and index contains missing values ...
- [x] closes #49830 (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/49877
2022-11-23T23:12:29Z
2022-11-29T22:43:07Z
2022-11-29T22:43:07Z
2022-11-30T23:01:28Z
ENH: Add support for ea dtypes in merge
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index d9fb3c8a8ff89..fdbf325dcf997 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -273,6 +273,38 @@ def time_merge_dataframes_cross(self, sort): merge(self.left.loc[:2000], self.rig...
- [x] closes #44240 (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/49876
2022-11-23T22:40:14Z
2022-11-29T23:00:24Z
2022-11-29T23:00:24Z
2022-11-30T23:01:42Z
BUG: constructors
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index be81e462c30ea..cfd5ceacf012d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -622,6 +622,8 @@ Categorical ^^^^^^^^^^^ - Bug in :meth:`Categorical.set_categories` losing dtype information (:issue:`488...
- [x] closes #49292 (Replace xxxx with the GitHub issue number) - [x] closes #44917 (Replace xxxx with the GitHub issue number) - [x] closes #49309 (Replace xxxx with the GitHub issue number) - [x] closes #41805 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/49875
2022-11-23T22:11:03Z
2022-11-29T04:11:56Z
2022-11-29T04:11:56Z
2022-11-29T15:40:54Z
Remove inline from cython classes
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index fcd30ab1faec8..7fcba58772ac4 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -70,7 +70,7 @@ tiebreakers = { } -cdef inline bint are_diff(object left, object right): +cdef bint are_diff(object left, object right): try: ...
Part of #33926 adding `-Winline` to the compiler options for me generates a 14 MB file with 157,000 lines of warnings about how functions aren't getting inlined. I doubt that any of our Cython inline functions actually get inlined, but figured these are easiest to start with. The cython documentation itself states t...
https://api.github.com/repos/pandas-dev/pandas/pulls/49873
2022-11-23T21:07:19Z
2022-12-06T17:17:42Z
2022-12-06T17:17:42Z
2023-04-12T20:16:56Z
CI/BENCH: Make CategoricalIndexIndexing benchmark less flaky
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 3efc39c7e1efe..1c9da3f1ed9df 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -3,8 +3,6 @@ lower-level methods directly on Index and subclasses, see index_object.py, indexing_engine.py, and in...
Resizing `data_unique` to be the same length as `data` which maybe is some source of flakiness since `data_unique` was 3x `data`
https://api.github.com/repos/pandas-dev/pandas/pulls/49870
2022-11-23T19:43:23Z
2022-11-26T16:10:15Z
2022-11-26T16:10:15Z
2022-11-27T01:24:56Z
API: series int-slicing always positional
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c9d975952dbb5..e847015126925 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -185,6 +185,39 @@ the appropriate rows. Also, when ``n`` is larger than the group, no rows instead Backwards incompatible A...
- [x] closes #49612 (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/49869
2022-11-23T18:42:55Z
2022-12-15T20:07:51Z
null
2022-12-15T20:07:58Z
Backport PR #49864 on branch 1.5.x (REGR: DataFrameGroupBy.transform with reducer and as_index=False returns null values)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index d35d3bf8b89ca..d65446604a83f 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in ...
Backport PR #49864: REGR: DataFrameGroupBy.transform with reducer and as_index=False returns null values
https://api.github.com/repos/pandas-dev/pandas/pulls/49868
2022-11-23T18:03:20Z
2022-11-24T16:46:31Z
2022-11-24T16:46:31Z
2022-11-24T16:46:31Z
REF factor out parse_pydatetime from array_to_datetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index e01de6b70470e..5679ea9306c72 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -50,7 +50,9 @@ from pandas._libs.tslibs.conversion cimport ( _TSObject, cast_from_unit, convert_datetime_to_tsobject, + convert_timezone, ...
- [ ] 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/49866
2022-11-23T15:51:54Z
2022-11-24T08:05:42Z
2022-11-24T08:05:42Z
2022-11-24T08:05:42Z
TYP: add missing `py.typed` marker
diff --git a/.gitignore b/.gitignore index 07b1f056d511b..bec091b150a5a 100644 --- a/.gitignore +++ b/.gitignore @@ -50,8 +50,6 @@ dist *.egg-info .eggs .pypirc -# type checkers -pandas/py.typed # tox testing tool .tox diff --git a/pandas/py.typed b/pandas/py.typed new file mode 100644 index 0000000000000..e69de...
I'd like to use `mypy` to check type hint in my project. But it's failed with following error (apache/iceberg#6254) ![image](https://user-images.githubusercontent.com/6848311/203572069-1bd0d889-e081-447a-b43a-a95a494d29e1.png) `pandas` seem support for type hint already, however, because of missing [`py.typed` mark...
https://api.github.com/repos/pandas-dev/pandas/pulls/49865
2022-11-23T14:35:06Z
2022-11-23T19:30:21Z
null
2022-11-24T00:55:41Z
REGR: DataFrameGroupBy.transform with reducer and as_index=False returns null values
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index d35d3bf8b89ca..d65446604a83f 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in ...
- [x] closes #49834 (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/49864
2022-11-23T13:25:58Z
2022-11-23T18:03:06Z
2022-11-23T18:03:06Z
2022-11-24T12:56:07Z
CLN Simplify tz / utc arguments
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 4ea6b9ceee833..0c90011d28a60 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2134,7 +2134,7 @@ def objects_to_datetime64ns( dayfirst : bool yearfirst : bool utc : bool, default Fals...
- [ ] 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/49863
2022-11-23T11:10:29Z
2022-11-23T17:22:31Z
2022-11-23T17:22:31Z
2022-11-23T17:22:37Z
Backport PR #49839 on branch 1.5.x (PERF: Fix performance regression in isin for empty values)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 405b46db88360..d35d3bf8b89ca 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed performance regressio...
Backport PR #49839: PERF: Fix performance regression in isin for empty values
https://api.github.com/repos/pandas-dev/pandas/pulls/49860
2022-11-23T09:07:59Z
2022-11-23T11:11:17Z
2022-11-23T11:11:17Z
2022-11-23T12:14:02Z
WEB: Formalize workgroups
diff --git a/web/pandas/about/team.md b/web/pandas/about/team.md index 261d577b2abc1..c3e5ef0a968eb 100644 --- a/web/pandas/about/team.md +++ b/web/pandas/about/team.md @@ -44,22 +44,26 @@ Wes McKinney is the Benevolent Dictator for Life (BDFL). The project governance is available in the [project governance page](go...
Adding to our `Team` page the different workgroups we more or less already have, with their responsibilities. So, things become more formal, and it's easier to manage expectations. I wonder if it'd be useful to add the email addresses to contact the different workgroups here. Open to opinions. CC: @pandas-dev/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/49859
2022-11-23T06:41:52Z
2022-12-27T05:59:16Z
2022-12-27T05:59:16Z
2022-12-27T05:59:16Z
DOC: Add release process to the docs
diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst index df557585c6156..9e32e43f30dfc 100644 --- a/doc/source/development/maintaining.rst +++ b/doc/source/development/maintaining.rst @@ -345,7 +345,148 @@ The benchmarks are scheduled by Airflow. It has a dashboard for viewing a...
This was in a branch in the release repo, and not fully updated. I expect to automate some of the tasks shortly, but having the current release process here while things are improved is still helpful. The final testing before the release is not added here. I think that's the first thing to move to the CI. CC: @li...
https://api.github.com/repos/pandas-dev/pandas/pulls/49858
2022-11-23T06:24:53Z
2022-11-25T19:13:30Z
2022-11-25T19:13:30Z
2022-11-25T19:13:42Z
fixed bug in tz_localize to throw an error if the argument to the ambiguous parameter is not one of the 4 correct options
- [x] closes #49565 - [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/49856
2022-11-23T05:15:42Z
2022-12-02T18:27:06Z
null
2022-12-02T19:04:12Z
Revert "Vendored klib quadatric probing (#49197)"
diff --git a/pandas/_libs/src/klib/khash.h b/pandas/_libs/src/klib/khash.h index 6bc560c5ce576..e17d82d51f0fb 100644 --- a/pandas/_libs/src/klib/khash.h +++ b/pandas/_libs/src/klib/khash.h @@ -47,16 +47,6 @@ int main() { */ /* - 2013-05-02 (0.2.8): - * Use quadratic probing. When the capacity is power of 2, steppi...
This reverts commit 2317bf08ed172048a66a0533645ebc1886939417. @rhshadrach
https://api.github.com/repos/pandas-dev/pandas/pulls/49855
2022-11-23T03:37:19Z
2022-11-23T18:11:30Z
2022-11-23T18:11:30Z
2022-11-23T21:43:48Z
TYP: try out TypeGuard
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 188494c7c60db..3181b72625cd3 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -1,6 +1,7 @@ # TODO(npdtypes): Many types specified here can be made more specific/accurate; # the more specific versions are specified in comments +from decim...
mypy throws a bunch of strange complaints locally (also on main), so let's see what the CI says...
https://api.github.com/repos/pandas-dev/pandas/pulls/49854
2022-11-23T03:13:35Z
2022-11-23T18:55:50Z
null
2022-11-23T23:40:09Z
Fix STYLE #49656: concat.py and merge.py
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 0592db8ad608d..d1a252f727e90 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -1,6 +1,6 @@ from __future__ import annotations -import copy +import copy as cp import itertools from typing import...
- [x] xref #49656 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] A...
https://api.github.com/repos/pandas-dev/pandas/pulls/49853
2022-11-23T02:45:05Z
2022-11-23T08:48:04Z
2022-11-23T08:48:04Z
2022-11-23T08:48:05Z
DOC/REF: Clarify pip extras dependencies & cleanups
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index d4d7ee5efcbb0..8e8f61c1d503f 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -139,6 +139,16 @@ pandas can be installed via pip from pip install pandas +pandas c...
Clarifying that https://github.com/pandas-dev/pandas/pull/47336 is specifically for managing `pip` installation of optional dependencies
https://api.github.com/repos/pandas-dev/pandas/pulls/49852
2022-11-23T02:36:05Z
2022-11-24T18:03:41Z
2022-11-24T18:03:41Z
2022-11-24T18:03:45Z
PERF: BaseMaskedArray.__iter__
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 18c5be3b421f9..d535e37c89648 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -348,4 +348,37 @@ def time_rank(self, dtype): self.s.rank() +class Iter: + + ...
- [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/49851
2022-11-23T01:29:51Z
2022-11-23T18:43:56Z
2022-11-23T18:43:56Z
2022-12-20T00:46:23Z
CLN: assorted
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index be81e462c30ea..1dd163d2d6039 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -467,12 +467,12 @@ Removal of prior version deprecations/changes - Disallow passing non-keyword arguments to :meth:`DataFra...
- [ ] 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/49850
2022-11-23T00:55:33Z
2022-11-23T22:57:44Z
2022-11-23T22:57:44Z
2022-12-24T03:54:41Z
Fixed STYLE #49656: concat.py and merge.py
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 0592db8ad608d..349b7fc94d34d 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -69,7 +69,7 @@ def _concatenate_array_managers( - mgrs_indexers, axes: list[Index], concat_axis: AxisInt, copy: ...
- [ ] Fixed #49656 - [ ] [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/49849
2022-11-23T00:36:48Z
2022-11-23T02:26:35Z
null
2022-11-23T02:26:35Z
48855 style fix pylint issues
diff --git a/pandas/io/parsers/c_parser_wrapper.py b/pandas/io/parsers/c_parser_wrapper.py index c1f2e6ddb2388..333e541c0b3ab 100644 --- a/pandas/io/parsers/c_parser_wrapper.py +++ b/pandas/io/parsers/c_parser_wrapper.py @@ -132,6 +132,7 @@ def __init__(self, src: ReadCsvBuffer[str], **kwds) -> None: ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49848
2022-11-22T23:58:54Z
2022-12-15T13:39:06Z
null
2022-12-15T13:39:06Z
BUG: MultiIndex.putmask losing ea dtype
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index 97c710be6d5a1..de55268e0407b 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -379,4 +379,26 @@ def time_isin_large(self, dtype): self.midx.isin(self...
- [x] xref #49830 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/49847
2022-11-22T23:04:30Z
2022-11-24T00:53:23Z
2022-11-24T00:53:23Z
2022-11-24T00:53:29Z
Backport PR #49843 on branch 1.5.x (DOC: Add whatsnew for 1.5.3)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 1050951ba1b5a..e2f3b45d47bef 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.5 .. toctree:: :maxdepth: 2 + v1.5.3 v1.5.2 v1.5.1 v1.5.0 diff --git a/doc/source/...
Backport PR #49843: DOC: Add whatsnew for 1.5.3
https://api.github.com/repos/pandas-dev/pandas/pulls/49846
2022-11-22T22:59:39Z
2022-11-23T09:06:07Z
2022-11-23T09:06:07Z
2022-11-23T09:06:07Z
STYLE: fix pylint redefined-outer-name warning for file
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 6a8c63fe8c5fe..97d054df8287f 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -26,7 +26,7 @@ iNaT, nat_strings, parsing, - timezones, + timezones as libtimezones, ) from pandas._l...
Associated with [#49656](https://github.com/pandas-dev/pandas/issues/49656). Fixes pylint warnings for `redefined-outer-name` on the following files: `pandas/core/tools/datetimes.py` - [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/49844
2022-11-22T21:19:15Z
2022-11-23T21:09:15Z
2022-11-23T21:09:15Z
2022-11-23T21:10:32Z
DOC: Add whatsnew for 1.5.3
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 8996bf8ba7de7..821f77dbba3e2 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.5 .. toctree:: :maxdepth: 2 + v1.5.3 v1.5.2 v1.5.1 v1.5.0 diff --git a/doc/source/...
cc @MarcoGorelli @datapythonista
https://api.github.com/repos/pandas-dev/pandas/pulls/49843
2022-11-22T20:52:08Z
2022-11-22T22:59:29Z
2022-11-22T22:59:29Z
2022-11-23T00:25:40Z
DEPR/API: DataFrame.shift(axis=1, fill_value=inty)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4d5c676e941ea..bac404496fa53 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -348,6 +348,7 @@ Other API changes - Changed behavior of :class:`Index` constructor with sequence containing at least one `...
- [ ] 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/49842
2022-11-22T19:09:49Z
2022-11-23T02:51:28Z
2022-11-23T02:51:28Z
2022-11-23T02:52:49Z
Backport PR #49811 on branch 1.5.x (DOC: Fix the Styler user guide table width issues)
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 25153b6a8ad5d..a08be3301edda 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -5,6 +5,10 @@ --pst-color-info: 23, 162, 184; } +table { + width: auto; /* Override fit-content which bre...
Backport PR #49811: DOC: Fix the Styler user guide table width issues
https://api.github.com/repos/pandas-dev/pandas/pulls/49841
2022-11-22T15:25:49Z
2022-11-22T18:10:49Z
2022-11-22T18:10:49Z
2022-11-22T18:10:49Z
PERF: Fix performance regression in isin for empty values
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 405b46db88360..d35d3bf8b89ca 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed performance regressio...
- [ ] 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/49839
2022-11-22T14:53:17Z
2022-11-23T02:52:34Z
2022-11-23T02:52:34Z
2022-11-23T09:08:46Z
DEPR Enforce reversion of Size color aliases
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index d65446604a83f..e7428956c50b5 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -15,6 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression in :meth:`Series.isin` when ``values`` i...
- [ ] closes #49732 (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/49836
2022-11-22T10:50:31Z
2022-11-23T22:09:11Z
2022-11-23T22:09:11Z
2023-01-12T11:52:12Z
STYLE enable pylint: not-callable
diff --git a/pandas/core/base.py b/pandas/core/base.py index 4dbe755a20b0f..fb563fd640cfd 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -134,7 +134,7 @@ def __sizeof__(self) -> int: """ memory_usage = getattr(self, "memory_usage", None) if memory_usage: - mem = memo...
Issue #48855. This PR enables pylint warning: `not-callable` - [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/49833
2022-11-22T09:32:38Z
2022-11-22T10:16:09Z
2022-11-22T10:16:09Z
2022-11-22T10:16:10Z
read_fwf docs
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 53bcf6ffd7a8a..e39093fd35647 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1366,8 +1366,10 @@ a different usage of the ``delimiter`` parameter: * ``widths``: A list of field widths which can be used instea...
- [X] Enhances #16950 - [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). E...
https://api.github.com/repos/pandas-dev/pandas/pulls/49832
2022-11-22T06:23:20Z
2023-01-04T01:46:32Z
null
2023-03-16T05:38:47Z
STYLE enable pylint: fix use-implicit-booleaness-not-comparison warnings
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index a5641465b0be0..a79f7700ce75f 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1236,10 +1236,10 @@ def assert_equal(left, right, **kwargs) -> None: elif isinstance(left, np.ndarray): assert_numpy_...
Related to [#48855](https://github.com/pandas-dev/pandas/issues/48855). Enables the Pylint type "C" warning `use-implicit-booleaness-not-comparison` - [] 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/49831
2022-11-22T06:00:39Z
2022-11-22T08:50:22Z
null
2022-11-22T19:01:05Z
DEPR: Enforce numeric_only=False in groupby sum/mean
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 9c043e8db9389..9eeaaf97d8ac6 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -210,7 +210,7 @@ def time_pivot_table_categorical_observed(self): ) def time_pivot_table_margins_only_co...
- [ ] 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/49829
2022-11-22T03:01:21Z
2022-11-23T18:48:51Z
2022-11-23T18:48:51Z
2022-11-24T12:55:56Z
ENH: Add use_nullable_dtypes and nullable_backend global option to read_orc
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 6a63058dfab94..6e9dfdc1263b3 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -33,7 +33,7 @@ sql-other, html, xml, plot, output_formatting, clipboard, compression, test]`` ( Configuration option, ``io....
- [x] xref #https://github.com/pandas-dev/pandas/issues/48957 (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...
https://api.github.com/repos/pandas-dev/pandas/pulls/49827
2022-11-22T01:56:36Z
2022-11-23T00:00:30Z
2022-11-23T00:00:30Z
2022-11-23T00:00:32Z
PERF: ArrowExtensionArray.__iter__
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 20e99d007c798..6a63058dfab94 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -600,6 +600,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.join` when joining on a subset of 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/49825
2022-11-22T00:56:20Z
2022-11-22T18:26:10Z
2022-11-22T18:26:10Z
2022-12-20T00:46:22Z
ENH: timedelta_range unit keyword
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0e6d1029d352b..0f6029b00d9e2 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -62,6 +62,7 @@ Other enhancements - Fix ``test`` optional_extra by adding missing test package ``pytest-asyncio`` (:issue:`...
- [ ] 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/49824
2022-11-21T21:07:00Z
2022-11-22T02:07:17Z
2022-11-22T02:07:17Z
2022-11-22T02:56:47Z
DOC: Add Git documentation in resources to learn
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index b230516c9c3e5..d0bda0ba42bd7 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -114,6 +114,7 @@ version control to allow many people to work together on the project. ...
Add Git documentation as one of the great resources to learn Git in `contributing.rst`.
https://api.github.com/repos/pandas-dev/pandas/pulls/49823
2022-11-21T20:19:19Z
2022-11-22T02:18:52Z
2022-11-22T02:18:52Z
2022-11-22T02:18:59Z
STYLE: fix pylint redefined-outer-name warnings
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 8fef3a231a748..571c065c53351 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -77,7 +77,7 @@ def wrapper(*args, **kwargs) -> Callable[..., Any]: if alternative.__doc__: if alternative.__doc__.count("\n") ...
Fixed `redefined-outer-name` linting issue in the following files (Towards #49656) - `pandas/util/_decorators.py` - `pandas/util/_doctools.py` - `pandas/util/_test_decorators.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/49822
2022-11-21T19:33:01Z
2022-11-22T08:57:59Z
2022-11-22T08:57:59Z
2022-11-22T17:34:55Z
More debug
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml deleted file mode 100644 index cf8a0fe0da91c..0000000000000 --- a/.github/workflows/32-bit-linux.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: 32 Bit Linux - -on: - push: - branches: - - main - - 1.5.x - pull_request: - b...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49821
2022-11-21T19:30:40Z
2022-11-22T12:40:56Z
null
2022-11-22T12:40:57Z
TST: troubleshoot strict=False xfails
diff --git a/pandas/tests/base/test_unique.py b/pandas/tests/base/test_unique.py index 66cc000b9f458..b1b0479f397b1 100644 --- a/pandas/tests/base/test_unique.py +++ b/pandas/tests/base/test_unique.py @@ -105,9 +105,6 @@ def test_nunique_null(null_obj, index_or_series_obj): @pytest.mark.single_cpu -@pytest.mark.xf...
- [ ] 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/49820
2022-11-21T17:57:46Z
2022-12-13T16:16:28Z
2022-12-13T16:16:28Z
2022-12-13T16:16:35Z
STYLE enable pylint: non-parent-init-called
diff --git a/pandas/plotting/_matplotlib/boxplot.py b/pandas/plotting/_matplotlib/boxplot.py index dca477f388bbb..5060e48484fb5 100644 --- a/pandas/plotting/_matplotlib/boxplot.py +++ b/pandas/plotting/_matplotlib/boxplot.py @@ -53,12 +53,12 @@ class BP(NamedTuple): lines: dict[str, list[Line2D]] def __...
Issue #48855. This PR enables pylint type "W" warning: `non-parent-init-called` - [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/49819
2022-11-21T17:46:32Z
2022-11-22T10:17:41Z
2022-11-22T10:17:41Z
2022-11-22T10:17:41Z
API: NumericIndex([1 2, 3]).dtype should be int64 on 32-bit systems
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c24c94a786068..0bc568fb122ed 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4962,14 +4962,6 @@ def _raise_scalar_data_error(cls, data): f"kind, {repr(data)} was passed" ) - @final - ...
- [x] closes #49813 - [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/49815
2022-11-21T13:31:47Z
2022-11-22T21:24:11Z
2022-11-22T21:24:11Z
2022-11-22T22:34:27Z
Debug python same
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 583619826265c..925284341a7f4 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -116,16 +116,23 @@ jobs: - name: Set up Conda uses: ./.github/actions/setup-conda + with: + ...
- [ ] 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/49814
2022-11-21T12:21:33Z
2022-11-21T14:36:05Z
null
2022-11-21T14:36:06Z
DOC: Fix indendation in docstring sort_values 'by' parameter
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 7b181a3e8e391..a422c6a33d2d7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -247,13 +247,13 @@ inplace : bool, default False Whether to modify the DataFrame rather than creating a new one.""", "optional_by": """ - ...
- [ ] 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/49812
2022-11-21T11:51:46Z
2022-11-25T19:16:25Z
2022-11-25T19:16:25Z
2022-11-25T19:16:31Z
DOC: Fix the Styler user guide table width issues
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 25153b6a8ad5d..a08be3301edda 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -5,6 +5,10 @@ --pst-color-info: 23, 162, 184; } +table { + width: auto; /* Override fit-content which bre...
Not sure if this has any other unintended consequences. Note that "auto" is the default table width setting in CSS when unspecified. This was the previous setting until 1.5.0 and an update to pydata-sphinx-theme seems to have changed this setting. Would like to check the rendered output to make sure this affects as ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49811
2022-11-21T09:26:16Z
2022-11-22T15:21:55Z
2022-11-22T15:21:55Z
2022-11-22T17:25:09Z
Backport PR #49806 on branch 1.5.x (DOC: Update what's new notes for 1.5.2 release)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index f2a61e9cd4e05..6397016d827f2 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_152: -What's new in 1.5.2 (November ??, 2022) +What's new in 1.5.2 (November 21, 2022) -------...
Backport PR #49806: DOC: Update what's new notes for 1.5.2 release
https://api.github.com/repos/pandas-dev/pandas/pulls/49809
2022-11-21T05:20:36Z
2022-11-21T05:33:02Z
2022-11-21T05:33:02Z
2022-11-21T05:33:02Z
WIP/CI: Build docs with single job
diff --git a/doc/make.py b/doc/make.py index f5bf170c6274d..9f9bcec638138 100755 --- a/doc/make.py +++ b/doc/make.py @@ -302,7 +302,7 @@ def main(): "command", nargs="?", default="html", help=f"command to run: {joined}" ) argparser.add_argument( - "--num-jobs", default="auto", help="number of ...
The docs build in the CI is taking more than one hour, which seems too much. Based on the logs the time is spent in `waiting for workers...`, which doesn't provide much information. Running in a single job here to see if the logs provide more information on where the time is spent, and see if the job does need to take ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49808
2022-11-21T05:16:10Z
2022-11-25T16:20:49Z
null
2022-11-25T16:20:50Z
WEB: Remove interactive terminal
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 1db8fb9a70254..d95de5deb3cdf 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -54,11 +54,6 @@ jobs: - name: Build documentation zip run: doc/make....
- [X] closes #47530 The terminal has always been pretty slow, and probably not very useful, and it has been broken for couple of months now. Removing it, we can consider adding it back once the project is more stable.
https://api.github.com/repos/pandas-dev/pandas/pulls/49807
2022-11-21T04:11:10Z
2022-11-25T19:14:49Z
2022-11-25T19:14:49Z
2022-12-21T14:51:40Z
DOC: Update what's new notes for 1.5.2 release
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index f2a61e9cd4e05..6397016d827f2 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_152: -What's new in 1.5.2 (November ??, 2022) +What's new in 1.5.2 (November 21, 2022) -------...
xref #49194
https://api.github.com/repos/pandas-dev/pandas/pulls/49806
2022-11-21T03:43:06Z
2022-11-21T05:17:10Z
2022-11-21T05:17:10Z
2022-11-21T05:19:53Z
TST: Tests for replace method when column contains pd.NA (#47480)
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 0d058ead9d22c..b23c34fca5f6c 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -88,12 +88,27 @@ def mask_missing(arr: ArrayLike, values_to_mask) -> npt.NDArray[np.bool_]: # GH 21977 mask = np.zeros(arr.shape, dtype=bool) + ...
- [X] closes #47480 - [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/49805
2022-11-20T20:06:02Z
2023-01-15T12:36:30Z
null
2023-01-15T12:36:30Z
TYP: avoid inherit_names for DatetimeIndexOpsMixin
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index ea0c93e75f496..cad1fb431dd84 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -3,6 +3,10 @@ """ from __future__ import annotations +from abc import ( + ABC, + abstractmetho...
new version of #48015
https://api.github.com/repos/pandas-dev/pandas/pulls/49804
2022-11-20T18:07:15Z
2023-02-04T01:46:41Z
2023-02-04T01:46:41Z
2023-08-09T15:08:27Z
STYLE enable pylint: overridden-final-method
diff --git a/pandas/tests/extension/test_external_block.py b/pandas/tests/extension/test_external_block.py index 13dec96b144ff..3abe8c44698ea 100644 --- a/pandas/tests/extension/test_external_block.py +++ b/pandas/tests/extension/test_external_block.py @@ -17,7 +17,7 @@ class CustomBlock(ExtensionBlock): # Canno...
Issue #48855. This PR enables pylint type "W" warning: `overridden-final-method` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). The only occurrence of the warning is in `test_external_block.py`. I think it was made on purpose and disabled...
https://api.github.com/repos/pandas-dev/pandas/pulls/49803
2022-11-20T16:29:19Z
2022-11-20T16:54:56Z
null
2022-11-20T16:54:56Z
STYLE enable pylint: ungrouped-imports
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 06d91730804ab..e47ac43fd3c55 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -42,8 +42,12 @@ import pyarrow as pa import pyarrow.compute as pc - from pandas.core.arrays.arrow...
Issue #48855. This PR enables pylint type "C" warning: `ungrouped-imports` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). In two cases out of three, the warning is false-positive.
https://api.github.com/repos/pandas-dev/pandas/pulls/49802
2022-11-20T15:43:09Z
2022-11-20T16:52:46Z
null
2022-11-20T16:52:46Z
STYLE enable pylint: invalid-envvar-default
diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py index 78289174b7e68..e574ed2c8059a 100644 --- a/pandas/io/clipboard/__init__.py +++ b/pandas/io/clipboard/__init__.py @@ -69,7 +69,7 @@ # `import PyQt4` sys.exit()s if DISPLAY is not in the environment. # Thus, we need to detect the presen...
Issue #48855. This PR enables pylint type "W" warning: `invalid-envvar-default` - [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/49801
2022-11-20T14:07:59Z
2022-11-20T16:34:12Z
2022-11-20T16:34:12Z
2022-11-20T16:34:12Z
DEP Remove pytorch from environment.yml
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 20c0c0ea2f6fe..6fe346fd7283d 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -205,21 +205,4 @@ def time_frame_from_arrays_sparse(self): ) -class From3rdParty: - # GH#446...
- [ ] closes #49796 (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/49798
2022-11-20T08:08:29Z
2022-11-24T19:39:04Z
2022-11-24T19:39:04Z
2022-11-24T19:39:05Z
BUG: TimedeltaArray.astype(duration[{unit}][pyarrow])
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0e6d1029d352b..8c3b8cc573096 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -652,6 +652,8 @@ Conversion - Bug where any :class:`ExtensionDtype` subclass with ``kind="M"`` would be interpreted as a ti...
- [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/49795
2022-11-20T03:17:21Z
2022-11-22T02:09:33Z
2022-11-22T02:09:33Z
2022-12-20T00:46:29Z
VIS: Add xlabel/ylabel to `plot.hist()`
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0e6d1029d352b..41a141ae65981 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -64,6 +64,7 @@ Other enhancements - :func:`date_range` now supports a ``unit`` keyword ("s", "ms", "us", or "ns") to specif...
- [X] closes #49793 - [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). - [N...
https://api.github.com/repos/pandas-dev/pandas/pulls/49794
2022-11-19T22:11:15Z
2022-12-05T19:42:16Z
2022-12-05T19:42:16Z
2022-12-05T20:02:35Z
update io docs for OpenDocument Spreadsheets
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index b4bf3ef024d4c..53bcf6ffd7a8a 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3827,22 +3827,28 @@ format of an Excel worksheet created with the ``to_excel`` method. Excellent ex OpenDocument Spreadsheets --...
- [x] closes #49790 - [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/49792
2022-11-19T21:35:14Z
2022-11-22T02:12:59Z
2022-11-22T02:12:58Z
2022-11-22T02:13:05Z
STYLE run autotyping with --no-format
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6aa1f5659365f..fbb2a14be6ea9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -287,5 +287,4 @@ repos: language: python additional_dependencies: - autotyping==22.9.0 - - black==22.6.0 - li...
autotyping runs `black` on its files as well (!) we already have a `black` hook though, so we avoid duplicating CPU instructions
https://api.github.com/repos/pandas-dev/pandas/pulls/49791
2022-11-19T18:30:34Z
2022-11-20T14:47:45Z
2022-11-20T14:47:45Z
2022-11-20T14:47:46Z
STYLE enable pylint: confusing-with-statement
diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py index 930e547d5cba8..f07a4e3b58e86 100644 --- a/pandas/tests/io/test_pickle.py +++ b/pandas/tests/io/test_pickle.py @@ -283,8 +283,9 @@ def compress_file(self, src_path, dest_path, compression): raise ValueError(msg) if...
Issue #48855. This PR enables pylint type "W" warning: `confusing-with-statement` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). After fixing the warning `confusing-with-statement` running `pandas/tests/io/test_pickle.py` raises an error ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49789
2022-11-19T16:27:18Z
2022-11-19T19:29:56Z
2022-11-19T19:29:56Z
2022-11-19T19:29:56Z
TST: add tests/arrays/interval/test_constructors.py
diff --git a/pandas/tests/arrays/interval/test_constructors.py b/pandas/tests/arrays/interval/test_constructors.py new file mode 100644 index 0000000000000..136ded26c9955 --- /dev/null +++ b/pandas/tests/arrays/interval/test_constructors.py @@ -0,0 +1,483 @@ +from functools import partial + +import numpy as np +import ...
`IntervalArray` construction wasn't tested very well previously. This adds a `test_constructors.py` file to the `tests/arrays/interval` directory. The test file is the test file from pandas/tests/indexes/interval/test_constructors.py (after #49786) adapted to test `IntervalArray`s instead of `IntervalIndex`es. Also ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49788
2022-11-19T12:03:49Z
2023-01-03T16:12:57Z
null
2023-01-03T16:13:02Z
Backport PR #49579 on Branch 1.5.x (BUG: Behaviour change in 1.5.0 when using Timedelta as Enum data type)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 64f57986cc3e4..f2a61e9cd4e05 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -20,7 +20,7 @@ Fixed regressions from being passed using the ``colormap`` argument if Matplotlib 3.6+ is used (:issue:`49...
#49579
https://api.github.com/repos/pandas-dev/pandas/pulls/49787
2022-11-19T10:40:30Z
2022-11-19T14:23:06Z
2022-11-19T14:23:06Z
2022-11-19T14:23:11Z
TST: test UInt64Index in tests/indexes/interval/test_constructors.py
diff --git a/pandas/tests/indexes/interval/test_constructors.py b/pandas/tests/indexes/interval/test_constructors.py index ce0de97befec3..1c8697e96c2e9 100644 --- a/pandas/tests/indexes/interval/test_constructors.py +++ b/pandas/tests/indexes/interval/test_constructors.py @@ -18,9 +18,11 @@ timedelta_range, ) im...
`UInt64Index` wasn't tested previously in the `IntervalIndex` constructor tests, this adds tests for that. Preparation for fixing an issue in #49560.
https://api.github.com/repos/pandas-dev/pandas/pulls/49786
2022-11-19T10:30:34Z
2023-01-03T16:13:30Z
null
2023-01-03T16:13:35Z
TST: test UInt64Index in tests/indexes/interval/test_constructors.py
diff --git a/pandas/tests/indexes/interval/test_constructors.py b/pandas/tests/indexes/interval/test_constructors.py index ce0de97befec3..55a2e30de78a1 100644 --- a/pandas/tests/indexes/interval/test_constructors.py +++ b/pandas/tests/indexes/interval/test_constructors.py @@ -18,9 +18,11 @@ timedelta_range, ) im...
`UInt64Index` wasn't tested previously in the `IntervalIndex` constructor tests, this adds tests for that. Preparation for fixing an issue in #49560.
https://api.github.com/repos/pandas-dev/pandas/pulls/49785
2022-11-19T09:53:13Z
2022-11-19T10:00:14Z
null
2022-11-19T10:29:16Z
Backport PR STYLE enable pylint: method-cache-max-size-none
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index dd909415d9e85..4654b7630c882 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -27,7 +27,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in the Copy-on-Write implementation losing track of views in c...
- [ ] 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/49784
2022-11-19T07:23:22Z
2022-11-19T09:36:58Z
2022-11-19T09:36:58Z
2022-11-19T09:36:59Z
TST: Test for Dataframe.replace when column contains pd.NA (#47480)
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index 626bc658b199c..1a1a456152592 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1503,6 +1503,13 @@ def test_replace_value_none_dtype_numeric(self, val): ...
- [X] closes #47480 - [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/49783
2022-11-19T00:14:26Z
2022-11-19T21:27:47Z
null
2022-11-20T19:27:08Z
Backport PR #49776 on branch 1.5.x (REGR: arithmetic ops recursion error with midx with different dtypes)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index dd909415d9e85..c1fde3d13ef74 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -15,6 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`MultiIndex.join` for extension array dtype...
Backport PR #49776: REGR: arithmetic ops recursion error with midx with different dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/49782
2022-11-18T23:28:43Z
2022-11-19T09:08:49Z
2022-11-19T09:08:49Z
2022-11-19T09:08:50Z
STYLE enable pylint: subprocess-run-check
diff --git a/asv_bench/benchmarks/package.py b/asv_bench/benchmarks/package.py index 34fe4929a752b..257c82cba8878 100644 --- a/asv_bench/benchmarks/package.py +++ b/asv_bench/benchmarks/package.py @@ -11,7 +11,7 @@ def time_import(self): # measurement of the import time we actually care about, # wit...
Issue #48855. This PR enables pylint type "W" warning: `subprocess-run-check` - [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/49781
2022-11-18T22:02:08Z
2022-11-19T13:05:36Z
2022-11-19T13:05:36Z
2022-11-19T13:05:37Z
Removed GNU strdup extension from JSON
diff --git a/pandas/_libs/src/headers/portable.h b/pandas/_libs/src/headers/portable.h index 3464fba963a5e..91b4702d32452 100644 --- a/pandas/_libs/src/headers/portable.h +++ b/pandas/_libs/src/headers/portable.h @@ -1,16 +1,10 @@ #ifndef _PANDAS_PORTABLE_H_ #define _PANDAS_PORTABLE_H_ -// To get `strdup` from stri...
Came up during some of the meson work @lithomas1 is doing. Looks like we allow non-portable GNU extensions in JSON, but these aren't upstream in ultrajson. Couldn't find a history of why we have this.
https://api.github.com/repos/pandas-dev/pandas/pulls/49780
2022-11-18T21:00:33Z
2022-11-23T00:09:48Z
2022-11-23T00:09:48Z
2023-04-12T20:16:57Z
CI: Limit pip extras check to Build tag
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index 762cb509be136..87f40270d8774 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -9,12 +9,14 @@ on: branches: - main - 1.5.x + types: [ labeled, opened, synchr...
xref https://github.com/pandas-dev/pandas/pull/49241#issuecomment-1320485994 cc @lithomas1
https://api.github.com/repos/pandas-dev/pandas/pulls/49778
2022-11-18T20:28:01Z
2022-11-23T02:35:07Z
2022-11-23T02:35:07Z
2022-11-23T02:36:15Z
DEPR: enforce Series constructor with int dtype deprs
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 60b870e572228..285d263be8ab5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -545,6 +545,8 @@ Removal of prior version deprecations/changes - Changed behavior of setitem-like operations (``__setitem__...
- [ ] 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/49777
2022-11-18T20:05:01Z
2022-11-18T23:44:42Z
2022-11-18T23:44:42Z
2022-12-22T14:01:34Z