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 |
|---|---|---|---|---|---|---|---|
STY: enable PLR5501 | diff --git a/pandas/tests/copy_view/test_indexing.py b/pandas/tests/copy_view/test_indexing.py
index 422436d376f69..72cb410c9068d 100644
--- a/pandas/tests/copy_view/test_indexing.py
+++ b/pandas/tests/copy_view/test_indexing.py
@@ -941,15 +941,14 @@ def test_column_as_series(backend, using_copy_on_write, warn_copy_on_... | - [ ] 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/56895 | 2024-01-15T20:42:04Z | 2024-01-16T16:06:50Z | 2024-01-16T16:06:50Z | 2024-01-16T16:18:44Z |
STY: Remove black-specific rule | diff --git a/pyproject.toml b/pyproject.toml
index ebdf9deb034b5..89965b4f6765d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -246,8 +246,6 @@ select = [
ignore = [
### Intentionally disabled
- # space before : (needed for how black formats slicing)
- "E203",
# module level import not at top of file
... | As `pandas` uses `ruff` as the formatter now, I think that we can safely enable this rule.
- [ ] 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 fea... | https://api.github.com/repos/pandas-dev/pandas/pulls/56894 | 2024-01-15T20:30:57Z | 2024-01-16T16:07:24Z | 2024-01-16T16:07:24Z | 2024-01-16T16:18:27Z |
Backport PR #56891 on branch 2.2.x (DOC: Add deprecated markers for downcast keyword) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index de25a02c6b37c..f8728c61e46fc 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7187,6 +7187,8 @@ def fillna(
or the string 'infer' which will try to downcast to an appropriate
equal type (e.g. float64 to int6... | Backport PR #56891: DOC: Add deprecated markers for downcast keyword | https://api.github.com/repos/pandas-dev/pandas/pulls/56893 | 2024-01-15T19:38:00Z | 2024-01-15T19:57:42Z | 2024-01-15T19:57:41Z | 2024-01-15T19:57:42Z |
TYP: Update pyright | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 73ac14f1ed5ce..fc71d785da8bc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -132,7 +132,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.... | Newer releases of pyright infer return types of partially annotated functions, which uncovers quite a few difficult-to-fix type errors (some functions had no return types because it would create too many typing errors elsewhere).
(pyright can also try to infer return types for completely unannotated functions, but t... | https://api.github.com/repos/pandas-dev/pandas/pulls/56892 | 2024-01-15T17:31:47Z | 2024-01-16T22:32:04Z | 2024-01-16T22:32:04Z | 2024-01-17T02:50:02Z |
DOC: Add deprecated markers for downcast keyword | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index caac11b6ab4f6..81ffb243cd302 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7208,6 +7208,8 @@ def fillna(
or the string 'infer' which will try to downcast to an appropriate
equal type (e.g. float64 to int6... | - [ ] 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/56891 | 2024-01-15T16:28:09Z | 2024-01-15T19:36:59Z | 2024-01-15T19:36:59Z | 2024-01-15T20:36:37Z |
TST: Fix setitem parametrizations | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 80c8a1e8ef5c7..bd19aed631659 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -115,7 +115,10 @@
ensure_wrapped_if_datetimelike,
extract_array,
)
-from pandas.core.indexers import check_se... | I'm not sure if i am on the right track with this PR but it's a try. If not i will close it and probably someone more into the code has to dig into that issue.
- [x] closes #56727
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing... | https://api.github.com/repos/pandas-dev/pandas/pulls/56890 | 2024-01-15T16:25:44Z | 2024-04-09T17:13:02Z | null | 2024-04-09T17:13:03Z |
TST: extension tests use its own fixtures | diff --git a/pandas/tests/extension/base/accumulate.py b/pandas/tests/extension/base/accumulate.py
index 9189ef7ec9aa5..9a41a3a582c4a 100644
--- a/pandas/tests/extension/base/accumulate.py
+++ b/pandas/tests/extension/base/accumulate.py
@@ -26,6 +26,7 @@ def check_accumulate(self, ser: pd.Series, op_name: str, skipna: ... | This reverts a small part of https://github.com/pandas-dev/pandas/pull/56583, for the changes made in the `pandas/tests/extension` directory
This is still a bit brittle, as there is currently no check inplace we don't change this back in the future -> https://github.com/pandas-dev/pandas/issues/56735. I was thinking... | https://api.github.com/repos/pandas-dev/pandas/pulls/56889 | 2024-01-15T15:45:03Z | 2024-01-15T17:52:25Z | 2024-01-15T17:52:25Z | 2024-01-15T19:10:56Z |
DOC: Additions/updates to documentation : grammar changes to documentation | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 82af8122a6bbd..78d22c768b865 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -19,7 +19,7 @@ Bug reports and enhancement requests
===================================... | - [x] closes #56885
- [ ] [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/56886 | 2024-01-15T10:59:13Z | 2024-01-15T16:29:18Z | 2024-01-15T16:29:18Z | 2024-01-15T16:29:27Z |
DOC: fix EX03 in pandas.ExcelWriter | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8658715b8bf3e..4bf6a3e97f0c6 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -86,7 +86,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timestamp.ceil \
pandas.Timestamp.floor \
pandas.Timestamp.round \
- ... | - [ ] ref #56804 (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/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/56884 | 2024-01-15T05:27:43Z | 2024-01-15T06:51:57Z | 2024-01-15T06:51:57Z | 2024-01-15T07:24:05Z |
DOC: Installation instructions update | diff --git a/README.md b/README.md
index e5329d66c2d89..1c04e09a619e8 100644
--- a/README.md
+++ b/README.md
@@ -134,12 +134,7 @@ cloning the git repo), execute:
pip install .
```
-or for installing in [development mode](https://pip.pypa.io/en/latest/cli/pip_install/#install-editable):
-
-
-```sh
-python -m pip ins... | - [ ] 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/56883 | 2024-01-15T04:45:41Z | 2024-02-13T09:20:54Z | null | 2024-02-13T09:20:54Z |
DOC: fix EX03 errors in docstrings - pandas.io.formats.style.Styler: format_index, relabel_index, hide, set_td_classes | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8658715b8bf3e..e2dcf3ff91b65 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -109,10 +109,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.apply_index \
pandas.io.formats.style.Styler.map_index... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.format_index
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.formats.style.Styler.relabel_index
3. scripts/validate_docstrings.py --format=acti... | https://api.github.com/repos/pandas-dev/pandas/pulls/56881 | 2024-01-15T01:39:56Z | 2024-01-15T06:50:44Z | 2024-01-15T06:50:43Z | 2024-01-15T23:17:17Z |
DOC: fix EX03 errors in docstrings - pandas.io.json.build_table_schema, pandas.read_stata, pandas.plotting.scatter_matrix, pandas.Index.droplevel , pandas.Grouper | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f27dbeaf35915..190af8115fdc2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -83,16 +83,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timestamp.floor \
pandas.Timestamp.round \
pandas.read_json \
- ... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.io.json.build_table_schema
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.read_stata
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.plotting.sca... | https://api.github.com/repos/pandas-dev/pandas/pulls/56880 | 2024-01-15T00:19:20Z | 2024-01-15T17:57:47Z | 2024-01-15T17:57:47Z | 2024-01-15T23:17:27Z |
DOC: fix EX03 errors in docstrings - pandas.Timestamp - ceil, floor, round | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f27dbeaf35915..78bf63fa3a3ba 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -79,9 +79,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.SettingWithCopyWarning \
pandas.errors.SpecificationError \
panda... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Timestamp.ceil
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Timestamp.floor
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Timestamp.round
... | https://api.github.com/repos/pandas-dev/pandas/pulls/56879 | 2024-01-14T23:33:15Z | 2024-01-15T17:56:28Z | 2024-01-15T17:56:27Z | 2024-01-15T23:17:37Z |
DOC: fixed Ex03 errors in docstrings: | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f27dbeaf35915..bdd38bda2dfc0 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -73,9 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX03 --ignore_functions \
... | **PR SUMMARY**
Checked if validation docstrings passes for:
- [x] pandas.errors.DatabaseError
- [x] pandas.errors.IndexingError
- [x] pandas.errors.InvalidColumnName
OUTPUT:
1. python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.errors.DatabaseError
```
###########################... | https://api.github.com/repos/pandas-dev/pandas/pulls/56878 | 2024-01-14T23:26:54Z | 2024-01-15T17:59:10Z | 2024-01-15T17:59:10Z | 2024-01-15T17:59:18Z |
Backport PR #56873 on branch 2.2.x (CI: unxfail adbc-driver-postgresql test) | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index 6645aefd4f0a7..791b6da3deeca 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -2229,12 +2229,14 @@ def test_api_chunksize_read(conn, request):
@pytest.mark.parametrize("conn", all_connectable)
def test_api_catego... | Backport PR #56873: CI: unxfail adbc-driver-postgresql test | https://api.github.com/repos/pandas-dev/pandas/pulls/56875 | 2024-01-14T17:42:44Z | 2024-01-15T00:23:48Z | 2024-01-15T00:23:48Z | 2024-01-15T00:23:48Z |
CI: unxfail adbc-driver-postgresql test | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index 2ddbbaa1bf17c..d86b80691190d 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -2229,12 +2229,14 @@ def test_api_chunksize_read(conn, request):
@pytest.mark.parametrize("conn", all_connectable)
def test_api_catego... | there's been a new release https://pypi.org/project/adbc-driver-postgresql/ | https://api.github.com/repos/pandas-dev/pandas/pulls/56873 | 2024-01-14T11:16:32Z | 2024-01-14T17:42:36Z | 2024-01-14T17:42:36Z | 2024-01-14T17:42:47Z |
wip: depr partial row-wise multi-column-wise enlargement | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 5de5bd58bd35f..f92a9b71a2781 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -657,6 +657,24 @@ Set the following option to opt into the future behavior:
In [9]: pd.set_option("future.no_silent_d... | - [ ] 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/56872 | 2024-01-14T09:46:31Z | 2024-02-16T18:22:01Z | null | 2024-02-16T18:22:01Z |
DOC: Remove manual doctesting from validate_docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a08a0cbd87383..95362dbbfa5bb 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -65,8 +65,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (EX01, EX02, EX04, GL01, GL02, GL03, GL04, GL05, G... | Since we run doctests using pytest via `pd.test(run_doctests=True)`, we don't need to run them in this script anymore | https://api.github.com/repos/pandas-dev/pandas/pulls/56871 | 2024-01-14T07:06:45Z | 2024-01-14T17:41:37Z | 2024-01-14T17:41:37Z | 2024-01-14T17:41:42Z |
DOC: fix EX03 errors in docstrings - pandas.Index.rename, pandas.Index.isin, pandas.IndexSlice | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 50310a3af9661..0014a70e5e018 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -90,12 +90,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DataFrame.to_sql \
pandas.read_stata \
pandas.plotting.scatter_matrix \... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Index.rename
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Index.isin
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.IndexSlice
OUTPUT:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/56870 | 2024-01-14T06:36:14Z | 2024-01-15T07:51:10Z | 2024-01-15T07:51:10Z | 2024-01-15T23:17:47Z |
BUG fix for datetime null (closes #56853) | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index e217e8c8557bb..b6410667ae319 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -111,6 +111,7 @@ Performance improvements
Bug fixes
~~~~~~~~~
+- Fixed bug causing null values when using datetimes in m... | Closes #56853
This is my first time contributing to this repo and I'm not super experienced with open source, sorry if the style isn't right or if there's some better way of doing it.
From what I can tell, the issue was caused by recurring calls to `get_loc` functions caused by the fact that when you pass in a da... | https://api.github.com/repos/pandas-dev/pandas/pulls/56869 | 2024-01-14T06:10:02Z | 2024-02-28T17:50:35Z | null | 2024-02-28T17:50:36Z |
DOC: fix EX03 errors in docstrings - pandas.core.resample.Resampler.interpolate, pandas.pivot, pandas.merge_asof, pandas.wide_to_long | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8658715b8bf3e..0901efba139c3 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -93,11 +93,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.read_parquet \
pandas.DataFrame.to_sql \
pandas.read_stata \
- p... | All EX03 Errors resolved in the following cases:
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.resample.Resampler.interpolate
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.pivot
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.merge... | https://api.github.com/repos/pandas-dev/pandas/pulls/56868 | 2024-01-14T06:06:11Z | 2024-01-15T06:37:48Z | 2024-01-15T06:37:48Z | 2024-01-15T23:17:59Z |
DOC: fix EX03 in `pandas.errors` | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8658715b8bf3e..afb76c29133f9 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -76,13 +76,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.DatabaseError \
pandas.errors.IndexingError \
pandas.errors.Inva... | Fix flake8 errors of some exceptions in `pandas.errors`.
- [ ] xref #56804 (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://api.github.com/repos/pandas-dev/pandas/pulls/56867 | 2024-01-14T05:01:22Z | 2024-01-15T06:34:27Z | 2024-01-15T06:34:27Z | 2024-01-15T07:24:38Z |
DOC: fix EX03 Errors for pandas.DataFrame.to_sql | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 5e6c02eab574d..e309d1d03f725 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -78,8 +78,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.UndefinedVariableError \
pandas.read_json \
pandas.io.formats.sty... | - [X] Ref: https://github.com/pandas-dev/pandas/issues/56804
Fix these EX03 Errors for `pandas.DataFrame.to_sql`:
```
9 Errors found for `pandas.DataFrame.to_sql`:
flake8 error: line 8, col 4: E111 indentation is not a multiple of 4
flake8 error: line 15, col 4: E111 indentation is not a multip... | https://api.github.com/repos/pandas-dev/pandas/pulls/56866 | 2024-01-14T04:03:36Z | 2024-01-23T15:51:44Z | null | 2024-01-23T15:51:44Z |
DOC: fix EX03 Errors for pandas.read_json | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c0dfbcc03b473..4809806657dff 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -76,7 +76,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.errors.SettingWithCopyWarning \
pandas.errors.SpecificationError \
panda... | - [X] Ref: https://github.com/pandas-dev/pandas/issues/56804
Fix these EX03 Errors for `pandas.read_json`
```
flake8 error: line 6, col 23: F821 undefined name '_'
flake8 error: line 8, col 23: F821 undefined name '_'
flake8 error: line 10, col 23: F821 undefined name '_'
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/56865 | 2024-01-14T03:36:26Z | 2024-01-23T15:51:57Z | null | 2024-01-23T15:51:58Z |
DOC: fix RT03 error for pandas.DataFrame.hist | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 96609fdc1671b..f6246393a6cbc 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -228,6 +228,8 @@ def hist_frame(
Returns
-------
matplotlib.AxesSubplot or numpy.ndarray of them
+ An ndarray is returned with... | - [ ] ~~closes https://github.com/pandas-dev/pandas/issues/56804~~ (Not relevant, it is a RT03 error )
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
~~Detected EX03 error for `pandas.DataFrame.hist`:~~
```
python scripts/validate_docst... | https://api.github.com/repos/pandas-dev/pandas/pulls/56864 | 2024-01-14T02:20:36Z | 2024-02-16T11:37:42Z | null | 2024-02-16T11:37:43Z |
STY: Use ruff to format docstrings | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b7e43404b86bd..0c11e0d469155 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,7 +19,7 @@ ci:
skip: [pylint, pyright, mypy]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.1.6
+ rev: v0.1.13... | closes https://github.com/pandas-dev/pandas/issues/56804 | https://api.github.com/repos/pandas-dev/pandas/pulls/56863 | 2024-01-13T22:53:45Z | 2024-02-08T16:42:08Z | 2024-02-08T16:42:08Z | 2024-02-08T19:36:30Z |
Backport PR #56849 on branch 2.2.x (REGR: freq "m" (as alias of deprecated "M") raises an error) | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 3a339171d0da2..205ab6f01f8c6 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4845,15 +4845,15 @@ cpdef to_offset(freq, bint is_period=False):
tups = zip(split[0::4], split[1::4], sp... | Backport PR #56849: REGR: freq "m" (as alias of deprecated "M") raises an error | https://api.github.com/repos/pandas-dev/pandas/pulls/56862 | 2024-01-13T20:18:33Z | 2024-01-13T21:02:29Z | 2024-01-13T21:02:29Z | 2024-01-13T21:02:29Z |
DOC: ex03 - no fix required | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 75b6925d14f21..e19842b172f82 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -109,21 +109,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Index.rename \
pandas.Index.droplevel \
pandas.Index.isin \
- ... | - xref #56804
Used this script to validate:
```py
import subprocess as sp
def validate_func(func_name):
proc = sp.Popen(['./scripts/validate_docstrings.py', '--errors=EX03', func_name], stdout=sp.PIPE, stderr=sp.PIPE)
proc.wait()
out = proc.stderr.read().decode().strip()
return out.endswit... | https://api.github.com/repos/pandas-dev/pandas/pulls/56861 | 2024-01-13T15:39:08Z | 2024-01-13T20:09:33Z | 2024-01-13T20:09:33Z | 2024-02-07T14:52:52Z |
TST: Move tests out of test_groupby | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index 8198cc532d998..86f03b04fddb3 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -160,6 +160,33 @@ def test_agg_apply_corner(ts, tsfr... | - [ ] 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/56859 | 2024-01-13T12:20:35Z | 2024-01-13T20:13:56Z | 2024-01-13T20:13:55Z | 2024-01-13T22:26:14Z |
change | diff --git a/Dockerfile b/Dockerfile
index c697f0c1c66c7..0bde5ce107bcb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,3 +12,4 @@ RUN python -m pip install --upgrade pip
RUN python -m pip install \
-r https://raw.githubusercontent.com/pandas-dev/pandas/main/requirements-dev.txt
CMD ["/bin/bash"]
+CMD
\ No newl... | - [ ] 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/56858 | 2024-01-13T11:28:51Z | 2024-01-13T11:29:36Z | null | 2024-01-13T11:29:36Z |
add ignore_index parameter to query | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 711b9cd5dbf36..d30f392c55f87 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4627,18 +4627,18 @@ def _maybe_cache_changed(self, item, value: Series, inplace: bool) -> None:
# Unsorted
@overload
- def query(self, expr: str, *,... | This PR adds `ignore_index` parameter to `DataFrame.query` method. The `ignore_index()` parameter allows other DataFrame methods that filter out rows (e.g. `dropna`, `drop_duplicates` etc.) to reset to the default RangeIndex in the same method call. By adding it to `query`, we improve consistency. So with this paramete... | https://api.github.com/repos/pandas-dev/pandas/pulls/56857 | 2024-01-13T10:43:47Z | 2024-01-13T20:17:02Z | null | 2024-01-13T20:17:03Z |
DOC: fix EX03 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 145be3e52f2c0..c90645374b2f3 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -95,7 +95,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DataFrame.groupby \
pandas.DataFrame.sort_values \
pandas.DataFrame.plot... | - [ ] xref #56804
- [ ] [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/56855 | 2024-01-13T05:53:51Z | 2024-01-16T08:21:35Z | 2024-01-16T08:21:35Z | 2024-01-16T08:50:21Z |
DOC: Fix EX03 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 75b6925d14f21..3ff5d07796178 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -74,13 +74,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.plot.line \
pandas.Series.to_sql \
pandas.Series.to_latex \
- ... | Error EX03 has cleaned.
pandas.errors.CategoricalConversionWarning
<img width="470" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/d007f149-24f0-478c-b2fb-c32be2039bcc">
pandas.errors.ChainedAssignmentError
<img width="395" alt="image" src="https://github.com/pandas-dev/pandas/assets/... | https://api.github.com/repos/pandas-dev/pandas/pulls/56854 | 2024-01-13T04:23:46Z | 2024-01-13T20:11:25Z | 2024-01-13T20:11:25Z | 2024-01-14T06:23:41Z |
REGR: freq "m" (as alias of deprecated "M") raises an error | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 84544322b57a8..446088821b10d 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4860,15 +4860,15 @@ cpdef to_offset(freq, bint is_period=False):
tups = zip(split[0::4], split[1::4], sp... | - [ ] closes #56847 (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/56849 | 2024-01-12T19:15:10Z | 2024-01-13T20:17:37Z | 2024-01-13T20:17:37Z | 2024-01-15T00:48:18Z |
DOC: fix EX03 errors in docstrings - pandas.Series.to_latex, pandas.read_pickle, pandas.DataFrame.to_latex, pandas.core.resample.Resampler.pipe | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a08a0cbd87383..dd5b6217c8318 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -73,7 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX03 --ignore_functions \
... | Checked if validation docstrings passes for :
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.Series.to_latex
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.read_pickle
3. scripts/validate_docstrings.py --format=acti... | https://api.github.com/repos/pandas-dev/pandas/pulls/56843 | 2024-01-12T04:07:41Z | 2024-01-14T09:39:34Z | 2024-01-14T09:39:34Z | 2024-01-15T23:18:15Z |
PERF: use the libjoin fast paths in a few more cases | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 4f8bb30a6cd37..e217e8c8557bb 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -101,6 +101,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- Performance improvement in :meth:`Dat... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/56841 | 2024-01-12T01:43:09Z | 2024-01-12T17:32:54Z | 2024-01-12T17:32:54Z | 2024-01-12T17:33:02Z |
CLN: Drop Numpy 1.22 per NEP29 | diff --git a/ci/deps/actions-39-minimum_versions.yaml b/ci/deps/actions-39-minimum_versions.yaml
index 7067048c4434d..115ccf01ccaad 100644
--- a/ci/deps/actions-39-minimum_versions.yaml
+++ b/ci/deps/actions-39-minimum_versions.yaml
@@ -22,7 +22,7 @@ dependencies:
# required dependencies
- python-dateutil=2.8.2... | - [ ] 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/56838 | 2024-01-11T17:51:00Z | 2024-01-18T17:48:11Z | 2024-01-18T17:48:11Z | 2024-01-18T17:48:56Z |
DOC: Corrected indentation of column names | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b37f22339fcfd..a4aae969052c1 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2986,7 +2986,7 @@ def to_sql(
>>> df = pd.DataFrame({'name' : ['User 1', 'User 2', 'User 3']})
>>> df
- name
+ n... | The Column names ("A","B",etc .) in the file `generic.py` were not indented in the multiples of 4. So changed as many as I could spot | https://api.github.com/repos/pandas-dev/pandas/pulls/56837 | 2024-01-11T14:42:14Z | 2024-01-11T16:34:55Z | null | 2024-01-11T16:34:55Z |
DOC: fixed EX03 errors in docstrings for `pandas.Series.dt.day_name` and `pandas.Series.dt.day_name` | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 38dccff6e2bdc..d92d08b547d7c 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -71,8 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.... | Modified the docstrings to resolve EX03/flake8 errors for,
- `pandas.Series.dt.day_name`
```
################################################################################
################################## Validation ##################################
############################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/56835 | 2024-01-11T12:53:03Z | 2024-01-11T16:15:26Z | 2024-01-11T16:15:26Z | 2024-01-11T16:15:36Z |
DOC: Fix EX03 flake8 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 092681049f7f2..75b6925d14f21 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -71,9 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.... | - [ ] 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/56834 | 2024-01-11T11:21:02Z | 2024-01-12T17:59:25Z | 2024-01-12T17:59:25Z | 2024-01-13T03:31:34Z |
Fix typo in docstring example | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 48a5f85e1c388..31309777c154d 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -1039,7 +1039,7 @@ def interpolate(
2023-03-01 07:00:04 3
Freq: s, dtype: int64
- Upsample the dataframe to 0.5Hz by provi... | The words "upsample" and "downsample" were switched in for `pandas.core.resample.Resampler.interpolate`'s docstring examples | https://api.github.com/repos/pandas-dev/pandas/pulls/56833 | 2024-01-11T11:19:56Z | 2024-01-11T16:36:21Z | 2024-01-11T16:36:21Z | 2024-01-11T16:36:28Z |
BUG: Negative freq in date_range produces values out of start and endpoints | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 8e9c72faf3231..10d5a518f686d 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -308,6 +308,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :func:`date_range` where the last valid timestamp would s... | - [X] closes https://github.com/pandas-dev/pandas/issues/56147
- [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/56832 | 2024-01-11T11:17:27Z | 2024-03-20T18:59:30Z | 2024-03-20T18:59:30Z | 2024-03-20T18:59:37Z |
BUG fix for date_range 56134 | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 7b53ddb3923f0..75f68e1bd0a48 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -119,7 +119,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
--
+- Bug in :func:`date_range` where the last valid timestamp wo... | - [X] closes https://github.com/pandas-dev/pandas/issues/56134
- [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/56831 | 2024-01-11T11:07:10Z | 2024-01-11T14:35:07Z | 2024-01-11T14:35:07Z | 2024-01-30T07:13:53Z |
DOC: fix EX03 errors in docstrings -pandas.DataFrame for idxmax, idxmin, pivot | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 021c7b74adb7f..711b9cd5dbf36 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9223,11 +9223,11 @@ def groupby(
You could also assign a list of column names or a list of index names.
>>> df = pd.DataFrame({
- ... ... | Checked if validation docstrings passes for :
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmax
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmin
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.pivot
... | https://api.github.com/repos/pandas-dev/pandas/pulls/56830 | 2024-01-11T09:53:44Z | 2024-01-11T16:14:25Z | 2024-01-11T16:14:25Z | 2024-01-12T04:57:57Z |
Remove pandas.core.resample.Resampler.fillna, pandas.core.groupby.SeriesGroupBy.describe, pandas.DataFrame.last, pandas.DataFrame.plot.hist from ci/code_checks.sh | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 38dccff6e2bdc..663288f40234e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -106,7 +106,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.DataFrame.to_sql \
pandas.read_stata \
pandas.core.resample.Resampler.... | Checked if validation docstrings passes for :
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.resample.Resampler.fillna
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.groupby.SeriesGroupBy.describe
3. scripts/validate_docstrings.py --format=actions --error... | https://api.github.com/repos/pandas-dev/pandas/pulls/56829 | 2024-01-11T07:52:34Z | 2024-01-11T16:10:04Z | 2024-01-11T16:10:04Z | 2024-01-12T04:56:39Z |
Remove pandas.core.groupby.DataFrameGroupBy for describe, idxmax, idxmin, value_counts from ci/code_checks.sh | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 19ba75393c4d9..092681049f7f2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -125,10 +125,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.SeriesGroupBy.transform \
pandas.core.groupby.SeriesGroupBy.pipe ... | Checked if validation docstrings passes for :
1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.groupby.DataFrameGroupBy.describe
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.groupby.DataFrameGroupBy.idxmax
3. scripts/validate_docstrings.py --format=action... | https://api.github.com/repos/pandas-dev/pandas/pulls/56828 | 2024-01-11T07:26:33Z | 2024-01-11T22:40:32Z | 2024-01-11T22:40:32Z | 2024-01-12T04:57:16Z |
CI: Improve error message format in validate_docstrings.py | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 53c67b7df928b..682d64244bc1f 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -392,7 +392,7 @@ def header(title, width=80, char="#") -> str:
if result["errors"]:
sys.stderr.write(f'{len(re... | Enhance the error message generated by executing `scripts/validate_docstrings.py --format=actions --errors=EX03 method-name`.
Additionally, there appears to be a discrepancy, as including the ``--error=EX03`` flag still results in the display of another error. The cause of this inconsistency is unclear, and it migh... | https://api.github.com/repos/pandas-dev/pandas/pulls/56827 | 2024-01-11T06:13:15Z | 2024-01-15T06:11:39Z | 2024-01-15T06:11:39Z | 2024-01-15T09:21:10Z |
ENH: Add missing parameters to read_gbq for BigQuery | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 7b53ddb3923f0..4552b5ea3ea8b 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -110,7 +110,7 @@ Performance improvements
Bug fixes
~~~~~~~~~
- Fixed bug in :meth:`Series.diff` allowing non-integer val... | There are some missing params from pandas-gbq needed to be added: progress_bar_type, dtypes, auth_redirect_uri, client_id, columns, which col_order is now an alias of
- [ ] ~closes #xxxx~
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) i... | https://api.github.com/repos/pandas-dev/pandas/pulls/56826 | 2024-01-11T05:42:28Z | 2024-01-11T16:40:11Z | null | 2024-01-11T18:21:13Z |
DOC: 2.2.0 whatsnew cleanups | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 57b83a294963b..73b1103c1bd37 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -42,4 +42,4 @@ Bug fixes
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.1.3..v2.1.4|HEAD
+.. contributors:: v2.1.3..v2.... | - [ ] 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/56824 | 2024-01-11T03:59:57Z | 2024-01-17T21:53:34Z | 2024-01-17T21:53:33Z | 2024-01-17T22:29:15Z |
DOC: Change 2.3.0 to 3.0.0 | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 09d1ae08df57a..92b995851afb4 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -10,13 +10,13 @@ This is the list of changes to pandas between each release. For full details,
see the `commit logs <https://gi... | - [ ] 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/56823 | 2024-01-11T03:21:10Z | 2024-01-22T00:26:05Z | 2024-01-22T00:26:05Z | 2024-01-22T00:26:18Z |
TST: Additions/updates to tests | diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py
index 6fa72bd48031c..f94702fce4c85 100644
--- a/pandas/tests/io/formats/style/test_style.py
+++ b/pandas/tests/io/formats/style/test_style.py
@@ -1586,3 +1586,15 @@ def test_output_buffer(mi_styler, format):
# gh... | wrote a test for https://github.com/pandas-dev/pandas/issues/56717
test function name is test_deprecation_warning_for_usage_of_aaply_map_index_method_of_styler_object
The original function that was tested was the Styler.applymap_index in the style module
The new test was appended to the test_style module file
The... | https://api.github.com/repos/pandas-dev/pandas/pulls/56822 | 2024-01-11T02:49:39Z | 2024-01-11T16:48:43Z | 2024-01-11T16:48:43Z | 2024-01-11T16:48:50Z |
TST: Additions/updates to tests | diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py
index 6fa72bd48031c..10bad77bfe32f 100644
--- a/pandas/tests/io/formats/style/test_style.py
+++ b/pandas/tests/io/formats/style/test_style.py
@@ -1586,3 +1586,14 @@ def test_output_buffer(mi_styler, format):
# gh... | wrote a test for https://github.com/pandas-dev/pandas/issues/56717
test function name is test_deprecation_warning_for_usage_of_aaply_map_index_method_of_styler_object
The original function that was tested was the Styler.applymap_index in the style module
The new test was appended to the test_style module file
T... | https://api.github.com/repos/pandas-dev/pandas/pulls/56821 | 2024-01-11T01:40:37Z | 2024-01-11T02:22:26Z | null | 2024-01-11T02:23:07Z |
Backport PR #55327 on branch 2.2.x (COMPAT: Fix warning with numba >= 0.58.0) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 4265447f05b8b..5de5bd58bd35f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -944,6 +944,7 @@ Other
- Bug in rendering a :class:`Series` with a :class:`MultiIndex` when one of the index level's names ... | Backport PR #55327: COMPAT: Fix warning with numba >= 0.58.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/56820 | 2024-01-11T01:33:04Z | 2024-01-11T04:29:35Z | 2024-01-11T04:29:35Z | 2024-01-11T04:29:35Z |
Backport PR #56818 on branch 2.2.x (CI: Fix failing builds) | diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py
index d5dc723e2c7c5..9f42cf674b0a7 100644
--- a/pandas/tests/io/parser/common/test_chunksize.py
+++ b/pandas/tests/io/parser/common/test_chunksize.py
@@ -220,14 +220,9 @@ def test_chunks_have_consistent_numeri... | Backport PR #56818: CI: Fix failing builds | https://api.github.com/repos/pandas-dev/pandas/pulls/56819 | 2024-01-11T00:26:29Z | 2024-01-11T02:23:04Z | 2024-01-11T02:23:04Z | 2024-01-11T02:23:04Z |
CI: Fix failing builds | diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py
index d5dc723e2c7c5..9f42cf674b0a7 100644
--- a/pandas/tests/io/parser/common/test_chunksize.py
+++ b/pandas/tests/io/parser/common/test_chunksize.py
@@ -220,14 +220,9 @@ def test_chunks_have_consistent_numeri... | - [ ] 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/56818 | 2024-01-10T22:47:23Z | 2024-01-11T00:26:20Z | 2024-01-11T00:26:20Z | 2024-01-11T01:14:03Z |
PERF: Join non unique | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 7b53ddb3923f0..2dc05ac8057c8 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -101,6 +101,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- Performance improvement in :meth:`Dat... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/56817 | 2024-01-10T22:10:34Z | 2024-01-11T16:51:01Z | 2024-01-11T16:51:01Z | 2024-01-11T16:51:10Z |
Backport PR #56788 on branch 2.2.x (Bug: Interchange protocol implementation does not allow for empty string columns) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b5df0a319bc18..3a4c9438dbc21 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -936,6 +936,7 @@ Other
- Bug in :func:`cut` and :func:`qcut` with ``datetime64`` dtype values with non-nanosecond units inc... | Backport PR #56788: Bug: Interchange protocol implementation does not allow for empty string columns | https://api.github.com/repos/pandas-dev/pandas/pulls/56816 | 2024-01-10T21:30:59Z | 2024-01-10T22:40:55Z | 2024-01-10T22:40:55Z | 2024-01-10T22:40:55Z |
Backport PR #56481 on branch 2.2.x (Revert "DEPR: make_block (#56422)") | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b5df0a319bc18..498e267dea965 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -662,7 +662,6 @@ Other Deprecations
- Changed :meth:`Timedelta.resolution_string` to return ``h``, ``min``, ``s``, ``ms``, ... | Backport PR #56481: Revert "DEPR: make_block (#56422)" | https://api.github.com/repos/pandas-dev/pandas/pulls/56814 | 2024-01-10T19:07:48Z | 2024-01-11T01:14:18Z | 2024-01-11T01:14:18Z | 2024-01-11T01:14:41Z |
Backport PR #56594 on branch 2.2.x (DEPR: the method is_anchored() for offsets) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9a9ac769a4893..b5df0a319bc18 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -665,11 +665,13 @@ Other Deprecations
- Deprecated :func:`pd.core.internals.api.make_block`, use public APIs instead (:issu... | Backport PR #56594: DEPR: the method is_anchored() for offsets | https://api.github.com/repos/pandas-dev/pandas/pulls/56813 | 2024-01-10T16:40:03Z | 2024-01-10T18:07:54Z | 2024-01-10T18:07:54Z | 2024-01-10T18:07:54Z |
BLD: Pin numpy on 2.2.x | diff --git a/pyproject.toml b/pyproject.toml
index 5e65edf81f9c7..68a3dca188464 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,9 +30,9 @@ authors = [
license = {file = 'LICENSE'}
requires-python = '>=3.9'
dependencies = [
- "numpy>=1.22.4; python_version<'3.11'",
- "numpy>=1.23.2; python_version=='3.11'",... | - [ ] 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/56812 | 2024-01-10T16:21:09Z | 2024-01-10T17:53:27Z | 2024-01-10T17:53:27Z | 2024-01-10T17:53:29Z |
DOC: missing closing bracket | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 87aecb6936c9c..e2881c1087e60 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -939,7 +939,7 @@ Each shared docstring will have... | Added a missing closing bracket in "contributing_docstring.rst" | https://api.github.com/repos/pandas-dev/pandas/pulls/56811 | 2024-01-10T15:36:36Z | 2024-01-10T16:00:09Z | 2024-01-10T16:00:09Z | 2024-01-11T09:10:45Z |
Backport PR #56757 on branch 2.2.x (ENH: Implement interpolation for arrow and masked dtypes) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index e244794664b34..51f3dc025864a 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -343,6 +343,7 @@ Other enhancements
- :meth:`ExtensionArray.duplicated` added to allow extension type implementations of th... | #56757 | https://api.github.com/repos/pandas-dev/pandas/pulls/56809 | 2024-01-10T12:13:16Z | 2024-01-10T16:27:15Z | 2024-01-10T16:27:15Z | 2024-01-10T16:27:53Z |
Removed describe, loc and iloc methods from code_checks.sh | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 16500aade0476..38dccff6e2bdc 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -151,10 +151,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.io.formats.style.Styler.background_gradient \
pandas.io.formats.style.Styler.t... | **PR Summary**
Checked if validation docstrings passes for :
- pandas.DataFrame.loc by running >python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.loc
- pandas.DataFrame.iloc by running >python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.iloc
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/56808 | 2024-01-10T11:47:08Z | 2024-01-10T18:34:26Z | 2024-01-10T18:34:26Z | 2024-01-10T18:34:59Z |
'Backport PR #56146: BUG raise pdep6 warning for loc full setter' | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index e244794664b34..9d577aa5ac426 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -817,6 +817,7 @@ Conversion
- Bug in :meth:`DataFrame.astype` when called with ``str`` on unpickled array - the array might... | - [ ] 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/56807 | 2024-01-10T10:19:15Z | 2024-01-10T12:47:41Z | 2024-01-10T12:47:41Z | 2024-01-10T12:47:41Z |
PERF: Index.take to check for full range indices | diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst
index 2b5280346b63b..7b53ddb3923f0 100644
--- a/doc/source/whatsnew/v2.3.0.rst
+++ b/doc/source/whatsnew/v2.3.0.rst
@@ -101,7 +101,7 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
--
+- Performance improvement in :meth:`... | - [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/56806 | 2024-01-10T03:57:55Z | 2024-01-10T21:34:23Z | 2024-01-10T21:34:23Z | 2024-01-11T00:05:20Z |
CI: Add fixture back in | diff --git a/pandas/tests/reshape/merge/test_multi.py b/pandas/tests/reshape/merge/test_multi.py
index 5973f13c9d495..b1aa6b88bc4ee 100644
--- a/pandas/tests/reshape/merge/test_multi.py
+++ b/pandas/tests/reshape/merge/test_multi.py
@@ -94,6 +94,7 @@ def test_merge_on_multikey(self, left, right, join_type):
@pytes... |
cc @mroeschke | https://api.github.com/repos/pandas-dev/pandas/pulls/56803 | 2024-01-09T22:03:21Z | 2024-01-09T22:29:45Z | 2024-01-09T22:29:45Z | 2024-01-09T22:29:49Z |
BUG: Change the prompt on non list record path errors (PR: #56405) | diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py
index b1e2210f9d894..7e3e83d59c87c 100644
--- a/pandas/io/json/_normalize.py
+++ b/pandas/io/json/_normalize.py
@@ -427,8 +427,8 @@ def _pull_records(js: dict[str, Any], spec: list | str) -> list:
result = []
else:
... | - [x] closes #56405
- [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/56802 | 2024-01-09T20:58:04Z | 2024-01-10T21:31:27Z | 2024-01-10T21:31:27Z | 2024-01-10T21:31:33Z |
Backport PR #56059 on branch 2.2.x (ENH: Add case_when method) | diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst
index af262f9e6c336..a4ea0ec396ceb 100644
--- a/doc/source/reference/series.rst
+++ b/doc/source/reference/series.rst
@@ -177,6 +177,7 @@ Reindexing / selection / label manipulation
:toctree: api/
Series.align
+ Series.case_when
... | #56059 | https://api.github.com/repos/pandas-dev/pandas/pulls/56800 | 2024-01-09T13:03:53Z | 2024-01-09T23:46:09Z | 2024-01-09T23:46:09Z | 2024-01-09T23:46:12Z |
Backport PR #5644 on branch 2.2.x (BUG: merge not sorting for new string dtype) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 36e677fa2a7a9..6a232365fbfeb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -893,6 +893,7 @@ Reshaping
- Bug in :func:`merge_asof` when using a :class:`Timedelta` tolerance on a :class:`ArrowDtype` c... | #56442 | https://api.github.com/repos/pandas-dev/pandas/pulls/56799 | 2024-01-09T12:58:32Z | 2024-01-09T15:47:34Z | 2024-01-09T15:47:34Z | 2024-01-09T16:02:18Z |
Backport PR #56772 on branch 2.2.x (Support large strings in interchange protocol) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index dbb11d3d0788d..36e677fa2a7a9 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -906,6 +906,7 @@ Sparse
Other
^^^^^
+- :meth:`DataFrame.__dataframe__` did not support pyarrow large strings (:issue:`56... | Backport PR #56772: Support large strings in interchange protocol | https://api.github.com/repos/pandas-dev/pandas/pulls/56795 | 2024-01-09T08:42:08Z | 2024-01-09T09:57:14Z | 2024-01-09T09:57:14Z | 2024-01-09T09:57:14Z |
Series.str.find fix for pd.ArrowDtype(pa.string()) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 392b4e3cc616a..7bab8c9395ac6 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -2364,20 +2364,26 @@ def _str_fullmatch(
return self._str_match(pat, case, flags, na)
def _str_f... | - [x] closes #56791(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/56792 | 2024-01-09T02:12:56Z | 2024-02-02T17:57:54Z | 2024-02-02T17:57:54Z | 2024-02-02T23:51:35Z |
Backport PR #56402 on branch 2.2.x (TST/CoW: expand test for chained inplace methods) | diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py
index 80e38380ed27c..0a37f6b813e55 100644
--- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py
+++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py
@@ ... | Backport PR #56402: TST/CoW: expand test for chained inplace methods | https://api.github.com/repos/pandas-dev/pandas/pulls/56790 | 2024-01-08T23:27:57Z | 2024-01-09T02:28:19Z | 2024-01-09T02:28:19Z | 2024-01-09T02:28:19Z |
DOC: add to to_offset the missing parameter is_period and examples | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index b3788b6003e67..8ac59ea8cdde0 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4734,6 +4734,10 @@ cpdef to_offset(freq, bint is_period=False):
Parameters
----------
freq : str, dateti... | xref #52064
added to `to_offset` the missing parameter `is_period` and examples | https://api.github.com/repos/pandas-dev/pandas/pulls/56789 | 2024-01-08T22:45:46Z | 2024-01-09T13:40:38Z | 2024-01-09T13:40:38Z | 2024-01-11T00:05:19Z |
Bug: Interchange protocol implementation does not allow for empty string columns | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 9a9ac769a4893..2018c8936ee3c 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -934,6 +934,7 @@ Other
- Bug in :func:`cut` and :func:`qcut` with ``datetime64`` dtype values with non-nanosecond units inc... | - [x] closes #56703
- [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/56788 | 2024-01-08T22:11:33Z | 2024-01-10T21:30:51Z | 2024-01-10T21:30:51Z | 2024-01-10T21:30:59Z |
TST/CLN: Test parametrizations 4 | diff --git a/pandas/tests/strings/test_find_replace.py b/pandas/tests/strings/test_find_replace.py
index cd4707ac405de..9f0994b968a47 100644
--- a/pandas/tests/strings/test_find_replace.py
+++ b/pandas/tests/strings/test_find_replace.py
@@ -515,13 +515,11 @@ def test_replace_compiled_regex_callable(any_string_dtype):
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56787 | 2024-01-08T21:54:16Z | 2024-01-11T16:56:07Z | 2024-01-11T16:56:06Z | 2024-01-11T16:56:14Z |
Backport PR #56724 on branch 2.2.x (TST: Don't ignore tolerance for integer series) | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index d0f38c85868d4..3de982498e996 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -10,6 +10,7 @@
import numpy as np
+from pandas._libs import lib
from pandas._libs.missing import is_matching_na
from pandas._... | Backport PR #56724: TST: Don't ignore tolerance for integer series | https://api.github.com/repos/pandas-dev/pandas/pulls/56786 | 2024-01-08T21:40:12Z | 2024-01-08T23:27:06Z | 2024-01-08T23:27:06Z | 2024-01-08T23:27:06Z |
Backport PR #56766 on branch 2.2.x (BUG: IntervalIndex.from_tuples raising with masked subtype) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b138e91b41661..21cab17fd58b2 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -816,6 +816,7 @@ Interval
- Bug in :class:`Interval` ``__repr__`` not displaying UTC offsets for :class:`Timestamp` bounds.... | Backport PR #56766: BUG: IntervalIndex.from_tuples raising with masked subtype | https://api.github.com/repos/pandas-dev/pandas/pulls/56785 | 2024-01-08T21:34:35Z | 2024-01-08T22:26:48Z | 2024-01-08T22:26:48Z | 2024-01-08T22:26:48Z |
Backport PR #56771 on branch 2.2.x (BUG: to_stata not handling ea dtypes correctly) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b138e91b41661..c5916c5df7596 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -847,6 +847,7 @@ I/O
- Bug in :func:`read_json` not handling dtype conversion properly if ``infer_string`` is set (:issue:`... | Backport PR #56771: BUG: to_stata not handling ea dtypes correctly | https://api.github.com/repos/pandas-dev/pandas/pulls/56783 | 2024-01-08T21:18:07Z | 2024-01-08T22:24:40Z | 2024-01-08T22:24:40Z | 2024-01-08T22:24:41Z |
Backport PR #56767 on branch 2.2.x (BUG: Series.round raising for nullable bool dtype) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b138e91b41661..93b63f99ea399 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -790,6 +790,7 @@ Numeric
- Bug in :meth:`Series.__floordiv__` for :class:`ArrowDtype` with integral dtypes raising for larg... | Backport PR #56767: BUG: Series.round raising for nullable bool dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/56782 | 2024-01-08T21:15:24Z | 2024-01-08T22:24:22Z | 2024-01-08T22:24:22Z | 2024-01-08T22:24:22Z |
Update on_bad_lines logic in python_parser.py | diff --git a/pandas/io/parsers/python_parser.py b/pandas/io/parsers/python_parser.py
index c1880eb815032..d58fa631d2f24 100644
--- a/pandas/io/parsers/python_parser.py
+++ b/pandas/io/parsers/python_parser.py
@@ -1030,7 +1030,7 @@ def _rows_to_cols(self, content: list[list[Scalar]]) -> list[np.ndarray]:
fo... | On_bad_lines only considers a bad line as "a line with too many fields" and silently pads NaNs for rows with missing fields. Either consider all rows with inconsistent fields as a bad line, as I am proposing here (tested only with our framework, and we log those error details as part of file validation), or also have ... | https://api.github.com/repos/pandas-dev/pandas/pulls/56781 | 2024-01-08T18:58:16Z | 2024-01-08T19:26:27Z | null | 2024-01-08T19:26:27Z |
Backport PR #56769 on branch 2.2.x (BUG: replace matching Floats with bools for ea dtypes) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 2b436bc5d1855..b138e91b41661 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -789,6 +789,7 @@ Numeric
- Bug in :meth:`Series.__floordiv__` and :meth:`Series.__truediv__` for :class:`ArrowDtype` with i... | Backport PR #56769: BUG: replace matching Floats with bools for ea dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/56780 | 2024-01-08T18:06:29Z | 2024-01-08T19:25:45Z | 2024-01-08T19:25:45Z | 2024-01-08T19:25:45Z |
Add Python 3.12 classifier to pyproject.toml (against 2.1.x) | diff --git a/pyproject.toml b/pyproject.toml
index 77b49d4474334..4b4df9fb29a11 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -49,6 +49,7 @@ classifiers = [
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
+ 'Programming... | Looking at https://pypi.org/project/pandas/, we were unsure if pandas supports Python 3.12 yet.
Based on multiple PRs such as https://github.com/pandas-dev/pandas/pull/56333, we assume 2.1.x also has support for Python 3.12.
(the checkboxes below should not apply for this minor doc fix?)
- [ ] closes #xxxx (Rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/56776 | 2024-01-08T14:35:19Z | 2024-01-08T18:45:24Z | null | 2024-01-08T18:45:24Z |
Support large strings in interchange protocol | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..0ddde35f35aca 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -901,6 +901,7 @@ Sparse
Other
^^^^^
+- :meth:`DataFrame.__dataframe__` did not support pyarrow large strings (:issue:`56... | - [ ] closes #56702 (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/56772 | 2024-01-07T23:25:07Z | 2024-01-09T08:41:08Z | 2024-01-09T08:41:08Z | 2024-01-09T08:42:26Z |
BUG: to_stata not handling ea dtypes correctly | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..b90185ab9b4ea 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -846,6 +846,7 @@ I/O
- Bug in :func:`read_json` not handling dtype conversion properly if ``infer_string`` is set (:issue:`... | - [ ] closes #54671 (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/56771 | 2024-01-07T21:01:31Z | 2024-01-08T21:17:58Z | 2024-01-08T21:17:58Z | 2024-01-08T21:32:57Z |
Backport PR #56761 on branch 2.2.x (BUG: fix subclass metadata preservation in groupby column selection) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..2b436bc5d1855 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -873,6 +873,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.asfreq` and :meth:`Series.asfreq` with a :class:`Dateti... | Backport PR #56761: BUG: fix subclass metadata preservation in groupby column selection | https://api.github.com/repos/pandas-dev/pandas/pulls/56770 | 2024-01-07T19:43:03Z | 2024-01-07T21:02:02Z | 2024-01-07T21:02:02Z | 2024-01-07T21:02:02Z |
BUG: replace matching Floats with bools for ea dtypes | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..6cac4bcdfa045 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -789,6 +789,7 @@ Numeric
- Bug in :meth:`Series.__floordiv__` and :meth:`Series.__truediv__` for :class:`ArrowDtype` with i... | - [ ] closes #55398 (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/56769 | 2024-01-07T19:36:32Z | 2024-01-08T18:05:14Z | 2024-01-08T18:05:14Z | 2024-01-08T18:07:21Z |
Update check_test_naming.py | diff --git a/scripts/check_test_naming.py b/scripts/check_test_naming.py
index f9190643b3246..5cd4402286e3c 100644
--- a/scripts/check_test_naming.py
+++ b/scripts/check_test_naming.py
@@ -1,13 +1,3 @@
-"""
-Check that test names start with `test`, and that test classes start with `Test`.
-
-This is meant to be run as ... | Changes made:
1. Removed unnecessary import of `annotations` from `__future__`.
2. Simplified the `find_names` function to handle both `ast.Name` and `ast.Attribute`.
3. Combined the `_is_fixture` and `_is_register_dtype` functions into `is_fixture` and `is_register_dtype`.
4. Replaced `any()` with a generator ex... | https://api.github.com/repos/pandas-dev/pandas/pulls/56768 | 2024-01-07T19:17:53Z | 2024-01-07T19:38:59Z | null | 2024-01-07T19:39:00Z |
BUG: Series.round raising for nullable bool dtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index b138e91b41661..93b63f99ea399 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -790,6 +790,7 @@ Numeric
- Bug in :meth:`Series.__floordiv__` for :class:`ArrowDtype` with integral dtypes raising for larg... | - [ ] closes #55936 (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/56767 | 2024-01-07T18:16:26Z | 2024-01-08T21:15:15Z | 2024-01-08T21:15:15Z | 2024-01-08T21:33:10Z |
BUG: IntervalIndex.from_tuples raising with masked subtype | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..8cabae95258c6 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -815,6 +815,7 @@ Interval
- Bug in :class:`Interval` ``__repr__`` not displaying UTC offsets for :class:`Timestamp` bounds.... | - [ ] closes #56765 (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/56766 | 2024-01-07T17:36:37Z | 2024-01-08T21:34:27Z | 2024-01-08T21:34:27Z | 2024-01-08T21:34:29Z |
Remove warning about unused groups | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 7c6dca3bad7d9..6302fb29d0ea4 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1320,14 +1320,6 @@ def contains(
4 False
dtype: bool
"""
- if regex and re.compile... | This warning is annoying and serves to discourage use of named capturing groups (which are more maintainable) because users must either switch to extracting the groups (not always necessary) or replace their named groups with "(?:" (unnamed groups are harder to maintain because it's less clear what is their objective w... | https://api.github.com/repos/pandas-dev/pandas/pulls/56763 | 2024-01-07T15:28:08Z | 2024-01-07T17:00:26Z | null | 2024-01-07T17:00:27Z |
DOC: Avoid requesting data from s3 buckets from our docs | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index b3ad23e0d4104..bb5b4e056d527 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1704,7 +1704,7 @@ option parameter:
.. code-block:: python
- storage_options = {"client_kwargs": {"endpoint_url": "http://12... | - [x] closes #56592
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/v2.3.0.rst` file if fixing a bug or adding a new feature.
ipython code chunk would make call to S3 bucket URL. Mos... | https://api.github.com/repos/pandas-dev/pandas/pulls/56762 | 2024-01-07T14:23:50Z | 2024-01-15T18:15:49Z | 2024-01-15T18:15:49Z | 2024-01-15T18:16:06Z |
BUG: fix subclass metadata preservation in groupby column selection | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..2b436bc5d1855 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -873,6 +873,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.asfreq` and :meth:`Series.asfreq` with a :class:`Dateti... | This is a small regression that was introduced with https://github.com/pandas-dev/pandas/pull/51090 (in pandas 2.0): before that PR, the column subselection in the groupby code was done with a standard `__getitem__` call, while the PR introduced an optimized helper `_getitem_nocopy` to avoid the copy that a standard `_... | https://api.github.com/repos/pandas-dev/pandas/pulls/56761 | 2024-01-07T09:57:38Z | 2024-01-07T19:42:02Z | 2024-01-07T19:42:02Z | 2024-01-08T14:42:33Z |
TYP: Persist typing information for pipe args and kwargs | diff --git a/pandas/_typing.py b/pandas/_typing.py
index a80f9603493a7..fa9dc14bb4bd7 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -90,18 +90,29 @@
from typing import SupportsIndex
if sys.version_info >= (3, 10):
+ from typing import Concatenate # pyright: ignore[reportUnusedImport]
+ ... | - [x] closes #56359
- [ ] [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).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/56760 | 2024-01-07T05:12:19Z | 2024-01-15T16:01:44Z | 2024-01-15T16:01:44Z | 2024-01-15T18:37:46Z |
TST: assert that informative error is raised when offset not supported as a period frequency is passed to DataFrame.asfreq | diff --git a/pandas/tests/frame/methods/test_asfreq.py b/pandas/tests/frame/methods/test_asfreq.py
index 87d1745774487..f6b71626b6fee 100644
--- a/pandas/tests/frame/methods/test_asfreq.py
+++ b/pandas/tests/frame/methods/test_asfreq.py
@@ -8,6 +8,7 @@
from pandas import (
DataFrame,
DatetimeIndex,
+ Peri... | - [x] closes #56718 (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 (python -m pytest pandas/tests/frame/methods/test_asfreq.py)
- [x] All [code checks pas... | https://api.github.com/repos/pandas-dev/pandas/pulls/56758 | 2024-01-07T02:37:05Z | 2024-02-12T21:00:41Z | 2024-02-12T21:00:41Z | 2024-02-12T21:00:41Z |
ENH: Implement interpolation for arrow and masked dtypes | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b04a1d313a6d..999f0ae212be7 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -323,6 +323,7 @@ Other enhancements
- :meth:`ExtensionArray.duplicated` added to allow extension type implementations of th... | - [ ] closes #56267 (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/56757 | 2024-01-07T00:21:05Z | 2024-01-10T01:27:05Z | 2024-01-10T01:27:05Z | 2024-01-10T16:27:07Z |
Create function program | diff --git a/function program b/function program
new file mode 100644
index 0000000000000..ba90b7d802077
--- /dev/null
+++ b/function program
@@ -0,0 +1,26 @@
+#include<stdio.h>
+void postfix()
+{
+char symbol;
+precdurce token;
+int n=0;
+int top=;
+stack[0]=eos;
+for(token=get token(&symbol,&n);token!=eos;token=get ... | - [x] 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/56752 | 2024-01-06T14:39:12Z | 2024-01-06T14:51:24Z | null | 2024-01-06T14:51:25Z |
CI: Allow no argument in code_checks | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e41f625e583c0..16500aade0476 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -16,12 +16,18 @@
set -uo pipefail
-[[ -z "$1" || "$1" == "code" || "$1" == "doctests" || "$1" == "docstrings" || "$1" == "single-docs" || "$1" == "notebooks" ]] || \
+if [... | - [ ] 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/56751 | 2024-01-06T14:19:06Z | 2024-01-08T00:29:26Z | 2024-01-08T00:29:26Z | 2024-01-08T00:34:17Z |
DEPR: by_row="compat" in DataFrame.apply and Series.apply | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 15e98cbb2a4d7..ad9b0d8d5b1d1 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -675,6 +675,7 @@ Other Deprecations
- Deprecated including the groups in computations when using :meth:`.DataFrameGroupBy.a... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/56750 | 2024-01-05T22:05:22Z | 2024-01-06T14:33:17Z | null | 2024-02-14T01:30:45Z |
TST/CLN: Remove unnecessary copies in tests | diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py
index 11b53d711fce2..5c6377349304c 100644
--- a/pandas/tests/io/test_stata.py
+++ b/pandas/tests/io/test_stata.py
@@ -90,7 +90,12 @@ def test_read_empty_dta_with_dtypes(self, version):
"f64": np.array([0], dtype=np.float64),
... | AFAICT these copies are not necessary or related to whats being tested | https://api.github.com/repos/pandas-dev/pandas/pulls/56749 | 2024-01-05T22:00:43Z | 2024-01-08T23:45:12Z | 2024-01-08T23:45:12Z | 2024-01-08T23:46:58Z |
TST: Scope pytest.raises closer to failing line | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index ed3ea1b0bd0dc..7969e684f5b04 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -141,8 +141,8 @@ class TestEval:
def test_complex_cmp_ops(self, cmp1, cmp2, binop, lhs, rhs... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/56746 | 2024-01-05T18:52:08Z | 2024-01-05T20:22:18Z | 2024-01-05T20:22:18Z | 2024-01-05T20:22:21Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.