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
TYP: EA.isin
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 5abdfe69e52c0..d8b074fe61322 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1023,7 +1023,7 @@ def fillna( return super().fillna(value=value, method=method, limit=limit, copy=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/56423
2023-12-09T03:15:16Z
2023-12-09T18:29:50Z
2023-12-09T18:29:50Z
2023-12-09T18:30:15Z
DEPR: make_block
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..c455aef452ecc 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -431,6 +431,7 @@ Other Deprecations ^^^^^^^^^^^^^^^^^^ - Changed :meth:`Timedelta.resolution_string` to return ``h``, ``mi...
xref #40226
https://api.github.com/repos/pandas-dev/pandas/pulls/56422
2023-12-09T02:46:51Z
2023-12-11T17:43:41Z
2023-12-11T17:43:41Z
2024-01-08T21:24:50Z
DEPR: type argument in Index.view
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..410dfa3fd5b4a 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -438,6 +438,7 @@ Other Deprecations - Deprecated :meth:`Series.view`, use :meth:`Series.astype` instead to change the dtype...
- [x] closes #55709 (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/56421
2023-12-09T02:32:03Z
2023-12-09T18:57:27Z
2023-12-09T18:57:27Z
2023-12-11T20:49:43Z
CLN: Remove unnecessary copy keyword
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 6cad71b3dfd18..d9db2bc5cddb4 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1206,8 +1206,8 @@ def assert_frame_equal( # compare by blocks if by_blocks: - rblocks = right._to_dict_of_blocks...
The copy keyword here is really not needed
https://api.github.com/repos/pandas-dev/pandas/pulls/56420
2023-12-08T23:08:29Z
2023-12-09T01:00:55Z
2023-12-09T01:00:55Z
2023-12-09T08:11:45Z
CoW: Update test with read-only array
diff --git a/pandas/tests/frame/methods/test_to_dict_of_blocks.py b/pandas/tests/frame/methods/test_to_dict_of_blocks.py index 28973fe0d7900..7d08efe916a76 100644 --- a/pandas/tests/frame/methods/test_to_dict_of_blocks.py +++ b/pandas/tests/frame/methods/test_to_dict_of_blocks.py @@ -51,9 +51,7 @@ def test_no_copy_bloc...
- [ ] 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/56418
2023-12-08T22:52:59Z
2023-12-11T13:06:00Z
2023-12-11T13:06:00Z
2023-12-11T13:08:39Z
ENH: unify warning message in to_offset()
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3ea8fbf69b28b..b893939969c68 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -4786,7 +4786,8 @@ cpdef to_offset(freq, bint is_period=False): for n, (sep, stride, name) in enumerate(tup...
xref #56346 unified warning message for deprecated frequencies in to_offset in order to make test parametrization more clear
https://api.github.com/repos/pandas-dev/pandas/pulls/56417
2023-12-08T22:45:45Z
2023-12-12T16:46:41Z
2023-12-12T16:46:41Z
2023-12-12T16:57:38Z
CLN: generate_range
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a88f40013b3f6..eb1c2ecc0b0fe 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2103,7 +2103,9 @@ def _validate_frequency(cls, index, freq: BaseOffset, **kwargs): ) from err ...
- [ ] 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/56416
2023-12-08T21:49:50Z
2023-12-08T23:25:25Z
2023-12-08T23:25:25Z
2023-12-08T23:29:53Z
fixed issue, multiindex dataframe now created as expected
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 919ac8b03f936..49239412d6f7c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -617,6 +617,7 @@ I/O - Bug in :func:`read_json` not handling dtype conversion properly if ``infer_string`` is set (:issue:`...
- [ ] closes #50456 - [ ] https://github.com/pandas-dev/pandas/blob/46c8da3e5b987154d2e0a44562c71be635ae826a/pandas/tests/io/json/test_pandas.py#L336 now passes - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added an entry in the lat...
https://api.github.com/repos/pandas-dev/pandas/pulls/56415
2023-12-08T21:47:21Z
2024-01-08T21:33:47Z
null
2024-01-08T21:33:48Z
BUG: fillna with mixed-resolution dt64/td64
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..88a4f3aacc174 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -534,6 +534,7 @@ Datetimelike - Bug in :meth:`Index.is_monotonic_increasing` and :meth:`Index.is_monotonic_decreasing` alwa...
- [ ] 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/56413
2023-12-08T21:43:03Z
2023-12-09T18:38:17Z
2023-12-09T18:38:17Z
2023-12-09T18:40:16Z
Series.str.find fix for arrow strings when start < 0
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 919ac8b03f936..1544b3d953d71 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -577,6 +577,7 @@ Strings - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no elements is ...
- [x] closes #56411(Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/56412
2023-12-08T21:01:52Z
2023-12-08T23:41:57Z
2023-12-08T23:41:57Z
2023-12-08T23:53:41Z
STY: Fix doctest and docstring formatting errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e91629744463f..e41f625e583c0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -14,6 +14,8 @@ # $ ./ci/code_checks.sh single-docs # check single-page docs build warning-free # $ ./ci/code_checks.sh notebooks # check execution of documentation ...
Looks like there's some hiding formatting error in docstrings that I found in https://github.com/pandas-dev/pandas/actions/runs/7144701820/job/19458890003?pr=56003 (which appears unrelated)
https://api.github.com/repos/pandas-dev/pandas/pulls/56408
2023-12-08T19:28:12Z
2023-12-09T01:43:35Z
2023-12-09T01:43:34Z
2023-12-09T01:43:37Z
DOC: Fix typo in resample.py, "as_freq"
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 8af81cd43d62e..31e41acbf1774 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1061,7 +1061,7 @@ def interpolate( 2023-03-01 07:00:04.000 3.0 Freq: 500ms, dtype: float64 - Internal reindexing with ``a...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56407
2023-12-08T19:17:45Z
2023-12-08T23:24:24Z
2023-12-08T23:24:24Z
2023-12-09T23:08:02Z
fix negative n for str.replace with arrow string
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..919ac8b03f936 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -577,6 +577,7 @@ Strings - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no elements is ...
- [ ] closes #56404 (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/56406
2023-12-08T19:01:28Z
2023-12-08T20:06:05Z
2023-12-08T20:06:04Z
2023-12-08T20:06:14Z
DOC: add deprecation of chained assignment to 2.2 whatsnew
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 03d6025b4ef93..991daf6e65c8e 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -451,6 +451,70 @@ Other API changes Deprecations ~~~~~~~~~~~~ +Chained assignment +^^^^^^^^^^^^^^^^^^ + +In preparation ...
Part of the warnings we have been adding in https://github.com/pandas-dev/pandas/issues/56019, specifically the ones for chained assignment / chained inplace methods, are already being raised in the default mode, because this is a part of the changes with CoW we can clearly deprecate in advance. Therefore adding a wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/56403
2023-12-08T15:56:58Z
2023-12-21T22:46:07Z
2023-12-21T22:46:07Z
2023-12-22T08:48:10Z
TST/CoW: expand test for chained inplace methods
diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py index 80e38380ed27c..0a37f6b813e55 100644 --- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py +++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py @@ ...
Another follow-up on https://github.com/pandas-dev/pandas/pull/56400
https://api.github.com/repos/pandas-dev/pandas/pulls/56402
2023-12-08T14:52:22Z
2024-01-08T23:27:50Z
2024-01-08T23:27:50Z
2024-01-08T23:27:57Z
TST: clean CoW chained assignment warning iloc test case
diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py index 25935d9489730..80e38380ed27c 100644 --- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py +++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py @@ ...
Cleaning up the test added in https://github.com/pandas-dev/pandas/pull/56166, now https://github.com/pandas-dev/pandas/pull/56297 and https://github.com/pandas-dev/pandas/pull/56289 are merged
https://api.github.com/repos/pandas-dev/pandas/pulls/56400
2023-12-08T11:07:48Z
2023-12-08T13:55:30Z
2023-12-08T13:55:30Z
2023-12-08T14:49:39Z
DOC: Improve error message and add test for `.loc()` with non sorted index
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ac4d2976593a2..df42095558509 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3769,6 +3769,9 @@ def get_loc(self, key): and any(isinstance(x, slice) for x in casted_key) ): ...
- [x] closes #50557 - [ ] [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). I c...
https://api.github.com/repos/pandas-dev/pandas/pulls/56399
2023-12-08T10:17:00Z
2023-12-22T11:55:12Z
null
2023-12-22T11:55:16Z
Backport PR #56393 on branch 2.1.x (DOC: Add release date for 2.1.4)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 13df35a1477d0..fdbe119268e50 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_214: -What's new in 2.1.4 (December ??, 2023) +What's new in 2.1.4 (December 8, 2023) --------...
Backport PR #56393: DOC: Add release date for 2.1.4
https://api.github.com/repos/pandas-dev/pandas/pulls/56395
2023-12-08T03:10:34Z
2023-12-08T04:14:20Z
2023-12-08T04:14:20Z
2023-12-08T04:14:20Z
DOC: Add release date for 2.1.4
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 723c33280a679..6edd33614c63c 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_214: -What's new in 2.1.4 (December ??, 2023) +What's new in 2.1.4 (December 8, 2023) --------...
- [ ] 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/56393
2023-12-08T00:25:09Z
2023-12-08T03:09:32Z
2023-12-08T03:09:32Z
2023-12-08T03:09:33Z
CoW: Avoid warnings in stata code
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 1eb8f531dc62a..218afb734d629 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -345,10 +345,7 @@ def convert_delta_safe(base, deltas, unit) -> Series: has_bad_values = False if bad_locs.any(): has_bad_values = True - # reset ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56392
2023-12-07T23:56:12Z
2023-12-15T22:47:27Z
2023-12-15T22:47:27Z
2023-12-15T22:47:31Z
CoW: Avoid warning in case of expansion
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index a221d02b75bb2..cc88312d5b58f 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1325,16 +1325,16 @@ def column_setitem( This is a method on the BlockManager level, to avoid creating ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56391
2023-12-07T23:27:49Z
2023-12-08T09:38:38Z
2023-12-08T09:38:38Z
2023-12-08T09:40:19Z
CoW: Remove filterwarnings and todo
diff --git a/pandas/tests/frame/test_subclass.py b/pandas/tests/frame/test_subclass.py index f19e31002c877..ef78ae62cb4d6 100644 --- a/pandas/tests/frame/test_subclass.py +++ b/pandas/tests/frame/test_subclass.py @@ -524,8 +524,6 @@ def test_subclassed_wide_to_long(self): tm.assert_frame_equal(long_frame, ex...
Looks like we fixed this already
https://api.github.com/repos/pandas-dev/pandas/pulls/56390
2023-12-07T23:22:45Z
2023-12-08T08:32:46Z
2023-12-08T08:32:46Z
2023-12-08T08:56:15Z
TYP: tighter typing in _maybe_convert_freq, _from_ordinal
diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi index df6ce675b07fc..22f3bdbe668de 100644 --- a/pandas/_libs/tslibs/period.pyi +++ b/pandas/_libs/tslibs/period.pyi @@ -87,7 +87,7 @@ class Period(PeriodMixin): @classmethod def _maybe_convert_freq(cls, freq) -> BaseOffset: ... ...
- [ ] 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/56389
2023-12-07T23:01:40Z
2023-12-08T00:15:01Z
2023-12-08T00:15:01Z
2023-12-08T00:18:40Z
Backport PR #56160 on branch 2.1.x (BUG: reset_index not preserving object dtype for string option)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 519c3a4ab2d32..13df35a1477d0 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -32,6 +32,7 @@ Bug fixes - Fixed bug in :meth:`Index.insert` casting object-dtype to PyArrow backed strings when ``infer_st...
#56160
https://api.github.com/repos/pandas-dev/pandas/pulls/56387
2023-12-07T21:36:14Z
2023-12-07T22:49:21Z
2023-12-07T22:49:21Z
2023-12-07T22:49:25Z
DEPR: Series[categorical].replace special-casing
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..5dd04986dcd3e 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -473,6 +473,7 @@ Other Deprecations - Deprecated the ``kind`` keyword in :meth:`Series.resample` and :meth:`DataFrame.resam...
- [x] closes #55147 (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/56385
2023-12-07T20:07:43Z
2023-12-09T18:27:41Z
2023-12-09T18:27:41Z
2024-01-30T00:57:22Z
TST: Added a test for groupby.prod
diff --git a/pandas/tests/groupby/test_reductions.py b/pandas/tests/groupby/test_reductions.py index 3e78e728f5ea9..425079f943aba 100644 --- a/pandas/tests/groupby/test_reductions.py +++ b/pandas/tests/groupby/test_reductions.py @@ -1057,3 +1057,27 @@ def test_regression_allowlist_methods(op, axis, skipna, sort): ...
- [x] Closes #46573 - The bug related to issue #46573 has been fixed in the current version. - Added a test related to this issue. The test is designed to check if `groupby.prod` returns the same results as `prod`.
https://api.github.com/repos/pandas-dev/pandas/pulls/56384
2023-12-07T19:51:25Z
2023-12-09T13:34:47Z
2023-12-09T13:34:47Z
2023-12-09T13:34:56Z
Backport PR #56184 on branch 2.1.x (BUG: mode not preserving object dtype for string option)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 26fd23d80208c..519c3a4ab2d32 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -31,6 +31,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.to_hdf` raising when columns have ``StringDtype`` (:issue:`55088`)...
#56183/#56184
https://api.github.com/repos/pandas-dev/pandas/pulls/56383
2023-12-07T19:41:52Z
2023-12-07T22:48:40Z
2023-12-07T22:48:40Z
2023-12-07T22:49:33Z
Backport PR #56123 on branch 2.1.x (BUG: ne comparison returns False for NA and other value)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 6cd44d954a708..26fd23d80208c 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -30,6 +30,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.__setitem__` casting :class:`Index` with object-dtype to PyArrow b...
#56123
https://api.github.com/repos/pandas-dev/pandas/pulls/56382
2023-12-07T19:40:45Z
2023-12-07T21:19:16Z
2023-12-07T21:19:16Z
2023-12-08T22:37:11Z
CoW: Warn for transform inplace modification
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1630c2c31920d..179279cc08bab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4895,7 +4895,6 @@ def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None: inplace = validate_bool_kwarg(inplace, "inplace") ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56381
2023-12-07T19:20:30Z
2023-12-07T21:15:39Z
2023-12-07T21:15:39Z
2023-12-07T21:18:14Z
[DOC]: Documentation updated for codes
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 86693f241ddb1..5a4d710ad1416 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1079,6 +1079,37 @@ def levshape(self) -> Shape: @property def codes(self) -> FrozenList: + """ + Codes in...
- [X] closes #56278(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
https://api.github.com/repos/pandas-dev/pandas/pulls/56378
2023-12-07T13:59:36Z
2023-12-07T17:12:33Z
null
2023-12-10T12:01:58Z
Backport PR #55703 on branch 2.1.x (Use DeprecationWarning instead of FutureWarning for is_.._dtype deprecations)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3db36fc50e343..143dc46359af5 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -211,8 +211,8 @@ def is_sparse(arr) -> bool: warnings.warn( "is_sparse is deprecated and will be removed in a future "...
Backport of https://github.com/pandas-dev/pandas/pull/55703
https://api.github.com/repos/pandas-dev/pandas/pulls/56377
2023-12-07T13:15:49Z
2023-12-07T16:52:03Z
2023-12-07T16:52:03Z
2023-12-14T20:36:01Z
BLD: Refresh gitpod build files
diff --git a/.gitpod.yml b/.gitpod.yml index 9222639136a17..90448a7cd4c24 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -6,16 +6,23 @@ # images for gitpod pandas are in https://hub.docker.com/r/pandas/pandas-gitpod/tags # we're using the Dockerfile in the base of the repo image: - file: Dockerfile + file: gitpod/...
- [ ] 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/56375
2023-12-07T04:52:20Z
2024-02-28T17:54:20Z
null
2024-02-28T17:54:20Z
TYP: require_matching_freq
diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi index 846d238beadbd..df6ce675b07fc 100644 --- a/pandas/_libs/tslibs/period.pyi +++ b/pandas/_libs/tslibs/period.pyi @@ -63,7 +63,7 @@ class PeriodMixin: def end_time(self) -> Timestamp: ... @property def start_time(self) -> Time...
- [ ] 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/56374
2023-12-07T03:03:35Z
2023-12-07T19:15:44Z
2023-12-07T19:15:44Z
2023-12-07T19:39:21Z
PERF: datetimelike addition
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 5e23cba2e1074..6b1f75187f887 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -12,7 +12,6 @@ date_range, to_timedelta, ) -from pandas.core.algorithms import checked_add_with_a...
``` In [1]: import pandas as pd In [2]: dti = pd.date_range("2016-01-01", periods=10_000) In [3]: td = pd.Timedelta(days=1) In [4]: %timeit dti + td 108 µs ± 1.85 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # <- main 94.3 µs ± 3.27 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)...
https://api.github.com/repos/pandas-dev/pandas/pulls/56373
2023-12-07T02:55:40Z
2023-12-09T18:36:28Z
2023-12-09T18:36:28Z
2023-12-09T18:37:46Z
CLN/TYP: "how" parameter in merge ops
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index f8575b1b53908..0756b25adedcd 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -718,7 +718,7 @@ class _MergeOperation: """ _merge_type = "merge" - how: MergeHow | Literal["asof"] + how: JoinHow...
cleanup and tighten typing of `how` parameter in merge ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/56372
2023-12-07T02:10:50Z
2023-12-07T17:15:34Z
2023-12-07T17:15:34Z
2023-12-07T17:15:41Z
BUG: resample with ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..aa5de99b69f57 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -644,6 +644,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.asfreq` and :meth:`Series.asfreq` with a :class:`Dateti...
- [x] closes #55989 (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/56371
2023-12-06T23:18:34Z
2023-12-09T01:06:34Z
2023-12-09T01:06:34Z
2023-12-09T01:06:37Z
BUG: rolling with datetime ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d1481639ca5a0..58a70a2b66a84 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -831,6 +831,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.resample` when resampling on a :class:`ArrowDtype` of `...
- [x] closes #55849 (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/56370
2023-12-06T21:55:41Z
2023-12-28T19:32:01Z
2023-12-28T19:32:01Z
2023-12-28T19:32:03Z
Update nlargest nsmallest doc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e741fa7b37f33..8ba9926c054ba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7505,8 +7505,8 @@ def nlargest( - ``first`` : prioritize the first occurrence(s) - ``last`` : prioritize the last occurrence(s) - ...
- [x] closes #45041 (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/56369
2023-12-06T20:26:06Z
2023-12-12T00:39:24Z
2023-12-12T00:39:24Z
2023-12-12T00:39:32Z
BUG: Series.__mul__ for pyarrow strings
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 67b4052b386c0..c878fd2664dc4 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -576,6 +576,7 @@ Strings ^^^^^^^ - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no ele...
- [x] closes #51970 (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/56368
2023-12-06T19:50:49Z
2023-12-07T05:57:39Z
2023-12-07T05:57:39Z
2023-12-07T05:57:43Z
BUG: `concat` should keep series names unless `ignore_index=True`
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index dea986c401b60..52a354b8e54bd 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -636,6 +636,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ - Bug in :func:`concat` ignoring ``sort`` parameter when pa...
- [x] closes #15047 - [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/56365
2023-12-06T18:15:11Z
2023-12-09T19:07:44Z
2023-12-09T19:07:44Z
2023-12-09T21:02:17Z
DOC: restructured offset deprecation whatsnew
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d2a284ea545a1..67b4052b386c0 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -358,19 +358,30 @@ Other API changes Deprecations ~~~~~~~~~~~~ -Deprecate aliases ``M``, ``SM``, ``BM``, ``CBM``, ``Q``,...
- [x] closes #56299 replaced offset deprecation text block in v2.2.0 with a table and made shorter headline
https://api.github.com/repos/pandas-dev/pandas/pulls/56364
2023-12-06T17:36:44Z
2023-12-06T18:22:17Z
2023-12-06T18:22:17Z
2023-12-06T22:36:28Z
DOC: Add example for `df.map` without `lambda`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3edfea4480e47..1630c2c31920d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10339,6 +10339,14 @@ def map( 0 NaN 4 1 5.0 5 + It is also possible to use `map` with functions that are not + `lambda` funct...
- [x] Closes ##54648, #54649
https://api.github.com/repos/pandas-dev/pandas/pulls/56363
2023-12-06T17:27:57Z
2023-12-06T18:24:17Z
2023-12-06T18:24:17Z
2023-12-08T09:36:04Z
Implicity convert series to DataFrame before doing the concatenation …
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 1bc548de91f01..0d75cf21b56f5 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -413,6 +413,10 @@ def __init__( copy: bool = True, sort: bool = False, ) -> None: + for i in range...
…(#56257) - [ ] 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/de...
https://api.github.com/repos/pandas-dev/pandas/pulls/56362
2023-12-06T17:26:51Z
2023-12-27T19:14:56Z
null
2023-12-27T19:14:57Z
WIP BUG: Warning for incompatible type when type should be compatible
diff --git a/pandas/core/series.py b/pandas/core/series.py index 464e066b4e86a..ce61edee5c8d2 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3598,10 +3598,11 @@ def update(self, other: Series | Sequence | Mapping) -> None: if not isinstance(other, Series): other = Series(other)...
- [ ] closes #55990 (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/56360
2023-12-06T11:56:56Z
2024-01-09T10:46:56Z
null
2024-01-09T10:46:56Z
BUG: Replaced ValueError exception with TypeError exception in df.where() function
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b63929079abeb..4e61e9b24e720 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10365,7 +10365,29 @@ def map( 0 1 0 3 4 1 5 5 - +<<<<<<< HEAD + + >>> df.map(round, digits=2) + ...
Replaced ValueError exception with TypeError as it is more appropriate for the error it serves - [] closes issue #56330 where there was a consensus that a TypeError is more appropriate for the following error: "Boolean array expected for the condition, not (non-bool type)". Since ValueErrors are raised when the ty...
https://api.github.com/repos/pandas-dev/pandas/pulls/56358
2023-12-06T05:47:35Z
2023-12-14T11:35:10Z
null
2023-12-14T11:35:10Z
remove unused code from JSONtoObj
diff --git a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c index e7c58d498f9be..b7ee58c63a275 100644 --- a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c +++ b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c @@ -38,43 +38,9 @@ Numeric decoder derived from...
I always thought we did some kind of direct serialization to NumPy with the ujson reader, but as it turns out we do not. This must have all been started but at some point abandoned
https://api.github.com/repos/pandas-dev/pandas/pulls/56355
2023-12-06T04:10:17Z
2023-12-06T18:26:25Z
2023-12-06T18:26:25Z
2023-12-10T08:12:11Z
BUG DataFrame.update(self, other,join: str = "left", overwrite: bool = True,filter_func=None,errors: str = "ignore"):
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3edfea4480e47..ca1710c5bf6ff 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -12,25 +12,22 @@ import collections from collections import abc -from collections.abc import ( - Hashable, - Iterable, - Iterator, - Mapping, - S...
- [ ] closes #55883 - [ ] [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 - [Done ] 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/56354
2023-12-06T03:18:05Z
2023-12-27T19:14:05Z
null
2023-12-27T19:14:06Z
BUG read_csv(quotechar=, engine='pyarrow')
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c69e61c899600..05065aef473c5 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -597,6 +597,7 @@ I/O - Bug in :func:`read_csv` where ``engine="python"`` did not respect ``chunksize`` arg when ``skiprows`...
- [ ] closes #52266 (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/56352
2023-12-06T01:42:06Z
2023-12-06T05:02:36Z
2023-12-06T05:02:36Z
2023-12-06T19:00:34Z
BUG: astype(errors=ignore) for EAs
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index dea986c401b60..5bd5c511eb1ad 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -556,6 +556,7 @@ Numeric Conversion ^^^^^^^^^^ - Bug in :meth:`DataFrame.astype` when called with ``str`` on unpickled ar...
- [ ] closes #55399 (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/56350
2023-12-06T00:32:08Z
2023-12-06T01:42:29Z
2023-12-06T01:42:29Z
2023-12-06T01:42:32Z
Backport PR #56294: BUG: Series(strings, dtype=ArrowDtype[timestamp]) raising
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 3caeef3d26ead..362ee81bbdc09 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -22,6 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :class:`Series` constructor raising DeprecationWarning when...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56349
2023-12-05T23:46:26Z
2023-12-06T00:51:53Z
2023-12-06T00:51:53Z
2023-12-06T00:51:56Z
Backport PR #56332: BUG: str.split for ArrowDtype with pat=None
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 3caeef3d26ead..5cd07030dfaae 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -25,10 +25,11 @@ Bug fixes - Bug in :meth:`DataFrame.apply` where passing ``raw=True`` ignored ``args`` passed to the appli...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56348
2023-12-05T23:40:56Z
2023-12-06T00:46:48Z
2023-12-06T00:46:48Z
2023-12-06T00:46:51Z
ENH: Implement Series.interpolate for ArrowDtype
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 32044d1fc233a..89e916153ffa8 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2086,6 +2086,23 @@ def interpolate( See NDFrame.interpolate.__doc__. """ # NB: we re...
- [x] closes #56267 (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/56347
2023-12-05T23:33:10Z
2024-02-08T16:47:01Z
2024-02-08T16:47:00Z
2024-02-08T16:47:04Z
PERF: join on unordered CategoricalIndex
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index b092cf6f81ef2..cdfe973a667e6 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -479,6 +479,7 @@ Performance improvements - Performance improvement in :func:`merge_asof` when ``by`` is not ``None`` (:iss...
- [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/56345
2023-12-05T22:34:16Z
2023-12-06T01:00:42Z
2023-12-06T01:00:42Z
2023-12-06T01:01:39Z
TST/CLN: Remove seldomly use items in _testing/__init__.py
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 0036c3ab25bf1..69b2b0876fc80 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -3,7 +3,6 @@ from decimal import Decimal import operator import os -import re from sys import byteorder from typing import ( T...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56344
2023-12-05T21:00:43Z
2023-12-06T01:42:46Z
2023-12-06T01:42:46Z
2023-12-06T01:42:49Z
DOC: add simple example to DataFrame.to_csv()
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e6dcb634f7947..a1617934ccb29 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3950,14 +3950,17 @@ def to_csv( Examples -------- + Create 'out.csv' containing 'df' without indices + >>> df = pd.Data...
- [x] This closes #56256. Adding a simple example without compression should improve usability for new users.
https://api.github.com/repos/pandas-dev/pandas/pulls/56342
2023-12-05T10:07:39Z
2023-12-05T21:57:20Z
2023-12-05T21:57:20Z
2023-12-08T09:36:10Z
TST: Improved test coverage for Styler.bar error conditions
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 39d5b45862a8f..7d5c354aef002 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -4082,8 +4082,9 @@ def css_calc(x, left: float, right: float, align: str, color: str | list | tuple return ret values = ...
- [x] closes #56283 - Added two new unit tests `test_bar_color_and_cmap_error_raises()` and `test_bar_invalid_color_type_error_raises()` to improve the coverage of `Styler.bar` where the issue mentioned, ensuring the method raises the appropriate `ValueError`. - Implemented a solution using `df.min/max` before `...
https://api.github.com/repos/pandas-dev/pandas/pulls/56341
2023-12-05T09:50:29Z
2023-12-11T19:06:17Z
2023-12-11T19:06:17Z
2023-12-11T19:06:25Z
test file name
diff --git a/kousalya-test.txt b/kousalya-test.txt new file mode 100644 index 0000000000000..bdf08de0f3095 --- /dev/null +++ b/kousalya-test.txt @@ -0,0 +1 @@ +test file \ No newline at end of file
This is test push - [ ] 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-doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/56339
2023-12-05T03:31:44Z
2023-12-05T03:36:21Z
null
2023-12-05T03:36:21Z
TST: Remove groupby/test_function.py
diff --git a/pandas/tests/groupby/methods/test_nth.py b/pandas/tests/groupby/methods/test_nth.py index e39cfd520ba1a..a8ed9e9d52021 100644 --- a/pandas/tests/groupby/methods/test_nth.py +++ b/pandas/tests/groupby/methods/test_nth.py @@ -898,3 +898,24 @@ def test_nth_after_selection(selection, dropna): locs = [...
- [ ] 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/56338
2023-12-05T02:45:02Z
2023-12-05T17:48:35Z
2023-12-05T17:48:35Z
2023-12-05T21:28:02Z
DOC: add missing parameters to DateOffset classes: Milli, Micro and Nano
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 47e507a0150e2..3ea8fbf69b28b 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1194,6 +1194,36 @@ cdef class Second(Tick): cdef class Milli(Tick): + """ + Offset ``n`` milliseconds. + + ...
- [ ] towards DOC:#52431 Updated documentation by 1. adding missing parameters for offsets classes: Milli, Micro, Nano. 2. adding parameter description for offset classes: SemiMonthEnd, SemiMonthBegin
https://api.github.com/repos/pandas-dev/pandas/pulls/56336
2023-12-05T01:49:36Z
2023-12-06T00:50:05Z
2023-12-06T00:50:05Z
2023-12-06T00:50:13Z
Backport PR #56308 on branch 2.1.x (REGR: Fix reading old pickles from pandas 1.3.5)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 5c4db5b60b433..3caeef3d26ead 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression when tryin...
Backport PR #56308: REGR: Fix reading old pickles from pandas 1.3.5
https://api.github.com/repos/pandas-dev/pandas/pulls/56335
2023-12-05T00:22:42Z
2023-12-05T02:44:09Z
2023-12-05T02:44:09Z
2023-12-05T02:44:09Z
ENH: Implement str.extract for ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 318f746917fcd..7192cb9aef195 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -226,6 +226,7 @@ Other enhancements - Allow passing ``read_only``, ``data_only`` and ``keep_links`` arguments to openpyxl u...
- [x] closes #56268 (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/56334
2023-12-05T00:19:39Z
2023-12-05T23:24:43Z
2023-12-05T23:24:43Z
2023-12-05T23:36:04Z
Backport PR #56174: CI: Add 3.12 builds
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 14abcdbfdb310..b472587d8b58f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -26,7 +26,7 @@ jobs: timeout-minutes: 180 strategy: matrix: - env_file: [actions-39.yaml, ac...
- [ ] 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/56333
2023-12-04T23:29:49Z
2023-12-07T13:00:55Z
2023-12-07T13:00:55Z
2023-12-07T20:32:15Z
BUG: str.split for ArrowDtype with pat=None
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 4ef6a2463ee16..927c0ee4f532d 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -24,11 +24,12 @@ Bug fixes - Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a list of :cla...
- [x] closes #56271 (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/56332
2023-12-04T23:26:26Z
2023-12-05T23:22:46Z
2023-12-05T23:22:46Z
2023-12-05T23:41:30Z
TST/ CLN: Remove makeCustomIndex/DataFrame
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 21e07e8d00ad6..863a663fc2413 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1490,9 +1490,9 @@ rows will skip the intervening rows. .. ipython:: python - from pandas._testing import makeCustomDataframe...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56331
2023-12-04T22:35:46Z
2023-12-05T17:50:19Z
2023-12-05T17:50:19Z
2023-12-05T17:50:22Z
Address violation fix
diff --git a/pandas/core/methods/selectn.py b/pandas/core/methods/selectn.py index 843c54de25bc9..a2f8ca94134b8 100644 --- a/pandas/core/methods/selectn.py +++ b/pandas/core/methods/selectn.py @@ -140,7 +140,10 @@ def compute(self, method: str) -> Series: # arr passed into kth_smallest must be contiguous. We c...
Follow up to https://github.com/pandas-dev/pandas/pull/56000 looks like this still is an address violation when the array is empty, since `arr[0]` on an empty array is out of bounds
https://api.github.com/repos/pandas-dev/pandas/pulls/56328
2023-12-04T21:39:10Z
2023-12-05T00:23:41Z
2023-12-05T00:23:41Z
2023-12-05T00:35:11Z
Compiled pandas with -Wextra
diff --git a/meson.build b/meson.build index 0bc04c59d8716..06623a305ab54 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,8 @@ project( meson_version: '>=1.2.1', default_options: [ 'buildtype=release', - 'c_std=c11' + 'c_std=c11', + 'warning_level=2', ] ) diff --git...
Need to merge in https://github.com/pandas-dev/pandas/pull/56277 first then make sure this doesn't cause issues on other platforms, but seems to work for gcc
https://api.github.com/repos/pandas-dev/pandas/pulls/56327
2023-12-04T19:18:39Z
2023-12-09T01:17:48Z
2023-12-09T01:17:48Z
2023-12-09T01:17:56Z
Backport PR #56320 on branch 2.1.x (DOC: Move whatsnew)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 38416afc1c94c..a13a273b01257 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -38,7 +38,6 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :class:`.DataFrameGroupBy` reductions not preserving ...
Backport PR #56320: DOC: Move whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/56326
2023-12-04T18:38:43Z
2023-12-04T19:39:10Z
2023-12-04T19:39:10Z
2023-12-04T19:39:10Z
BUG: avoid DeprecationWarning when the Series has index as list of Series (#55395)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 3a72c0864d29c..890c4f6c09e45 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -21,6 +21,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :class:`Series` constructor raising DeprecationWarning wh...
(cherry picked from commit 171cbcd3a6e79a5b845f39d2304d664bec10b9db)
https://api.github.com/repos/pandas-dev/pandas/pulls/56325
2023-12-04T18:32:32Z
2023-12-04T19:42:41Z
2023-12-04T19:42:41Z
2023-12-04T19:42:46Z
[pre-commit.ci] pre-commit autoupdate
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70f919f2dc070..52463a462b785 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ ci: repos: - repo: https://github.com/hauntsaninja/black-pre-commit-mirror # black compiled with mypyc - rev: 23.10.1 + ...
<!--pre-commit.ci start--> updates: - [github.com/hauntsaninja/black-pre-commit-mirror: 23.10.1 → 23.11.0](https://github.com/hauntsaninja/black-pre-commit-mirror/compare/23.10.1...23.11.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.6) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/56324
2023-12-04T16:29:25Z
2023-12-04T19:55:26Z
2023-12-04T19:55:26Z
2023-12-04T19:55:36Z
BUG: Fixed bug when creating new column with missing values when setting a single string value
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8c475791df64d..80d86805ded49 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -618,6 +618,7 @@ Indexing - Bug in :meth:`DataFrame.loc` when setting :class:`Series` with extension dtype into NumPy dtype...
- [ ] closes #56204 (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/56321
2023-12-04T15:15:15Z
2023-12-20T21:04:37Z
2023-12-20T21:04:37Z
2023-12-20T21:04:37Z
DOC: Move whatsnew
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 38416afc1c94c..a13a273b01257 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -38,7 +38,6 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :class:`.DataFrameGroupBy` reductions not preserving ...
- [ ] 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/56320
2023-12-04T15:01:47Z
2023-12-04T18:37:36Z
2023-12-04T18:37:36Z
2023-12-04T18:37:44Z
Update apply.py assertion message
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index bb3cc3a03760f..0c1a39b82aee8 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -651,7 +651,7 @@ def normalize_dictlike_arg( and any(is_list_like(v) for _, v in func.items()) ) or (any(is_dict_like(v) for _, v in func.item...
Improved assertion message for possible duplicate column names - [ ] closes #55964
https://api.github.com/repos/pandas-dev/pandas/pulls/56319
2023-12-04T14:06:57Z
2023-12-04T18:40:17Z
null
2023-12-04T18:40:18Z
DOC: more explicit note about upcoming CoW changes in copy() method docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ace6323e84c77..db993714b4c80 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6681,6 +6681,21 @@ def copy(self, deep: bool_t | None = True) -> Self: and index are copied). Any changes to the data of the original wil...
We already have a note about it in the "notes" section more down in the docstring; but given that the summary at the top already explains the current behaviour of shallow copies, I added a more explicit note at that place already.
https://api.github.com/repos/pandas-dev/pandas/pulls/56316
2023-12-04T11:02:51Z
2023-12-04T12:25:58Z
2023-12-04T12:25:58Z
2023-12-04T12:26:01Z
CoW warning mode: fix case of Series getitem with a MultiIndex slice
diff --git a/pandas/core/series.py b/pandas/core/series.py index ff03b5071e3b1..2a4dd23492849 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1217,7 +1217,7 @@ def _get_value(self, label, takeable: bool = False): new_ser = self._constructor( new_values, index=new_index, ...
xref https://github.com/pandas-dev/pandas/issues/56019 Fixing one more todo
https://api.github.com/repos/pandas-dev/pandas/pulls/56315
2023-12-04T10:32:55Z
2023-12-04T11:11:18Z
null
2023-12-04T11:11:36Z
BUG / CoW: ensure ser[...] (indexing with Ellipsis) returns new object
diff --git a/pandas/core/series.py b/pandas/core/series.py index 6da0351766c91..fad654bbd8a68 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1065,6 +1065,8 @@ def __getitem__(self, key): key = com.apply_if_callable(key, self) if key is Ellipsis: + if using_copy_on_writ...
Small corner cases that I noticed where we are still unconditionally returning `self` instead of a shallow copy.
https://api.github.com/repos/pandas-dev/pandas/pulls/56314
2023-12-04T09:38:59Z
2023-12-04T12:42:39Z
2023-12-04T12:42:39Z
2023-12-04T12:59:38Z
Backport PR #56114: CLN: Get rid of PyArray_GetCastFunc
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 1fa82215179a8..912b0405d0800 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -1306,14 +1306,7 @@ char **NpyArr_encodeLabe...
- [ ] 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/56313
2023-12-04T04:39:33Z
2023-12-04T12:46:40Z
2023-12-04T12:46:40Z
2023-12-04T12:46:42Z
DOC: Add whatsnew for concat regression
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 129f5cedb86c2..649ad37a56b35 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -761,6 +761,7 @@ Datetimelike - Bug in parsing datetime strings with nanosecond resolution with non-ISO8601 formats incorre...
- [ ] xref #53641 (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/56312
2023-12-04T04:18:03Z
2023-12-30T15:33:00Z
2023-12-30T15:33:00Z
2023-12-30T15:33:10Z
Backport PR #53641: BUG: `pd.concat` dataframes with different dateti…
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index b489c14ac0c42..9ec662a6cd352 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -129,7 +129,16 @@ def concat_compat( # i.e. isinstance(to_concat[0], ExtensionArray) to_concat_eas = cast("Sequenc...
…me64 resolutions - [ ] 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-doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/56311
2023-12-04T04:12:43Z
2023-12-08T00:21:46Z
null
2023-12-08T00:21:49Z
BUG: df.to_csv() fails to a not-yet-created file when the path is fsspec-based (#55828)
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ade87c4215a38..ce16c8ced28b9 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -572,6 +572,7 @@ I/O - Bug in :meth:`DataFrame.to_hdf` and :func:`read_hdf` with ``datetime64`` dtypes with non-nanosecond ...
When specifying local to_csv file paths with the file scheme, Pandas will now create the file instead of raising an exception - [✅ ] closes #55828 (Replace xxxx with the GitHub issue number) - [✅ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-test...
https://api.github.com/repos/pandas-dev/pandas/pulls/56309
2023-12-03T21:59:39Z
2024-01-31T18:59:05Z
null
2024-01-31T18:59:06Z
REGR: Fix reading old pickles from pandas 1.3.5
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 4ef6a2463ee16..a878185282c08 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression when tryin...
- [ ] closes #55137 (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/56308
2023-12-03T18:29:34Z
2023-12-05T00:22:33Z
2023-12-05T00:22:33Z
2023-12-05T00:40:41Z
DOC: Tidy docstring
diff --git a/pandas/core/base.py b/pandas/core/base.py index d4421560bcea7..9c722bad019a4 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -108,7 +108,7 @@ class PandasObject(DirNamesMixin): @property def _constructor(self): """ - Class constructor (for this class it's just `__cla...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/56307
2023-12-03T17:32:35Z
2023-12-04T18:55:46Z
2023-12-04T18:55:46Z
2023-12-04T18:55:54Z
Update broken-linkcheck.yml
diff --git a/.github/workflows/broken-linkcheck.yml b/.github/workflows/broken-linkcheck.yml index 10ab5b08a4437..5b9abec1137dc 100644 --- a/.github/workflows/broken-linkcheck.yml +++ b/.github/workflows/broken-linkcheck.yml @@ -26,13 +26,40 @@ jobs: - name: Build Pandas uses: ./.github/actions/build_pa...
A Github Action to run the Sphinx linkcheck monthly to check link errors. If errors are found, the GIthub Action creates a new issue, (and delete the old one) reporting all the errors, and label as Docs and Good First Issue - [X] closes #45409 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passe...
https://api.github.com/repos/pandas-dev/pandas/pulls/56306
2023-12-03T14:36:08Z
2024-01-08T21:40:23Z
null
2024-01-10T13:52:29Z
ENH: Remove for loop from DataFrame.update()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 008c1e0d10ba4..eb85851552d83 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8923,29 +8923,29 @@ def update( other = other.reindex(self.index) - for col in self.columns.intersection(other.columns): - this = se...
It's not clear to me why `DataFrame.update()` needs to perform the update one column at a time. I'd be interested to get any feedback on this, and if it's of interest I can think through any edge cases and add some more tests etc. (this is my first contribution to the actual code, rather than docs, so if I'm miss...
https://api.github.com/repos/pandas-dev/pandas/pulls/56303
2023-12-02T22:59:45Z
2023-12-03T17:21:15Z
null
2023-12-03T17:21:15Z
DOC: Adjust whatsnew
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ade87c4215a38..0726bbf091966 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -110,7 +110,7 @@ documentation. ExtensionArray.to_numpy converts to suitable NumPy dtype ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
Cleaned up some whatsnews and put the down casting change into a separate section, that's potentially noisy so it should be easy to find
https://api.github.com/repos/pandas-dev/pandas/pulls/56300
2023-12-02T19:09:02Z
2023-12-05T00:24:26Z
2023-12-05T00:24:25Z
2023-12-05T08:37:26Z
DOC: Start migration guide for Copy-on-Write
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index fb0da70a0ea07..bc233f4323e2a 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -16,7 +16,7 @@ Copy-on-Write was first introduced in version 1.5.0. Starting from versio...
- [ ] 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/56298
2023-12-02T18:44:23Z
2023-12-14T22:54:40Z
2023-12-14T22:54:40Z
2023-12-14T22:54:43Z
CoW: Warn for inplace replace
diff --git a/pandas/core/internals/base.py b/pandas/core/internals/base.py index b03b98d89ccd5..33f5b9feb1387 100644 --- a/pandas/core/internals/base.py +++ b/pandas/core/internals/base.py @@ -252,12 +252,16 @@ def replace(self, to_replace, value, inplace: bool) -> Self: value=value, inplace=i...
sits on the put mask pr https://github.com/pandas-dev/pandas/pull/56168/ xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56297
2023-12-02T17:39:00Z
2023-12-08T11:01:45Z
2023-12-08T11:01:45Z
2023-12-08T11:30:53Z
Add pot files for translating pandas documentation
diff --git a/doc/source/locale/pot/.doctrees/development/community.doctree b/doc/source/locale/pot/.doctrees/development/community.doctree new file mode 100644 index 0000000000000..7d97003efc8e7 Binary files /dev/null and b/doc/source/locale/pot/.doctrees/development/community.doctree differ diff --git a/doc/source/loc...
- [ ] 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/56296
2023-12-02T05:16:30Z
2023-12-27T19:16:16Z
null
2023-12-27T19:16:16Z
Assort IWYU Cleanups
diff --git a/pandas/_libs/include/pandas/parser/tokenizer.h b/pandas/_libs/include/pandas/parser/tokenizer.h index aa79e55a72beb..209f375a5bf6c 100644 --- a/pandas/_libs/include/pandas/parser/tokenizer.h +++ b/pandas/_libs/include/pandas/parser/tokenizer.h @@ -18,11 +18,8 @@ See LICENSE for the license #define ERROR_O...
include-what-you-use is a relatively common tool for cleaning up includes. it helps to localize includes and identify unnecessary ones It has a few rough edges that don't make it 100% compatible with our code base, so I'm not sure we can do this in CI. But here were a few cleanups I manually gleaned from the IWYU ou...
https://api.github.com/repos/pandas-dev/pandas/pulls/56295
2023-12-02T01:09:03Z
2023-12-04T19:01:34Z
2023-12-04T19:01:34Z
2023-12-04T19:17:16Z
BUG: Series(strings, dtype=ArrowDtype[timestamp]) raising
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 9e3eb90436642..a18f4c60a1980 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -22,6 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :class:`Series` constructor raising DeprecationWarning when...
- [x] closes #56266 (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/56294
2023-12-02T00:47:55Z
2023-12-05T23:29:12Z
2023-12-05T23:29:12Z
2023-12-06T00:54:21Z
CLN/TST: Remove makeTimeSeries
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 676757d8e095f..c5d338605b2ab 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -101,14 +101,11 @@ if TYPE_CHECKING: from pandas._typing import ( Dtype, - Frequency, NpDtype, ) ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56293
2023-12-02T00:13:27Z
2023-12-02T02:09:26Z
2023-12-02T02:09:26Z
2023-12-02T02:09:29Z
ENH: Make get_dummies return ea booleans for ea inputs
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 919ac8b03f936..2e82387d64d7b 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -218,6 +218,7 @@ Other enhancements - :meth:`~DataFrame.to_sql` with method parameter set to ``multi`` works with Oracle ...
- [ ] closes #56273 (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/56291
2023-12-02T00:04:52Z
2023-12-10T19:11:14Z
2023-12-10T19:11:14Z
2023-12-10T19:40:52Z
Convert ArrowExtensionArray to proper NumPy dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 84a1c2f0077bd..d8eee7f9430cc 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -111,7 +111,7 @@ documentation. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``to_nu...
- [ ] closes #56285 (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/56290
2023-12-01T23:32:02Z
2023-12-21T22:15:50Z
2023-12-21T22:15:50Z
2023-12-21T22:15:53Z
CoW: Add warnings for interpolate
diff --git a/pandas/core/internals/base.py b/pandas/core/internals/base.py index 0fd91b163aba9..b03b98d89ccd5 100644 --- a/pandas/core/internals/base.py +++ b/pandas/core/internals/base.py @@ -284,7 +284,11 @@ def replace_list( def interpolate(self, inplace: bool, **kwargs) -> Self: return self.apply_wi...
sits on the put mask pr https://github.com/pandas-dev/pandas/pull/56168/ xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56289
2023-12-01T23:01:36Z
2023-12-08T09:39:35Z
2023-12-08T09:39:35Z
2023-12-08T09:40:31Z
CoW: Add warning for fillna
diff --git a/pandas/core/internals/base.py b/pandas/core/internals/base.py index 664856b828347..0fd91b163aba9 100644 --- a/pandas/core/internals/base.py +++ b/pandas/core/internals/base.py @@ -190,6 +190,7 @@ def fillna(self, value, limit: int | None, inplace: bool, downcast) -> Self: inplace=inplace, ...
sits on the put mask pr https://github.com/pandas-dev/pandas/pull/56168/ xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56288
2023-12-01T21:59:19Z
2023-12-05T09:56:37Z
2023-12-05T09:56:37Z
2023-12-05T11:26:06Z
DOC: Explicit how 'cond' is updated on 'where'
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ced930b936ba5..98b14d045d491 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10735,8 +10735,8 @@ def where( element in the calling DataFrame, if ``cond`` is ``{cond}`` the element is used; otherwise the correspondi...
This PR updates the section notes on `DataFrame.where(cond, other=nan, *, inplace=False, axis=None, level=None)` docstring. Currently pandas isn't explicit on who is being updated when `cond` is misaligned with `other`. Just made that explicit to avoid confusion.
https://api.github.com/repos/pandas-dev/pandas/pulls/56286
2023-12-01T19:28:48Z
2024-01-02T14:42:16Z
2024-01-02T14:42:16Z
2024-03-05T11:55:30Z
Allow c files in src/include for gitignore
diff --git a/.gitignore b/.gitignore index 051a3ec11b794..a188e216d9f70 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ .mesonpy-native-file.ini MANIFEST compile_commands.json +debug .debug # Python files # @@ -104,10 +105,11 @@ scikits # Generated Sources # ##################### !skts.c -!np_datet...
Projectile in emacs uses .gitignore to consider certain files are part of the project, so any of our extensions in the src/include subfolders were being excluded by our blanket rules on generated .c/.h files I would imagine this has benefits for VSCode and other editors as well in terms of file discoverability and s...
https://api.github.com/repos/pandas-dev/pandas/pulls/56284
2023-12-01T16:47:23Z
2023-12-04T19:10:59Z
2023-12-04T19:10:59Z
2023-12-04T19:17:37Z
BUG: Fix `Timestamp('now')` and `Timestamp.now` unit inconsistency
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 723c33280a679..4f96bf967ad99 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -23,6 +23,7 @@ Bug fixes ~~~~~~~~~ - Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a lis...
This fix make `Timestamp('now')` and `Timestamp('today')` return a Timestamp with unit 'us', the same as `Timestamp.now()` and `Timestamp.today()`. - [x] closes #55879(Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebas...
https://api.github.com/repos/pandas-dev/pandas/pulls/56281
2023-12-01T15:35:58Z
2023-12-07T18:04:13Z
2023-12-07T18:04:13Z
2023-12-08T03:02:25Z
DEP: update python-calamine to 0.1.7
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 7d08f2df5a8ca..4b62ecc79e4ef 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -46,7 +46,7 @@ dependencies: - pyqt>=5.15.9 - pyreadstat>=1.2.0 - pytables>=3.8.0 - - python-calamine>=0.1.6 + - python-calamine>=0.1.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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/56280
2023-12-01T11:43:45Z
2023-12-01T18:21:46Z
2023-12-01T18:21:46Z
2023-12-01T18:35:20Z
DOC: Added documentation for codes
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 86693f241ddb1..cb67935143d8f 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1079,6 +1079,40 @@ def levshape(self) -> Shape: @property def codes(self) -> FrozenList: + """ + Codes re...
- [X] closes #55435 - [ ] 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/56278
2023-12-01T05:25:00Z
2023-12-27T19:17:30Z
null
2023-12-27T19:17:31Z
Add Werror to CI
diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh index 4f81acb6d2099..eef4db1191a9a 100755 --- a/.circleci/setup_env.sh +++ b/.circleci/setup_env.sh @@ -55,6 +55,6 @@ if pip show pandas 1>/dev/null; then fi echo "Install pandas" -python -m pip install --no-build-isolation -ve . +python -m pip install --...
- [X] closes #55982
https://api.github.com/repos/pandas-dev/pandas/pulls/56277
2023-12-01T04:59:14Z
2023-12-06T00:53:42Z
2023-12-06T00:53:42Z
2023-12-10T03:15:04Z