title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
⌀
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
⌀
updated_at
stringlengths
20
20
DOC: Update doc of parquet compression parameter
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dd37b94b6428b..7d5054889c6c2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2801,8 +2801,12 @@ def to_parquet( ``io.parquet.engine`` is used. The default ``io.parquet.engine`` behavior is to try 'pyarrow', falling...
This commit updates the interface documentation of [`pandas.DataFrame.to_parquet`](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_parquet.html). The documentation of the parameter `compression` is not up-to-date compared to the implementation documentation of [`pandas.io.parquet.to_parquet`](https...
https://api.github.com/repos/pandas-dev/pandas/pulls/51554
2023-02-22T09:34:37Z
2023-02-25T17:46:31Z
2023-02-25T17:46:31Z
2023-02-26T06:25:12Z
Backport PR #51541 on branch 2.0.x (ENH: pyarrow dont raise on division by zero)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c0082b451c95d..45a5d139349e9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -814,6 +814,7 @@ Other API changes - :func:`to_datetime` with ``unit`` of either "Y" or "M" will now raise if a sequence co...
Backport PR #51541: ENH: pyarrow dont raise on division by zero
https://api.github.com/repos/pandas-dev/pandas/pulls/51553
2023-02-22T09:24:51Z
2023-02-22T14:05:56Z
2023-02-22T14:05:56Z
2023-02-22T14:05:56Z
DOC: Cleanup CoW dev docs
diff --git a/doc/source/development/copy_on_write.rst b/doc/source/development/copy_on_write.rst index 34625ed645615..757a871b495c5 100644 --- a/doc/source/development/copy_on_write.rst +++ b/doc/source/development/copy_on_write.rst @@ -14,15 +14,15 @@ behaves as a copy. Reference tracking ------------------ -To be...
- [ ] 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/51552
2023-02-22T09:19:05Z
2023-02-22T14:05:03Z
2023-02-22T14:05:03Z
2023-02-22T14:05:08Z
DOC: fix EX02 docstring errors for three docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 82a2b0a9189af..e8a9963438648 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -574,9 +574,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_datetime64_ns_dtype \ pandas.api.types.is_datetime64tz_dtype \ ...
Some work towards issue https://github.com/pandas-dev/pandas/issues/51236 The issue is being worked on by several people and has more docstrings remaining to do. Makes docstrings pass for: `pandas.api.types.is_interval_dtype` `pandas.api.types.is_period_dtype` `pandas.api.types.is_signed_integer_dtype`
https://api.github.com/repos/pandas-dev/pandas/pulls/51550
2023-02-22T04:56:53Z
2023-02-22T09:56:39Z
2023-02-22T09:56:39Z
2023-02-22T09:56:57Z
PERF: DataFrame.first_valid_index/last_valid_index for EA dtypes
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 33fbc23085e23..ac6ac6f576891 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -754,4 +754,29 @@ def time_memory_usage_object_dtype(self): self.df2.memory_usage(deep=...
- [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/51549
2023-02-22T01:46:50Z
2023-02-23T10:24:11Z
2023-02-23T10:24:11Z
2023-03-17T22:04:38Z
BUG: parsing pyarrow dtypes corner case
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bdbde438217b9..0e9994a6b1988 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1417,7 +1417,7 @@ Metadata Other ^^^^^ - +- Bug in incorrectly accepting dtype strings containing "[pyarrow]" more than...
- [x] closes #51225 (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/51548
2023-02-22T01:31:29Z
2023-02-23T23:38:06Z
2023-02-23T23:38:06Z
2023-02-24T01:01:16Z
TST/CLN: Remove unnecessary pyarrow version checking
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 5c09a7a28856f..4facc194978d5 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -569,14 +569,8 @@ def argsort( ) -> np.ndarray: order = "ascending" if ascending else "descending"...
I think this shouldn't be necessary since 7.0 is the minimum version supported now.
https://api.github.com/repos/pandas-dev/pandas/pulls/51545
2023-02-21T23:51:14Z
2023-02-23T18:53:55Z
2023-02-23T18:53:55Z
2023-02-23T18:53:59Z
PERF: assert_index_equal with MultiIndex
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 98343148bdad1..1544550c1995f 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -279,8 +279,7 @@ def _get_ilevel_values(index, level): right = safe_sort_index(right) # MultiIndex special compariso...
test_indexer_caching takes 10.09s on main, 2.92 with this branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/51544
2023-02-21T22:19:57Z
2023-02-22T09:17:53Z
2023-02-22T09:17:53Z
2023-02-22T15:15:15Z
API: ArrowExtensionArray.value_counts returns pyarrow.int64 type
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 587010453db5a..95f84d6c85157 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -818,6 +818,7 @@ Other API changes - :class:`DataFrame` and :class:`DataFrameGroupBy` aggregations (e.g. "sum") with object...
- [x] closes #51462 (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/51542
2023-02-21T20:28:55Z
2023-02-24T22:21:50Z
2023-02-24T22:21:49Z
2023-02-24T22:22:31Z
ENH: pyarrow dont raise on division by zero
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c0082b451c95d..45a5d139349e9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -814,6 +814,7 @@ Other API changes - :func:`to_datetime` with ``unit`` of either "Y" or "M" will now raise if a sequence 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/51541
2023-02-21T20:19:07Z
2023-02-22T09:24:23Z
2023-02-22T09:24:23Z
2023-02-22T15:14:10Z
DEPR: deprecate allowing slice in DataFrame.take
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 1c139f4692b52..b83f317814ad9 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -92,7 +92,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ -- +- Deprecated accepting slices in :meth:`DataFrame.take`, ...
- [ ] 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/51539
2023-02-21T16:19:59Z
2023-02-22T00:44:14Z
2023-02-22T00:44:14Z
2023-02-22T00:57:55Z
BUG: Timedelta comparisons with very large pytimedeltas overflowing
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ec5d08e75f0e4..80b52d3b3955e 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1190,6 +1190,7 @@ Timedelta - Bug in :func:`to_timedelta` raising error when input has nullable dtype ``Float64`` (:issue:...
- [x] closes #49021 (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/51538
2023-02-21T15:52:43Z
2023-03-27T17:17:21Z
2023-03-27T17:17:21Z
2023-03-27T17:42:05Z
STYLE: replace unwanted-patterns-strings-to-concatenate with ruff #5… #51504Harsimran
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f369fcabe3f01..33e475d4a9e20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -342,11 +342,6 @@ repos: (?x) ^(asv_bench|pandas/tests|doc)/ |scripts/validate_min_versions_in_sync\.py$ - - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51535
2023-02-21T13:56:53Z
2023-02-23T14:42:26Z
null
2023-02-23T18:11:37Z
DOC Fix EX01 issues in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0333975ed269f..6961d77bebd3d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -86,10 +86,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.p...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51533
2023-02-21T13:31:00Z
2023-02-21T18:24:49Z
2023-02-21T18:24:49Z
2023-02-21T18:41:13Z
Backport PR #51530 on branch 2.0.x (CLN: Fix up link in docs)
diff --git a/doc/source/getting_started/comparison/includes/copies.rst b/doc/source/getting_started/comparison/includes/copies.rst index d0f3d26332d98..4f49c3a1a762e 100644 --- a/doc/source/getting_started/comparison/includes/copies.rst +++ b/doc/source/getting_started/comparison/includes/copies.rst @@ -25,4 +25,4 @@ o...
Backport PR #51530: CLN: Fix up link in docs
https://api.github.com/repos/pandas-dev/pandas/pulls/51531
2023-02-21T11:45:31Z
2023-02-21T13:21:41Z
2023-02-21T13:21:41Z
2023-02-21T13:21:41Z
CLN: Fix up link in docs
diff --git a/doc/source/getting_started/comparison/includes/copies.rst b/doc/source/getting_started/comparison/includes/copies.rst index d0f3d26332d98..4f49c3a1a762e 100644 --- a/doc/source/getting_started/comparison/includes/copies.rst +++ b/doc/source/getting_started/comparison/includes/copies.rst @@ -25,4 +25,4 @@ o...
Was too focused on markdown...
https://api.github.com/repos/pandas-dev/pandas/pulls/51530
2023-02-21T09:36:39Z
2023-02-21T11:45:20Z
2023-02-21T11:45:20Z
2023-04-27T19:53:45Z
DOC: fix EX02 errors in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0333975ed269f..0803569a12ae0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -584,10 +584,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_sparse \ pandas.api.types.is_string_dtype \ pandas.api.t...
Related to the issue #51236 This PR enables functions: `pandas.io.formats.style.Styler.concat` `pandas.io.formats.style.Styler.export` `pandas.io.formats.style.Styler.set_td_classes` `pandas.io.formats.style.Styler.use`
https://api.github.com/repos/pandas-dev/pandas/pulls/51529
2023-02-21T09:36:20Z
2023-02-21T21:50:31Z
2023-02-21T21:50:31Z
2023-02-22T09:59:17Z
Backport PR #51509 on branch 2.0.x (DOC: Clean up release notes of 2.0.0)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index be9f105a7b994..e8ccfc3e1fbe0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_200: -What's new in 2.0.0 (??) ------------------------- +What's new in 2.0.0 (March XX, 2023) ...
Backport PR #51509: DOC: Clean up release notes of 2.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/51528
2023-02-21T09:06:57Z
2023-02-21T13:07:01Z
2023-02-21T13:07:00Z
2023-02-21T13:07:01Z
Backport PR #51513 on branch 2.0.x (CI: Run pipelines on 2.0.x branch)
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index d2a409e4c1058..4e363c7fd573d 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -4,10 +4,12 @@ on: push: branches: - main + - 2.0.x - 1.5.x pull_request: ...
Backport PR #51513: CI: Run pipelines on 2.0.x branch
https://api.github.com/repos/pandas-dev/pandas/pulls/51527
2023-02-21T09:05:49Z
2023-02-21T10:52:08Z
2023-02-21T10:52:08Z
2023-02-21T10:52:09Z
Use PyCapsule for internal datetime functions
diff --git a/MANIFEST.in b/MANIFEST.in index d2b1b8cb887bc..361cd8ff9ec22 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -58,3 +58,5 @@ prune pandas/tests/io/parser/data # Selectively re-add *.cxx files that were excluded above graft pandas/_libs/src graft pandas/_libs/tslibs/src +include pandas/_libs/pd_parser.h +in...
closes #47305 Our datetime functions are used to support other extensions. We've historically managed this by compiling the source files from our datetime modules into the target library, but that doesn't play nicely with parallel compilation and makes a bit of a mess of our symbol management The documented way t...
https://api.github.com/repos/pandas-dev/pandas/pulls/51525
2023-02-21T07:44:09Z
2023-03-11T12:34:24Z
2023-03-11T12:34:24Z
2023-03-11T12:34:40Z
TYP: Use Self for type checking (remaining locations)
diff --git a/pandas/core/base.py b/pandas/core/base.py index 9ca4b9389113d..08e395a3cea11 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -12,7 +12,6 @@ Hashable, Iterator, Literal, - TypeVar, cast, final, overload, @@ -29,6 +28,7 @@ DtypeObj, IndexLabel, ND...
- [X] closes #51233 - [ ] [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/51524
2023-02-21T06:18:49Z
2023-03-14T18:03:36Z
2023-03-14T18:03:36Z
2023-03-14T18:15:27Z
DOC: Updating the timedeltas.seconds docstring for Issue #50969
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index a8c5474f0f532..2a62b3193cfab 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1075,6 +1075,7 @@ cdef class _Timedelta(timedelta): Timedelta.components : Return all attributes w...
- [x] closes #50969
https://api.github.com/repos/pandas-dev/pandas/pulls/51522
2023-02-21T01:34:50Z
2023-02-21T21:14:00Z
2023-02-21T21:14:00Z
2023-02-21T23:08:31Z
CLN: Assorted
diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx index 6669686d7aa2c..cf2e0e4d80bb5 100644 --- a/pandas/io/sas/sas.pyx +++ b/pandas/io/sas/sas.pyx @@ -375,9 +375,9 @@ cdef class Parser: def read(self, int nrows): cdef: bint done - Py_ssize_t i + Py_ssize_t _ ...
Includes `dtype_b = dtype_b.copy()` which was a result of a pytest-randomly finding
https://api.github.com/repos/pandas-dev/pandas/pulls/51519
2023-02-20T22:46:18Z
2023-02-21T03:38:38Z
2023-02-21T03:38:38Z
2023-02-21T03:38:41Z
PERF: Improve performance for ser + range
diff --git a/pandas/core/base.py b/pandas/core/base.py index c9cfb31ac51e1..7093f2ceca50b 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1340,6 +1340,8 @@ def _arith_method(self, other, op): rvalues = extract_array(other, extract_numpy=True, extract_range=True) rvalues = ops.maybe_prep...
- [x] closes #51502 (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/51518
2023-02-20T22:31:20Z
2023-02-21T09:18:34Z
2023-02-21T09:18:34Z
2023-02-21T09:18:47Z
PERF: maybe_convert_objects convert_numeric=False
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 1f6ae49b76adc..fbc577712d294 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -71,6 +71,7 @@ def maybe_convert_objects( *, try_float: bool = ..., safe: bool = ..., + convert_numeric: bool = ..., convert_datetime: Litera...
I think this fixes a perf regression that @phofl pinged me about a few weeks/months ago, but I forget the details.
https://api.github.com/repos/pandas-dev/pandas/pulls/51517
2023-02-20T22:28:03Z
2023-02-25T17:50:39Z
2023-02-25T17:50:39Z
2023-02-27T01:05:27Z
REF: combine groupby helpers
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 19fba398feb08..67188d91bca70 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -154,9 +154,6 @@ def _get_data_to_aggregate( ) return single - def _iterate_slices(self) -> Itera...
- [ ] 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/51516
2023-02-20T22:00:27Z
2023-02-21T18:53:37Z
2023-02-21T18:53:37Z
2023-02-21T18:54:29Z
CI: catch warnings in ci
diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index 7abc8e5eb92cc..fc0c81339de08 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -1332,7 +1332,9 @@ def test_query_ea_dtypes(self, dtype): # GH#50261 df = Data...
- [ ] 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/51515
2023-02-20T21:51:14Z
2023-02-22T21:24:10Z
null
2023-02-22T21:33:36Z
DOC: object_dtype_tzaware_strings.atype(dt64) raises
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bdbde438217b9..929345dd7fcf4 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1211,6 +1211,7 @@ Datetimelike - Bug in :func:`DataFrame.from_records` when given a :class:`DataFrame` input with timezone...
- [x] closes #50140 (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/51514
2023-02-20T21:45:24Z
2023-02-24T19:49:32Z
2023-02-24T19:49:32Z
2023-03-01T09:18:35Z
CI: Run pipelines on 2.0.x branch
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index d2a409e4c1058..4e363c7fd573d 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -4,10 +4,12 @@ on: push: branches: - main + - 2.0.x - 1.5.x pull_request: ...
- [ ] 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/51513
2023-02-20T21:41:59Z
2023-02-21T09:04:55Z
2023-02-21T09:04:55Z
2023-02-21T09:04:59Z
Backport PR #51328 on branch 2.0.x (DOC: clarify "inplace"-ness of DataFrame.setitem)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2520f54ae3d99..4a6b95f9a2e11 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3870,23 +3870,27 @@ def _get_value(self, index, col, takeable: bool = False) -> Scalar: def isetitem(self, loc, value) -> None: """ - Set th...
Backport PR #51328: DOC: clarify "inplace"-ness of DataFrame.setitem
https://api.github.com/repos/pandas-dev/pandas/pulls/51512
2023-02-20T21:37:17Z
2023-02-21T14:02:55Z
2023-02-21T14:02:55Z
2023-02-21T14:02:55Z
DOC: Add whatsnew file for 2.1.0
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 69f845096ea24..0044734b5ff99 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -10,6 +10,14 @@ This is the list of changes to pandas between each release. For full details, see the `commit logs <https://git...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51511
2023-02-20T21:20:27Z
2023-02-21T13:08:05Z
2023-02-21T13:08:05Z
2023-02-21T13:08:05Z
Backport PR #51470 on branch 2.0.x (DEPS: Partial Matplotlib 3.7 support)
diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py deleted file mode 100644 index 7314f05e9f19c..0000000000000 --- a/pandas/plotting/_matplotlib/compat.py +++ /dev/null @@ -1,15 +0,0 @@ -# being a bit too dynamic -from __future__ import annotations - -from pandas.util.version imp...
Backport PR #51470: DEPS: Partial Matplotlib 3.7 support
https://api.github.com/repos/pandas-dev/pandas/pulls/51510
2023-02-20T21:10:39Z
2023-02-21T14:03:39Z
2023-02-21T14:03:39Z
2023-02-21T14:03:40Z
DOC: Clean up release notes of 2.0.0
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index be9f105a7b994..e8ccfc3e1fbe0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_200: -What's new in 2.0.0 (??) ------------------------- +What's new in 2.0.0 (March XX, 2023) ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51509
2023-02-20T21:10:11Z
2023-02-21T09:06:47Z
2023-02-21T09:06:47Z
2023-02-21T09:06:51Z
Backport PR #51443 on branch 2.0.x (CI/TST: Error on PytestUnraisableExceptionWarning instead of using psutil to check open resources)
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index e442beda102eb..e2bfe6e57d216 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -12,7 +12,6 @@ dependencies: - pytest>=7.0.0 - pytest-cov - pytest-xdist>=2.2.0 - - psutil - pytest-asyncio>=0.17 - boto3 diff --g...
Backport PR #51443: CI/TST: Error on PytestUnraisableExceptionWarning instead of using psutil to check open resources
https://api.github.com/repos/pandas-dev/pandas/pulls/51507
2023-02-20T21:01:37Z
2023-02-21T14:03:54Z
2023-02-21T14:03:54Z
2023-02-21T14:03:54Z
CLN: Reset global config state in tests
diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index fae29c124df71..3321df72db91f 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -22,6 +22,8 @@ import pytest import pytz +from pandas._config import config + from pand...
Found in https://github.com/pandas-dev/pandas/pull/51496
https://api.github.com/repos/pandas-dev/pandas/pulls/51506
2023-02-20T19:28:06Z
2023-02-21T03:37:59Z
2023-02-21T03:37:59Z
2023-02-21T03:38:02Z
CLN: read_html global importing check
diff --git a/pandas/io/html.py b/pandas/io/html.py index af723cdebd850..d6d1c5651dd37 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -53,33 +53,6 @@ if TYPE_CHECKING: from pandas import DataFrame -_IMPORTS = False -_HAS_BS4 = False -_HAS_LXML = False -_HAS_HTML5LIB = False - - -def _importers() -> No...
This defers `read_html` library checking even more and avoids global variable gymnastics
https://api.github.com/repos/pandas-dev/pandas/pulls/51505
2023-02-20T19:22:24Z
2023-02-21T14:04:46Z
2023-02-21T14:04:46Z
2023-02-21T18:03:22Z
STYLE: replace unwanted-patterns-strings-to-concatenate with ruff #5…
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f369fcabe3f01..33e475d4a9e20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -342,11 +342,6 @@ repos: (?x) ^(asv_bench|pandas/tests|doc)/ |scripts/validate_min_versions_in_sync\.py$ - - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51504
2023-02-20T18:28:40Z
2023-02-21T13:55:54Z
null
2023-02-21T13:57:20Z
PERF: Implement round on the block level
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index f7da4882b0d3f..ae7cde961924f 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -770,6 +770,24 @@ def time_memory_usage_object_dtype(self): self.df2.memory_usage(deep=...
- [ ] closes #17254 (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/51498
2023-02-20T12:35:36Z
2023-03-01T22:54:13Z
2023-03-01T22:54:13Z
2023-04-21T15:59:44Z
TYP: Use Self instead of class-bound TypeVar II (pandas/core/arrays/)
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 3bcc3159ddf58..c0cca1852b446 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -6,7 +6,6 @@ Any, Literal, Sequence, - TypeVar, cast, overload, ) @@ -23,11 +22,11 @@ Position...
Progress towards #51233. Follow-up to #51493, in this PR I do `pandas/core/arrays/`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51497
2023-02-20T09:26:41Z
2023-03-15T00:32:09Z
2023-03-15T00:32:09Z
2023-03-15T00:55:23Z
CI: Use pytest-randomly
diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml index d1c4338f1806e..0c945a42b549a 100644 --- a/ci/deps/actions-310-numpydev.yaml +++ b/ci/deps/actions-310-numpydev.yaml @@ -13,6 +13,7 @@ dependencies: - pytest-xdist>=2.2.0 - hypothesis>=6.34.2 - pytest-asyncio>=0.17 + - pyt...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51496
2023-02-20T04:42:28Z
2023-02-20T22:05:50Z
null
2023-02-20T22:05:50Z
BUG: Timestamp.round overflows
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3b24310014ff8..dd2bee58b1720 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -118,12 +118,12 @@ Categorical Datetimelike ^^^^^^^^^^^^ -- +- Bug in :meth:`Timestamp.round` with values close to the 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51494
2023-02-20T01:10:35Z
2023-02-25T02:13:02Z
2023-02-25T02:13:02Z
2023-02-25T02:24:48Z
TYP: Use Self instead of class-bound TypeVar (generic.py/frame.py/series.py)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ce4c3d81c4f90..fa2821a6335a3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -231,6 +231,7 @@ ReadBuffer, Renamer, Scalar, + Self, SortKind, StorageOptions, Suffixes, @@ -2495,7 +2...
Progress towards https://github.com/pandas-dev/pandas/issues/51233. There were more updates to do than I expected, so I split it up a bit. In this PR I do `pandas/core/generic.py`, `pandas/core/frame.py`, `pandas/core/series.py` & `pandas/indexes/`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51493
2023-02-19T23:02:32Z
2023-03-15T13:54:08Z
2023-03-15T13:54:08Z
2023-03-15T19:08:55Z
TST: Add tests for clip with CoW
diff --git a/pandas/tests/copy_view/test_clip.py b/pandas/tests/copy_view/test_clip.py index 6626f724ab7f3..3eacd62714ab6 100644 --- a/pandas/tests/copy_view/test_clip.py +++ b/pandas/tests/copy_view/test_clip.py @@ -19,3 +19,54 @@ def test_clip_inplace_reference(using_copy_on_write): assert df._mgr._has_no_re...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51492
2023-02-19T21:41:40Z
2023-02-20T10:07:08Z
2023-02-20T10:07:07Z
2023-02-20T10:13:32Z
DOC: fix EX02 errors in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e76d355f139ed..0333975ed269f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -583,14 +583,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_signed_integer_dtype \ pandas.api.types.is_sparse \ pan...
Related to the issue #51236 This PR enables functions: `pandas.io.json.build_table_schema` `pandas.api.types.is_timedelta64_dtype` `pandas.api.types.is_timedelta64_ns_dtype`
https://api.github.com/repos/pandas-dev/pandas/pulls/51491
2023-02-19T20:38:21Z
2023-02-20T11:42:42Z
2023-02-20T11:42:41Z
2023-02-20T11:42:42Z
TST/CLN: Remove --skip-* flags in favor of -m "not *"
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 665aeb6bc7f87..31ed5096991a6 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -173,8 +173,8 @@ jobs: pip install hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51490
2023-02-19T20:25:50Z
2023-02-20T21:05:25Z
2023-02-20T21:05:25Z
2023-02-20T22:04:16Z
DOC: Add comment about inplace/copy proposal
diff --git a/doc/source/getting_started/comparison/includes/copies.rst b/doc/source/getting_started/comparison/includes/copies.rst index e55d085faecb3..d0f3d26332d98 100644 --- a/doc/source/getting_started/comparison/includes/copies.rst +++ b/doc/source/getting_started/comparison/includes/copies.rst @@ -11,3 +11,18 @@ ...
- [ ] 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/51487
2023-02-19T13:50:58Z
2023-02-20T17:15:30Z
2023-02-20T17:15:30Z
2023-02-22T17:12:18Z
TST: don't fail on systems with tzdata backzone enabled
diff --git a/pandas/tests/tseries/offsets/test_dst.py b/pandas/tests/tseries/offsets/test_dst.py index e00b7d0b78059..ea4855baa87e1 100644 --- a/pandas/tests/tseries/offsets/test_dst.py +++ b/pandas/tests/tseries/offsets/test_dst.py @@ -192,7 +192,7 @@ def test_all_offset_classes(self, tup): Timestamp("190...
test_dst.py specifies Africa/Kinshasa but expects a transition date (AmbiguousTimeError) that is actually for Africa/Lagos. On systems that enable tzdata's backzone file (which Debian and Ubuntu unstable [now do](https://bugs.launchpad.net/bugs/2003797)), these are different, and the test hence fails ([log](https://sa...
https://api.github.com/repos/pandas-dev/pandas/pulls/51486
2023-02-19T10:49:06Z
2023-03-29T20:39:14Z
2023-03-29T20:39:13Z
2023-03-29T20:39:14Z
BUG: Fix NameError in tab complete warning test
diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py index 6ba3347796e08..656da89c70196 100644 --- a/pandas/tests/arrays/categorical/test_warnings.py +++ b/pandas/tests/arrays/categorical/test_warnings.py @@ -12,7 +12,7 @@ async def test_tab_complete_warning(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/51485
2023-02-19T03:58:51Z
2023-02-19T20:15:17Z
2023-02-19T20:15:17Z
2023-11-27T00:21:10Z
BUG: Fix error message for unknown methodtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ac7d30310be9e..719f315b134e6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -313,6 +313,7 @@ Other enhancements - :meth:`Series.drop_duplicates` has gained ``ignore_index`` keyword to reset index (: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/51484
2023-02-19T01:54:39Z
2023-04-28T10:08:27Z
null
2023-04-28T10:08:28Z
REF: de-duplicate precision_from_unit
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 03a53b1b451e9..18ea6bbb0a257 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -37,6 +37,7 @@ from pandas._libs.tslibs.np_datetime cimport ( NPY_FR_us, check_dts_bounds, 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/51483
2023-02-19T01:15:08Z
2023-02-23T00:14:45Z
2023-02-23T00:14:45Z
2023-10-30T00:58:54Z
REF: de-duplicate NDFrame.take, remove Manager.take keyword
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 65100972ab57f..7c2e42ef71d46 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3816,6 +3816,7 @@ def _clear_item_cache(self) -> None: # ---------------------------------------------------------------------- # Indexing Method...
- [ ] 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/51482
2023-02-18T21:59:09Z
2023-02-21T09:16:59Z
2023-02-21T09:16:59Z
2023-02-25T22:39:29Z
DEP: Enforce deprecation of squeeze in read_excel
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ac7d30310be9e..df958a63c4528 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -922,6 +922,7 @@ Removal of prior version deprecations/changes - Removed argument ``is_copy`` from :meth:`DataFrame.take` a...
- [ ] 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/51481
2023-02-18T21:05:43Z
2023-02-19T13:41:59Z
2023-02-19T13:41:59Z
2023-02-19T13:42:02Z
TYP: Use Self instead of class-bound TypeVar in pyi files (remove Y019)
diff --git a/environment.yml b/environment.yml index 2a36247b23eb3..d74084f408260 100644 --- a/environment.yml +++ b/environment.yml @@ -118,3 +118,4 @@ dependencies: - pip: - sphinx-toggleprompt + - typing_extensions; python_version<"3.11" diff --git a/pandas/_libs/sparse.pyi b/pandas/_libs/sparse.pyi...
Progress towards #51233. Next up will be to use `Self` in the pandas code base. xref #51309. CC: @twoertwein
https://api.github.com/repos/pandas-dev/pandas/pulls/51480
2023-02-18T19:29:47Z
2023-03-13T19:28:49Z
2023-03-13T19:28:49Z
2023-03-13T19:36:54Z
BUG: Fix date format identification for dict
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 1f66fd036a1c6..de69cd159723b 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -251,9 +251,9 @@ more strings (corresponding to the columns defined by `parse_dates`) as arguments. - .. deprecated:: 2.0.0 - Use...
- [ ] 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/51479
2023-02-18T18:56:28Z
2023-02-19T01:19:11Z
2023-02-19T01:19:11Z
2023-02-19T10:20:28Z
REF: stricter typing in Manager.take
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 04b69a78dad42..65100972ab57f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3895,6 +3895,7 @@ class max_speed return self._take(indices, axis) + @final def _take( self: NDFrameT, indices, @@ ...
Handle the slice case at at the ndframe level; in future passes I'd like to avoid allowing slices in .take altogether.
https://api.github.com/repos/pandas-dev/pandas/pulls/51478
2023-02-18T17:57:48Z
2023-02-20T21:06:47Z
2023-02-20T21:06:47Z
2023-02-20T21:09:08Z
DEPR: silently ignoring unrecognized timezones
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 224604a8ff8d0..00115a83efe13 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -838,6 +838,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated parsing datetime strings with system-local time...
- [x] closes #18702 (Replace xxxx with the GitHub issue number) - [x] closes #51476 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/51477
2023-02-18T17:10:35Z
2023-02-28T17:38:52Z
2023-02-28T17:38:52Z
2023-02-28T23:34:55Z
ERR: Improve error message in validate_percentile
diff --git a/pandas/tests/series/methods/test_quantile.py b/pandas/tests/series/methods/test_quantile.py index 190cdf5f57ea3..40dee1bb17155 100644 --- a/pandas/tests/series/methods/test_quantile.py +++ b/pandas/tests/series/methods/test_quantile.py @@ -43,6 +43,11 @@ def test_quantile(self, datetime_series): ...
- [x] closes #51436 (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/51475
2023-02-18T12:14:04Z
2023-04-07T15:46:25Z
2023-04-07T15:46:25Z
2023-04-07T15:46:30Z
TYP: misc typing from pandas-stubs in io and plotting
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 11101e5a832a9..a4dfb085c766f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -80,6 +80,7 @@ TimestampConvertibleTypes, ValueKeyFunc, WriteBuffer, + WriteExcelBuffer, npt, ) from pandas.compat._optional import...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51473
2023-02-18T00:51:20Z
2023-03-09T17:04:01Z
2023-03-09T17:04:01Z
2023-08-09T15:08:38Z
PERF: DataFrame.clip / Series.clip
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 11b30ce601be6..33fbc23085e23 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -17,6 +17,21 @@ from .pandas_vb_common import tm +class Clip: + params = [ + ["fl...
- [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/51472
2023-02-18T00:35:40Z
2023-02-22T21:23:34Z
2023-02-22T21:23:34Z
2023-02-23T01:39:05Z
DEPS: Partial Matplotlib 3.7 support
diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py deleted file mode 100644 index 7314f05e9f19c..0000000000000 --- a/pandas/plotting/_matplotlib/compat.py +++ /dev/null @@ -1,15 +0,0 @@ -# being a bit too dynamic -from __future__ import annotations - -from pandas.util.version imp...
xref https://github.com/pandas-dev/pandas/issues/51394 These pass locally with 3.7, the remaining issue will be address with https://github.com/matplotlib/matplotlib/issues/25219
https://api.github.com/repos/pandas-dev/pandas/pulls/51470
2023-02-17T22:43:07Z
2023-02-20T21:10:31Z
2023-02-20T21:10:31Z
2023-02-20T22:05:17Z
DOC: Remove 1.0.0 versionadded/versionchanged
diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst index d75262c08dfd6..d079cc59b0ca5 100644 --- a/doc/source/development/policies.rst +++ b/doc/source/development/policies.rst @@ -9,8 +9,6 @@ Policies Version policy ~~~~~~~~~~~~~~ -.. versionchanged:: 1.0.0 - pandas uses a loos...
- [ ] xref #51071 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51469
2023-02-17T22:37:25Z
2023-02-22T17:09:57Z
2023-02-22T17:09:56Z
2023-02-22T17:10:48Z
DOC: Fix intendation of versionadded and typo
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0369de8db1339..04b69a78dad42 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4661,7 +4661,7 @@ def add_prefix(self: NDFrameT, prefix: str, axis: Axis | None = None) -> NDFrame axis : {{0 or 'index', 1 or 'columns', 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/51468
2023-02-17T22:22:11Z
2023-02-18T11:31:37Z
2023-02-18T11:31:37Z
2023-02-18T11:31:41Z
CI: Cancel 32 bit when another job is started
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index fc00dcf73cbdd..d2a409e4c1058 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -52,3 +52,7 @@ jobs: name: Test results path: test-data.xml if: failure() + ...
- [ ] 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/51465
2023-02-17T20:47:46Z
2023-02-18T01:04:13Z
2023-02-18T01:04:13Z
2023-02-18T18:21:55Z
CoW: Ignore copy=True when copy_on_write is enabled
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 965b93f24121a..5e6ad763f8b68 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -11095,7 +11095,7 @@ def to_timestamp( >>> df2.index DatetimeIndex(['2023-01-31', '2024-01-31'], dtype='datetime64[ns]', freq=None) """ -...
- [ ] closes #50535 (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/51464
2023-02-17T19:40:41Z
2023-03-08T22:04:50Z
2023-03-08T22:04:50Z
2023-03-08T23:45:24Z
PDEP-7: Consistent copy/view semantics in pandas with Copy-on-Write
diff --git a/web/pandas/pdeps/0007-copy-on-write.md b/web/pandas/pdeps/0007-copy-on-write.md new file mode 100644 index 0000000000000..e45fbaf555bc1 --- /dev/null +++ b/web/pandas/pdeps/0007-copy-on-write.md @@ -0,0 +1,589 @@ +# PDEP-7: Consistent copy/view semantics in pandas with Copy-on-Write + +- Created: July 2021...
This PR adds the [google doc](https://docs.google.com/document/d/1ZCQ9mx3LBMy-nhwRl33_jgcvWo9IWdEfxDNQ2thyTb0/edit#) about the Copy-on-Write proposal that came out of the discussion in https://github.com/pandas-dev/pandas/issues/36195 as a PDEP. It predates the PDEPs, but bascially back then I wrote what would now be...
https://api.github.com/repos/pandas-dev/pandas/pulls/51463
2023-02-17T19:05:19Z
2023-11-02T03:23:58Z
2023-11-02T03:23:58Z
2023-11-02T03:24:05Z
REF: move SelectN from core.algorithms
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 1de7643cc96fc..42c513aaf5aa6 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -8,11 +8,8 @@ from textwrap import dedent from typing import ( TYPE_CHECKING, - Hashable, Literal, - Sequence, cast, - ...
- [ ] 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/51460
2023-02-17T17:34:45Z
2023-02-17T22:06:29Z
2023-02-17T22:06:29Z
2023-02-17T22:11:09Z
[READY] Improved performance of `Period`'s default formatter (`period_format`)
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 36301d22db5d3..ecaad609c3f67 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -12,6 +12,7 @@ DataFrame, concat, date_range, + period_range, read_csv, to_datetime, ) @@ -98,2...
`Period`'s default formatter (`period_format`) is now significantly (~twice) faster. - This improves performance of `str(Period)`, `repr(Period)`, and `Period.strftime(fmt=None)`, - as well as `PeriodArray.strftime(fmt=None)`, `PeriodIndex.strftime(fmt=None)` and `PeriodIndex.format(fmt=None)`. - Finally, `to_c...
https://api.github.com/repos/pandas-dev/pandas/pulls/51459
2023-02-17T17:01:02Z
2023-05-07T10:01:11Z
2023-05-07T10:01:11Z
2023-05-22T16:17:17Z
WEB: Add code highlighting in PDEPs and render tables correctly
diff --git a/environment.yml b/environment.yml index 04ded62262483..ee9fb73eeb1d6 100644 --- a/environment.yml +++ b/environment.yml @@ -114,6 +114,7 @@ dependencies: - feedparser - pyyaml - requests + - pygments # Code highlighting - pip: - sphinx-toggleprompt diff --git a/requirements-dev.txt 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/51458
2023-02-17T16:52:55Z
2023-02-26T22:16:12Z
2023-02-26T22:16:12Z
2023-02-26T22:45:32Z
TST: rerun flaky tests
diff --git a/environment.yml b/environment.yml index 04ded62262483..8d25fe7216c81 100644 --- a/environment.yml +++ b/environment.yml @@ -16,6 +16,7 @@ dependencies: - pytest-xdist>=2.2.0 - psutil - pytest-asyncio>=0.17 + - pytest-rerunfailures - coverage # required dependencies diff --git a/pandas/tes...
- [ ] 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/51457
2023-02-17T16:23:23Z
2023-02-17T19:33:52Z
null
2023-02-17T19:33:57Z
TST: un-xfail NaT test on npdev
diff --git a/pandas/tests/scalar/test_nat.py b/pandas/tests/scalar/test_nat.py index d37a0c7976541..9aae76aab66c8 100644 --- a/pandas/tests/scalar/test_nat.py +++ b/pandas/tests/scalar/test_nat.py @@ -9,6 +9,7 @@ import pytz from pandas._libs.tslibs import iNaT +from pandas.compat import is_numpy_dev 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/51455
2023-02-17T15:50:55Z
2023-02-17T19:24:54Z
2023-02-17T19:24:54Z
2023-02-17T19:26:54Z
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 34625ed645615..087e45fbb965b 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 +...
- [ ] 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/51454
2023-02-17T15:49:32Z
2023-03-01T16:23:50Z
2023-03-01T16:23:50Z
2023-03-01T16:23:55Z
DOC: fix EX02 errors in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2c3cc29bd8c0c..add35ffbd3b8e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -576,7 +576,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \ ...
Related to the issue #51236 This PR enables functions: `pandas.core.groupby.DataFrameGroupBy.take` `pandas.Timestamp.fromtimestamp`
https://api.github.com/repos/pandas-dev/pandas/pulls/51453
2023-02-17T12:18:57Z
2023-02-17T14:10:53Z
2023-02-17T14:10:53Z
2023-02-17T14:10:53Z
Update README.md
diff --git a/README.md b/README.md index 38f4afb3e2f22..d826d62455421 100644 --- a/README.md +++ b/README.md @@ -167,4 +167,4 @@ Or maybe through using pandas you have an idea of your own or are looking for so Feel free to ask questions on the [mailing list](https://groups.google.com/forum/?fromgroups#!forum/pydata)...
- [ ] 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/51448
2023-02-17T06:44:21Z
2023-02-17T06:45:41Z
null
2023-02-17T06:45:41Z
REF: simplify python_agg_general
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 3a9ffc8631441..19fba398feb08 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -250,14 +250,28 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs) if cyfunc a...
cc @rhshadrach I hypothesize that we can further simplify DFGB._python_agg_general, part of which will come after #51398.
https://api.github.com/repos/pandas-dev/pandas/pulls/51447
2023-02-17T04:20:04Z
2023-02-17T22:03:12Z
2023-02-17T22:03:12Z
2023-02-17T22:04:01Z
API: Use lowest precision floating type found in reindex with columns
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5d2a0fe66cc1d..1e0fb4ace4dca 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -99,6 +99,7 @@ validate_inclusive, ) +from pandas.core.dtypes.base import ExtensionDtype from pandas.core.dtypes.common import ( ensure_object...
- [ ] closes #51059 (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/51444
2023-02-17T00:11:02Z
2023-02-23T21:59:46Z
null
2023-02-23T22:00:09Z
CI/TST: Error on PytestUnraisableExceptionWarning instead of using psutil to check open resources
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index e442beda102eb..e2bfe6e57d216 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -12,7 +12,6 @@ dependencies: - pytest>=7.0.0 - pytest-cov - pytest-xdist>=2.2.0 - - psutil - pytest-asyncio>=0.17 - boto3 diff --g...
Using `psutil` to check for open resources in tests has been a false positive for a while, picking up unrelated connections such as the database services. Erroring on `ResourceWarnings`, captured by `PytestUnraisableExceptionWarning`, should be sufficient for validating that resources are not left open as a result o...
https://api.github.com/repos/pandas-dev/pandas/pulls/51443
2023-02-16T23:30:55Z
2023-02-20T21:01:04Z
2023-02-20T21:01:04Z
2023-02-20T22:03:33Z
ENH: Improve ref-tracking for group keys
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 88780bac06637..f735ce682fc83 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -944,12 +944,17 @@ def is_in_obj(gpr) -> bool: if not hasattr(gpr, "name"): return False if u...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51442
2023-02-16T21:00:39Z
2023-02-20T16:33:18Z
2023-02-20T16:33:18Z
2023-02-22T17:12:26Z
CI: Fix failing ci for arrow list test
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 0c18686db5149..1b1cbc8130e4d 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -1761,7 +1761,7 @@ def test_str_get(i, exp): @pytest.mark.xfail( reason="TODO: StringMethods...
- [ ] 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/51441
2023-02-16T20:10:03Z
2023-02-16T21:01:42Z
2023-02-16T21:01:42Z
2023-02-16T21:01:46Z
DOC Fix EX01 issues in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index add35ffbd3b8e..e76d355f139ed 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -91,7 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.size \ pandas.Series.T \ pandas.Series.hasnans \ - 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/51440
2023-02-16T20:09:06Z
2023-02-17T19:02:15Z
2023-02-17T19:02:15Z
2023-02-20T08:17:46Z
PERF: Improve performance for pyarrow to_numpy with na and na_value
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 894dc75e351a4..83b259e2e0c96 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -11,7 +11,6 @@ TypeVar, cast, ) -import warnings import numpy as np @@ -890,12 +889,13 @@ def to...
- [ ] 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/51439
2023-02-16T20:07:29Z
2023-02-17T10:27:33Z
2023-02-17T10:27:33Z
2023-02-17T10:27:37Z
WEB: Update feed to Tom's posts
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 25da4b26ffb3b..934f49c24a449 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -63,7 +63,7 @@ blog: feed_name: "pandas blog" feed: - https://wesmckinney.com/feeds/pandas.atom.xml - - https://tomaugspurger.github.io/feed + - http...
The link to Tom's blog is broken, and it used to fetch everything (not only pandas related things). Updated the link to the rss new location for the pandas tag. CC: @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/51438
2023-02-16T19:14:26Z
2023-04-07T07:58:25Z
null
2023-04-07T07:58:26Z
BUG : Add Deprecation FutureWarning for parse function call in read_excel
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 224604a8ff8d0..06438af014af8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1342,6 +1342,7 @@ I/O - Bug in :func:`read_xml` where file-like objects failed when iterparse is used (:issue:`50641`) - ...
- [ ] closes #50953 (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/51437
2023-02-16T18:26:43Z
2023-04-27T22:21:45Z
null
2023-04-27T22:21:46Z
ENH: Avoid copying whole block for single block case
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 05577fb971061..aa6dea69d527e 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -371,8 +371,30 @@ def setitem(self, indexer, value) -> Self: raise ValueError(f"Cannot set values w...
- [ ] 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/51435
2023-02-16T17:01:13Z
2023-08-11T09:17:31Z
2023-08-11T09:17:31Z
2023-08-11T09:17:35Z
STYLE ruff: enable PIE
diff --git a/pandas/conftest.py b/pandas/conftest.py index ea69db60fd2ba..aab6de1724677 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -637,9 +637,7 @@ def index_flat(request): key for key, value in indices_dict.items() if not ( - key.startswith("int") - or ...
- [x] closes #51407 - [ ] [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/51434
2023-02-16T16:18:29Z
2023-02-22T11:03:02Z
2023-02-22T11:03:02Z
2023-02-22T11:03:03Z
51236 ex02 errors docstrings vi
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d342a588bc897..2c3cc29bd8c0c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -591,14 +591,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_timedelta64_ns_dtype \ pandas.api.types.is_unsigned_integer_dtyp...
Related to the issue #51236 This PR enables functions: `pandas.core.groupby.SeriesGroupBy.take` `pandas.merge_ordered` `pandas.option_context` An example in pandas/core/groupby/generic.py was corrected.
https://api.github.com/repos/pandas-dev/pandas/pulls/51432
2023-02-16T15:13:03Z
2023-02-16T16:21:49Z
2023-02-16T16:21:49Z
2023-02-16T16:21:49Z
REF: Refactor reference handling to the BlockManager level for iterrows
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 79f423b17383d..cd9e975b3d578 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1396,10 +1396,7 @@ def iterrows(self) -> Iterable[tuple[Hashable, Series]]: for k, v in zip(self.index, self.values): s = klass(v, index=colu...
- [ ] 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/51431
2023-02-16T15:05:59Z
2023-02-17T18:00:36Z
2023-02-17T18:00:36Z
2023-02-17T18:00:41Z
BUG: transpose not respecting CoW
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c0082b451c95d..ab9de672e5b8d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -261,6 +261,8 @@ Copy-on-Write improvements - :meth:`DataFrame.replace` will now respect the Copy-on-Write mechanism whe...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51430
2023-02-16T14:56:57Z
2023-02-22T21:33:09Z
2023-02-22T21:33:09Z
2023-02-22T21:33:13Z
"Backport PR #51393 on branch 1.5.x (CI: Pin matplotlib to < 3.7.0)"
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index eae8964db7f56..2382c48b9c127 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -30,7 +30,7 @@ dependencies: - gcsfs - jinja2 - lxml - - matplotlib>=3.6.1 + - matplotlib>=3.6.1, <3.7.0 - numba - numexpr - ope...
- [ ] 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/51429
2023-02-16T13:58:32Z
2023-02-16T15:36:33Z
2023-02-16T15:36:33Z
2023-02-16T15:36:33Z
DOC: Fix file extension in docstring of read_sas
diff --git a/pandas/io/sas/sasreader.py b/pandas/io/sas/sasreader.py index bcd342ddb9023..22910484876a6 100644 --- a/pandas/io/sas/sasreader.py +++ b/pandas/io/sas/sasreader.py @@ -104,7 +104,7 @@ def read_sas( object implementing a binary ``read()`` function. The string could be a URL. Valid URL sche...
The ".sas" file extension refers to a program file and not a SAS data set. - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51428
2023-02-16T10:39:23Z
2023-02-16T13:55:22Z
2023-02-16T13:55:22Z
2023-02-16T13:55:23Z
TST: add CoW test for update()
diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py index 0a668ca4bf90e..c20176f57f482 100644 --- a/pandas/tests/copy_view/test_methods.py +++ b/pandas/tests/copy_view/test_methods.py @@ -1529,6 +1529,42 @@ def test_xs_multiindex(using_copy_on_write, using_array_manager, key, le...
xref https://github.com/pandas-dev/pandas/issues/49473 Under the hood, DataFrame.update() is using `.loc` setitem, and Series.update() uses `_mgr.putmask(..)`, and both already handle CoW. This is therefore just adding an explicit test for the `update()` method.
https://api.github.com/repos/pandas-dev/pandas/pulls/51426
2023-02-16T08:08:19Z
2023-02-16T10:45:58Z
2023-02-16T10:45:58Z
2023-02-17T08:47:58Z
BUG: Fix GroupBy.idxmin/idxmax retrun wrong type on empty
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b83f317814ad9..00fe5a062ea81 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -181,7 +181,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- +- Bug in :meth:`DataFrameGroupBy.idxmin`...
- [x] closes #50993 - [x] some tests already exist - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments...
https://api.github.com/repos/pandas-dev/pandas/pulls/51423
2023-02-16T02:53:16Z
2023-02-25T02:28:21Z
2023-02-25T02:28:21Z
2023-02-27T02:14:44Z
BUG: Series.corr/cov raising with masked dtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index aeaafbc4c125d..7a72547156779 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -131,7 +131,7 @@ Timezones Numeric ^^^^^^^ -- +- Bug in :meth:`Series.corr` and :meth:`Series.cov` raising ``AttributeEr...
- [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/51422
2023-02-16T00:45:51Z
2023-02-24T00:09:42Z
2023-02-24T00:09:42Z
2023-03-17T22:04:37Z
PERF: DataFrame.corr avoid copy
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index e5f50bb35d6bd..9763d6664cd3b 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1689,17 +1689,29 @@ def as_array( ------- arr : ndarray """ + passed_nan = li...
- [ ] 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/51421
2023-02-16T00:28:52Z
2023-03-14T16:49:43Z
2023-03-14T16:49:43Z
2023-03-14T17:16:37Z
PERF: faster pd.concat when same concat float dtype but misaligned axis
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c987588097953..fb7d3faa21cee 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1087,6 +1087,7 @@ Performance improvements - Performance improvement for :meth:`MultiIndex.unique` (:issue:`48335`) - Per...
- [x] closes #50652 - [ ] [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/51419
2023-02-15T23:32:39Z
2023-04-25T08:00:21Z
null
2023-04-25T08:00:21Z
ENH: Add dict support for read_csv date_format
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 043394ded42e9..dd774417fc5f9 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -294,9 +294,9 @@ date_parser : function, default ``None`` .. deprecated:: 2.0.0 Use ``date_format`` instead, or read in as ``...
- [x] closes #51240 (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/51418
2023-02-15T23:26:20Z
2023-02-16T16:57:06Z
2023-02-16T16:57:06Z
2023-02-18T18:56:45Z
PDEP-1 first revision (scope)
diff --git a/web/pandas/pdeps/0001-purpose-and-guidelines.md b/web/pandas/pdeps/0001-purpose-and-guidelines.md index e09c5bd01204f..24c91fbab0808 100644 --- a/web/pandas/pdeps/0001-purpose-and-guidelines.md +++ b/web/pandas/pdeps/0001-purpose-and-guidelines.md @@ -2,9 +2,11 @@ - Created: 3 August 2022 - Status: Acc...
This proposal revises the PDEP definition and guidelines. **Feedback is welcome**. Context and summary of the changes: - Clarify the scope and purpose of PDEPs to make it clearer when a PDEP would be needed and when not (this is a discussion we basically didn't really have in the initial PR (https://github.com/pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/51417
2023-02-15T22:30:27Z
2023-04-14T10:38:49Z
2023-04-14T10:38:49Z
2023-04-14T10:41:12Z
CI/STYLE: run black before ruff in pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f13ac4c73fa0..caafce376771d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,18 @@ default_stages: [ ci: autofix_prs: false repos: +- repo: local + hooks: + # NOTE: we make `black` a local hook because if...
Something I have been noticing recently: when commit / running pre-commit, I would often get some warnings from ruff, but for things that black will fix afterwards anyway. While there is no harm done here, it can still be confusing, thinking you also need to fix those warnings. So it might be better to first run black ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51416
2023-02-15T20:39:45Z
2023-02-16T07:28:00Z
2023-02-16T07:27:59Z
2023-10-12T06:04:34Z
Backport PR #51391 on branch 1.5.x (CI: Pin openpyxl to < 3.1.1)
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index deb23d435bddf..eae8964db7f56 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -33,7 +33,7 @@ dependencies: - matplotlib>=3.6.1 - numba - numexpr - - openpyxl + - openpyxl<3.1.1 - odfpy - pandas-gbq - psycop...
- [ ] 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/51415
2023-02-15T20:08:31Z
2023-02-16T13:56:23Z
2023-02-16T13:56:23Z
2023-02-16T13:56:23Z
BUG: Fix Grouper with a datetime key in conjunction with another key
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3a749708fb526..4fd2fd815d1f5 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -243,6 +243,7 @@ Groupby/resample/rolling grouped :class:`Series` or :class:`DataFrame` was a :class:`DatetimeIndex`, :cl...
- [x] closes #51158 - [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/51414
2023-02-15T20:06:01Z
2023-04-08T01:05:58Z
2023-04-08T01:05:58Z
2023-04-21T21:44:25Z
BUG: GroupBy.ohlc with as_index=False
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7fc856be374e9..a8afcdfc98c94 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1367,6 +1367,7 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.describe` produced incorrect results when dat...
- [ ] 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/51413
2023-02-15T19:31:31Z
2023-02-15T22:54:58Z
2023-02-15T22:54:58Z
2023-02-15T22:56:07Z