title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
TYP: misc IO return types | diff --git a/pandas/_typing.py b/pandas/_typing.py
index c704516f74300..1fec41463904c 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -529,3 +529,6 @@ def closed(self) -> bool:
Callable[[HashableT], bool],
None,
]
+
+# maintaine the sub-type of any hashable sequence
+SequenceT = TypeVar("SequenceT"... | mostly for the CSV methods | https://api.github.com/repos/pandas-dev/pandas/pulls/57228 | 2024-02-03T19:09:18Z | 2024-02-03T21:24:50Z | 2024-02-03T21:24:50Z | 2024-02-10T20:34:31Z |
Update style.ipynb http -> https | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index f22a506499cf4..2d4b0f6a7545e 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1280,7 +1280,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "You can create \"heatm... | http://seaborn.pydata.org/ -> https://seaborn.pydata.org/
- [ ] 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 pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/57227 | 2024-02-03T18:25:44Z | 2024-02-03T20:01:01Z | 2024-02-03T20:01:01Z | 2024-02-03T21:38:54Z |
WEB: Using Bootstrap icon instead of font awesome icons | diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html
index c8025aeef3791..aa4bfc92ce8a8 100644
--- a/web/pandas/_templates/layout.html
+++ b/web/pandas/_templates/layout.html
@@ -14,7 +14,7 @@
<link rel="stylesheet"
href="{{ base_url }}{{ stylesheet }}">
... | Closes https://github.com/pandas-dev/pandas/issues/57165
| https://api.github.com/repos/pandas-dev/pandas/pulls/57226 | 2024-02-03T18:11:13Z | 2024-02-05T17:32:53Z | 2024-02-05T17:32:53Z | 2024-02-05T17:33:00Z |
BUG: Raise if an aggregation function other than mean is used with ewm and times | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index f9117253b61c1..7c74a2698093d 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -205,7 +205,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`.DataFrameGroupBy.quantile` w... | Ran into this recently and found an issue was reported a while ago without any progress (#51695)
- [x] closes #51695
- [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://api.github.com/repos/pandas-dev/pandas/pulls/57225 | 2024-02-03T14:57:55Z | 2024-02-03T21:54:36Z | 2024-02-03T21:54:36Z | 2024-02-03T21:55:04Z |
DOC: Replace pandas logo with a conditional image for light and dark … | diff --git a/README.md b/README.md
index 6fa20d237babe..e5329d66c2d89 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
-<div align="center">
- <img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
-</div>
+<picture align="center">
+ <source media="(prefers-color-scheme: dark)" srcset="https://pandas.p... | ...themes
Replaced the static pandas logo with a `picture` tag that displays a different logo based on the color scheme. In light mode, the original logo is shown, while in dark mode, a white version of the logo is displayed for better visibility.
In GitHub Dark Theme

import warnings
@@ -32,7 +33,8 @@ ... | The function in question gets used in multiple places, that's why I felt it would be safer to preserve current behavior and API, and add an additional, optional parameter, which alters the behavior, enabling checking if all passed warning types get detected.
- [x] closes #56555 (Replace xxxx with the GitHub issue nu... | https://api.github.com/repos/pandas-dev/pandas/pulls/57222 | 2024-02-03T05:30:15Z | 2024-04-14T19:18:21Z | 2024-04-14T19:18:21Z | 2024-04-14T19:18:34Z |
TST: Reduce parameterization of test_str_find_e2e | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 3ce2b38bf8644..b49f107859159 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -23,7 +23,6 @@
BytesIO,
StringIO,
)
-from itertools import combinations
import operator
... | This recently added test creates 25k tests and looks to add an extra 6-7 minutes in the CI. Reducing the coverage here to speed the test up | https://api.github.com/repos/pandas-dev/pandas/pulls/57221 | 2024-02-03T05:09:15Z | 2024-02-03T18:00:15Z | 2024-02-03T18:00:15Z | 2024-02-03T18:00:18Z |
CI: Fix using "python" instead of "sys.executable" | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 682d64244bc1f..d54592252206e 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -188,7 +188,7 @@ def validate_pep8(self):
file.write(content)
file.flush()
cmd = [
- ... | - [x] closes #57219
- [ ] [Tests added 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/57220 | 2024-02-03T03:25:52Z | 2024-02-03T11:30:00Z | 2024-02-03T11:30:00Z | 2024-02-03T22:21:13Z |
BUG: Fixing broken link in getting_started.md | diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md
index cb14e52edad2c..61ef26f984567 100644
--- a/web/pandas/getting_started.md
+++ b/web/pandas/getting_started.md
@@ -6,7 +6,7 @@ The next steps provides the easiest and recommended way to set up your
environment to use pandas. Other installati... | - [x] closes #57217
- [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/57218 | 2024-02-03T01:17:04Z | 2024-02-03T01:23:00Z | 2024-02-03T01:23:00Z | 2024-02-03T01:23:06Z |
BUG: ensure_string_array might modify read-only array inplace | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 806a46c248e15..53a9ac5236040 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -160,7 +160,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in :meth:`Series.astype` might modify read-only array inplace w... | We ran into this in Dask, it's quite the edge case... | https://api.github.com/repos/pandas-dev/pandas/pulls/57212 | 2024-02-02T13:51:24Z | 2024-02-04T18:15:37Z | 2024-02-04T18:15:37Z | 2024-02-04T18:16:05Z |
DOC: fix PR02 errors in docstrings - pandas.core.window.rolling.Rolling.quantile, pandas.core.window.expanding.Expanding.quantile | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 50baa1cb0b19f..f1a73c2bee5f9 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -178,9 +178,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.DataFrameGroupBy.hist\
pandas.core.groupby.DataFrameGroupBy.plot\
... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.window.rolling.Rolling.quantile
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.window.expanding.Expanding.quantile
OUTPUT:
1. scripts/validate_docstrings.... | https://api.github.com/repos/pandas-dev/pandas/pulls/57211 | 2024-02-02T08:14:40Z | 2024-02-02T11:59:14Z | 2024-02-02T11:59:14Z | 2024-02-02T17:59:49Z |
DOC: fix PR02 errors in docstrings - pandas.core.groupby.SeriesGroupBy.transform and pandas.core.groupby.DataFrameGroupBy.transform | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 50baa1cb0b19f..9e1239c72776e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -169,8 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Interval\
pandas.Grouper\
pandas.core.groupby.SeriesGroupBy.apply\
- ... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.SeriesGroupBy.transform
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.DataFrameGroupBy.transform
OUTPUT:
1. scripts/validate_docstrings.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/57210 | 2024-02-02T06:55:29Z | 2024-02-02T11:51:19Z | 2024-02-02T11:51:19Z | 2024-02-02T17:59:26Z |
REF: Remove internals.base | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ca488190a8704..207e3e7635cac 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -259,7 +259,7 @@
from pandas.core.groupby.generic import DataFrameGroupBy
from pandas.core.interchange.dataframe_protocol import DataFrame as DataFrameX... | - [x] closes #57187 (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/57208 | 2024-02-02T04:16:15Z | 2024-02-02T17:53:30Z | 2024-02-02T17:53:30Z | 2024-02-02T18:15:12Z |
DEPR: Enforce deprecation of groupby(...).grouper | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index f9117253b61c1..50744ed7a346c 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -102,6 +102,7 @@ Deprecations
Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... | - [ ] 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/57207 | 2024-02-02T03:32:27Z | 2024-02-02T22:54:29Z | 2024-02-02T22:54:29Z | 2024-02-02T23:00:53Z |
DOC: Fix minor typo in indexing.rst | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 4954ee1538697..7c8d3b9e1c869 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1730,7 +1730,7 @@ Returning a view versus a copy
.. warning::
:ref:`Copy-on-Write <copy_on_write>`
... | - [ ] 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/57206 | 2024-02-02T03:24:56Z | 2024-02-02T12:00:41Z | 2024-02-02T12:00:41Z | 2024-02-04T03:49:02Z |
PERF: Avoid Series constructor in DataFrame(dict(...), columns=) | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 3fdb4af52a8c0..ca50fd2037b69 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -166,6 +166,7 @@ Removal of prior version deprecations/changes
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- Perf... | - [ ] closes #24368 (Replace xxxx with the GitHub issue number)
- [ ] closed #25887
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
```python
import pandas as pd, numpy as np
a = pd.Series(np.array([1, 2, 3]))
columns = range(10_000)
data = {i... | https://api.github.com/repos/pandas-dev/pandas/pulls/57205 | 2024-02-02T02:36:52Z | 2024-02-24T00:13:52Z | 2024-02-24T00:13:52Z | 2024-02-24T00:13:55Z |
PDEP-14: Publish translations of pandas.pydata.org | diff --git a/web/pandas/pdeps/0014-translate-website-content.md b/web/pandas/pdeps/0014-translate-website-content.md
new file mode 100644
index 0000000000000..bffc6ae0a8081
--- /dev/null
+++ b/web/pandas/pdeps/0014-translate-website-content.md
@@ -0,0 +1,68 @@
+# PDEP-14: Publish translations of pandas.pydata.org
+
+- ... | Following up on the discussion in #56301, this PR adds a first draft for a PDEP proposing creation and publication of translations of the core website content.
To summarize, the [Scientific Python community and communications infrastructure grant](https://scientific-python.org/doc/scientific-python-community-and-com... | https://api.github.com/repos/pandas-dev/pandas/pulls/57204 | 2024-02-02T01:53:51Z | 2024-02-27T19:09:50Z | null | 2024-02-27T19:09:50Z |
Backport PR #57174 on branch 2.2.x (BUG: Interchange protocol implementation allows non-string column names) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 56e645d4c55db..13d5024b5a131 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -32,6 +32,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which was raising for Null... | Backport PR #57174: BUG: Interchange protocol implementation allows non-string column names | https://api.github.com/repos/pandas-dev/pandas/pulls/57203 | 2024-02-02T01:25:51Z | 2024-02-02T02:38:20Z | 2024-02-02T02:38:20Z | 2024-02-02T02:38:20Z |
Backport PR #57163 on branch 2.2.x (CI: Add macOS M1 CI) | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index a3cffb4b03b93..4c7aa1e1e49ee 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -214,7 +214,8 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
- os: [macos-latest, windows-la... | Backport PR #57163: CI: Add macOS M1 CI | https://api.github.com/repos/pandas-dev/pandas/pulls/57202 | 2024-02-02T00:53:33Z | 2024-02-02T02:37:48Z | 2024-02-02T02:37:48Z | 2024-02-02T02:37:49Z |
CLN: pyproject.toml | diff --git a/pyproject.toml b/pyproject.toml
index 96e8ea90afa59..d9e5b89b0f141 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -498,20 +498,10 @@ filterwarnings = [
"ignore::ResourceWarning:asyncio",
# From plotting doctests
"ignore:More than 20 figures have been opened:RuntimeWarning",
- # Will be fixed... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57201 | 2024-02-02T00:42:31Z | 2024-02-02T17:45:00Z | 2024-02-02T17:45:00Z | 2024-02-02T17:45:03Z |
STY: Enable some passing rules | diff --git a/pandas/_libs/tslibs/vectorized.pyi b/pandas/_libs/tslibs/vectorized.pyi
index de19f592da62b..f377c2e26ab81 100644
--- a/pandas/_libs/tslibs/vectorized.pyi
+++ b/pandas/_libs/tslibs/vectorized.pyi
@@ -1,7 +1,5 @@
-"""
-For cython types that cannot be represented precisely, closest-available
-python equivale... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57200 | 2024-02-01T20:34:35Z | 2024-02-02T17:43:22Z | 2024-02-02T17:43:22Z | 2024-02-02T17:43:25Z |
TST/CLN: Assorted | diff --git a/pandas/tests/config/test_localization.py b/pandas/tests/config/test_localization.py
index 3907f557d1075..844f67cd2d0ea 100644
--- a/pandas/tests/config/test_localization.py
+++ b/pandas/tests/config/test_localization.py
@@ -15,7 +15,6 @@
import pandas as pd
_all_locales = get_locales()
-_current_locale... | Only notable change is bumping up the tolerance in `test_dti_constructor_with_non_nano_now_today` xref https://github.com/pandas-dev/pandas/actions/runs/7746334432/job/21124335580 | https://api.github.com/repos/pandas-dev/pandas/pulls/57199 | 2024-02-01T20:01:12Z | 2024-02-02T17:43:33Z | 2024-02-02T17:43:33Z | 2024-02-02T17:43:35Z |
Backport PR #57173: BUG: pandas int extension dtypes has no attribute… | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 9002d9af2c602..56e645d4c55db 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -30,6 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which... | … byteorder
- [ ] 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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/57198 | 2024-02-01T19:45:08Z | 2024-02-01T21:15:39Z | 2024-02-01T21:15:39Z | 2024-02-01T21:15:40Z |
fix typo | diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py
index 67885fcaec852..e4502c031b1fb 100644
--- a/pandas/core/window/rolling.py
+++ b/pandas/core/window/rolling.py
@@ -952,7 +952,7 @@ class Window(BaseWindow):
If ``'left'``, the last point in the window is excluded from calculations.... | - [ ] 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/57194 | 2024-02-01T13:40:54Z | 2024-02-01T17:32:42Z | 2024-02-01T17:32:42Z | 2024-02-01T20:14:06Z |
CI: Pinning doc previewer action to current release | diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml
index b24a689078d4e..da9f6ac8bff78 100644
--- a/.github/workflows/comment-commands.yml
+++ b/.github/workflows/comment-commands.yml
@@ -24,7 +24,7 @@ jobs:
concurrency:
group: ${{ github.actor }}-preview-docs
s... | I don't think we'll have any doc previewer release that won't be done for pandas, but pinning the action to avoid automatic upgrades anyway. | https://api.github.com/repos/pandas-dev/pandas/pulls/57190 | 2024-02-01T05:07:12Z | 2024-02-01T17:14:56Z | 2024-02-01T17:14:55Z | 2024-02-01T17:15:04Z |
DEPR: Enforce deprecation of groupby(..., axis=1) | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index a25e2ed179b80..2a4d7791322e5 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -247,7 +247,7 @@ GroupBy object attributes
~~~~~~~~~~~~~~~~~~~~~~~~~
The ``groups`` attribute is a dictionar... | - [ ] 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/57186 | 2024-01-31T21:55:30Z | 2024-02-01T17:39:51Z | 2024-02-01T17:39:51Z | 2024-02-01T21:37:20Z |
CI: Fix generating requirements-dev.txt | diff --git a/requirements-dev.txt b/requirements-dev.txt
index 13691d114ece4..162e6caebcd8a 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -3,7 +3,7 @@
pip
versioneer[toml]
-cython~==3.0.5
+cython~=3.0.5
meson[ninja]==1.2.1
meson-python==0.13.1
pytest>=7.3.2
diff --git a/scripts/generate_pip_dep... | - [ ] 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/57185 | 2024-01-31T21:47:11Z | 2024-01-31T22:10:02Z | 2024-01-31T22:10:02Z | 2024-01-31T22:17:58Z |
Use ruff to detect banned import | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ccd01abc4affe..b7e43404b86bd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -299,13 +299,6 @@ repos:
files: ^pandas/core/
exclude: ^pandas/core/api\.py$
types: [python]
- - id: use-io-common-urlop... | There are several other potential replacement, I just open this PR first to check if this replacement is good or not. The newly added `noqa` in `pandas/io/common.py` shows that the check works.
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/57184 | 2024-01-31T21:22:40Z | 2024-02-05T17:31:50Z | 2024-02-05T17:31:50Z | 2024-03-17T07:53:18Z |
Migrate pylint to ruff | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 24b2de251ce8e..937af7e49c6d3 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -85,7 +85,7 @@ jobs:
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
if: ${{ steps.build.outcome ==... | Hi @mroeschke, while looking into the `pylint` rule, I noticed that most of them are currently gated behind the `preview` flag. Do you think we should enable the `preview` flag or wait some rules to be promoted to stable in `ruff==0.2.0` (should be released in the next few weeks)
Other than that, this PR is ready fo... | https://api.github.com/repos/pandas-dev/pandas/pulls/57182 | 2024-01-31T20:03:19Z | 2024-04-08T21:24:19Z | 2024-04-08T21:24:19Z | 2024-04-09T21:15:39Z |
Backport PR #57169 on branch 2.2.x (REGR: DataFrame.sort_index not producing stable sort) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 19b7e3493f964..713e3787825fb 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`merge_ordered` raising ``TypeError`` for ``fill_method="ffill... | Backport PR #57169: REGR: DataFrame.sort_index not producing stable sort | https://api.github.com/repos/pandas-dev/pandas/pulls/57180 | 2024-01-31T18:20:19Z | 2024-01-31T19:20:42Z | 2024-01-31T19:20:42Z | 2024-01-31T19:20:42Z |
Backport PR #57175 on branch 2.2.x (BUG: Interchange protocol implementation handles empty dataframes incorrectly) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 19b7e3493f964..4a20eda08937a 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -29,6 +29,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which... | Backport PR #57175: BUG: Interchange protocol implementation handles empty dataframes incorrectly | https://api.github.com/repos/pandas-dev/pandas/pulls/57179 | 2024-01-31T18:05:45Z | 2024-01-31T19:06:36Z | 2024-01-31T19:06:36Z | 2024-01-31T19:06:36Z |
BUG: Interchange protocol implementation handles empty dataframes incorrectly | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 19b7e3493f964..4a20eda08937a 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -29,6 +29,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which... | - [ ] closes #56700 (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/57175 | 2024-01-31T14:31:00Z | 2024-01-31T18:05:14Z | 2024-01-31T18:05:14Z | 2024-01-31T18:05:22Z |
BUG: Interchange protocol implementation allows non-string column names | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 56e645d4c55db..13d5024b5a131 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -32,6 +32,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which was raising for Null... | - [ ] closes #56701 (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/57174 | 2024-01-31T14:22:15Z | 2024-02-02T01:25:43Z | 2024-02-02T01:25:43Z | 2024-02-02T01:26:35Z |
BUG: pandas int extension dtypes has no attribute byteorder | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 9002d9af2c602..56e645d4c55db 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -30,6 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fixed bug in :func:`pandas.api.interchange.from_dataframe` which... | - [ ] closes #55069 (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/57173 | 2024-01-31T14:04:12Z | 2024-02-01T19:04:29Z | 2024-02-01T19:04:28Z | 2024-03-01T13:54:29Z |
MAINT: Adjust the codebase to the new `np.array`'s `copy` keyword meaning | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index ee6f00b219a15..5c933294fb944 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -102,7 +102,7 @@ def quantile_with_mask(
interpolation=interpolation,
)
- ... | Hi!
This PR addresses changes planned for NumPy in https://github.com/numpy/numpy/pull/25168 (new `copy` keyword for `np.asarray` and `np.array`).
`np.array(..., copy=False)` will now throw and exception if a copy is needed. To retain the same behavior `np.asarray(...)` can be used, so a copy is made only when n... | https://api.github.com/repos/pandas-dev/pandas/pulls/57172 | 2024-01-31T13:54:14Z | 2024-03-05T21:46:23Z | 2024-03-05T21:46:23Z | 2024-03-06T08:14:42Z |
REGR: Series.astype raising TypeError when converting a pyarrow integer type with nulls to numpy float | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 69e14a9028dd3..cea2204ca8355 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -29,7 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`ExtensionArray.to_numpy` raising for non-numeric masked dtype... | - [x] closes #57093
- [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/57170 | 2024-01-31T12:31:12Z | 2024-02-10T01:23:03Z | null | 2024-02-10T01:23:03Z |
REGR: DataFrame.sort_index not producing stable sort | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 19b7e3493f964..713e3787825fb 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`merge_ordered` raising ``TypeError`` for ``fill_method="ffill... | - [x] closes #57151
- [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/57169 | 2024-01-31T11:37:11Z | 2024-01-31T18:20:11Z | 2024-01-31T18:20:11Z | 2024-01-31T18:20:17Z |
Fix docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f3023bea3743e..57bc89f526afc 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.TimedeltaIndex.ceil\
pandas.PeriodIndex\
pandas.PeriodIndex.strftime\
- ... | - [ ] xref #57111 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/57167 | 2024-01-31T08:24:55Z | 2024-01-31T17:51:34Z | 2024-01-31T17:51:34Z | 2024-01-31T17:51:43Z |
Fix docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f3023bea3743e..0f4f0d9129c16 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.TimedeltaIndex.ceil\
pandas.PeriodIndex\
pandas.PeriodIndex.strftime\
- ... | - [ ] xref #27977 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/57166 | 2024-01-31T07:16:54Z | 2024-01-31T08:11:14Z | null | 2024-01-31T08:11:22Z |
WEB: Adding Effective pandas 2 book to home page | diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md
index cb14e52edad2c..17ff14caf1b60 100644
--- a/web/pandas/getting_started.md
+++ b/web/pandas/getting_started.md
@@ -42,7 +42,7 @@ The book we recommend to learn pandas is [Python for Data Analysis](https://amzn
by [Wes McKinney](https://wesmc... | @mattharrison I think you discussed this with @phofl, I need the affiliated link before it's published.
Also, I changed the color palette of the book cover to reduce the size of the file. I don't think it's easy to notice, but if you want to have a look, to make sure you're happy with it. Thanks!
| https://api.github.com/repos/pandas-dev/pandas/pulls/57164 | 2024-01-31T05:23:00Z | 2024-02-10T15:47:13Z | 2024-02-10T15:47:13Z | 2024-02-10T15:47:22Z |
CI: Add macOS M1 CI | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index a3cffb4b03b93..4c7aa1e1e49ee 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -214,7 +214,8 @@ jobs:
timeout-minutes: 90
strategy:
matrix:
- os: [macos-latest, windows-la... | - [ ] closes #47443 (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/57163 | 2024-01-31T02:23:18Z | 2024-02-02T00:53:05Z | 2024-02-02T00:53:05Z | 2024-02-02T00:53:24Z |
Timestamp 'freq' is removed in GH 14146, not moved to kw-only arg. Removal is … | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index be63da09846c8..16f53719ff3a7 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -732,7 +732,7 @@ or, if your formats are all ISO8601 (but possibly not identically-formatted) ::
Other API changes
^^^^^... | …already captured under 'Removal of prior version deprecations/changes'
- [ ] 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 [co... | https://api.github.com/repos/pandas-dev/pandas/pulls/57162 | 2024-01-31T01:32:35Z | 2024-01-31T18:23:14Z | 2024-01-31T18:23:14Z | 2024-01-31T18:23:27Z |
Backport PR #57157 on branch 2.2.x (BUG: Fix to_dict with datelike types and orient=list) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 1302648c3fc9a..19b7e3493f964 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`merge_ordered` raising ``TypeError`` for ``fill_method="ffill... | Backport PR #57157: BUG: Fix to_dict with datelike types and orient=list | https://api.github.com/repos/pandas-dev/pandas/pulls/57160 | 2024-01-31T00:18:40Z | 2024-01-31T01:52:25Z | 2024-01-31T01:52:25Z | 2024-01-31T01:52:26Z |
CLN: `to_dict` | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 97f4eaa7c208a..d3f1c2970429e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -89,7 +89,6 @@
find_common_type,
infer_dtype_from_scalar,
invalidate_string_dtypes,
- maybe_box_native,
maybe_downcast_to_dtype,
)
from pan... | * Moved `DataFrame._create_data_for_split_and_tight_to_dict` to an independent function
* Eliminated some extra loops | https://api.github.com/repos/pandas-dev/pandas/pulls/57159 | 2024-01-30T23:14:55Z | 2024-01-31T02:45:31Z | 2024-01-31T02:45:31Z | 2024-01-31T02:45:34Z |
BUG: Fix to_dict with datelike types and orient=list | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 1302648c3fc9a..19b7e3493f964 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`merge_ordered` raising ``TypeError`` for ``fill_method="ffill... | - [ ] closes #57125 (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/57157 | 2024-01-30T21:49:48Z | 2024-01-31T00:18:32Z | 2024-01-31T00:18:32Z | 2024-01-31T00:18:36Z |
CI: Remove redundant check | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index de59c59affb22..ccd01abc4affe 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -101,8 +101,6 @@ repos:
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- - id: python-check-blanket-noqa
- ... | I removed 2 checks that's already covered in `ruff`'s [`PGH003`](https://docs.astral.sh/ruff/rules/blanket-type-ignore/) and [`PGH004`](https://docs.astral.sh/ruff/rules/blanket-noqa/)
The second commit is just an example that the check works. Will revert before merging if approved.
```bash
ruff.................... | https://api.github.com/repos/pandas-dev/pandas/pulls/57156 | 2024-01-30T21:38:09Z | 2024-01-31T18:27:37Z | 2024-01-31T18:27:37Z | 2024-01-31T19:02:56Z |
CLN: Remove pickle support pre-pandas 1.0 | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index c5ac2a800223b..a6d9e079b26fe 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -85,7 +85,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
Other API changes
^^^^^^^^... | For a major pandas 3.0 release, I think it's reasonable that pickle support for pre-pandas 1.0 can be removed by now. | https://api.github.com/repos/pandas-dev/pandas/pulls/57155 | 2024-01-30T20:08:58Z | 2024-02-12T22:13:58Z | null | 2024-02-21T21:10:03Z |
Backport PR #57144 on branch 2.2.x (CI: Fix _get_dst_hours for numpy 2.0 change) | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index 2c4f0cd14db13..e3facd3d9599b 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -607,7 +607,8 @@ cdef ndarray[int64_t] _get_dst_hours(
ndarray[uint8_t, cast=True] mismatch... | Backport PR #57144: CI: Fix _get_dst_hours for numpy 2.0 change | https://api.github.com/repos/pandas-dev/pandas/pulls/57153 | 2024-01-30T16:34:14Z | 2024-01-30T17:46:41Z | 2024-01-30T17:46:41Z | 2024-01-30T17:46:41Z |
DOC: Updated community slack link | diff --git a/doc/source/development/community.rst b/doc/source/development/community.rst
index 9a4de3c2580ab..ccf7be8e47748 100644
--- a/doc/source/development/community.rst
+++ b/doc/source/development/community.rst
@@ -112,7 +112,7 @@ people who are hesitant to bring up their questions or ideas on a large public
mai... | - [X] closes #57099 (Replace xxxx with the GitHub issue number)
| https://api.github.com/repos/pandas-dev/pandas/pulls/57146 | 2024-01-30T06:50:07Z | 2024-01-30T07:38:32Z | 2024-01-30T07:38:32Z | 2024-01-30T07:43:13Z |
DOC: fix PR02 errors in docstrings - pandas.core.groupby.SeriesGroupBy.idxmax, pandas.core.groupby.SeriesGroupBy.idxmin | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c3ee7a4e262fc..50baa1cb0b19f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -173,8 +173,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.DataFrameGroupBy.transform\
pandas.core.groupby.DataFrameGroupBy.n... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.SeriesGroupBy.idxmax
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.core.groupby.SeriesGroupBy.idxmin
OUTPUT:
1. scripts/validate_docstrings.py --for... | https://api.github.com/repos/pandas-dev/pandas/pulls/57145 | 2024-01-30T05:45:50Z | 2024-02-01T21:34:49Z | 2024-02-01T21:34:49Z | 2024-02-01T21:52:54Z |
CI: Fix _get_dst_hours for numpy 2.0 change | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index 2c4f0cd14db13..e3facd3d9599b 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -607,7 +607,8 @@ cdef ndarray[int64_t] _get_dst_hours(
ndarray[uint8_t, cast=True] mismatch... | xref https://github.com/numpy/numpy/pull/25570
I don't think we can make this annotation backwards compatible, so removing the annotation all together. | https://api.github.com/repos/pandas-dev/pandas/pulls/57144 | 2024-01-30T02:38:09Z | 2024-01-30T16:34:04Z | 2024-01-30T16:34:04Z | 2024-01-30T18:33:14Z |
Backport PR #57139 on branch 2.2.x (BUG: Index(Series) makes array read only for object dtype) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..adf79ef5e7714 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -27,7 +27,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed bug in :meth:`DataFrame.__getitem__` for empty :class:`... | Backport PR #57139: BUG: Index(Series) makes array read only for object dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/57143 | 2024-01-30T02:17:43Z | 2024-01-30T04:37:17Z | 2024-01-30T04:37:17Z | 2024-01-30T04:37:17Z |
Backport PR #57061 on branch 2.2.x (REGR: non-unique, masked dtype index raising IndexError) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..386e8cbc51f6f 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed performance regression in :meth:`Series.combine_first` (:issue:`55845`)
- Fixed r... | Backport PR #57061: REGR: non-unique, masked dtype index raising IndexError | https://api.github.com/repos/pandas-dev/pandas/pulls/57142 | 2024-01-30T02:15:35Z | 2024-01-30T04:37:02Z | 2024-01-30T04:37:02Z | 2024-01-30T04:37:02Z |
Backport PR #57102 on branch 2.2.x (ENH: Add skipna to groupby.first and groupby.last) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..589903ddcca71 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -34,7 +34,8 @@ Bug fixes
Other
~~~~~
--
+- Added the argument ``skipna`` to :meth:`DataFrameGroupBy.first`, :meth:`DataF... | Backport PR #57102: ENH: Add skipna to groupby.first and groupby.last | https://api.github.com/repos/pandas-dev/pandas/pulls/57141 | 2024-01-30T02:14:51Z | 2024-01-30T04:36:43Z | 2024-01-30T04:36:43Z | 2024-03-18T12:03:56Z |
Validate `dir` for `pd.errors` and `pd.util` | diff --git a/doc/source/reference/index.rst b/doc/source/reference/index.rst
index 7da02f7958416..7f4d05414d254 100644
--- a/doc/source/reference/index.rst
+++ b/doc/source/reference/index.rst
@@ -24,13 +24,14 @@ The following subpackages are public.
`pandas-stubs <https://github.com/pandas-dev/pandas-stubs>`_ packa... | * Validates `dir(pd.errors)` matches `pd.errors.__all__` moved some items that were in the init to a new file since some of the items didn't seem to semantically belong there
* Validate `dir(pd.util)` shows the public apis in the directory. | https://api.github.com/repos/pandas-dev/pandas/pulls/57140 | 2024-01-30T02:13:20Z | 2024-01-31T19:11:45Z | 2024-01-31T19:11:45Z | 2024-01-31T19:11:48Z |
BUG: Index(Series) makes array read only for object dtype | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..adf79ef5e7714 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -27,7 +27,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed bug in :meth:`DataFrame.__getitem__` for empty :class:`... | - [ ] closes #57130 (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/57139 | 2024-01-30T00:51:26Z | 2024-01-30T02:17:36Z | 2024-01-30T02:17:36Z | 2024-01-30T09:58:11Z |
CI: Fix numpydev tz_localize_to_utc | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 4b804598681fa..9655ce507aade 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -933,7 +933,6 @@ def tz_convert(self, tz) -> Self:
dtype = tz_to_dtype(tz, unit=self.unit)
return self... | - [ ] 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/57138 | 2024-01-29T23:25:10Z | 2024-01-30T02:22:31Z | null | 2024-01-30T02:22:33Z |
DEPR: removed deprecated argument `obj` from GroupBy `get_group` | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 6d41c29a6c614..ebcfd16f92d29 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -96,6 +96,13 @@ Deprecations
- Deprecated :meth:`Timestamp.utcnow`, use ``Timestamp.now("UTC")`` instead (:issue:`56680`)
... | - xref #53571
- removed deprecated argument `obj` from GroupBy `get_group`
- added an entry in the doc/source/whatsnew/v3.0.0.rst
| https://api.github.com/repos/pandas-dev/pandas/pulls/57136 | 2024-01-29T22:34:05Z | 2024-01-31T03:05:17Z | 2024-01-31T03:05:17Z | 2024-01-31T03:05:33Z |
Backport PR #57122 on branch 2.2.x (CI: autouse add_doctest_imports) | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 983272d79081e..a11d9c2b4b2a1 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -190,10 +190,6 @@ def pytest_collection_modifyitems(items, config) -> None:
if is_doctest:
for item in items:
- # autouse=True for the add_doctes... | Backport PR #57122: CI: autouse add_doctest_imports | https://api.github.com/repos/pandas-dev/pandas/pulls/57135 | 2024-01-29T22:01:37Z | 2024-01-29T22:48:32Z | 2024-01-29T22:48:32Z | 2024-01-29T22:48:32Z |
CLN: The smallest typo correction, "engine" lacked an "n". | diff --git a/pandas/_typing.py b/pandas/_typing.py
index fa9dc14bb4bd7..0233fbbcf3a12 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -332,7 +332,7 @@ def readline(self) -> AnyStr_co:
@property
def closed(self) -> bool:
- # for enine=pyarrow
+ # for engine=pyarrow
...
| The title is pretty descriptive, was checking some pyarrow stuff and stumbled onto this. I apologize if a PR was not needed. Have a good one!
| https://api.github.com/repos/pandas-dev/pandas/pulls/57134 | 2024-01-29T21:18:17Z | 2024-01-29T22:14:28Z | 2024-01-29T22:14:28Z | 2024-01-29T22:16:46Z |
Backport PR #57101 on branch 2.2.x (REGR: Index.join raising TypeError when joining an empty index to a mixed type index) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 660594c98e0f2..ff5fadec735e6 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :func:`wide_to_long` raising an ``AttributeError`` for string column... | Backport PR #57101: REGR: Index.join raising TypeError when joining an empty index to a mixed type index | https://api.github.com/repos/pandas-dev/pandas/pulls/57133 | 2024-01-29T19:53:49Z | 2024-01-29T20:53:49Z | 2024-01-29T20:53:49Z | 2024-01-29T20:53:50Z |
Backport PR #57126 on branch 2.2.x (Bump pypa/cibuildwheel from 2.16.2 to 2.16.4) | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 841559c8e9799..6d3b9048a2122 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,7 +139,7 @@ jobs:
- name: Build normal wheels
if: ${{ (env.IS_SCHEDULE_DISPATCH != 'true' || env.IS_PUSH ==... | Backport PR #57126: Bump pypa/cibuildwheel from 2.16.2 to 2.16.4 | https://api.github.com/repos/pandas-dev/pandas/pulls/57132 | 2024-01-29T19:21:11Z | 2024-01-29T20:53:39Z | 2024-01-29T20:53:39Z | 2024-01-29T20:53:39Z |
Fix typo in missing_data.rst | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 4a2aa565dd15c..7ee77b7648486 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -30,7 +30,7 @@ use :class:`api.types.NaTType`.
pd.Series(["2020", "2020"], dtype=pd.Peri... | <img width="736" alt="Screen Shot 2024-01-29 at 10 58 11 AM" src="https://github.com/pandas-dev/pandas/assets/48232/1c2b9c87-9acc-43a6-8fe2-19a3a131c9c1">
| https://api.github.com/repos/pandas-dev/pandas/pulls/57131 | 2024-01-29T17:58:38Z | 2024-01-29T19:18:09Z | 2024-01-29T19:18:09Z | 2024-01-29T19:18:15Z |
Try to enable some aspects of LSAN | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index a3cffb4b03b93..10c21613403f4 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -102,7 +102,7 @@ jobs:
- name: "ASAN / UBSAN"
env_file: actions-311-sanitizers.yaml
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57129 | 2024-01-29T16:39:30Z | 2024-03-19T20:12:47Z | null | 2024-03-19T20:12:48Z |
CI: avoid DeprecationWarning in validate_min_versions_in_sync script | diff --git a/scripts/validate_min_versions_in_sync.py b/scripts/validate_min_versions_in_sync.py
index 7dd3e96e6ec18..f8cce255f532d 100755
--- a/scripts/validate_min_versions_in_sync.py
+++ b/scripts/validate_min_versions_in_sync.py
@@ -143,7 +143,7 @@ def clean_version_list(
yaml_versions: list[str], toml_version... | this warning is showing up in CI because of the extra whitespace here
https://github.com/pandas-dev/pandas/blob/09cb36710aab9d9a724602aa7ccfde33fbc51f63/scripts/tests/data/deps_expected_random.yaml#L41
which then goes to the `except` arm in
https://github.com/pandas-dev/pandas/blob/ffc583966451fd26cdd4c350018... | https://api.github.com/repos/pandas-dev/pandas/pulls/57127 | 2024-01-29T08:58:27Z | 2024-01-31T18:25:24Z | 2024-01-31T18:25:24Z | 2024-01-31T18:25:36Z |
Bump pypa/cibuildwheel from 2.16.2 to 2.16.4 | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 841559c8e9799..6d3b9048a2122 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,7 +139,7 @@ jobs:
- name: Build normal wheels
if: ${{ (env.IS_SCHEDULE_DISPATCH != 'true' || env.IS_PUSH ==... | Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.16.2 to 2.16.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p>
<blockquote>
<h2>v2.16.4</h2>
<p>🛠 Update manylinux pins to upgrade fr... | https://api.github.com/repos/pandas-dev/pandas/pulls/57126 | 2024-01-29T08:21:01Z | 2024-01-29T19:20:45Z | 2024-01-29T19:20:45Z | 2024-01-29T19:20:48Z |
CI: autouse add_doctest_imports | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 94805313ccfc1..c70edeb6ad8ec 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -190,10 +190,6 @@ def pytest_collection_modifyitems(items, config) -> None:
if is_doctest:
for item in items:
- # autouse=True for the add_doctes... | - [ ] 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/57122 | 2024-01-29T03:53:57Z | 2024-01-29T22:01:29Z | 2024-01-29T22:01:29Z | 2024-01-29T22:37:37Z |
REGR: Fix to_numpy for masked array with non-numeric dtype | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 883627bd4b19b..009d4794dbd1d 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -17,12 +17,15 @@ Fixed regressions
- Fixed performance regression in :meth:`Series.combine_first` (:issue:`55845`)
- Fixed... | - [ ] closes #56991 (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/57121 | 2024-01-29T00:01:05Z | 2024-02-09T22:04:56Z | 2024-02-09T22:04:56Z | 2024-02-09T22:05:15Z |
Backport PR #57089 on branch 2.2.x (BUG: wide_to_long with string columns) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index b9b2821ebc468..660594c98e0f2 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -16,6 +16,7 @@ Fixed regressions
- Fixed memory leak in :func:`read_csv` (:issue:`57039`)
- Fixed performance regression i... | Backport PR #57089: BUG: wide_to_long with string columns | https://api.github.com/repos/pandas-dev/pandas/pulls/57120 | 2024-01-28T23:55:41Z | 2024-01-29T03:44:40Z | 2024-01-29T03:44:40Z | 2024-01-29T03:44:40Z |
DEPR: Enforce deprecation of ArrayManager | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index a283afd1f0f1e..eead38dffaff4 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -593,8 +593,6 @@ def setup(self):
N = 10000
# this is the worst case, where ev... | - [ ] 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/57118 | 2024-01-28T18:24:36Z | 2024-01-31T23:34:04Z | 2024-01-31T23:34:04Z | 2024-01-31T23:39:05Z |
DOC: fix PR02 errors in docstrings - pandas.describe_option, pandas.get_option, pandas.reset_option | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c0a26edd230eb..484cde210cb95 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -162,9 +162,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.tseries.offsets.Milli\
pandas.tseries.offsets.Micro\
pandas.tseries.of... | Test results:
Describe_option
```
$ scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.describe_option
...
################################################################################
################################## Validation ##################################
##########################... | https://api.github.com/repos/pandas-dev/pandas/pulls/57117 | 2024-01-28T11:21:15Z | 2024-01-29T19:37:17Z | 2024-01-29T19:37:17Z | 2024-01-30T07:11:20Z |
BUG: fix `Series.value_counts` with `sort=False` returns result sorted on values for Series with string dtype | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 73201fa93a8aa..ceaf3a953f046 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -152,7 +152,7 @@ Conversion
Strings
^^^^^^^
--
+- Bug in :meth:`Series.value_counts` would not respect ``sort=False`` fo... |
- [x] closes #55224 (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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/57116 | 2024-01-28T09:31:23Z | 2024-01-29T00:04:25Z | 2024-01-29T00:04:25Z | 2024-01-29T04:09:59Z |
fix: bug solution | diff --git a/pandas/tests/interchange/__init__.py b/pandas/tests/interchange/__init__.py
index e69de29bb2d1d..955d0955296c8 100644
--- a/pandas/tests/interchange/__init__.py
+++ b/pandas/tests/interchange/__init__.py
@@ -0,0 +1,11 @@
+import pandas as pd
+from datetime import datetime
+df = pd.Series(
+ [datetime(20... | - [ ] 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/57115 | 2024-01-28T09:15:42Z | 2024-01-28T19:27:10Z | null | 2024-01-28T19:27:10Z |
DOC: fix PR02 errors in docstrings - pandas.Series.interpolate, pandas.read_hdf, pandas.HDFStore.append | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c0a26edd230eb..a1ca16cfa444d 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -95,7 +95,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.PeriodIndex.strftime\
pandas.Series.clip\
pandas.Series.rename_axis\
- ... | All PR02 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.Series.interpolate
2. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.read_hdf
3. scripts/validate_docstrings.py --format=actions --errors=PR02 pandas.HDFStore.ap... | https://api.github.com/repos/pandas-dev/pandas/pulls/57114 | 2024-01-28T09:10:28Z | 2024-01-29T18:43:18Z | 2024-01-29T18:43:18Z | 2024-01-30T03:12:34Z |
bug solution | diff --git a/pandas/tests/interchange/__init__.py b/pandas/tests/interchange/__init__.py
index e69de29bb2d1d..955d0955296c8 100644
--- a/pandas/tests/interchange/__init__.py
+++ b/pandas/tests/interchange/__init__.py
@@ -0,0 +1,11 @@
+import pandas as pd
+from datetime import datetime
+df = pd.Series(
+ [datetime(20... | - [ ] 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/57113 | 2024-01-28T09:03:12Z | 2024-01-28T09:03:46Z | null | 2024-01-28T09:11:31Z |
CI: Use new documentation previewer | diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml
index 425abef850184..b24a689078d4e 100644
--- a/.github/workflows/comment-commands.yml
+++ b/.github/workflows/comment-commands.yml
@@ -24,12 +24,10 @@ jobs:
concurrency:
group: ${{ github.actor }}-preview-docs
... | - [X] closes #50832
We've got a documentation previewer service for few months now, but the whole infrastructure powering it was just a PoC not very suitable for the long term (it didn't have error control, was running in a screen session, the workflow wasn't optimal, a github token was hardcoded, it required to rem... | https://api.github.com/repos/pandas-dev/pandas/pulls/57112 | 2024-01-28T08:27:26Z | 2024-01-31T17:43:26Z | 2024-01-31T17:43:26Z | 2024-02-01T05:08:16Z |
DEPR: Enforce deprecation of removing axis from all groupby ops | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f3023bea3743e..70d3efb80fd84 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -181,6 +181,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.rolling\
pandas.core.groupby.DataFrameGroupBy.hist\
... | - [ ] 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/57109 | 2024-01-28T02:50:41Z | 2024-01-31T18:39:06Z | 2024-01-31T18:39:06Z | 2024-01-31T21:29:45Z |
TYP: misc return values | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index b74883dbe5734..6a0e544afafbf 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -60,8 +60,10 @@
Any,
Callable,
Generic,
+ Literal,
NamedTuple,
cast,
+ overload,
)
import warnings
@@ -740,7 +742... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57108 | 2024-01-27T23:42:09Z | 2024-01-29T19:24:51Z | 2024-01-29T19:24:51Z | 2024-01-29T19:24:57Z |
DOC: Update meeseeksmachine reference | diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst
index c7803d8401e4e..832e89c62e658 100644
--- a/doc/source/development/maintaining.rst
+++ b/doc/source/development/maintaining.rst
@@ -222,17 +222,17 @@ Since pandas minor releases are based on GitHub branches (e.g. point rele... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57107 | 2024-01-27T22:20:29Z | 2024-01-29T18:44:53Z | null | 2024-01-29T18:45:00Z |
Backport PR #57078 on branch 2.2.x (54628 fix find stack level memory leak) | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index f11dc11f6ac0d..c9a287942f2da 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -218,7 +218,12 @@ def _assert_raised_with_correct_stacklevel(
frame = inspect.currentframe()
for _ in range(4):
f... | Backport PR #57078: 54628 fix find stack level memory leak | https://api.github.com/repos/pandas-dev/pandas/pulls/57105 | 2024-01-27T18:03:22Z | 2024-01-27T19:38:02Z | 2024-01-27T19:38:02Z | 2024-01-27T19:38:02Z |
ENH: Add check for character limmit | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 6d41c29a6c614..ec6172b4a7ba6 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -28,7 +28,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
--
+- :func:`DataFrame.to_excel` now raises an ``UserW... | - [x] closes #56954 (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/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/57103 | 2024-01-27T08:07:57Z | 2024-02-01T21:37:06Z | 2024-02-01T21:37:06Z | 2024-02-02T02:27:57Z |
ENH: Add skipna to groupby.first and groupby.last | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index ff5fadec735e6..589903ddcca71 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -34,7 +34,8 @@ Bug fixes
Other
~~~~~
--
+- Added the argument ``skipna`` to :meth:`DataFrameGroupBy.first`, :meth:`DataF... | - [x] closes #57019 (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/57102 | 2024-01-27T04:49:08Z | 2024-01-30T02:14:25Z | 2024-01-30T02:14:25Z | 2024-01-30T03:14:53Z |
REGR: Index.join raising TypeError when joining an empty index to a mixed type index | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index b9b2821ebc468..441d98e6ea106 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`merge_ordered` raising ``TypeError`` for ``fill_method="ffill... | - [x] closes #57048
- [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/57101 | 2024-01-27T03:30:35Z | 2024-01-29T19:53:42Z | 2024-01-29T19:53:41Z | 2024-01-29T19:53:48Z |
DOCS: DataFrame.any() and DataFrame.all() documentation specifies the… | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 91a4271509421..d64404c0f3924 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -13081,8 +13081,8 @@ def last_valid_index(self) -> Hashable | None:
Returns
-------
{name1} or {name2}
- If level is specified, then, {name2} is retur... | … wrong return types
- [x] closes #57088
- [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_codebas... | https://api.github.com/repos/pandas-dev/pandas/pulls/57098 | 2024-01-27T01:49:13Z | 2024-02-29T00:56:43Z | null | 2024-02-29T00:56:43Z |
Remove parts that reference bfill,ffill,pad,backfill in limit_direction | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index b3e86b4360d74..5149d2a2eba30 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -977,20 +977,6 @@ def interpolate(
limit_direction : {{'forward', 'backward', 'both'}}, Optional
Consecutive NaNs will be filled i... | This PR is related to the issue #57092. It removes the parts that reference `bfill`, `ffill`, `pad`, and `backfill` as allowable methods under limit_direction as they are not supported.
- [x] closes #57092
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.ht... | https://api.github.com/repos/pandas-dev/pandas/pulls/57097 | 2024-01-27T01:27:51Z | 2024-02-28T17:45:18Z | null | 2024-02-28T17:45:18Z |
CLN: Move capitalize_first_letter to where it's used | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 5b51bc9debb33..a6a5f142faf1c 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -62,8 +62,6 @@
is_list_like,
)
-from pandas.util import capitalize_first_letter
-
if not pa_version_under10p1:
import ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57096 | 2024-01-26T23:08:47Z | 2024-02-02T13:43:57Z | 2024-02-02T13:43:57Z | 2024-02-02T17:42:25Z |
CVE 2020 13091 | diff --git a/INFO b/INFO
new file mode 100644
index 0000000000000..6e7aee30b3484
--- /dev/null
+++ b/INFO
@@ -0,0 +1,30 @@
+### tests
+
+updated /tests/io/test_pickle.py
+did not write the compatibility tests for older pandas versions yet
+
+###
+
+# call this file pickle_config.yml
+# this is meant to configure pickle... | - [ ] 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/57094 | 2024-01-26T19:24:53Z | 2024-01-26T19:49:11Z | null | 2024-01-26T19:53:40Z |
Remove support for `py.path` objects in IO readers | diff --git a/doc/source/conf.py b/doc/source/conf.py
index be6150d4e54ba..cb7352341eedd 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -460,7 +460,6 @@
"dateutil": ("https://dateutil.readthedocs.io/en/latest/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"numpy... | This library is in maintenance mode and recommends `pathlib` objects so removing support for this object in IO methods.
https://py.readthedocs.io/en/latest/path.html#py-path | https://api.github.com/repos/pandas-dev/pandas/pulls/57091 | 2024-01-26T18:51:18Z | 2024-01-26T22:35:27Z | 2024-01-26T22:35:27Z | 2024-01-26T22:35:30Z |
Backport PR #57084 on branch 2.2.x (Fix mem leak in read_csv) | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 9ac83db4f85b9..dae6107db4d92 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -408,6 +408,9 @@ def time_read_stringcsv(self, engine):
def time_read_bytescsv(self, engine):
read_csv(self.da... | Backport PR #57084: Fix mem leak in read_csv | https://api.github.com/repos/pandas-dev/pandas/pulls/57090 | 2024-01-26T18:42:06Z | 2024-01-26T19:50:09Z | 2024-01-26T19:50:09Z | 2024-01-26T19:50:09Z |
BUG: wide_to_long with string columns | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 23da4a7f6ab25..5d60eae8f5ed0 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -15,6 +15,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed performance regression in :meth:`Series.combine_first` (:issue:... | - [ ] closes #57066 (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/57089 | 2024-01-26T18:37:00Z | 2024-01-28T23:54:39Z | 2024-01-28T23:54:39Z | 2024-01-29T03:42:44Z |
Backport PR #57046 on branch 2.2.x (REGR: groupby.idxmin/idxmax wrong result on extreme values) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 93965ffed23d3..23da4a7f6ab25 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -15,6 +15,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed performance regression in :meth:`Series.combine_first` (:issue:... | Backport PR #57046: REGR: groupby.idxmin/idxmax wrong result on extreme values | https://api.github.com/repos/pandas-dev/pandas/pulls/57086 | 2024-01-26T17:20:17Z | 2024-01-26T18:41:39Z | 2024-01-26T18:41:39Z | 2024-01-26T18:41:39Z |
Fix mem leak in read_csv | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 9ac83db4f85b9..dae6107db4d92 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -408,6 +408,9 @@ def time_read_stringcsv(self, engine):
def time_read_bytescsv(self, engine):
read_csv(self.da... | Pending validation but I believe this fixes #57039
Initially I misread this function was branching based off a return value that was always 0, but the actual value lies in the side effects | https://api.github.com/repos/pandas-dev/pandas/pulls/57084 | 2024-01-26T13:35:55Z | 2024-01-26T18:41:59Z | 2024-01-26T18:41:59Z | 2024-01-26T19:04:22Z |
Update install.rst to match the newest code | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index b54a220f74ca3..b2d137f12555e 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -277,11 +277,12 @@ Installable with ``pip install "pandas[excel]"``.
======================... | enhancing the Excel files related documents of pandas | https://api.github.com/repos/pandas-dev/pandas/pulls/57081 | 2024-01-26T04:18:41Z | 2024-01-26T19:51:00Z | 2024-01-26T19:51:00Z | 2024-01-26T19:51:06Z |
BUG: np.matmul with Index raising TypeError | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 950082f9281c5..7f2c90bc89a9a 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -142,7 +142,7 @@ Timezones
Numeric
^^^^^^^
--
+- Bug in ``np.matmul`` with :class:`Index` inputs raising a ``TypeError``... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/57079 | 2024-01-26T01:46:49Z | 2024-01-29T00:01:46Z | 2024-01-29T00:01:46Z | 2024-01-29T03:42:29Z |
54628 fix find stack level memory leak | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 731a6df776c4c..cff28f6a20472 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -220,7 +220,12 @@ def _assert_raised_with_correct_stacklevel(
frame = inspect.currentframe()
for _ in range(4):
f... | - [ ] closes #54628 (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/57078 | 2024-01-26T01:25:06Z | 2024-01-26T19:59:36Z | 2024-01-26T19:59:36Z | 2024-01-27T18:03:20Z |
BUG: PeriodIndex.asfreq silently converts offset to period | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index b2f1933800fd3..563c4308d8d43 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -17,7 +17,10 @@
Resolution,
Tick,
)
-from pandas._libs.tslibs.dtypes import OFFSET_TO_PERIOD_FREQSTR
+from pandas._li... | xref #52064
`PeriodIndex.asfreq` silently converts for offsets such as `offsets.MonthBegin()`, `offsets.BusinessMonthEnd()`, etc. (with no attribute `'_period_dtype_code'`) frequency to period frequency (in this case `'M'`).
Reproducible Example:
```
>>> import pandas as pd
>>> from pandas.tseries import offse... | https://api.github.com/repos/pandas-dev/pandas/pulls/57075 | 2024-01-25T22:30:17Z | 2024-02-07T14:04:08Z | null | 2024-02-07T14:04:08Z |
BUG: Index.join with different names doesn't return None name | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 915b7744302c0..7e731462b1e67 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -157,9 +157,6 @@ Performance improvements
Bug fixes
~~~~~~~~~
-- Fixed bug in :meth:`DataFrame.join` inconsistently sett... | - [ ] closes #57065 (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/57074 | 2024-01-25T18:37:28Z | 2024-03-18T18:56:41Z | null | 2024-03-20T17:21:01Z |
Backport PR #57034 on branch 2.2.x (REGR: perf regression in Series.combine_first) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index d3065cdd8b624..93965ffed23d3 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed performance regression i... | Backport PR #57034: REGR: perf regression in Series.combine_first | https://api.github.com/repos/pandas-dev/pandas/pulls/57072 | 2024-01-25T16:25:12Z | 2024-01-25T18:03:15Z | 2024-01-25T18:03:15Z | 2024-01-25T18:03:15Z |
BUG: Fix reading of multi_index dataframe with NaN | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 82e9812094af2..afce66391de80 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -746,7 +746,8 @@ cdef class TextReader:
is not None else 0)
# if wrong number of blanks or... | - [x] closes #56929
- [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/57070 | 2024-01-25T12:53:50Z | 2024-02-28T17:46:33Z | null | 2024-02-28T17:46:33Z |
Backport PR #57057 on branch 2.2.x (COMPAT: Make argsort compatable with numpy 2.0) | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index a36e25a9df410..4df30f7f4a8a7 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -138,6 +138,7 @@ def validate_argmax_with_skipna(skipna: bool | ndarray | None, args, kwargs) ->
ARGSORT_DEFAULTS["kind... | Backport PR #57057: COMPAT: Make argsort compatable with numpy 2.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/57062 | 2024-01-25T01:02:44Z | 2024-01-25T16:12:32Z | 2024-01-25T16:12:32Z | 2024-01-25T16:12:32Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.