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
Fix string formatting
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 3ee7031795d16..88ec25cdd3f7f 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -13,7 +13,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression when :meth...
- [x] closes #52690 - [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/52883
2023-04-23T19:28:53Z
2023-06-20T19:39:09Z
null
2023-06-20T19:39:10Z
DOC: Update whatsnew
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 43ea1bd012714..2613d12e43400 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -1,7 +1,7 @@ .. _whatsnew_201: -What's new in 2.0.1 (May XX, 2023) ----------------------------------- +What's new in 2.0...
- [ ] 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/52882
2023-04-23T19:25:53Z
2023-04-23T22:50:12Z
2023-04-23T22:50:12Z
2023-04-24T07:55:04Z
Backport PR #52877 on branch 2.0.x (BUG: Adding a columns to a Frame with RangeIndex columns using a non-scalar key)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index bec442a319738..43ea1bd012714 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in :meth:`MultiIndex.isin` raising ``TypeError`` for ``Generator`` (:is...
Backport PR #52877: BUG: Adding a columns to a Frame with RangeIndex columns using a non-scalar key
https://api.github.com/repos/pandas-dev/pandas/pulls/52881
2023-04-23T13:51:48Z
2023-04-23T19:10:42Z
2023-04-23T19:10:42Z
2023-04-23T19:10:42Z
TST/CLN: Remove groupby.test_allowlist
diff --git a/pandas/tests/groupby/test_allowlist.py b/pandas/tests/groupby/test_allowlist.py deleted file mode 100644 index d495441593aed..0000000000000 --- a/pandas/tests/groupby/test_allowlist.py +++ /dev/null @@ -1,124 +0,0 @@ -""" -TODO: Existing tests should be moved or deduplicated -Do not add tests here! -""" - ...
- [ ] 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/52880
2023-04-23T13:08:34Z
2023-04-23T19:11:12Z
2023-04-23T19:11:12Z
2023-04-25T02:05:37Z
Backport PR #52577 on branch 2.0.x (BUG: describe not respecting ArrowDtype in include/exclude)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 7bd1b8f963726..bec442a319738 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -38,6 +38,7 @@ Bug fixes - Bug in :func:`to_datetime` and :func:`to_timedelta` when trying to convert numeric data with a :...
Backport PR #52577: BUG: describe not respecting ArrowDtype in include/exclude
https://api.github.com/repos/pandas-dev/pandas/pulls/52879
2023-04-23T11:46:40Z
2023-04-23T13:50:26Z
2023-04-23T13:50:26Z
2023-04-23T13:50:26Z
BUG: pyarrow mean can overflows on timestamp[ns][pyarrow] #52464
diff --git a/pandas/core/arrays/arrow/_arrow_utils.py b/pandas/core/arrays/arrow/_arrow_utils.py index 2a053fac2985c..ccc164457ea93 100644 --- a/pandas/core/arrays/arrow/_arrow_utils.py +++ b/pandas/core/arrays/arrow/_arrow_utils.py @@ -19,6 +19,21 @@ def fallback_performancewarning(version: str | None = None) -> None:...
BUG: pyarrow mean can overflows on timestamp[ns][pyarrow] #52464 - [ ] 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 chec...
https://api.github.com/repos/pandas-dev/pandas/pulls/52878
2023-04-23T10:51:01Z
2023-05-22T18:23:41Z
null
2023-05-22T18:23:42Z
BUG: Adding a columns to a Frame with RangeIndex columns using a non-scalar key
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 7bd1b8f963726..b0aa6b20c9281 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Fixed regression in :meth:`MultiIndex.isin` raising ``TypeError`` for ``Generator`` (:is...
- [X] closes #52652 - [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/52877
2023-04-23T10:48:07Z
2023-04-23T13:51:39Z
2023-04-23T13:51:39Z
2023-04-23T14:37:04Z
Backport PR #52867 on branch 2.0.x (Adjust unxfail condition for nat test for new numpy release)
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 6f31358dabe86..d747f20b8499f 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -10,6 +10,7 @@ np_version_under1p22 = _nlv < Version("1.22") np_version_gte1p22 = _nlv >= Version("1.22") np_version_...
#52867
https://api.github.com/repos/pandas-dev/pandas/pulls/52875
2023-04-23T10:13:58Z
2023-04-23T13:50:10Z
2023-04-23T13:50:10Z
2023-04-27T19:50:55Z
Backport PR #51990 on branch 2.0.x (CI: Unpin matplotlib)
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 5b9919d8e4c1f..e8ddb7dbe9f71 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -32,7 +32,7 @@ dependencies: - gcsfs - jinja2 - lxml - - matplotlib>=3.6.1, <3.7.0 + - matplotlib>=3.6.1 - numba - numexpr - ope...
#51990
https://api.github.com/repos/pandas-dev/pandas/pulls/52874
2023-04-23T10:09:20Z
2023-04-23T10:44:48Z
null
2023-04-27T19:51:13Z
Add ruff cache to gitignore
diff --git a/.gitignore b/.gitignore index 88ed58b70925d..8b2d79b1f95f5 100644 --- a/.gitignore +++ b/.gitignore @@ -70,6 +70,7 @@ coverage.xml coverage_html_report .mypy_cache *.pytest_cache +.ruff_cache # hypothesis test database .hypothesis/ __pycache__
- [ ] 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/52873
2023-04-23T10:07:01Z
2023-04-23T13:52:16Z
2023-04-23T13:52:16Z
2023-04-23T13:52:19Z
BUG: convert_dtypes ingoring convert keywords for pyarrow backend
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index f6b0b4086cb39..adfebd857b390 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -22,6 +22,7 @@ Bug fixes ~~~~~~~~~ - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/52872
2023-04-23T09:45:19Z
2023-04-27T12:27:17Z
2023-04-27T12:27:17Z
2023-04-27T12:27:21Z
Bug can't compute cummin/cummax on ordered categorical #52335
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 12bac08175a31..03154d0e3e015 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2216,6 +2216,29 @@ def equals(self, other: object) -> bool: return np.array_equal(self._codes, oth...
- [ ] 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/52870
2023-04-23T09:14:55Z
2023-05-22T18:23:21Z
null
2023-05-22T18:23:22Z
Backport PR #52843 on branch 2.0.x (BUG: pyarrow duration arrays constructed from data containing NaT can overflow)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 7768900a0f82e..7bd1b8f963726 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -28,6 +28,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
(#52843)
https://api.github.com/repos/pandas-dev/pandas/pulls/52869
2023-04-23T08:48:48Z
2023-04-23T10:46:21Z
2023-04-23T10:46:21Z
2023-04-27T19:51:05Z
BUG: overriden methods of subclasses of Styler are not called during …
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..e340075c9d5b6 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1554,7 +1554,8 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: else: self.c...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52868
2023-04-23T08:48:38Z
2023-04-23T19:13:06Z
null
2023-04-23T19:13:07Z
Adjust unxfail condition for nat test
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index fbc04386bcef2..97c434d8f35d0 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -8,6 +8,7 @@ _nlv = Version(_np_version) np_version_under1p22 = _nlv < Version("1.22") np_version_gte1p24 = _nlv >= V...
- [ ] 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/52867
2023-04-23T08:41:50Z
2023-04-23T10:10:53Z
2023-04-23T10:10:53Z
2023-04-23T10:13:22Z
Bug overriden methods of subclasses of styler are not called during rendering #52728
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..03ae6fa17a294 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1554,7 +1554,8 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: else: self.c...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52866
2023-04-23T08:40:25Z
2023-04-23T08:44:24Z
null
2023-04-23T08:44:54Z
BUG: overriden methods of subclasses of Styler are not called during …
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..03ae6fa17a294 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1554,7 +1554,8 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: else: self.c...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52865
2023-04-23T08:01:43Z
2023-04-23T08:39:19Z
null
2023-04-23T08:44:54Z
BUG: overriden methods of subclasses of Styler are not called during …
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..a24bb4d9dfb30 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1554,7 +1554,8 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: else: self.c...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52864
2023-04-23T07:49:56Z
2023-04-23T07:58:34Z
null
2023-04-23T07:58:53Z
BUG: overriden methods of subclasses of Styler are not called during …
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..1d522508da75e 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1553,8 +1553,8 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: self.ctx_index[(i, j)].extend...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52863
2023-04-23T07:38:32Z
2023-04-23T07:44:44Z
null
2023-04-23T07:46:43Z
BUG: overriden methods of subclasses of Styler are not called during …
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..7d11259d3154c 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1554,7 +1554,7 @@ def _update_ctx_header(self, attrs: DataFrame, axis: AxisInt) -> None: else: self.c...
…rendering #52728 BUG: overriden methods of subclasses of Styler are not called during rendering #52728 - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52862
2023-04-23T07:37:33Z
2023-04-23T07:37:43Z
null
2023-04-23T07:37:44Z
Bug overriden methods of subclasses of styler are not called during rendering #52728
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..abb0a6b500201 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1579,9 +1579,7 @@ def _copy(self, deepcopy: bool = False) -> Styler: """ # GH 40675 - styler = Styler( - ...
- [ ] 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/52861
2023-04-23T07:07:37Z
2023-04-23T07:22:50Z
null
2023-04-23T07:27:51Z
Added Spaces between Code
diff --git a/.gitignore b/.gitignore index 88ed58b70925d..d1625d06a1237 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ dist *.egg-info .eggs .pypirc + # type checkers pandas/py.typed @@ -58,21 +59,26 @@ pandas/py.typed # tox testing tool .tox + # rope .ropeproject + # wheel files *.whl **/wh...
Added spaces between code to make it look clean. - [ ] 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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52860
2023-04-23T05:56:00Z
2023-04-23T08:44:58Z
null
2023-04-23T08:44:59Z
BUG: pd.array with non-nano
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 644a7e86ec429..b111632180b21 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -331,6 +331,7 @@ Numeric Conversion ^^^^^^^^^^ - Bug in :func:`DataFrame.style.to_latex` and :func:`DataFrame.style.to_ht...
- [ ] 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/52859
2023-04-23T01:18:08Z
2023-05-01T18:10:32Z
2023-05-01T18:10:32Z
2023-05-01T18:11:46Z
Issue 52827: Added xfail for pyarrow int64 rounding
diff --git a/pandas/tests/frame/methods/test_convert_dtypes.py b/pandas/tests/frame/methods/test_convert_dtypes.py index a749cd11df4f7..84117dfd68dd9 100644 --- a/pandas/tests/frame/methods/test_convert_dtypes.py +++ b/pandas/tests/frame/methods/test_convert_dtypes.py @@ -135,8 +135,16 @@ def test_pyarrow_engine_lines_...
- [ ] closes #52827 - [ ] [Tests added 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/52858
2023-04-23T00:56:26Z
2023-06-12T18:23:49Z
null
2023-06-12T18:23:49Z
Modified the doc string of value_counts for DataFrame and series when sort arg is set to false
diff --git a/pandas/core/base.py b/pandas/core/base.py index f907089f77132..5bc0fc3e1af63 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -825,7 +825,7 @@ def value_counts( If True then the object returned will contain the relative frequencies of the unique values. sort ...
[ ✓] closes #51420 Added the explanation of 'sort' keyword for pandas.DataFrame.value_counts and pandas.Series.value_counts. When 'sort' is set to False, _value_counts_ method sorts the _dataframe_ by index. For _series,_ it preserves the order of the data. The doctest fails due to missing explanation of the re...
https://api.github.com/repos/pandas-dev/pandas/pulls/52857
2023-04-22T21:54:38Z
2023-04-25T20:14:06Z
2023-04-25T20:14:06Z
2023-04-25T20:14:10Z
Install pre-commit automatically in gitpod
diff --git a/.gitpod.yml b/.gitpod.yml index 8b086a589a378..0a5b5648994ae 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -15,6 +15,7 @@ tasks: git fetch --tags python setup.py build_ext --inplace -j 4 echo "🛠 Completed rebuilding Pandas!! 🛠 " + pre-commit install echo "✨ Pre-build comp...
- [ ] 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/52856
2023-04-22T20:46:05Z
2023-04-24T12:44:10Z
2023-04-24T12:44:10Z
2023-04-24T19:18:59Z
TST: cast string to complex
diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py index 5b0fcd5383059..745a933f3a780 100644 --- a/pandas/tests/dtypes/test_dtypes.py +++ b/pandas/tests/dtypes/test_dtypes.py @@ -1161,6 +1161,13 @@ def test_compare_complex_dtypes(): df.lt(df.astype(object)) +def test_cast_...
- [X] closes #4895 - [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/52855
2023-04-22T18:03:18Z
2023-04-23T19:18:23Z
2023-04-23T19:18:23Z
2023-04-24T11:50:29Z
Backport PR #52850 on branch 2.0.x (REGR: SeriesGroupBy.agg with multiple categoricals, as_index=False, and a list fails)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index d340b034b6c2c..7768900a0f82e 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.sort_values` not resetting index when :class:`DataF...
…nd a list fails (#52850)
https://api.github.com/repos/pandas-dev/pandas/pulls/52854
2023-04-22T17:27:27Z
2023-04-22T22:12:11Z
2023-04-22T22:12:11Z
2023-04-27T19:51:23Z
TST/CLN: Prepare moving tests out of groupby/test_allowlist
diff --git a/pandas/tests/groupby/test_allowlist.py b/pandas/tests/groupby/test_allowlist.py index 4dffad2b6b462..d495441593aed 100644 --- a/pandas/tests/groupby/test_allowlist.py +++ b/pandas/tests/groupby/test_allowlist.py @@ -3,72 +3,38 @@ Do not add tests here! """ -from string import ascii_lowercase - -import ...
- [ ] 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/52851
2023-04-22T15:44:52Z
2023-04-22T20:18:12Z
2023-04-22T20:18:12Z
2023-04-25T02:06:06Z
REGR: SeriesGroupBy.agg with multiple categoricals, as_index=False, and a list fails
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index d340b034b6c2c..7768900a0f82e 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.sort_values` not resetting index when :class:`DataF...
- [x] closes #52760 (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/52850
2023-04-22T15:20:44Z
2023-04-22T17:22:05Z
2023-04-22T17:22:05Z
2023-04-25T02:06:42Z
Backport PR #52821 on branch 2.0.x (BUG: Non unitless np NaT arithmetic with non-nano)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 5c9276d0fbf8a..09074b3fe613d 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -38,6 +38,7 @@ Bug fixes - Bug in :meth:`DataFrame.max` and related casting different :class:`Timestamp` resolutions always...
#52821
https://api.github.com/repos/pandas-dev/pandas/pulls/52847
2023-04-22T10:43:07Z
2023-04-22T17:19:16Z
2023-04-22T17:19:16Z
2023-04-22T17:25:24Z
Backport PR #52841 on branch 2.0.x (BUG: dt.round with equal/higher freq resolution would not noop)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 92731426bed03..8f28b4af24c1a 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,6 +27,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
Backport PR #52841: BUG: dt.round with equal/higher freq resolution would not noop
https://api.github.com/repos/pandas-dev/pandas/pulls/52846
2023-04-22T09:44:47Z
2023-04-22T17:19:28Z
2023-04-22T17:19:28Z
2023-04-22T17:19:28Z
CLN: remove redundant LatexFormatter and tests
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index ae67b05047a98..24a396eb9491e 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1022,38 +1022,6 @@ class DataFrameRenderer: def __init__(self, fmt: DataFrameFormatter) -> None: self.fmt = fmt - de...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52844
2023-04-22T06:43:19Z
2023-04-24T18:32:42Z
2023-04-24T18:32:42Z
2023-05-01T10:12:12Z
BUG: pyarrow duration arrays constructed from data containing NaT can overflow
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index d340b034b6c2c..afa72a0dc69b4 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,6 +27,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
- [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/52843
2023-04-22T01:37:13Z
2023-04-23T08:43:39Z
2023-04-23T08:43:39Z
2023-04-23T16:26:33Z
Backport PR #52614: ENH: Implement more str accessor methods for ArrowDtype
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 92731426bed03..5c9276d0fbf8a 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -50,6 +50,7 @@ Other - :class:`DataFrame` created from empty dicts had :attr:`~DataFrame.columns` of dtype ``object``. It ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52842
2023-04-21T23:46:28Z
2023-04-22T09:45:19Z
2023-04-22T09:45:19Z
2023-04-24T16:49:26Z
BUG: dt.round with equal/higher freq resolution would not noop
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 92731426bed03..8f28b4af24c1a 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,6 +27,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
- [x] closes #52761 (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/52841
2023-04-21T23:34:22Z
2023-04-22T09:43:36Z
2023-04-22T09:43:36Z
2023-04-28T16:55:18Z
BUG: FloatingArray.__contains__(nan)
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 644a7e86ec429..96dbfef95dc8c 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -427,6 +427,7 @@ Styler Other ^^^^^ +- Bug in :class:`FloatingArray.__contains__` with ``NaN`` item incorrectly returnin...
- [ ] 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/52840
2023-04-21T22:48:55Z
2023-05-01T18:01:22Z
2023-05-01T18:01:22Z
2023-05-01T18:01:54Z
DEPR: Series logical ops with different index coercing to bool
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b10dd876050ae..500ef5027335a 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -255,7 +255,7 @@ Deprecations - Deprecated the methods :meth:`Series.bool` and :meth:`DataFrame.bool` (:issue:`51749`) - D...
- [x] closes #52500 (Replace xxxx with the GitHub issue number) - [x] closes #52538 (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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52839
2023-04-21T19:44:35Z
2023-05-01T18:02:50Z
2023-05-01T18:02:50Z
2023-05-01T18:07:37Z
TST #24205: test_groupby_nth_interval created for Groupby Nth with Multindex Inverval
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index 61b20077cdcd0..454c599ff4629 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -767,6 +767,35 @@ def test_groupby_nth_with_column_axis(): tm.assert_frame_equal(result, expected) +def tes...
- [x] closes #24205 - [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/52838
2023-04-21T19:19:29Z
2023-04-21T22:31:06Z
null
2023-04-21T22:31:06Z
Backport PR #52831 on branch 2.0.x (CI: Fix comment command syntax error)
diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index 2112dbe082cc8..2550d4de34a45 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -15,21 +15,21 @@ jobs: concurrency: group: ${{ github.actor }}-issue-assign ...
Backport PR #52831: CI: Fix comment command syntax error
https://api.github.com/repos/pandas-dev/pandas/pulls/52837
2023-04-21T19:07:06Z
2023-04-21T19:07:56Z
2023-04-21T19:07:56Z
2023-04-21T19:07:57Z
PERF: Faster transposition of frames with masked arrays
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 551af7ccb40bc..f80e9fd9ff256 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -93,6 +93,25 @@ def time_transpose(self, dtype): self.df.T +class ReshapeMaskedArrayDtype(ReshapeExtensionD...
Faster transpose of dataframes with homogenous masked arrays. This also helps when doing reductions with `axis=1` as those currently transpose data before doing reductions. Performance example: ```python In [1]: import pandas as pd, numpy as np ...: values = np.random.randn(100000, 4) ......
https://api.github.com/repos/pandas-dev/pandas/pulls/52836
2023-04-21T18:53:59Z
2023-07-16T19:53:32Z
2023-07-16T19:53:32Z
2023-07-16T20:45:52Z
DOC add example of DataFrame.index
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c046d55d80b49..55618590071b5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -532,7 +532,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.ndim \ pandas.api.extensions.ExtensionArray.shape...
DOC add example of DataFrame.index - [ ] 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.pyda...
https://api.github.com/repos/pandas-dev/pandas/pulls/52835
2023-04-21T18:41:54Z
2023-04-23T19:13:44Z
2023-04-23T19:13:44Z
2023-04-24T13:41:58Z
BUG: fix setitem with enlargment with pyarrow Scalar
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 92f1dc2d4ea3b..286bc124fb2d7 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -145,6 +145,32 @@ i8max = <int64_t>INT64_MAX u8max = <uint64_t>UINT64_MAX +cdef bint PYARROW_INSTALLED = False + +try: + import pyarrow as pa + + PYARROW...
Potentially closes #52235 This updates `lib.is_scalar` to recognize pyarrow.Scalar objects. Further, it updates a very specific code path for setitem with enlargement with a scalar to preserve the arrow extension dtype (#52235). There are many other places where specific handling would need to be added for pyarr...
https://api.github.com/repos/pandas-dev/pandas/pulls/52833
2023-04-21T17:55:47Z
2023-08-01T17:25:42Z
null
2023-08-01T17:25:42Z
PDEP6 implementation pt 3: block.where
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index ff022cb047f3d..6649d6feb79c4 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -11,6 +11,7 @@ cast, final, ) +import warnings import numpy as np @@ -40,6 +41,7 @@ ) from pandas.erro...
- [ ] 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/52832
2023-04-21T17:41:43Z
2023-04-24T13:46:09Z
null
2023-04-24T13:46:09Z
CI: Fix comment command syntax error
diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index 2112dbe082cc8..2550d4de34a45 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -15,21 +15,21 @@ jobs: concurrency: group: ${{ github.actor }}-issue-assign ...
xref https://github.com/pandas-dev/pandas/actions/runs/4767193526/workflow
https://api.github.com/repos/pandas-dev/pandas/pulls/52831
2023-04-21T17:13:51Z
2023-04-21T19:06:56Z
2023-04-21T19:06:56Z
2023-04-21T19:07:00Z
COMPAT: Use actual isinstance check for pyarrow.Array instead of hasattr(.. 'type') duck typing
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index ae047939c6526..e9d4e45c07925 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -42,6 +42,7 @@ def infer_dtype(value: object, skipna: bool = ...) -> str: ... def is_iterator(obj: object) -> bool: ... def is_scalar(val: object) -> bool: ... d...
PR for the suggestion I made at https://github.com/pandas-dev/pandas/pull/52076/files#r1160653924
https://api.github.com/repos/pandas-dev/pandas/pulls/52830
2023-04-21T16:58:28Z
2023-06-02T16:26:22Z
2023-06-02T16:26:22Z
2023-06-05T10:09:34Z
CLN: internals.managers._form_blocks
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index ff637695a4816..7c02781b16456 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -2189,10 +2189,7 @@ def raise_construction_error( # -----------------------------------------------------------...
A small clean-up. I ran `asv continuous -f 1.1 upstream/main HEAD -b frame_ctor` to see if this gave an performance effect, and got `"BENCHMARKS NOT SIGNIFICANTLY CHANGED."`
https://api.github.com/repos/pandas-dev/pandas/pulls/52828
2023-04-21T14:53:34Z
2023-04-21T17:05:38Z
2023-04-21T17:05:38Z
2023-04-21T17:26:04Z
Test dir of pandas.api.*
diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index c2e89a2db12ee..73713de08473b 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -5,7 +5,13 @@ import pandas as pd from pandas import api import pandas._testing as tm -from pandas.api import typing as api_typin...
- [x] Closes #52688 - [x] Tests added and passed - [x] All code checks passed - [x] Added type annotations @rhshadrach Could you please review this PR?
https://api.github.com/repos/pandas-dev/pandas/pulls/52826
2023-04-21T10:37:10Z
2023-04-23T12:20:28Z
2023-04-23T12:20:28Z
2023-04-23T12:20:38Z
BUG: interchange bitmasks not supported in interchange/from_dataframe.py
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 0a6738cb9b3dc..09932a2d2d571 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -20,6 +20,8 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :func:`api.interchange.from_dataframe` was returning :cla...
- [x] closes #49888 (Replace xxxx with the GitHub issue number) - [x] closes #52845 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/52824
2023-04-21T08:45:28Z
2023-04-25T00:50:43Z
2023-04-25T00:50:43Z
2023-04-25T00:50:49Z
Backport PR #52800 on branch 2.0.x (BUG: interchange.from_dataframe doesn't work with large_string)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 3dc003f1d3065..92731426bed03 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -28,7 +28,8 @@ Bug fixes - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`52391`) - B...
Backport PR #52800: BUG: interchange.from_dataframe doesn't work with large_string
https://api.github.com/repos/pandas-dev/pandas/pulls/52822
2023-04-21T08:06:42Z
2023-04-21T10:37:47Z
2023-04-21T10:37:47Z
2023-04-21T10:37:47Z
BUG: Non unitless np NaT arithmetic with non-nano
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 92731426bed03..9bc23efb03658 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -38,6 +38,7 @@ Bug fixes - Bug in :meth:`DataFrame.max` and related casting different :class:`Timestamp` resolutions always...
- [ ] closes #52295 (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/52821
2023-04-21T01:28:38Z
2023-04-22T10:38:49Z
2023-04-22T10:38:49Z
2023-04-24T16:47:40Z
CLN: assorted
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index cb13cde7a4bed..1b20ffbe52493 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -61,7 +61,6 @@ from pandas._libs.tslibs.nattype cimport ( c_nat_strings as nat_strings, ) from pandas...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/52820
2023-04-20T23:40:45Z
2023-04-21T17:08:51Z
2023-04-21T17:08:51Z
2023-04-21T17:25:35Z
BUG: DatetimeIndexResamplerGroupby as_index interaction with .agg()
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 56284ba9a9ebf..5c901e1e54d63 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -370,6 +370,7 @@ Missing MultiIndex ^^^^^^^^^^ - Bug in :meth:`DataFrame.__getitem__` not preserving dtypes for :class:`M...
- [x] closes issue #[52397](https://github.com/pandas-dev/pandas/issues/52397) - [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/de...
https://api.github.com/repos/pandas-dev/pandas/pulls/52819
2023-04-20T23:36:07Z
2023-06-20T19:40:31Z
null
2023-06-20T19:40:31Z
[TST] BUG: grouping with categorical interval columns
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 29382be60b08b..6856567f7c736 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -16,6 +16,7 @@ DataFrame, Grouper, Index, + Interval, MultiIndex, RangeI...
- [x] closes https://github.com/pandas-dev/pandas/issues/34164 - [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/52818
2023-04-20T23:15:04Z
2023-04-23T19:19:27Z
2023-04-23T19:19:26Z
2023-04-23T19:19:33Z
CLN: unify NumpyBlock, ObjectBlock, and NumericBlock
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index 0797e62de7a9f..284f8ef135d99 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -11,8 +11,6 @@ Block, DatetimeTZBlock, ExtensionBlock, - NumericBlock, - ObjectBlock, ) f...
This PR unifies `NumpyBlock`, `ObjectBlock`, and `NumericBlock` into `NumpyBlock`. xref #52413 This is part of my effort to make it easier for pandas to support new-style dtypes like the variable width string dtype I'm working on that will hopefully replace usages of object string arrays in pandas (#47884). New-s...
https://api.github.com/repos/pandas-dev/pandas/pulls/52817
2023-04-20T20:57:02Z
2023-05-24T16:03:52Z
2023-05-24T16:03:51Z
2023-05-24T16:04:01Z
Add test for pyarrow date32 repr
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 25e643f53f925..88346a4d9b490 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -2567,3 +2567,10 @@ def test_quantile_temporal(pa_type): result = ser.quantile(0.1) expect...
- [ ] closes #48238 - [ ] [Tests added 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). - [ ] Ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/52815
2023-04-20T20:13:44Z
2023-04-21T13:22:41Z
2023-04-21T13:22:41Z
2023-04-21T13:22:48Z
DOC: Adding examples for dtype_backend="pyarrow" for read_json()
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 103756158d2cf..cc8c1299ab137 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -998,7 +998,7 @@ pass ``format='mixed'`` .. ipython:: python - data = io.StringIO("date\n12 Jan 2000\n2000-01-13\n") + dat...
Added an example for dtype_backend="pyarrow" for read_json() - [ ] closes https://github.com/noatamir/pyladies-workshop/issues/2 - [ ] [Tests added 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 check...
https://api.github.com/repos/pandas-dev/pandas/pulls/52813
2023-04-20T19:34:49Z
2023-04-21T16:09:48Z
2023-04-21T16:09:48Z
2023-04-21T19:26:59Z
TST: test loc index df with a MultiIndex and constituent IntervalIndex
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index 3bf8c2eaa7e94..2fb6ad850b4b9 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -971,3 +971,16 @@ def test_multindex_series_loc_with_tuple_label(): ...
- [x ] closes [#25298](https://github.com/pandas-dev/pandas/issues/25298) - [ 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/dev...
https://api.github.com/repos/pandas-dev/pandas/pulls/52811
2023-04-20T19:21:37Z
2023-05-24T16:17:10Z
null
2023-05-24T16:17:11Z
Added test to confrim categorical perservation with merge
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 017bf1c917e37..a7705a4f2300b 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -2773,3 +2773,16 @@ def test_merge_arrow_and_numpy_dtypes(dtype): result = df2....
- [ ] closes #37480 - [ ] [Tests added 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/52810
2023-04-20T19:21:35Z
2023-05-24T16:17:46Z
null
2023-05-24T16:17:47Z
Issue 21932: Added Regression Test for index of pivot_table on empty table
diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py index 3fc617b91b866..efd5ec2f0868f 100644 --- a/pandas/tests/reshape/test_pivot.py +++ b/pandas/tests/reshape/test_pivot.py @@ -2598,3 +2598,11 @@ def test_pivot_not_changing_index_name(self): expected = df.copy(deep=True) ...
- [x] closes #21932 - [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 @phofl, @noatamir, @jorisvandenbossche and @marcogorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/52809
2023-04-20T18:38:16Z
2023-04-22T17:23:42Z
2023-04-22T17:23:42Z
2023-04-22T17:23:46Z
CLN: clean-up is_int64_dtype wrt. deprecation
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 67fb5a81ecabe..b6f3210e35c81 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -773,6 +773,11 @@ def is_int64_dtype(arr_or_dtype) -> bool: """ Check whether the provided array or dtype is of the int64 ...
Cleanups related to #52564. Also makes `ci/code_checks.sh` more quiet.
https://api.github.com/repos/pandas-dev/pandas/pulls/52808
2023-04-20T18:20:03Z
2023-04-20T22:12:26Z
2023-04-20T22:12:26Z
2023-04-21T07:24:22Z
bug fix on issue 52799
diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py index 576a75de9962c..3a4752268f4d6 100644 --- a/pandas/core/arrays/masked.py +++ b/pandas/core/arrays/masked.py @@ -185,6 +185,8 @@ def fillna(self, value=None, method=None, limit: int | None = None) -> Self: else: # ...
- [x] closes #52799 (Replace 52799 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/52807
2023-04-20T18:13:13Z
2023-05-22T16:24:12Z
null
2023-05-22T16:24:13Z
Backport PR #52693 on branch 2.0.x (CI: Consolidate more comment command workflows)
diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/comment-commands.yml similarity index 53% rename from .github/workflows/asv-bot.yml rename to .github/workflows/comment-commands.yml index d264698e60485..2112dbe082cc8 100644 --- a/.github/workflows/asv-bot.yml +++ b/.github/workflows/comment-commands.yml @...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52805
2023-04-20T16:16:53Z
2023-04-20T19:03:37Z
2023-04-20T19:03:37Z
2023-04-20T19:03:40Z
Backport PR #52615 on branch 2.0.x (REGR: DataFrame.resample fails on a frame with no columns)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 2e8e2345d4c0a..3dc003f1d3065 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -15,6 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression for subclassed Series when constructing from a dicti...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52804
2023-04-20T15:58:18Z
2023-04-20T17:58:00Z
2023-04-20T17:58:00Z
2023-04-20T17:58:03Z
CLN/depr: dt.to_pydatetime
diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index 4f529b71c867f..f86728ad8b686 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -304,6 +304,12 @@ def to_pydatetime(self) -> np.ndarray: """ Return the data as an array of :class...
Some cleanup related to https://github.com/pandas-dev/pandas/pull/52459. The example code causes warning when running `ci/code_checks.sh`, this suppresses that.
https://api.github.com/repos/pandas-dev/pandas/pulls/52803
2023-04-20T14:43:48Z
2023-04-22T20:51:56Z
2023-04-22T20:51:56Z
2023-04-23T08:21:57Z
CLN/depr: NDFrame.bool
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bf8cf831b942a..d3e9ca327aa16 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1473,6 +1473,10 @@ def bool(self) -> bool_t: """ Return the bool of a single element Series or DataFrame. + .. deprecated:: 2.1....
Some cleanup related to https://github.com/pandas-dev/pandas/pull/51756. The example code causes warning when running `ci/code_checks.sh`, this suppresses that.
https://api.github.com/repos/pandas-dev/pandas/pulls/52802
2023-04-20T14:41:53Z
2023-04-20T17:44:51Z
2023-04-20T17:44:51Z
2023-04-20T17:49:08Z
BUG: interchange.from_dataframe doesn't work with large_string
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 2e8e2345d4c0a..24aca954b201f 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,7 +27,8 @@ Bug fixes - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`52391`) - B...
- [ ] closes #52795 (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/52800
2023-04-20T10:44:33Z
2023-04-21T08:05:34Z
2023-04-21T08:05:34Z
2023-04-21T08:11:43Z
BUG: interchange.from_dataframe doesn't work with large_string
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 2e8e2345d4c0a..24aca954b201f 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,7 +27,8 @@ Bug fixes - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`52391`) - B...
- [ ] closes #52795 (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/52797
2023-04-20T08:38:12Z
2023-04-20T08:40:13Z
null
2023-04-20T08:40:13Z
Changed as requested in #52716 and added test for checking this issue…
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 92750bdd0f272..f4782dcfcc08d 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -119,7 +119,7 @@ names : array-like, default None List of column names to use. If file contains no header row, then you should explicitly...
[] Changed as requested in #52716 and added test for checking this issue #52716 … #52749 - [ ] closes #52716 (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 f...
https://api.github.com/repos/pandas-dev/pandas/pulls/52796
2023-04-20T08:29:50Z
2023-04-20T17:57:26Z
2023-04-20T17:57:26Z
2023-10-26T05:26:45Z
CI: Remove redundant sdist workflow
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml deleted file mode 100644 index 957e7103f4ff6..0000000000000 --- a/.github/workflows/sdist.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: sdist - -on: - push: - branches: - - main - - 2.0.x - pull_request: - branches: - - main - ...
AFAICT: The sdist workflow was essentially similar as the `build_sdist` job in the wheels workflow except it didn't test the sdist cc @lithomas1
https://api.github.com/repos/pandas-dev/pandas/pulls/52794
2023-04-20T00:24:19Z
2023-04-28T17:38:18Z
2023-04-28T17:38:18Z
2023-04-28T18:09:10Z
Backport PR #52763 on branch 2.0.x (BUG: interchange categorical_column_to_series() should not accept only PandasColumn)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index e9e1881e879da..2e8e2345d4c0a 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,6 +27,7 @@ Bug fixes - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`52391`) - B...
Backport PR #52763: BUG: interchange categorical_column_to_series() should not accept only PandasColumn
https://api.github.com/repos/pandas-dev/pandas/pulls/52793
2023-04-19T22:14:52Z
2023-04-20T00:26:23Z
2023-04-20T00:26:23Z
2023-04-20T00:26:24Z
ENH: Support ArrowDtype in interchange Column.dtype
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index 7eb43dbd074c9..fea96d861f12c 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -11,6 +11,7 @@ import pandas as pd from pandas.api.types import is_string_dtype +from pandas.core.arrays.arr...
- [x] xref #52323 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/52792
2023-04-19T21:41:11Z
2023-04-27T15:54:31Z
2023-04-27T15:54:31Z
2023-04-27T15:54:34Z
Added an edge case handler and a test case for Series.first("#M")
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bac567b537edc..e47d219715d6f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -260,6 +260,7 @@ Styler Other ^^^^^ +- Bug in :func:`Series.first` ``first`` not returning all the timestamps of the las...
- [x] closes #51285 - [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/52789
2023-04-19T19:01:23Z
2023-05-24T16:17:29Z
null
2023-05-24T16:17:30Z
ENH: better dtype inference when doing DataFrame reductions
diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index a3ccb5b0d4019..1a727cd78af09 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -126,10 +126,11 @@ These dtypes can be merged, reshaped & casted. pd.concat([df[["A"]], df[["B",...
- [x] closes #40669, #42895 & #14162 Supercedes #52707 and possibly #52261, depending on reception. This PR improves on #52707 by not attempting to infer the combined dtypes from the original dtypes and builds heavily on the ideas in #52261, but avoids the overloading of `kwargs` in the extensionarray functions/m...
https://api.github.com/repos/pandas-dev/pandas/pulls/52788
2023-04-19T17:05:02Z
2023-07-13T16:40:08Z
2023-07-13T16:40:08Z
2023-07-13T18:26:46Z
add pytables to 3.11 ci environment
diff --git a/ci/deps/actions-311.yaml b/ci/deps/actions-311.yaml index 6da92a28965a2..04dd4be5f6096 100644 --- a/ci/deps/actions-311.yaml +++ b/ci/deps/actions-311.yaml @@ -43,7 +43,7 @@ dependencies: - pyarrow>=7.0.0 - pymysql>=1.0.2 - pyreadstat>=1.1.5 - # - pytables>=3.7.0, 3.8.0 is first version that supp...
- [ ] 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/52787
2023-04-19T16:20:30Z
2023-04-24T18:52:44Z
null
2023-04-24T18:52:44Z
CLN: some cleanups in Series.apply & related
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 274a389791a31..a4f2ba9133928 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -25,6 +25,7 @@ from pandas._config import option_context +from pandas._libs import lib from pandas._typing import ( AggFuncType, AggFuncTypeBase, @@...
Some cleanups: * Move the `convert_dtype` warning from `Series.apply` to `SeriesApply` * Add `*, ` to force use use of keywords * Set the default for `convert_dtype` in `SeriesApply` to `no_default` * Drop setting `convert_dtype` internally in `Series.agg` & `Series.transform` (these are noops, i.e. have no effe...
https://api.github.com/repos/pandas-dev/pandas/pulls/52786
2023-04-19T16:03:51Z
2023-04-19T22:11:23Z
2023-04-19T22:11:23Z
2023-04-26T12:13:15Z
Backport PR #52765 on branch 2.0.x (BUG: ArrowExtensionArray returning approximate median)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 023cb68300433..e9e1881e879da 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -26,6 +26,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
Backport PR #52765: BUG: ArrowExtensionArray returning approximate median
https://api.github.com/repos/pandas-dev/pandas/pulls/52785
2023-04-19T15:38:04Z
2023-04-19T22:10:20Z
2023-04-19T22:10:20Z
2023-04-19T22:10:21Z
PERF: only do length-1 checks once in concat
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index df359bb33d4f0..44cc9f6d8d8c0 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -4,6 +4,7 @@ from typing import ( TYPE_CHECKING, Sequence, + cast, ) import warnings @@ -220,23 +221,2...
also simplify get_reindexed_values
https://api.github.com/repos/pandas-dev/pandas/pulls/52784
2023-04-19T15:34:34Z
2023-04-19T22:12:27Z
2023-04-19T22:12:27Z
2023-04-19T23:08:22Z
replace KeyError with LookupError in the types of possible read_hdf errors
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 22a2931519ffd..4ff0a7ef0022e 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -348,6 +348,7 @@ I/O ^^^ - :meth:`DataFrame.to_orc` now raising ``ValueError`` when non-default :class:`Index` is given (:...
- [x] closes #52781 (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/52783
2023-04-19T15:18:21Z
2023-04-19T22:14:13Z
2023-04-19T22:14:13Z
2023-04-19T22:22:56Z
DOC add example of Series.index #51842
diff --git a/pandas/core/series.py b/pandas/core/series.py index 8d7354f5f4f0c..81cf839ad5f1c 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5522,6 +5522,7 @@ def to_period(self, freq: str | None = None, copy: bool | None = None) -> Series Index(['Kolkata', 'Chicago', 'Toronto', 'Lisbon'], ...
A newline between the text and the code is missing. - [ ] 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](h...
https://api.github.com/repos/pandas-dev/pandas/pulls/52780
2023-04-19T13:39:24Z
2023-04-19T15:55:40Z
2023-04-19T15:55:40Z
2023-04-19T19:22:17Z
DOC: Adding docstrings to functions #15580
diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py index 73ed99c3a4640..a034daf1c5c23 100644 --- a/pandas/_config/__init__.py +++ b/pandas/_config/__init__.py @@ -31,10 +31,70 @@ def using_copy_on_write() -> bool: + """ + Determine if copy-on-write mode is being used. + + This function e...
Addresses issue #15580 in the Pandas library Adding docstrings with examples to using_copy_on_write() and using_nullable_dtypes() functions, pathway Files under C:\Users\XXXX\pandas\pandas\_config|__init__py
https://api.github.com/repos/pandas-dev/pandas/pulls/52774
2023-04-19T02:49:30Z
2023-05-02T13:31:12Z
null
2023-05-02T15:44:33Z
TST: Add regression test for NaN sparse columns
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 54c8e359b2859..4a0795137f80b 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -478,3 +478,15 @@ def test_drop_duplicates_fill_value(): result = df.drop_dupli...
- [x] closes #27781 - [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
https://api.github.com/repos/pandas-dev/pandas/pulls/52772
2023-04-19T01:27:53Z
2023-04-19T22:13:11Z
2023-04-19T22:13:11Z
2023-04-19T22:13:18Z
REF: de-duplicate Manager concat paths
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 44cc9f6d8d8c0..47624dd9ea85d 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -72,7 +72,7 @@ def _concatenate_array_managers( - mgrs_indexers, axes: list[Index], concat_axis: AxisInt, copy: ...
- [ ] 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/52771
2023-04-18T23:30:20Z
2023-04-20T15:30:01Z
2023-04-20T15:30:00Z
2023-04-20T15:30:58Z
BUG: pandas.DataFrame.last doesn't respect time zone #52131
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 582a043a8a78a..77ebcb4b3fed9 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9145,9 +9145,19 @@ def last(self, offset) -> Self: offset = to_offset(offset) - start_date = self.index[-1] - offset - start = s...
- [ ] closes #52131 (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/52770
2023-04-18T23:20:13Z
2023-04-28T08:25:44Z
null
2023-04-28T08:25:44Z
BUG: pandas.DataFrame.last doesn't respect time zone #52131
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 023cb68300433..86d977730ab82 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -46,6 +46,7 @@ Other - :class:`DataFrame` created from empty dicts had :attr:`~DataFrame.columns` of dtype ``object``. It ...
- [ ] closes #52131 (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/52769
2023-04-18T23:15:31Z
2023-04-18T23:16:40Z
null
2023-04-18T23:16:40Z
TYP: nargsort
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c13ce8079b669..17c15a8cb943e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5632,7 +5632,7 @@ def sort_values( >>> idx.sort_values(ascending=False, return_indexer=True) (Index([1000, 100, 10, 1...
- [ ] 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/52768
2023-04-18T20:24:29Z
2023-04-19T21:43:39Z
2023-04-19T21:43:39Z
2023-04-19T23:16:53Z
Backport PR #52633 on branch 2.0.x (BUG: Logical and comparison ops with ArrowDtype & masked)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 9c867544a324b..023cb68300433 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -34,6 +34,7 @@ Bug fixes - Bug in :meth:`DataFrame.max` and related casting different :class:`Timestamp` resolutions always...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52767
2023-04-18T20:03:53Z
2023-04-19T00:46:14Z
2023-04-19T00:46:14Z
2023-04-19T00:46:18Z
PERF: dtype checks
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index c2ea82061dc63..c0d1f1eba9e09 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -16,7 +16,6 @@ from pandas.core.dtypes.common import ( is_bool, - is_extension_array_dtype, is_integer_dtype, 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/52766
2023-04-18T19:27:07Z
2023-04-18T22:06:56Z
2023-04-18T22:06:56Z
2023-04-18T22:07:31Z
BUG: ArrowExtensionArray returning approximate median
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 9c867544a324b..89d15115197f7 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -26,6 +26,7 @@ Bug fixes ~~~~~~~~~ - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`5...
- [x] closes #52679 (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/52765
2023-04-18T18:57:38Z
2023-04-19T15:37:02Z
2023-04-19T15:37:02Z
2023-04-19T15:37:06Z
BUG: interchange categorical_column_to_series() should not accept only PandasColumn
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index e9e1881e879da..2e8e2345d4c0a 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -27,6 +27,7 @@ Bug fixes - Bug in :attr:`Series.dt.days` that would overflow ``int32`` number of days (:issue:`52391`) - B...
- [ ] closes #49889 (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/52763
2023-04-18T17:43:11Z
2023-04-19T22:14:41Z
2023-04-19T22:14:41Z
2023-04-21T20:10:39Z
Backport PR #52677 on branch 2.0.x (BUG: tz_localize with ArrowDtype)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index c64f7a46d3058..9c867544a324b 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -33,6 +33,7 @@ Bug fixes - Bug in :meth:`ArrowDtype.__from_arrow__` not respecting if dtype is explicitly given (:issue:`52...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52762
2023-04-18T17:00:13Z
2023-04-18T19:58:48Z
2023-04-18T19:58:48Z
2023-04-18T19:58:51Z
TST: Regression test added for .loc assignements
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 3f0d530a1cbd4..99fe452dfcf09 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -2618,6 +2618,16 @@ def test_loc_indexer_all_false_broadcast(self): df.loc[np.array([False], dtype=np.b...
- [x] closes #29707 - [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/52759
2023-04-18T15:29:28Z
2023-05-29T07:43:24Z
null
2023-05-29T07:43:50Z
TST: Test for index of dict keys as tuples
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 0a8341476dc56..8cfd0682e1f5d 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -2128,3 +2128,22 @@ def test_constructor(rand_series_with_duplicate_datetimeindex): ...
- [x] closes #22077 - [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/52758
2023-04-18T15:22:52Z
2023-04-20T00:01:50Z
2023-04-20T00:01:50Z
2023-04-20T00:01:56Z
TST: Test groupby for columns with string objects
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index b5b13d6b10511..29382be60b08b 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2970,3 +2970,14 @@ def test_groupby_numeric_only_std_no_result(numeric_only): ValueErr...
- [ ] closes #24196 - [ ] [Tests added 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/52757
2023-04-18T15:21:07Z
2023-04-22T09:55:19Z
2023-04-22T09:55:19Z
2023-04-22T09:55:28Z
Typing: Narrow down types of arguments (NDFrame)
diff --git a/pandas/_typing.py b/pandas/_typing.py index de02a549856ab..a99dc584f64ca 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -390,3 +390,13 @@ def closed(self) -> bool: ] AlignJoin = Literal["outer", "inner", "left", "right"] DtypeBackend = Literal["pyarrow", "numpy_nullable"] + +OpenFileErrors = ...
- [x] closes parts of # 10 (in https://github.com/noatamir/pydata-workshop) - [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-...
https://api.github.com/repos/pandas-dev/pandas/pulls/52756
2023-04-18T15:20:37Z
2023-04-19T17:42:14Z
2023-04-19T17:42:14Z
2023-04-19T17:42:30Z
changed str to literal in inteprolate and limit_direction
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 582a043a8a78a..92af5e9254191 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7497,12 +7497,32 @@ def replace( def interpolate( self, - method: str = "linear", + method: Literal[ + "linear", +...
- [ ] 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/52755
2023-04-18T15:18:18Z
2023-04-19T12:49:59Z
2023-04-19T12:49:59Z
2023-04-19T12:50:10Z
Typing: Narrow down types of arguments (NDFrame) #10
diff --git a/pandas/_typing.py b/pandas/_typing.py index e162f7f1662ee..dc3f2f54a54ca 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -419,6 +419,7 @@ def closed(self) -> bool: AlignJoin = Literal["outer", "inner", "left", "right"] DtypeBackend = Literal["pyarrow", "numpy_nullable"] +TimeUnit = Literal["s...
[Typing: Narrow down types of arguments (NDFrame) #10](https://github.com/noatamir/pydata-workshop/issues/10) Made these specifications to Literals: - [ X] Specify date_unit in to_json more precisely - [ X] Specify mode in to_hdf more precisely - [ X] Specify complib in to_hdf more precisely - [ X] Specify format ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52754
2023-04-18T15:11:09Z
2023-04-25T00:52:10Z
2023-04-25T00:52:10Z
2023-04-25T00:52:17Z
Typing: Narrow down types of argument keep for nsmallest and nlargest
diff --git a/pandas/core/series.py b/pandas/core/series.py index aa7d108746630..43ebdc2f9dff0 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3901,7 +3901,9 @@ def nlargest( """ return selectn.SelectNSeries(self, n=n, keep=keep).nlargest() - def nsmallest(self, n: int = 5, keep...
- [ ] Typing: Narrow down types of arguments (Series) for nsmallest and nlargest - [ ] [Tests added 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/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/52753
2023-04-18T15:03:59Z
2023-04-20T20:37:29Z
2023-04-20T20:37:29Z
2023-04-20T20:37:40Z
TYP: Narrow down types of arguments (DataFrame)
diff --git a/pandas/_typing.py b/pandas/_typing.py index a99dc584f64ca..e162f7f1662ee 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -132,6 +132,8 @@ ] Timezone = Union[str, tzinfo] +ToTimestampHow = Literal["s", "e", "start", "end"] + # NDFrameT is stricter and ensures that the same subclass of NDFrame...
closes https://github.com/pandas-dev/pandas/issues/8 (https://github.com/noatamir/pydata-workshop/issues/8) [Tests added 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....
https://api.github.com/repos/pandas-dev/pandas/pulls/52752
2023-04-18T15:03:49Z
2023-04-20T15:06:16Z
2023-04-20T15:06:16Z
2023-04-20T15:06:30Z
DataFrame.join Copy-on-Write optimization tests
diff --git a/pandas/tests/copy_view/test_functions.py b/pandas/tests/copy_view/test_functions.py index 53d72baf7da4e..56e4b186350f2 100644 --- a/pandas/tests/copy_view/test_functions.py +++ b/pandas/tests/copy_view/test_functions.py @@ -3,6 +3,7 @@ from pandas import ( DataFrame, + Index, Series, c...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). @phofl @noatamir @jorisvandenbossche @MarcoGorelli Could you guy...
https://api.github.com/repos/pandas-dev/pandas/pulls/52751
2023-04-18T14:55:13Z
2023-04-21T07:45:27Z
2023-04-21T07:45:27Z
2023-04-21T07:50:06Z