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
DEPR: Disallow missing nested label when indexing MultiIndex level
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 151d853166563..620a42ea516d8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -452,6 +452,7 @@ Removal of prior version deprecations/changes - Enforced disallowing using ``usecols`` with out of bounds ...
Introduced in https://github.com/pandas-dev/pandas/pull/42351
https://api.github.com/repos/pandas-dev/pandas/pulls/49628
2022-11-10T21:36:21Z
2022-11-11T00:46:31Z
2022-11-11T00:46:31Z
2022-11-11T00:46:34Z
Backport PR #49284 on branch 1.5.x (REGR: MultiIndex.join does not work for ea dtypes)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index a46d081aea072..446235d1656dc 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -13,6 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Mul...
#49284
https://api.github.com/repos/pandas-dev/pandas/pulls/49627
2022-11-10T20:40:26Z
2022-11-11T11:40:52Z
2022-11-11T11:40:52Z
2022-11-11T11:42:02Z
CI: Upgrade mypy to 0.990
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1ca513e8f5e6a..eb17bb58eb738 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -298,7 +298,7 @@ If installed, we now require: +-----------------+-----------------+----------+---------+ | Package ...
- [ ] 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/49626
2022-11-10T20:38:07Z
2022-11-16T22:35:40Z
2022-11-16T22:35:40Z
2022-11-18T10:24:17Z
Backport PR #49610 on branch 1.5.x (BUG: date_range with freq="C" (business days) return value changed on 1.5.0)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index e65be3bcecd76..a46d081aea072 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed regression in :meth:`Series.replace` raising ``RecursionError`` with numeric dtype...
Backport PR #49610: BUG: date_range with freq="C" (business days) return value changed on 1.5.0
https://api.github.com/repos/pandas-dev/pandas/pulls/49625
2022-11-10T20:37:17Z
2022-11-10T23:05:22Z
2022-11-10T23:05:22Z
2022-11-10T23:05:23Z
ENH: Compile Factorizer class for all numeric dtypes
diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi index 18ebc1ff2bd1f..eb0b46101c2d8 100644 --- a/pandas/_libs/hashtable.pyi +++ b/pandas/_libs/hashtable.pyi @@ -15,29 +15,65 @@ class Factorizer: count: int def __init__(self, size_hint: int) -> None: ... def get_count(self) -> int: ......
The current implementation has a couple of ugly side effects in merge: - uint is cast to int, which causes overflow in some cases - float is cast to object This does not enable the classes yet. Will do as a follow up.
https://api.github.com/repos/pandas-dev/pandas/pulls/49624
2022-11-10T20:28:42Z
2022-11-16T22:45:40Z
2022-11-16T22:45:40Z
2023-01-11T04:10:31Z
DEPR: Enforce default of numeric_only=False in DataFrame methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 715ba95eb950b..8260d3fd8e189 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -554,6 +554,8 @@ Removal of prior version deprecations/changes - Removed ``na_sentinel`` argument from :func:`factorize`, :...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49622
2022-11-10T17:39:12Z
2022-11-11T18:30:14Z
2022-11-11T18:30:14Z
2022-11-11T18:30:37Z
TST/CI: Follow up fix test_write_fspath_all
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 5b3b5602c95bc..1945012f93b42 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -361,7 +361,7 @@ def test_write_fspath_all(self, writer_name, writer_kwargs, module): writer(string, **writer_k...
Follow up to https://github.com/pandas-dev/pandas/pull/49509, was not hitting the more stable `pd.read_excel` path
https://api.github.com/repos/pandas-dev/pandas/pulls/49621
2022-11-10T17:06:48Z
2022-11-10T19:36:13Z
2022-11-10T19:36:13Z
2022-11-10T20:31:03Z
BUG: DataFrame reductions with object dtype and axis=1
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..ec20ecda3cffe 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -721,7 +721,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.add` cannot apply ufunc when inputs contain mixed Da...
- [x] closes #49603 (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/49619
2022-11-10T16:19:53Z
2022-12-13T03:15:46Z
null
2022-12-13T03:15:46Z
BUG: DataFrame reductions with object dtype and axis=1
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 73a75667b46da..ca1d708786f6f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -571,7 +571,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.add` cannot apply ufunc when inputs contain mixed Da...
- [x] closes #49603 (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/49616
2022-11-10T13:55:43Z
2022-11-10T16:06:25Z
null
2023-03-02T01:02:55Z
REGR: Better warning in pivot_table when dropping nuisance columns
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 37e78c7dbf7a2..810a428098df2 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -21,6 +21,7 @@ Appender, Substitution, ) +from pandas.util._exceptions import rewrite_warning from pandas.core.dtypes....
- [x] closes #49247 (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/49615
2022-11-10T13:28:53Z
2022-11-10T20:32:43Z
2022-11-10T20:32:43Z
2023-01-12T21:21:43Z
CI: Updating website sync to new server
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 48a08d4febbaf..1db8fb9a70254 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -64,22 +64,22 @@ jobs: mkdir -m 700 -p ~/.ssh echo "${{ secret...
Please approve when ready, but do not merge, as I need to update the secrets at the time of merging, so I'll better merge it myself. This will stop synchronizing our website with the old server, and will start synchronizing with the new one.
https://api.github.com/repos/pandas-dev/pandas/pulls/49614
2022-11-10T04:26:40Z
2022-11-11T03:06:42Z
2022-11-11T03:06:42Z
2022-11-11T03:06:43Z
BUG: groupby with sort=False still sorts an ordered categorical
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 73a75667b46da..4e9d4be2d91e3 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -649,6 +649,8 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.resample` produces inconsistent results when pas...
- [x] closes #42482 (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/49613
2022-11-10T04:08:01Z
2022-11-10T20:34:49Z
2022-11-10T20:34:49Z
2022-11-10T20:39:10Z
DEPR: Remove df.reduction(level)
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 5bb87b8bb2663..9a5fc1c607f6a 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -454,10 +454,10 @@ def setup(self, axis): ) def time_count_level_multi(self, axi...
Introduced in https://github.com/pandas-dev/pandas/pull/40869
https://api.github.com/repos/pandas-dev/pandas/pulls/49611
2022-11-10T00:46:11Z
2022-11-11T17:48:45Z
2022-11-11T17:48:45Z
2022-11-11T17:48:55Z
BUG: date_range with freq="C" (business days) return value changed on 1.5.0
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index e65be3bcecd76..a46d081aea072 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed regression in :meth:`Series.replace` raising ``RecursionError`` with numeric dtype...
- [ ] closes #49441 - [ ] [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/49610
2022-11-10T00:13:38Z
2022-11-10T20:36:39Z
2022-11-10T20:36:39Z
2022-11-10T20:36:46Z
API: Series(floaty, dtype=inty)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ca21e3e9f72..9bcffdfefb359 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -470,6 +470,7 @@ Other API changes - :func:`read_stata` with parameter ``index_col`` set to ``None`` (the default) will now...
- [x] closes #49599 (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/49609
2022-11-09T23:18:52Z
2022-12-15T13:18:59Z
2022-12-15T13:18:59Z
2022-12-15T13:19:06Z
REF: remove infer_datetimelike_array
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index c51492c92f44c..188494c7c60db 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -169,9 +169,6 @@ def ensure_string_array( copy: bool = ..., skipna: bool = ..., ) -> npt.NDArray[np.object_]: ... -def infer_datetimelike_array( - arr...
- [ ] 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/49608
2022-11-09T23:09:39Z
2022-11-10T01:32:20Z
2022-11-10T01:32:20Z
2022-11-10T02:58:54Z
DEPR: Enforce deprecations in indexes/datetimes.py
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 73a75667b46da..2ae50cfe4e137 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -433,9 +433,11 @@ Removal of prior version deprecations/changes - Remove :meth:`DataFrameGroupBy.pad` and :meth:`DataFrameG...
Introduced in https://github.com/pandas-dev/pandas/pull/43504, https://github.com/pandas-dev/pandas/pull/37819
https://api.github.com/repos/pandas-dev/pandas/pulls/49607
2022-11-09T22:34:15Z
2022-11-10T17:51:32Z
2022-11-10T17:51:32Z
2022-11-10T18:10:25Z
DEPR: Enforce Series(float_with_nan, dtype=inty)
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 6dff4a017e2a9..6f0bb3091133f 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -600,31 +600,35 @@ def time_frame_agg(self, dtype, method): class Cumulative: - param_names = ["dtype", "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/49605
2022-11-09T21:38:31Z
2022-11-10T21:59:12Z
2022-11-10T21:59:12Z
2022-11-10T22:19:45Z
STYLE Enable Pylint statement import-self
diff --git a/pyproject.toml b/pyproject.toml index 9ba6d4d4068c6..71b1f44dbff6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,6 @@ disable = [ "fixme", "global-statement", "global-variable-not-assigned", - "import-self", "invalid-envvar-default", "invalid-overridden-method", "keywor...
Issue #48855. This PR enables the pylint type "W" warning `import-self`. - [ ] 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/49601
2022-11-09T19:12:55Z
2022-11-09T20:53:03Z
2022-11-09T20:53:02Z
2022-11-09T21:14:01Z
ENH/CoW: use lazy copy in set_axis method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 21b3a0c033702..32443457f5c98 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4942,7 +4942,7 @@ def set_axis( labels, *, axis: Axis = 0, - copy: bool = True, + copy: bool | None = None, ) -> Data...
Copy-on-Write in `set_axis` - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)...
https://api.github.com/repos/pandas-dev/pandas/pulls/49600
2022-11-09T18:18:49Z
2022-12-28T17:13:05Z
2022-12-28T17:13:05Z
2022-12-28T17:13:12Z
CLN: Remove MultiIndex._get_grouper_for_level
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 48a08d4febbaf..1db8fb9a70254 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -64,22 +64,22 @@ jobs: mkdir -m 700 -p ~/.ssh echo "${{ secret...
- [x] closes #49452 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/49597
2022-11-09T03:08:02Z
2022-11-13T23:17:10Z
null
2022-11-13T23:17:10Z
PERF: df.groupby(categorical)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d7ecfa0ca6e38..3316989f474d6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -531,6 +531,7 @@ Performance improvements - Performance improvements to :func:`read_sas` (:issue:`47403`, :issue:`47405`, :...
- [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/49596
2022-11-09T02:14:34Z
2022-11-09T15:17:09Z
2022-11-09T15:17:09Z
2022-11-10T03:18:07Z
STYLE: fix pylint useless-else-on-loop warnings
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index f6e50d658a580..d325e5e9b92cc 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -697,8 +697,7 @@ def _equal_values(self, other) -> bool: for left, right in zip(sel...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49595
2022-11-09T01:51:00Z
2022-11-09T09:08:57Z
2022-11-09T09:08:57Z
2022-11-09T13:36:00Z
API: Index(object_dtype_bool_ndarray) retain object dtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d7ecfa0ca6e38..8297d41dc8a05 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -291,7 +291,8 @@ Other API changes - Passing a sequence containing ``datetime`` objects and ``date`` objects to :class:`Ser...
- [ ] 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/49594
2022-11-09T00:34:20Z
2022-11-09T17:37:46Z
2022-11-09T17:37:46Z
2022-11-09T17:41:18Z
DEPR: Enforce DataFrame(list_with_categorical) deprecation
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 07a4e4af3dbe7..9ecddf1acaa32 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -482,6 +482,7 @@ Removal of prior version deprecations/changes - Changed behavior of :class:`DataFrame` constructor given f...
- [ ] 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/49592
2022-11-09T00:18:30Z
2022-11-09T22:37:21Z
2022-11-09T22:37:21Z
2022-11-09T22:56:29Z
REF: tighter typing in constructor functions
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 997611d7860db..0ac5c4bb8edc2 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -597,6 +597,15 @@ def sanitize_array( # e.g. test_constructor_floating_data_int_dtype # TODO: where 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/49591
2022-11-08T22:44:22Z
2022-11-09T17:03:03Z
2022-11-09T17:03:03Z
2022-11-09T17:03:50Z
CLN: assorted
diff --git a/asv_bench/benchmarks/tslibs/tslib.py b/asv_bench/benchmarks/tslibs/tslib.py index f93ef1cef841f..97ec80201dd16 100644 --- a/asv_bench/benchmarks/tslibs/tslib.py +++ b/asv_bench/benchmarks/tslibs/tslib.py @@ -51,7 +51,7 @@ class TimeIntsToPydatetime: _tzs, ) param_names = ["box", "size", ...
- [ ] 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/49590
2022-11-08T22:20:26Z
2022-11-09T17:05:08Z
2022-11-09T17:05:07Z
2022-11-09T17:05:59Z
DEPR: Enforce deprecations
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 05377c7b12e78..d7ecfa0ca6e38 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -434,6 +434,7 @@ Removal of prior version deprecations/changes - Disallow passing abbreviations for ``orient`` in :meth:`Da...
Introduced in #43248, #33091, #45523
https://api.github.com/repos/pandas-dev/pandas/pulls/49589
2022-11-08T21:26:12Z
2022-11-08T23:42:54Z
2022-11-08T23:42:54Z
2023-01-12T04:09:17Z
REF: simplify maybe_convert_objects
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index ffe5ec67bf17f..7880709418adc 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1284,13 +1284,12 @@ cdef class Seen: @property def is_bool(self): - return not (self.datetime_ or self.numeric_ or self.timedelta_ - ...
Also avoids some memory allocations which is nice.
https://api.github.com/repos/pandas-dev/pandas/pulls/49588
2022-11-08T20:33:10Z
2022-11-08T23:41:04Z
2022-11-08T23:41:04Z
2023-02-12T03:19:02Z
TYP:Replace union of subclasses with base class.
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 591fa25bd36d1..4b5be339730ab 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -5,6 +5,10 @@ from __future__ import annotations +from abc import ( + ABC, + abstractmethod, +) from contextlib import contextmanager from datetime import ( date,...
- [ ] 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/49587
2022-11-08T19:30:16Z
2022-11-14T21:09:59Z
2022-11-14T21:09:59Z
2022-11-15T03:33:00Z
STYLE enable pylint: chained-comparison
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 7494a8a54f9bb..1e112b61d0e62 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1247,7 +1247,7 @@ def compute(self, method: str) -> Series: inds = inds[:n] findex = nbase else: - ...
Issue #48855. This PR enables pylint type "R" warning: ` chained-comparison` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/49586
2022-11-08T18:28:16Z
2022-11-09T10:46:40Z
2022-11-09T10:46:40Z
2022-11-09T10:46:41Z
add/timedeltas-seconds-documentation
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 3f3e7c0cb441f..83b4f34bfb70b 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1035,6 +1035,34 @@ cdef class _Timedelta(timedelta): @property def seconds(self) -> int: # TOD...
- [x] closes #49568
https://api.github.com/repos/pandas-dev/pandas/pulls/49584
2022-11-08T16:55:27Z
2022-11-10T00:59:27Z
2022-11-10T00:59:27Z
2022-11-10T13:04:58Z
API: stop special-casing SparseArray._quantile
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 252c444b2e60c..31730b3dadcf7 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -139,6 +139,7 @@ Other API changes - Passing ``dtype`` of "timedelta64[s]", "timedelta64[ms]", or "timedelta64[us]" to :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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49583
2022-11-08T16:43:00Z
2022-11-22T02:04:32Z
2022-11-22T02:04:32Z
2022-11-22T02:56:11Z
BUG: Behaviour change in 1.5.0 when using Timedelta as Enum data type
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 540ca2b12165c..fac180e98107e 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -19,7 +19,7 @@ Fixed regressions from being passed using the ``colormap`` argument if Matplotlib 3.6+ is used (:issue:`49...
- [X] closes #48908 - [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/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/49579
2022-11-08T13:28:28Z
2022-11-19T02:21:11Z
2022-11-19T02:21:11Z
2022-11-19T02:21:18Z
PERF: MultiIndex.isin
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index e9825c5ba4e3a..97c710be6d5a1 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -369,10 +369,14 @@ def setup(self, dtype): } self.midx = dat...
- [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/49577
2022-11-08T12:23:48Z
2022-11-08T17:49:17Z
2022-11-08T17:49:17Z
2022-11-10T03:18:08Z
CLN: collect fastpath in Series.__init__
diff --git a/pandas/core/series.py b/pandas/core/series.py index e069b2766c8fc..7802f38eb5028 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -368,8 +368,7 @@ def __init__( # we are called internally, so short-circuit if fastpath: - - # data is an ndarray, index is defin...
Collect fastpath functionality in one place simplifies implementation
https://api.github.com/repos/pandas-dev/pandas/pulls/49575
2022-11-08T09:39:05Z
2022-11-09T17:58:56Z
2022-11-09T17:58:56Z
2022-11-09T18:18:35Z
BUG: Series(index=[]) should have dtype=object
diff --git a/pandas/core/series.py b/pandas/core/series.py index 8716170594a80..0755866afc1d4 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -511,7 +511,10 @@ def _init_dict( elif index is not None: # fastpath for Series(data=None). Just use broadcasting a scalar # ...
- [X] closes #49573 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/49574
2022-11-08T05:21:16Z
2022-11-09T17:53:57Z
2022-11-09T17:53:57Z
2022-11-09T18:17:41Z
DEPR: Disallow Series.between(inclusive=bool)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c2abb70988dad..4475ee1732865 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -401,6 +401,7 @@ Removal of prior version deprecations/changes - Removed ``pandas.SparseSeries`` and ``pandas.SparseDataFra...
Introduced in https://github.com/pandas-dev/pandas/pull/40628
https://api.github.com/repos/pandas-dev/pandas/pulls/49570
2022-11-08T00:31:56Z
2022-11-08T08:54:34Z
2022-11-08T08:54:34Z
2022-11-08T17:32:47Z
REF: Replace np.find_common_dtype with np.result_type
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index e6de5caf955fc..5bff8bb412947 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -24,7 +24,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then XVFB="xvfb-run " fi -PYTEST_CMD="${XVFB}pytest -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $...
In preparation of https://github.com/numpy/numpy/pull/22539
https://api.github.com/repos/pandas-dev/pandas/pulls/49569
2022-11-07T23:56:04Z
2022-12-17T19:40:51Z
null
2023-03-24T22:54:32Z
API: Index([NaT, None]) match Series([NaT, None])
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c76555f9ef417..267b3bd72cbfc 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -249,6 +249,7 @@ Other API changes - Passing a sequence containing ``datetime`` objects and ``date`` objects to :class:`Ser...
- [x] closes #49340 (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/49566
2022-11-07T17:03:37Z
2022-11-08T18:33:18Z
2022-11-08T18:33:18Z
2022-12-17T18:51:31Z
STYLE: fix pylint consider-using-min-builtin warnings
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index 80efef211ece5..fd47396347ff9 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -668,9 +668,7 @@ def read(self, nrows: int | None = None) -> DataFrame: if nrows > 0 and self._current_row_in_file_index >= self.row_co...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49564
2022-11-07T14:20:36Z
2022-11-07T17:39:22Z
2022-11-07T17:39:22Z
2022-11-07T17:39:41Z
Fix pylint use-a-generator warning
diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index 4328683875223..4b5b178445c38 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -107,7 +107,7 @@ def expand(self, prop, value: str) -> Generator[tuple[str, str], None, None]: for token in tokens: if token i...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49562
2022-11-07T03:05:49Z
2022-11-07T12:23:23Z
2022-11-07T12:23:23Z
2022-11-07T12:48:14Z
DEPR: Remove int64 uint64 float64 index part 1
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 44df3674b01f8..41d20a0db1cf1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1384,7 +1384,7 @@ def isocalendar(self) -> DataFrame: 0 2000 1 2001 2 2002 - ...
This PR makes progress towards removing Int64Index, UInt64Index & FloatIndex from the code base, see #42717. In this PR I make instantiation of `Index` with numpy numeric dtypes return a `NumericIndex` with the given dtype rather than converting to the old 64 bit only numeric index types, making all numeric dtypes a...
https://api.github.com/repos/pandas-dev/pandas/pulls/49560
2022-11-06T22:32:20Z
2023-01-13T18:12:57Z
2023-01-13T18:12:56Z
2023-01-15T01:15:21Z
CLN: MultiIndex._values remove special casing for Timestamp.freq
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 6fc458cf2f478..f35f02de533e2 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -732,23 +732,13 @@ def _values(self) -> np.ndarray: vals = cast("CategoricalIndex", vals) vals = v...
- [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/49559
2022-11-06T14:48:18Z
2022-11-06T16:53:45Z
2022-11-06T16:53:44Z
2022-11-10T03:18:20Z
BUG/PERF: MultiIndex.value_counts returning flat index
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c2abb70988dad..5f7d2af92e839 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -568,6 +568,7 @@ MultiIndex - Bug in :meth:`MultiIndex.union` not sorting when sort=None and index contains missing values ...
- [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/49558
2022-11-06T14:22:30Z
2022-11-09T18:24:34Z
2022-11-09T18:24:34Z
2022-11-10T03:18:17Z
ENH/CoW: use lazy copy in set_index method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a8631f42fb2d6..00a03f6e4619f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5855,7 +5855,8 @@ def set_index( if inplace: frame = self else: - frame = self.copy() + # GH 49473 Use "lazy c...
Copy-on-Write in `set_index` - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit...
https://api.github.com/repos/pandas-dev/pandas/pulls/49557
2022-11-06T13:55:37Z
2022-11-15T18:21:47Z
2022-11-15T18:21:47Z
2022-11-15T18:23:36Z
for gh-49508 changing Doc for DataFrame.astype
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ee41d07c52774..04055cd16f106 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6004,11 +6004,12 @@ def astype( Parameters ---------- - dtype : data type, or dict of column name -> data type - Use ...
added the series in input in the doc of DataFrame.astype closes #49508
https://api.github.com/repos/pandas-dev/pandas/pulls/49556
2022-11-06T09:35:49Z
2022-11-11T17:45:18Z
2022-11-11T17:45:18Z
2022-11-11T17:46:48Z
ENH/CoW: use lazy copy on replace method
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4a0f31357079f..66dce720d0a42 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7213,6 +7213,8 @@ def replace( if inplace: return self._update_inplace(result) else: + # GH 49473 Use "lazy copy"...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). This PR is part of an effo...
https://api.github.com/repos/pandas-dev/pandas/pulls/49555
2022-11-06T07:47:04Z
2022-12-28T19:30:06Z
null
2022-12-28T19:30:06Z
DEPR: enforce a bunch
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1c170f3d6caee..a7cb4ad07b060 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -299,6 +299,7 @@ Removal of prior version deprecations/changes - Removed deprecated :meth:`Index.is_all_dates` (:issue:`366...
- [ ] 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/49552
2022-11-06T03:04:51Z
2022-11-07T23:04:23Z
2022-11-07T23:04:23Z
2022-11-07T23:04:29Z
DEPR: Enforce deprecation of numeric_only=None in DataFrame aggregations
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index c5f2dbe71cb3c..fc8b59e11e001 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -383,12 +383,17 @@ this pathological behavior (:issue:`37827`): *New behavior*: -.. ipython:: python - :okwarning: +....
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49551
2022-11-05T21:40:10Z
2022-11-09T23:02:00Z
2022-11-09T23:02:00Z
2022-11-10T00:10:16Z
CLN: Deduplicate code in duplicated
diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in index 68e253fd03620..b9cf6011481af 100644 --- a/pandas/_libs/hashtable_func_helper.pxi.in +++ b/pandas/_libs/hashtable_func_helper.pxi.in @@ -141,32 +141,18 @@ cdef duplicated_{{dtype}}(const {{dtype}}_t[:] values, object...
cc @mroeschke I think you asked for this when implementing the mask support
https://api.github.com/repos/pandas-dev/pandas/pulls/49550
2022-11-05T21:03:42Z
2022-11-07T18:07:03Z
2022-11-07T18:07:03Z
2022-11-10T20:43:18Z
ENH: Support mask in Int64Factorizer
diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi index e60ccdb29c6b2..18ebc1ff2bd1f 100644 --- a/pandas/_libs/hashtable.pyi +++ b/pandas/_libs/hashtable.pyi @@ -36,6 +36,7 @@ class Int64Factorizer(Factorizer): sort: bool = ..., na_sentinel=..., na_value=..., + mask=...
First step to support masks properly in merge.
https://api.github.com/repos/pandas-dev/pandas/pulls/49549
2022-11-05T19:23:28Z
2022-11-07T19:00:25Z
2022-11-07T19:00:25Z
2022-11-10T20:43:08Z
REF: remove unreachable maybe_cast_to_datetime cases
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 6d7f895f7f730..c51492c92f44c 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -65,6 +65,19 @@ def map_infer( convert: bool = ..., ignore_na: bool = ..., ) -> np.ndarray: ... +@overload # all convert_foo False -> only convert numer...
- [ ] 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/49548
2022-11-05T19:20:52Z
2022-11-07T19:03:16Z
2022-11-07T19:03:16Z
2022-11-07T19:04:05Z
CLN: Remove unused code in Factorizer classes
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 7aaeee043c72b..4f86f63718f2a 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -90,7 +90,7 @@ cdef class ObjectFactorizer(Factorizer): self.uniques = ObjectVector() def factorize( - self, ndarray[...
- [ ] 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/49547
2022-11-05T16:34:53Z
2022-11-06T14:55:00Z
2022-11-06T14:55:00Z
2022-11-06T17:07:10Z
DOC: replaced Gitter link with Slack link in README.
diff --git a/README.md b/README.md index 69f2395920c66..61cc74da93eb8 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,6 @@ You can also triage issues which may include reproducing bug reports, or asking Or maybe through using pandas you have an idea of your own or are looking for something in the documentation...
closes #49545
https://api.github.com/repos/pandas-dev/pandas/pulls/49546
2022-11-05T16:06:59Z
2022-11-05T17:02:28Z
2022-11-05T17:02:28Z
2022-11-05T17:02:29Z
CI: Fix wheel builder uploading
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f41d6eebef302..b0ff6a3110f6a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -72,14 +72,22 @@ jobs: env: CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }} - # Used to...
The uploading has been broken on nightly wheels for a while. Hopefully, this fixes it. I've tested on my fork with a dummy token.
https://api.github.com/repos/pandas-dev/pandas/pulls/49544
2022-11-05T13:44:19Z
2022-11-06T12:49:11Z
2022-11-06T12:49:11Z
2022-11-06T14:32:16Z
TYP: Series.groupby
diff --git a/pandas/core/series.py b/pandas/core/series.py index ac9570a69f283..0c104111f9db4 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1982,7 +1982,7 @@ def groupby( self, by=None, axis: Axis = 0, - level: Level = None, + level: IndexLabel = None, ...
- [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/methods/functions. similar to #47560 Change `le...
https://api.github.com/repos/pandas-dev/pandas/pulls/49542
2022-11-05T12:27:06Z
2022-11-06T07:47:35Z
2022-11-06T07:47:35Z
2022-11-10T03:18:35Z
REF: separate out seen.nat_ cases in maybe_convert_objects
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 1b871bf0b745f..b7d5b907129c8 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1284,13 +1284,12 @@ cdef class Seen: @property def is_bool(self): - return not (self.datetime_ or self.numeric_ or self.timedelta_ - ...
Logic-neutral refactor in preparation for a PR that will change maybe_convert_objects NaT-inference behavior xref #49340
https://api.github.com/repos/pandas-dev/pandas/pulls/49541
2022-11-05T01:25:14Z
2022-11-07T17:03:58Z
null
2022-11-07T17:04:02Z
BUG: NumericIndex.astype(complex) should return Index[complex]
diff --git a/pandas/conftest.py b/pandas/conftest.py index 4639799d2ee03..308f63a4ebe5c 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -597,8 +597,8 @@ def _create_mi_with_dt64tz_level(): "uint": tm.makeUIntIndex(100), "range": tm.makeRangeIndex(100), "float": tm.makeFloatIndex(100), - "c...
Working towards #42717 I discovered as small bug in `Index.astype`, where the returned class is wrong. xref #49494.
https://api.github.com/repos/pandas-dev/pandas/pulls/49540
2022-11-04T23:26:06Z
2022-11-08T18:48:49Z
2022-11-08T18:48:49Z
2022-11-08T19:12:18Z
CI: only run pylint in CI
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 738263369409c..583619826265c 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -86,7 +86,7 @@ jobs: echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV if: ${{ steps.build.outcome ==...
- [ ] closes #49526 (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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/49538
2022-11-04T21:35:21Z
2022-11-05T10:49:26Z
2022-11-05T10:49:26Z
2022-11-05T10:49:27Z
CI fixup pylint ci failure
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index 91d5ac865b6b6..03429fd9fee1d 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -284,8 +284,7 @@ def _maybe_unwrap(x): if all(c.ordered for c in to_union): msg = "to union ordered Categorica...
Fixes the error I accidentally introduced by prematurely merging https://github.com/pandas-dev/pandas/pull/49533 As mentioned there, I swapped back to the wrong tab, I was meaning to merge https://github.com/pandas-dev/pandas/pull/49527 Apologies, I'll be more careful
https://api.github.com/repos/pandas-dev/pandas/pulls/49537
2022-11-04T21:32:21Z
2022-11-05T05:31:10Z
2022-11-05T05:31:10Z
2022-11-05T05:31:11Z
BUG: NumericIndex should not support float16 dtype
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index de9e3ace4f0ca..aa9d1c8152019 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -891,6 +891,8 @@ def value_counts( else: values = _ensure_arraylike(values) keys, counts = value_counts_array...
- [x] closes #49535 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ x All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49536
2022-11-04T21:06:28Z
2022-12-27T18:34:10Z
2022-12-27T18:34:10Z
2022-12-27T18:34:17Z
BUG: inconsistent DataFrame.agg behavoir when passing as kwargs numeric_only=True
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b6c1c857717c7..c77d5655a9fd2 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -24,6 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in inconsistent DataFrame.agg behavior when passing as kwarg...
- [x] closes #49352 - [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/49534
2022-11-04T20:22:55Z
2023-01-23T19:49:57Z
null
2023-01-23T19:49:58Z
STYLE pylint: 48855-duplicate-value
diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py index d81c1449bea63..1a8149ae41fcb 100644 --- a/pandas/tests/io/parser/test_parse_dates.py +++ b/pandas/tests/io/parser/test_parse_dates.py @@ -1192,7 +1192,7 @@ def test_read_with_parse_dates_scalar_non_bool(all_parser...
Issue #48855. This PR enables pylint type "W" warning: `duplicate-value` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/49533
2022-11-04T19:46:15Z
2022-11-04T21:26:45Z
2022-11-04T21:26:45Z
2022-11-05T18:26:59Z
Refactor sqlalchemy code in pandas.io.sql to help prepare for sqlalchemy 2.0.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b90833bda82b5..997d2fa4ca924 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2751,8 +2751,11 @@ def to_sql( Using SQLAlchemy makes it possible to use any DB supported by that library. Legacy support is prov...
- [ ] 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/49531
2022-11-04T19:01:53Z
2022-11-17T18:29:34Z
2022-11-17T18:29:34Z
2022-11-17T18:54:27Z
DEPR: enforce Series.__setitem__ behavior with Float64Index and non-present int key
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 2daba0752a987..b7676888f383c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -442,6 +442,7 @@ Removal of prior version deprecations/changes - Changed behavior of comparison of a :class:`Timestamp` wit...
- [ ] 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/49530
2022-11-04T18:51:46Z
2022-11-07T23:06:12Z
2022-11-07T23:06:12Z
2022-11-07T23:16:39Z
DOC: correctly format bullets in parameter descriptions for `fillna` methods
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index cc9b2ce3fed42..050af9e90a177 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -780,9 +780,11 @@ def fillna( Alternatively, an array-like 'value' can be given. It's expected that the array-like...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. This is a small PR to correct formatting issues in docstrings for `method` op...
https://api.github.com/repos/pandas-dev/pandas/pulls/49529
2022-11-04T18:14:08Z
2022-11-07T19:07:02Z
2022-11-07T19:07:02Z
2022-11-07T19:07:09Z
Modify precommit config yaml and change name of typing step to Typing + pylint.
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 738263369409c..583619826265c 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -86,7 +86,7 @@ jobs: echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV if: ${{ steps.build.outcome ==...
Modify the pre-commit config.yml file and change name of step in code-checks.yml. Possible attempt to resolve #49526 Please provide feedback an I'd try to incorporate those changes.
https://api.github.com/repos/pandas-dev/pandas/pulls/49527
2022-11-04T17:06:55Z
2022-11-05T10:26:12Z
null
2022-11-05T10:26:12Z
API: to_timedelta([bad_type]) TypeError instead of ValueError
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b7995dca0a825..f1442809dba50 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -235,6 +235,7 @@ Other API changes - :func:`pandas.api.dtypes.is_string_dtype` now only returns ``True`` for array-likes wi...
- [ ] 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/49525
2022-11-04T15:21:03Z
2022-11-04T18:14:02Z
2022-11-04T18:14:02Z
2022-11-04T18:17:50Z
API / CoW: constructing Series from Series creates lazy copy (with default copy=False)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b22590759ea3f..e4e207fbe3d89 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -116,6 +116,10 @@ Copy-on-Write improvements returning multiple times an identical, cached Series object). This ensures t...
xref https://github.com/pandas-dev/pandas/issues/48998 (bullet point about constructors) In the CoW proposal, the idea for constructors would be that those follow the lazy copy with CoW approach as well, just like other methods and indexing operations that create a new Series/DataFrame from another Series/DataFrame....
https://api.github.com/repos/pandas-dev/pandas/pulls/49524
2022-11-04T15:02:03Z
2023-01-13T19:32:52Z
2023-01-13T19:32:52Z
2023-01-13T19:33:14Z
STYLE: Flake8 "Do not assign a lambda expression, use a def. "
diff --git a/doc/scripts/eval_performance.py b/doc/scripts/eval_performance.py index 27d9bf23fc1af..721a26c54a543 100644 --- a/doc/scripts/eval_performance.py +++ b/doc/scripts/eval_performance.py @@ -2,8 +2,10 @@ import numpy as np import seaborn as sns +import os from pandas import DataFrame +from matplotlib.p...
* Do not assign a lambda expression, consider using def(). * Imports at the top
https://api.github.com/repos/pandas-dev/pandas/pulls/49522
2022-11-04T13:12:36Z
2022-11-04T14:29:47Z
null
2022-11-04T14:32:52Z
STYLE: fix pylint: no-else-raise
diff --git a/ci/fix_wheels.py b/ci/fix_wheels.py index ed7957fac643b..525aacf572cd4 100644 --- a/ci/fix_wheels.py +++ b/ci/fix_wheels.py @@ -4,7 +4,12 @@ import zipfile try: - _, wheel_path, dest_dir = sys.argv + if len(sys.argv) != 3: + raise ValueError( + "User must pass the path to the wh...
Issue https://github.com/pandas-dev/pandas/issues/48855. This PR enables pylint type "R" -no-else-raise warning: - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/49520
2022-11-04T12:41:36Z
2022-11-04T19:45:23Z
2022-11-04T19:45:23Z
2022-11-06T10:53:04Z
STYLE/PERF: replace string concatenations with f-strings in core
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 4cacdb71f4175..d58089af9a2a8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1882,7 +1882,7 @@ def _repr_categories_info(self) -> str: start = True cur_col_len = len(levh...
Doing less concatenations and explicit cast calls in the core is likely to yield some performance improvements (see https://twitter.com/raymondh/status/1205969258800275456). Split out of https://github.com/pandas-dev/pandas/pull/49229. Refs https://github.com/pandas-dev/pandas/issues/29547 (a 2019 issue tracking re...
https://api.github.com/repos/pandas-dev/pandas/pulls/49518
2022-11-04T09:22:04Z
2022-11-07T07:28:28Z
2022-11-07T07:28:28Z
2022-11-15T12:49:43Z
STYLE/PERF: use f-strings instead of ''.join on static elements
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index e8078dd4a28a4..0c2a9efae8e72 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -1287,9 +1287,7 @@ def _make_unique_kwarg_list( [('a', '<lambda>_0'), ('a', '<lambda>_1'), ('b', '<lambda>')] """ return [ - (pair[0], "_".joi...
Split out of #49229. Refs https://github.com/pandas-dev/pandas/issues/29547 (a 2019 issue tracking replacing formatting with better alternatives) - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase...
https://api.github.com/repos/pandas-dev/pandas/pulls/49517
2022-11-04T09:09:07Z
2022-11-04T16:52:31Z
2022-11-04T16:52:31Z
2022-11-15T12:49:47Z
STYLE: fix pylint consider-using-f-string issues
diff --git a/asv_bench/benchmarks/io/hdf.py b/asv_bench/benchmarks/io/hdf.py index 4a2c1c872e6eb..12bc65f9e7bf5 100644 --- a/asv_bench/benchmarks/io/hdf.py +++ b/asv_bench/benchmarks/io/hdf.py @@ -43,7 +43,7 @@ def setup(self): np.random.randn(N, 100), index=date_range("1/1/2000", periods=N) ) ...
Refs #48855 Also refs #49229 (my PR, a more thorough f-string cleanup) Also refs #29547 (a 2019 issue tracking replacing formatting with better alternatives) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49515
2022-11-04T08:11:13Z
2022-11-04T16:50:38Z
2022-11-04T16:50:38Z
2022-11-15T12:50:07Z
CLN: CategoricalIndex.reindex
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index f06d118538c1a..287f94fb6b723 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -365,7 +365,6 @@ def __contains__(self, key: Any) -> bool: return contains(self, key, container=self._engine)...
- [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). Simplify `Categorical.re...
https://api.github.com/repos/pandas-dev/pandas/pulls/49513
2022-11-04T00:55:17Z
2022-11-05T16:14:40Z
2022-11-05T16:14:40Z
2022-11-10T03:18:21Z
CI: Fix ASV post str.replace(regex) change
diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py index 0bbb599f2b045..5de3bcda46424 100644 --- a/asv_bench/benchmarks/inference.py +++ b/asv_bench/benchmarks/inference.py @@ -223,7 +223,7 @@ class ToDatetimeFormat: def setup(self): N = 100000 self.s = Series(["19...
Failing on main, probably caused by https://github.com/pandas-dev/pandas/pull/49486
https://api.github.com/repos/pandas-dev/pandas/pulls/49512
2022-11-03T23:52:43Z
2022-11-04T06:03:20Z
2022-11-04T06:03:20Z
2022-11-04T16:24:20Z
DEPR: enforce indexing deprecations
diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst index 0fba784e36661..33f83c272b23d 100644 --- a/doc/source/whatsnew/v0.11.0.rst +++ b/doc/source/whatsnew/v0.11.0.rst @@ -368,7 +368,7 @@ Enhancements - You can now select with a string from a DataFrame with a datelike index, in a similar...
- [ ] 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/49511
2022-11-03T22:14:16Z
2022-11-04T23:40:51Z
2022-11-04T23:40:51Z
2022-11-04T23:44:04Z
CI: Change flaky to_excel test to use xlsxwriter
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 145682b484100..5b3b5602c95bc 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -359,14 +359,18 @@ def test_write_fspath_all(self, writer_name, writer_kwargs, module): writer = getattr(df, wr...
`test_write_fspath_all` has been flaky and failing when comparing the binary xml for `to_excel` with openpyxl e.g. ``` _ TestCommonIOCapabilities.test_write_fspath_all[to_excel-writer_kwargs1-openpyxl] _ [gw2] darwin -- Python 3.9.13 /Users/runner/micromamba/envs/test/bin/python3.9 self = <pandas.tests.io.test_...
https://api.github.com/repos/pandas-dev/pandas/pulls/49509
2022-11-03T21:14:01Z
2022-11-09T20:19:26Z
2022-11-09T20:19:26Z
2022-11-09T20:22:20Z
DEPR: enforce non-positional, keyword deprecations
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b7995dca0a825..1bf732bd3f644 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -293,6 +293,8 @@ Removal of prior version deprecations/changes - Removed ``keep_tz`` argument in :meth:`DatetimeIndex.to_se...
- [ ] 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/49507
2022-11-03T20:27:15Z
2022-11-04T18:42:16Z
2022-11-04T18:42:16Z
2022-11-04T18:53:41Z
BUG: Allow tz-aware Datetime SQL columns to be passed to parse_dates kwarg.
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 8bcee36cbef2b..8f01b05f6d280 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1121,6 +1121,9 @@ def _harmonize_columns(self, parse_dates=None) -> None: try: df_col = self.frame[col_name] + # the type the datafr...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49506
2022-11-03T19:16:16Z
2022-11-03T21:51:48Z
null
2022-11-15T03:33:00Z
Bug: Don't intercept TypeError in DataFrame.agg
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index cccef939f94d4..da6526e13f0c6 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -734,12 +734,6 @@ def agg(self): result = None try: result = super().agg() - except TypeError as err: - exc = TypeE...
- [ ] closes #49399 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/49505
2022-11-03T18:23:32Z
2022-12-05T00:57:41Z
null
2022-12-05T00:57:42Z
CI: fix flake8 warning
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 5fb82f1f9b72d..f06d118538c1a 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -4,7 +4,6 @@ Any, Hashable, ) -import warnings import numpy as np @@ -18,7 +17,6 @@ cache_readonly,...
- [ ] 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/49504
2022-11-03T18:09:28Z
2022-11-03T18:44:59Z
2022-11-03T18:44:59Z
2022-11-03T20:25:55Z
DEPR: Index.__and__, __or__, __xor__
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index df190a4df393c..3ca3fbbe58f00 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -415,6 +415,7 @@ Removal of prior version deprecations/changes - Changed behavior of :meth:`Index.to_frame` with explicit `...
- [ ] 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/49503
2022-11-03T17:14:29Z
2022-11-07T19:08:34Z
2022-11-07T19:08:34Z
2022-11-07T19:10:29Z
STYLE enable pylint: comparison-of-constants
diff --git a/pandas/tests/io/parser/test_dialect.py b/pandas/tests/io/parser/test_dialect.py index 458d4116558e4..7d2bb6c083cda 100644 --- a/pandas/tests/io/parser/test_dialect.py +++ b/pandas/tests/io/parser/test_dialect.py @@ -97,9 +97,9 @@ def test_dialect_conflict_except_delimiter(all_parsers, custom_dialect, arg, ...
Issue #48855. This PR enables pylint type "R" warning:` comparison-of-constants` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/49502
2022-11-03T16:31:05Z
2022-11-03T20:29:23Z
2022-11-03T20:29:23Z
2022-11-03T20:57:03Z
DOC: Clarify deprecation of freq for Timestamp
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index f80cb2e27cc23..281c6f3a700eb 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1248,6 +1248,12 @@ class Timestamp(_Timestamp): nanosecond : int, optional, default 0 freq : str,...
- [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/methods/functions. - [X] Added an entry in the lates...
https://api.github.com/repos/pandas-dev/pandas/pulls/49501
2022-11-03T16:20:39Z
2022-12-27T20:49:15Z
null
2022-12-27T20:49:15Z
Backport PR #49386 on branch 1.5.x (DOC: add name parameter to the IntervalIndex for #48911)
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 8f01dfaf867e7..ea5c6d52f29ba 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -383,7 +383,8 @@ def _from_factorized( Left and right bounds for each interval. closed : {'left', 'rig...
…#48911
https://api.github.com/repos/pandas-dev/pandas/pulls/49500
2022-11-03T14:51:02Z
2022-11-15T04:54:39Z
null
2022-11-15T04:54:40Z
Backport PR #49386 on branch 1.5.x (DOC: add name parameter to the IntervalIndex for #48911)
diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d9e3ade08846..6133037bf3b7d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: test-arm: machine: image: ubuntu-2004:202101-01 - resource_class: arm.medium + resource_class: arm.large environme...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/49499
2022-11-03T14:48:04Z
2022-11-03T14:48:28Z
null
2022-11-03T14:48:28Z
Backport PR #49488 on branch 1.5.x (CI: Remove GHA running on 1.4.x branch)
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 8c9f0b594f321..cf8a0fe0da91c 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -5,12 +5,10 @@ on: branches: - main - 1.5.x - - 1.4.x pull_request: branches...
Backport PR #49488: CI: Remove GHA running on 1.4.x branch
https://api.github.com/repos/pandas-dev/pandas/pulls/49495
2022-11-03T08:25:47Z
2022-11-03T10:13:58Z
2022-11-03T10:13:58Z
2022-11-03T10:13:58Z
DEPR: move NumericIndexes into base Index, part 1
diff --git a/asv_bench/benchmarks/hash_functions.py b/asv_bench/benchmarks/hash_functions.py index da752b902b4fd..2baf1bbe48c6b 100644 --- a/asv_bench/benchmarks/hash_functions.py +++ b/asv_bench/benchmarks/hash_functions.py @@ -1,6 +1,11 @@ import numpy as np import pandas as pd +from pandas.core.api import ( + ...
A part of the changes in pandas 2.0 will be that the current numeric indexes (Int64Index, Uint64Index & Float64Index) will be removed and their functionality added to the base Index. In addition, the base index should be able to handle all numpy numeric dtypes (int8, int16 tc.), not just the current int64, uint64 & flo...
https://api.github.com/repos/pandas-dev/pandas/pulls/49494
2022-11-03T07:44:37Z
2022-11-06T23:44:10Z
null
2022-11-06T23:44:11Z
DEPR: DatetimeIndex indexing with mismatched tzawareness
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index f86d3cb0af9da..152e8703fe020 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -423,6 +423,7 @@ Removal of prior version deprecations/changes - Changed behavior of empty data passed into :class:`Series`...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49492
2022-11-03T03:00:11Z
2022-11-07T23:08:00Z
2022-11-07T23:08:00Z
2022-11-07T23:15:59Z
Bump matplotlib min_ver to 3.6.1 (from 3.6.0)
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 7d6f841106198..7cf6d777ae607 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -32,7 +32,7 @@ dependencies: - gcsfs=2021.07.0 - jinja2=3.0.0 - lxml=4.6.3 ...
- [ ] closes #49498 (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/49491
2022-11-03T02:30:55Z
2022-11-03T14:35:20Z
2022-11-03T14:35:19Z
2022-11-11T12:12:55Z
DEP: Enforce respecting group_keys in groupby.apply
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c2abb70988dad..272df3926d611 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -449,9 +449,10 @@ Removal of prior version deprecations/changes - Changed behavior of comparison of a :class:`Timestamp` wi...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49490
2022-11-03T01:01:26Z
2022-11-08T11:50:45Z
2022-11-08T11:50:45Z
2022-11-08T18:01:16Z
CLN: assorted follow-ups
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index b188602a382f5..11c419c399877 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -417,7 +417,7 @@ Dependency Minimum Version optional_extra Notes PyTabl...
- [ ] 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/49489
2022-11-02T23:32:52Z
2022-11-04T16:56:55Z
2022-11-04T16:56:54Z
2022-11-04T17:13:05Z
CI: Remove GHA running on 1.4.x branch
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 8c9f0b594f321..cf8a0fe0da91c 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -5,12 +5,10 @@ on: branches: - main - 1.5.x - - 1.4.x pull_request: branches...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/49488
2022-11-02T23:13:56Z
2022-11-03T08:25:19Z
2022-11-03T08:25:19Z
2022-11-03T16:00:15Z
DEPR: maybe_promote with pydate
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c76555f9ef417..5c9b911ee0222 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -423,6 +423,7 @@ Removal of prior version deprecations/changes - Changed behavior of empty data passed into :class:`Series`...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49487
2022-11-02T23:08:13Z
2022-11-07T18:13:55Z
2022-11-07T18:13:55Z
2022-11-07T18:15:14Z
DEPR: Change str.replace(regex) from True to False & single behavior
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index d350351075cb6..b4ae1d27df2b5 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -267,14 +267,16 @@ i.e., from the end of the string to the beginning of the string: s3 s3.str.replace("^.a|dog", "XX...
- [x] closes #24804 (Replace xxxx with the GitHub issue number) Introduced in #36695
https://api.github.com/repos/pandas-dev/pandas/pulls/49486
2022-11-02T22:57:20Z
2022-11-03T16:27:13Z
2022-11-03T16:27:12Z
2022-11-03T20:13:56Z
DEPR: Index.reindex with non-unique Index
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d71160cdbc369..ac3a1ca95fbb4 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -250,6 +250,7 @@ Removal of prior version deprecations/changes - Disallow passing non-keyword arguments to :meth:`DataFrame...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49485
2022-11-02T22:21:53Z
2022-11-03T08:32:48Z
2022-11-03T08:32:48Z
2022-11-03T16:15:53Z
DEPR: remove Index.is_monotonic and Series.is_monotonic
diff --git a/doc/redirects.csv b/doc/redirects.csv index d0f4ae331f7e3..a1d3207033057 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -671,7 +671,6 @@ generated/pandas.Index.is_integer,../reference/api/pandas.Index.is_integer generated/pandas.Index.is_interval,../reference/api/pandas.Index.is_interval gener...
- [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/49484
2022-11-02T22:19:55Z
2022-11-02T22:28:04Z
null
2022-11-03T01:37:57Z
DEPR: HDFStore.iteritems, read_csv(use_cols) behavior
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d71160cdbc369..a7eb59e409c9f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -178,7 +178,7 @@ Removal of prior version deprecations/changes - Enforced deprecation changing behavior when passing ``date...
Introduced in #41130, #45321
https://api.github.com/repos/pandas-dev/pandas/pulls/49483
2022-11-02T22:15:17Z
2022-11-03T16:25:32Z
2022-11-03T16:25:32Z
2022-11-03T16:25:36Z