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 |
|---|---|---|---|---|---|---|---|
BUG: DataFrame.to_html(na_rep="-") with non-scalar data | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 7fc856be374e9..e9e06044eba0a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1322,6 +1322,7 @@ I/O
- Bug in :func:`read_csv` unnecessarily overflowing for extension array dtype when containing ``NA``... | - [x] closes #47103
- [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/51412 | 2023-02-15T18:57:00Z | 2023-02-16T21:59:54Z | 2023-02-16T21:59:54Z | 2023-02-16T22:54:35Z |
ENH: Optimize CoW for fillna with ea dtypes | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 1aba48371b430..9b435aa31bd16 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1758,9 +1758,14 @@ def fillna(
downcast=downcast,
using_cow=using_cow,
)... | - [ ] xref #49473 (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/51411 | 2023-02-15T18:39:48Z | 2023-02-25T22:46:54Z | 2023-02-25T22:46:54Z | 2023-03-01T09:23:58Z |
CLN: assorted comments | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index b5ff69d92492f..51c2486ac5c1d 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -7,6 +7,7 @@ from cython cimport Py_ssize_t
cdef extern from "Python.h":
+ # TODO(cython3): from cpython.pyport cimport PY_SSIZE_T_M... | Most of these are from a notes-to-self branch that I'm whittling down to get rid of. I was on the fence about adding some of these comments, but eventually decided that if I find them useful, someone else might too. | https://api.github.com/repos/pandas-dev/pandas/pulls/51410 | 2023-02-15T16:52:21Z | 2023-02-15T20:59:23Z | 2023-02-15T20:59:23Z | 2023-02-15T21:00:09Z |
STYLE remove absolufy-imports, use ruff | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2f13ac4c73fa0..a64f8245886ea 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,11 +19,6 @@ repos:
rev: v0.0.244
hooks:
- id: ruff
-- repo: https://github.com/MarcoGorelli/absolufy-imports
- rev: v0.3.1
- ... | closes #50812
no need for my lockdown project anymore | https://api.github.com/repos/pandas-dev/pandas/pulls/51408 | 2023-02-15T15:58:40Z | 2023-02-16T16:52:27Z | 2023-02-16T16:52:27Z | 2023-02-16T16:52:35Z |
CI: Fix windows build failures | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index 2d38e6b75ee65..7abc8e5eb92cc 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -3,7 +3,6 @@
import numpy as np
import pytest
-from pandas.compat import is_platform_windows... | - [ ] 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/51405 | 2023-02-15T13:25:02Z | 2023-02-15T16:15:02Z | 2023-02-15T16:15:02Z | 2023-02-15T16:15:06Z |
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 567ae6da92ae2..ac53b176f20c9 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -579,9 +579,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
... | Related to issue #51236
This PR enables functions:
`pandas.Series.sparse.density`
`pandas.Series.sparse.npoints`
`pandas.Series.sparse.sp_values` | https://api.github.com/repos/pandas-dev/pandas/pulls/51404 | 2023-02-15T12:05:03Z | 2023-02-15T15:10:45Z | 2023-02-15T15:10:45Z | 2023-02-15T15:10:46Z |
BUG: Arithmetic inplace ops not respecting CoW | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 75aec514031b4..f6d6dd7f90b02 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -259,6 +259,9 @@ Copy-on-Write improvements
- :meth:`DataFrame.replace` will now respect the Copy-on-Write mechanism
whe... | - [ ] xref #49473 (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/51403 | 2023-02-15T11:41:40Z | 2023-02-15T18:03:30Z | 2023-02-15T18:03:29Z | 2023-02-15T18:03:34Z |
TST: clip inplace doesn't modify views with CoW | diff --git a/pandas/tests/copy_view/test_clip.py b/pandas/tests/copy_view/test_clip.py
new file mode 100644
index 0000000000000..6626f724ab7f3
--- /dev/null
+++ b/pandas/tests/copy_view/test_clip.py
@@ -0,0 +1,21 @@
+import numpy as np
+
+from pandas import DataFrame
+import pandas._testing as tm
+from pandas.tests.cop... | - [ ] 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/51402 | 2023-02-15T11:33:09Z | 2023-02-15T22:43:55Z | 2023-02-15T22:43:55Z | 2023-02-15T22:50:18Z |
ENH: Add support for Index.min/max with arrow string | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 75aec514031b4..14ae995d2fd57 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -308,6 +308,7 @@ Other enhancements
- :meth:`Series.dropna` and :meth:`DataFrame.dropna` has gained ``ignore_index`` keywor... | - [x] closes #51397 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51401 | 2023-02-15T11:23:04Z | 2023-02-15T18:00:02Z | 2023-02-15T18:00:01Z | 2023-02-15T18:02:20Z |
BUG: groupby.agg doesn't include grouping columns in result when selected | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index a8d6f3fce5bb7..2fba47d41f539 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1377,6 +1377,7 @@ Groupby/resample/rolling
- Bug in :meth:`.DataFrameGroupBy.agg` with ``engine="numba"`` failing to respe... | - [x] closes #51186 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51398 | 2023-02-15T03:08:30Z | 2023-02-24T18:11:03Z | 2023-02-24T18:11:03Z | 2023-02-24T18:11:11Z |
CLN: Simplify agg_list_like | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 2601271e27a69..da049218d5187 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -358,7 +358,7 @@ def agg_list_like(self) -> DataFrame | Series:
keys = selected_obj.columns.take(indices)
try:
- concatenated... | - [ ] 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/51396 | 2023-02-15T02:06:38Z | 2023-02-15T19:52:20Z | 2023-02-15T19:52:20Z | 2023-02-15T20:00:22Z |
DEPR: DataFrame.groupby(axis=1) | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index 1bd20b54242e6..0b2224fe9bb32 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -617,8 +617,8 @@ even if some categories are not present in the data:
df = pd.DataFrame(
... | - [x] closes #51203 (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/51395 | 2023-02-14T23:45:44Z | 2023-03-04T02:21:37Z | 2023-03-04T02:21:37Z | 2023-08-30T19:27:57Z |
CI: Pin matplotlib to < 3.7.0 | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 28ff56d8619b9..e8d67a47c88ff 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -33,7 +33,7 @@ dependencies:
- gcsfs
- jinja2
- lxml
- - matplotlib>=3.6.1
+ - matplotlib>=3.6.1, <3.7.0
- numba
- numexpr
- ope... | - [ ] 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/51393 | 2023-02-14T22:06:15Z | 2023-02-15T10:00:45Z | 2023-02-15T10:00:44Z | 2023-03-15T15:49:33Z |
CI: Pin openpyxl to < 3.1.1 | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 28ff56d8619b9..84766a2f85f0e 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -36,7 +36,7 @@ dependencies:
- matplotlib>=3.6.1
- numba
- numexpr
- - openpyxl
+ - openpyxl<3.1.1
- odfpy
- pandas-gbq
- psycop... | - [ ] 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/51391 | 2023-02-14T21:47:52Z | 2023-02-15T11:00:40Z | 2023-02-15T11:00:40Z | 2023-02-15T20:08:52Z |
PERF: Fix performance regression due to CoW ref tracking | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index b5ff69d92492f..fe2a33918cfce 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -874,10 +874,10 @@ cdef class BlockValuesRefs:
data.
"""
cdef:
- public object referenced_blocks
+ public list ... | - [ ] 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/51390 | 2023-02-14T21:41:16Z | 2023-02-15T21:24:15Z | 2023-02-15T21:24:14Z | 2023-09-05T07:09:45Z |
DOC: Set value for undefined variables in examples | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index da049218d5187..4790d00a071cb 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1323,17 +1323,23 @@ def relabel_result(
columns: New columns name for relabelling
order: New order for relabelling
- Examples:
- ---------
- >... | - [x] closes #51342 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51389 | 2023-02-14T18:25:10Z | 2023-02-28T13:33:40Z | 2023-02-28T13:33:40Z | 2023-02-28T13:33:40Z |
DOC: add instructions for updating environment | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index c0e8aa6ba903e..d779e31253e09 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -331,6 +331,26 @@ To automatically fix formatting errors on each commit you make, you ca... | I have found that when I merge in `upstream/main`, the devtools and pre-commit hooks often change, and then I need to update the environment. So I've documented that here.
Not 100% sure that the instructions using `pip` are correct, so suggestions are welcome.
| https://api.github.com/repos/pandas-dev/pandas/pulls/51388 | 2023-02-14T17:41:29Z | 2023-02-16T16:44:32Z | 2023-02-16T16:44:32Z | 2023-02-16T16:44:40Z |
DOC: Fix EX01 issues in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 567ae6da92ae2..ae452a8c07ac8 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -86,14 +86,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; 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/51387 | 2023-02-14T17:39:05Z | 2023-02-15T16:51:11Z | 2023-02-15T16:51:11Z | 2023-02-16T08:06:57Z |
TEST: cut() with nullable Int64 dtype | diff --git a/pandas/tests/reshape/test_cut.py b/pandas/tests/reshape/test_cut.py
index 3b9ab6a83a575..e47e36ab55f10 100644
--- a/pandas/tests/reshape/test_cut.py
+++ b/pandas/tests/reshape/test_cut.py
@@ -744,3 +744,18 @@ def test_cut_bins_datetime_intervalindex():
result = cut(Series([Timestamp("2022-02-26")]), b... | - [x] closes #30787
- [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/51384 | 2023-02-14T16:58:29Z | 2023-02-16T14:18:54Z | 2023-02-16T14:18:54Z | 2023-02-16T14:18:59Z |
DOC: clarify pitfalls of NA vs NaN in nullable floats | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5d2a0fe66cc1d..4c962da3c8d1e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7873,6 +7873,12 @@ def isna(self: NDFrameT) -> NDFrameT:
strings ``''`` or :attr:`numpy.inf` are not considered NA values
(unless you set... | - [x] stopgap solution addressing #49818 and such until the discussion in #32265 is resolved
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/51383 | 2023-02-14T16:16:53Z | 2023-08-01T17:10:51Z | null | 2023-08-01T17:10:52Z |
CI fixup pylint | diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py
index b3d2a366bf58a..15c278bdc3859 100644
--- a/pandas/tests/reshape/test_pivot.py
+++ b/pandas/tests/reshape/test_pivot.py
@@ -801,7 +801,7 @@ def test_pivot_columns_none_raise_error(self):
df = DataFrame({"col1": ["a", "b", ... | - [ ] 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/51381 | 2023-02-14T15:40:30Z | 2023-02-14T16:34:10Z | 2023-02-14T16:34:10Z | 2023-02-14T16:34:11Z |
WARN unnecessary "can't infer datetime format" for out-of-bounds datetimes | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 445683968c58f..69009fe2a30b1 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -73,7 +73,7 @@ from pandas._libs.tslibs.np_datetime cimport (
string_to_dts,
)
-from pandas._libs.tslibs.strptim... | - [ ] 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/51380 | 2023-02-14T15:36:38Z | 2023-02-15T16:45:43Z | null | 2023-02-15T16:45:44Z |
WIP: dtype._is_valid_na_for_dtype | diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py
index 90c86cd6d55ef..437cd975b6bb2 100644
--- a/pandas/core/arrays/arrow/dtype.py
+++ b/pandas/core/arrays/arrow/dtype.py
@@ -4,6 +4,7 @@
import numpy as np
+from pandas._libs import missing as libmissing
from pandas._typing import... | Some dtypes (pyarrow/nullable mostly) need to treat NaN (and maybe None) differently from pd.NA. Motivating bug (which this PR does not address):
```
arr = pd.array(range(5)) / 0
>>> np.nan in arr # <- wrong
False
```
What this does fix is `arr[2] = np.nan` now sets NaN instead of pd.NA. Setting np.nan i... | https://api.github.com/repos/pandas-dev/pandas/pulls/51378 | 2023-02-14T15:26:39Z | 2023-04-21T22:15:55Z | null | 2023-04-21T22:16:26Z |
BUG: GroupBy.quantile with datetimelike and NaT | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index d1b965e64e43b..bd6e2608f97ae 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1186,6 +1186,8 @@ Datetimelike
- Bug in :func:`DataFrame.from_records` when given a :class:`DataFrame` input with timezone... | - [ ] 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/51373 | 2023-02-14T03:04:32Z | 2023-02-14T18:53:13Z | 2023-02-14T18:53:13Z | 2023-02-14T22:35:04Z |
DOC: Add PyArrow user guide | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 457edb46a7ec0..edcd3d2a40b1a 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -113,6 +113,8 @@ values.
ArrowDtype
+For more information, please see the :ref:`PyArrow user guide <pyarrow>`
+
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/51371 | 2023-02-14T00:22:21Z | 2023-02-15T19:54:23Z | 2023-02-15T19:54:23Z | 2023-02-15T19:54:27Z |
ENH: Add Index.filter() method | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index d1b965e64e43b..01aad7eae4d79 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -314,7 +314,7 @@ Other enhancements
- Added new argument ``engine`` to :func:`read_json` to support parsing JSON with pyarr... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- New feature - no issue
- [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
- `pandas\pandas\tests\indexes\test_base.py:TestIndex.test... | https://api.github.com/repos/pandas-dev/pandas/pulls/51370 | 2023-02-13T23:09:57Z | 2023-08-01T17:19:46Z | null | 2023-08-01T17:19:46Z |
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
old mode 100755
new mode 100644
index 2c3cc29bd8c0c..280375aae9295
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -576,7 +576,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --... | Related to the issue #51236
This PR enables functions:
`pandas.core.groupby.DataFrameGroupBy.take`
`pandas.Timestamp.fromtimestamp` | https://api.github.com/repos/pandas-dev/pandas/pulls/51369 | 2023-02-13T23:08:35Z | 2023-02-24T20:01:44Z | null | 2023-02-24T20:01:45Z |
REF: use datetime C API instead of getattrs | diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/datetime/np_datetime.c
index 2bac6c720c3b6..3a84adf083292 100644
--- a/pandas/_libs/tslibs/src/datetime/np_datetime.c
+++ b/pandas/_libs/tslibs/src/datetime/np_datetime.c
@@ -27,6 +27,7 @@ This file is derived from NumPy 1.7. See NUMP... | @WillAyd i think there are a couple of paths that must not be reached, since it looks like they pass np.datetime64 objects to these pydatetime-requiring functions. in python/cython id check that with an `assert False`. have a favorite way of doing that in c code? | https://api.github.com/repos/pandas-dev/pandas/pulls/51368 | 2023-02-13T22:34:40Z | 2023-02-16T23:21:24Z | null | 2023-02-16T23:21:30Z |
CLN: Remove default for columns in pivot | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2650090a3f61a..a5edd121ad21f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8250,6 +8250,12 @@ def groupby(
Parameters
----------%s
+ columns : str or object or a list of str
+ Column to use to make ne... | - [ ] 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/51367 | 2023-02-13T21:08:10Z | 2023-02-14T11:17:30Z | 2023-02-14T11:17:30Z | 2023-02-14T21:21:16Z |
Extensiondoc | diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst
index 5347aab2c731a..c7286616672b9 100644
--- a/doc/source/development/extending.rst
+++ b/doc/source/development/extending.rst
@@ -74,10 +74,11 @@ applies only to certain dtypes.
Extension types
---------------
-.. warning::
+... | - [ ] 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/51366 | 2023-02-13T21:04:25Z | 2023-02-13T21:04:33Z | null | 2023-02-13T21:05:55Z |
ENH: Improve performance for arrow dtypes in monotonic join | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..08ba7d80f6880 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1089,7 +1089,7 @@ Performance improvements
- Performance improvement in :meth:`Series.rank` for pyarrow-backed dtypes (:is... | - [ ] 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/51365 | 2023-02-13T20:56:40Z | 2023-02-16T10:47:49Z | 2023-02-16T10:47:49Z | 2023-02-16T10:47:53Z |
CLN: idiomatic indexing checks | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 363bfe76d40fb..2b55e0c8c1d0e 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3732,10 +3732,11 @@ def get_indexer(
# Only call equals if we have same dtype to avoid inference/casting
retu... | - [ ] 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/51360 | 2023-02-13T15:18:15Z | 2023-02-13T18:22:22Z | 2023-02-13T18:22:22Z | 2023-02-13T18:44:02Z |
BLD: Fix uploading of aarch64 wheels | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5f25c891acf8a..ac28728685ce4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -26,18 +26,18 @@ jobs:
image: ubuntu-2004:202101-01
resource_class: arm.large
environment:
- TAG = << pipeline.git.tag >>
- TRIGGER_S... | - [ ] 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/51358 | 2023-02-13T12:41:28Z | 2023-02-14T21:15:05Z | 2023-02-14T21:15:05Z | 2023-02-14T21:17:18Z |
STYLE: Fix errors in doctests | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 96abd98bbdd75..0369de8db1339 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3329,7 +3329,7 @@ def to_latex(
>>> print(df.to_latex(index=False,
... formatters={"name": str.upper},
... ... | - [x] closes #51341
- [ ] [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/51356 | 2023-02-13T08:47:31Z | 2023-02-16T11:20:38Z | 2023-02-16T11:20:38Z | 2023-02-16T11:20:38Z |
BUG: iterparse on `read_xml` ignores repeated elements | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 778169b0dbeb4..b76655bc134b5 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1304,6 +1304,7 @@ I/O
- Bug in :meth:`DataFrame.to_dict` not converting ``NA`` to ``None`` (:issue:`50795`)
- Bug in :met... | - [X] closes #51183
- [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/51355 | 2023-02-13T01:12:08Z | 2023-02-13T17:45:50Z | 2023-02-13T17:45:50Z | 2023-02-13T17:45:58Z |
TST: xfail flaky test | diff --git a/pandas/tests/io/parser/common/test_file_buffer_url.py b/pandas/tests/io/parser/common/test_file_buffer_url.py
index e4cd0f1d19a79..b08ec8c1172bc 100644
--- a/pandas/tests/io/parser/common/test_file_buffer_url.py
+++ b/pandas/tests/io/parser/common/test_file_buffer_url.py
@@ -13,6 +13,7 @@
import pytest
... | - [ ] 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/51354 | 2023-02-12T22:56:52Z | 2023-02-13T17:48:14Z | 2023-02-13T17:48:14Z | 2023-02-13T17:56:36Z |
DOC: run typing checks | diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst
index 63554447f295e..c6b2cd10519ae 100644
--- a/doc/source/development/contributing_codebase.rst
+++ b/doc/source/development/contributing_codebase.rst
@@ -266,17 +266,21 @@ This module will ultimately house... | - [ ] closes #51313 (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/51352 | 2023-02-12T22:33:31Z | 2023-02-17T04:33:58Z | 2023-02-17T04:33:58Z | 2023-08-09T15:08:40Z |
BUG: Period('') raising | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..1d123453e60d2 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1312,6 +1312,7 @@ Period
- Bug in :class:`Period` where passing a string with finer resolution than nanosecond would resul... | - [ ] 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/51349 | 2023-02-12T19:40:29Z | 2023-02-13T17:51:20Z | 2023-02-13T17:51:19Z | 2023-02-13T17:56:15Z |
STYLE upgrade black formatter | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7bd662308afa8..2f13ac4c73fa0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -125,7 +125,7 @@ repos:
language: python
require_serial: true
types_or: [python, pyi]
- additional_dependencies: [blac... | gonna have to do this eventually...
I'm trying to tell if it changed anything other than just deleting newlines, any `git` masters know how to do that? | https://api.github.com/repos/pandas-dev/pandas/pulls/51348 | 2023-02-12T19:19:19Z | 2023-02-14T21:07:21Z | 2023-02-14T21:07:21Z | 2023-02-14T21:08:04Z |
PERF: ArrowExtensionArray.to_numpy(dtype=object) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 07c7120a8f6c1..cda8c72e6b773 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1124,7 +1124,7 @@ Performance improvements
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.factorize` (:is... | - [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/51347 | 2023-02-12T03:01:30Z | 2023-02-16T16:42:13Z | 2023-02-16T16:42:13Z | 2023-02-23T01:38:59Z |
ENH: Index set operations with sort=True | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..a393e0dca4c79 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -312,6 +312,7 @@ Other enhancements
- Added new argument ``dtype`` to :func:`read_sql` to be consistent with :func:`read_sq... | - [x] closes #25151 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51346 | 2023-02-12T01:21:26Z | 2023-02-13T18:38:53Z | 2023-02-13T18:38:52Z | 2023-02-13T18:44:35Z |
PERF: remove categories | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index fb953e601735e..bcf1ded63314e 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -73,7 +73,6 @@
from pandas.core.dtypes.missing import (
is_valid_na_for_dtype,
isna,
- notna,
)
... | - [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/51344 | 2023-02-12T01:17:01Z | 2023-02-13T20:58:48Z | 2023-02-13T20:58:48Z | 2023-02-23T01:38:54Z |
add typehint for None pct_change | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5d2a0fe66cc1d..f9afb50e1189a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10814,7 +10814,7 @@ def describe(
def pct_change(
self: NDFrameT,
periods: int = 1,
- fill_method: Literal["backfill", "bfill... | - [x ] closes #51269
- [x ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints)
I've added a typehint for None. It looks l... | https://api.github.com/repos/pandas-dev/pandas/pulls/51343 | 2023-02-12T01:04:43Z | 2023-02-13T21:20:10Z | 2023-02-13T21:20:10Z | 2023-02-13T21:20:11Z |
PERF: Fix performance regression in get_loc of IntervalIndex | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 6805d32049d34..482909d195bd0 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -675,7 +675,6 @@ def _shallow_copy(self: IntervalArrayT, left, right) -> IntervalArrayT:
"""
dtype = Inter... | - [ ] 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/51339 | 2023-02-12T00:08:02Z | 2023-02-14T11:26:22Z | 2023-02-14T11:26:22Z | 2023-02-14T21:00:25Z |
ENH: support addition with pyarrow string dtypes | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 894dc75e351a4..efd44b1bca3f2 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1,6 +1,7 @@
from __future__ import annotations
from copy import deepcopy
+import operator
import re
from ... | @mroeschke it wouldn't surprise me if you say you prefer to explicitly _not_ support addition this way, but this seems like a pretty big use case, and the _libs.ops functions are a pretty great fit. | https://api.github.com/repos/pandas-dev/pandas/pulls/51338 | 2023-02-11T23:23:27Z | 2023-02-17T22:05:05Z | 2023-02-17T22:05:05Z | 2023-02-17T22:12:27Z |
DOC: fix EX02 errors in docstrings III | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 3ad8a685c8ed3..7f1f216ee36db 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -579,10 +579,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX02)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings... | Related to the issue #51236
This PR enables functions:
`pandas.Period.strftime \`
`pandas.Series.floordiv \`
`pandas.Series.rfloordiv \` | https://api.github.com/repos/pandas-dev/pandas/pulls/51337 | 2023-02-11T23:20:38Z | 2023-02-12T09:06:18Z | 2023-02-12T09:06:18Z | 2023-02-12T09:06:19Z |
ENH: Add lazy copy to where | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 3058603f77e43..7e8ce776801fa 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -227,6 +227,7 @@ Copy-on-Write improvements
- :meth:`DataFrame.interpolate` / :meth:`Series.interpolate`
- :meth:`Data... | - [ ] xref #49473 (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/51336 | 2023-02-11T22:06:11Z | 2023-02-15T21:27:15Z | 2023-02-15T21:27:15Z | 2023-02-15T21:27:53Z |
BUG: DataFrame reductions dtypes on object input | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 78422ec686da8..2362293b4a2ae 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -814,7 +814,7 @@ Other API changes
- The levels of the index of the :class:`Series` returned from ``Series.sparse.from_coo`... | - [x] closes #49603 (Replace xxxx with the GitHub issue number)
- [x] closes #51242
- [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-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/51335 | 2023-02-11T21:27:39Z | 2023-02-18T01:14:54Z | 2023-02-18T01:14:54Z | 2023-03-13T04:28:29Z |
BUG: DatetimeArray+DateOffset result unit | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 31aff5d4ebb41..ab9e12dc5de81 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -774,7 +774,7 @@ def _add_offset(self, offset) -> DatetimeArray:
stacklevel=find_stack_level(),
... | - [ ] 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/51334 | 2023-02-11T21:09:01Z | 2023-02-13T18:20:54Z | 2023-02-13T18:20:54Z | 2023-02-13T18:45:15Z |
ENH: support td64/dt64 in GroupBy.std | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 778169b0dbeb4..aeb9d476a0a87 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -284,6 +284,7 @@ Other enhancements
- Added support for ``dt`` accessor methods when using :class:`ArrowDtype` with a ``pya... | - [x] closes #48481 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51333 | 2023-02-11T21:08:16Z | 2023-02-13T18:37:19Z | 2023-02-13T18:37:19Z | 2023-02-13T18:43:40Z |
BUG : Add Deprecation FutureWarning for parse function call | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..39c3916a6c63b 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1304,6 +1304,7 @@ I/O
- Bug in :meth:`DataFrame.to_dict` not converting ``NA`` to ``None`` (:issue:`50795`)
- Bug in :met... | - [ ] closes #50953 (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/51331 | 2023-02-11T19:57:02Z | 2023-02-14T03:30:07Z | null | 2023-02-14T22:53:26Z |
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 2fa023500731e..975f95d4a25dc 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -591,9 +591,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.types.is_datetime64_ns_dtype \
pandas.api.types.is_datetime64tz_dtype \
... | - [ ] 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/51330 | 2023-02-11T19:14:45Z | 2023-02-21T19:40:03Z | null | 2023-02-21T19:40:03Z |
DOC remove outdated instructions to delete branch | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index d0bda0ba42bd7..c0e8aa6ba903e 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -331,29 +331,6 @@ To automatically fix formatting errors on each commit you make, you ca... | since we squash and merge, the recommended workflow here doesn't actually work
I don't think it adds any value to contributors, I'd suggest removing it | https://api.github.com/repos/pandas-dev/pandas/pulls/51329 | 2023-02-11T19:06:10Z | 2023-02-14T11:25:39Z | 2023-02-14T11:25:39Z | 2023-02-14T11:25:47Z |
DOC: clarify "inplace"-ness of DataFrame.setitem | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 33d503f3dd4cb..59ebf9f55e558 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3869,23 +3869,27 @@ def _get_value(self, index, col, takeable: bool = False) -> Scalar:
def isetitem(self, loc, value) -> None:
"""
- Set th... | - [x] closes #51300
- [NA] [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/51328 | 2023-02-11T17:51:46Z | 2023-02-20T21:37:10Z | 2023-02-20T21:37:10Z | 2023-02-20T21:37:19Z |
ENH: Avoid copy when possible in merge | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2650090a3f61a..b55867b432a78 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9809,7 +9809,7 @@ def merge(
right_index: bool = False,
sort: bool = False,
suffixes: Suffixes = ("_x", "_y"),
- copy: bool = Tru... | - [ ] xref #49473 (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/51327 | 2023-02-11T17:11:56Z | 2023-02-14T20:41:57Z | 2023-02-14T20:41:56Z | 2023-02-14T20:53:34Z |
BLD: Fix regex in arm64 wheel builders | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 772a1c8821dcf..5f25c891acf8a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -39,7 +39,8 @@ jobs:
elif [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
export IS_SCHEDULE_DISPATCH="true"
# Look... | - [ ] 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/51326 | 2023-02-11T12:56:39Z | 2023-02-11T20:48:49Z | 2023-02-11T20:48:49Z | 2023-02-11T21:12:15Z |
TYP: Fix missed copy annotations in concat | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index 0de995d2f773f..a36352e83ff3e 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -73,7 +73,7 @@ def concat(
names=...,
verify_integrity: bool = ...,
sort: bool = ...,
- copy: bool = ...,
+ ... | - [ ] 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/51325 | 2023-02-11T11:43:27Z | 2023-02-11T13:30:26Z | 2023-02-11T13:30:26Z | 2023-02-11T13:30:45Z |
TST: Add test for set_index not mutating index when parent is mutated | diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py
index d822cc03c499d..37ca3733d7908 100644
--- a/pandas/tests/copy_view/test_methods.py
+++ b/pandas/tests/copy_view/test_methods.py
@@ -648,6 +648,15 @@ def test_set_index(using_copy_on_write):
tm.assert_frame_equal(df, df... | - [ ] xref #49473 (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/51324 | 2023-02-11T11:32:47Z | 2023-02-14T20:36:29Z | 2023-02-14T20:36:29Z | 2023-02-14T20:53:06Z |
DOC: fix EX02 errors in docstrings II | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 3ad8a685c8ed3..82802d717b45e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -589,15 +589,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timestamp.fromtimestamp \
pandas.api.types.infer_dtype \
pandas.api.... | Related to issue #51236
This PR enables functions:
`pandas.api.types.is_object_dtype`
`pandas.api.types.is_numeric_dtype`
`pandas.api.types.is_datetime64_dtype` | https://api.github.com/repos/pandas-dev/pandas/pulls/51323 | 2023-02-11T10:33:47Z | 2023-02-11T16:00:24Z | 2023-02-11T16:00:24Z | 2023-02-11T16:00:24Z |
BUG: non-64-bit numeric dtypes should raise in IntervalDtype constructor | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..6361d22f0ba73 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1238,6 +1238,8 @@ Interval
- Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interval has duplicate left b... | - [x] closes #45412
- [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/51322 | 2023-02-11T09:11:01Z | 2023-05-24T16:12:41Z | null | 2023-05-24T16:12:41Z |
CLN: clean ._hidden_attrs | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 38f97e6f12501..7469e92436e1a 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -361,7 +361,7 @@ class SparseArray(OpsMixin, PandasObject, ExtensionArray):
"""
_subtyp = "spars... | Clean-up contents of `_hidden_attrs` after deprecations & removals. | https://api.github.com/repos/pandas-dev/pandas/pulls/51321 | 2023-02-11T07:54:17Z | 2023-02-13T18:44:12Z | 2023-02-13T18:44:12Z | 2023-02-13T23:26:24Z |
BUG: to_datetime with both origin and unit | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 43a34c8e18b2d..492b209270be1 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1182,6 +1182,7 @@ Datetimelike
- Bug in :func:`to_datetime` was not returning input with ``errors='ignore'`` when input wa... | - [x] closes #42624 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51320 | 2023-02-11T01:26:37Z | 2023-02-13T18:59:48Z | 2023-02-13T18:59:48Z | 2023-02-13T19:01:07Z |
ENH: EA._hash_pandas_object | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 865f6d46cfee0..d3e7cba4ed712 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -512,6 +512,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.extensions.ExtensionArray._from_factorized \
pandas.api.extensions.Extensio... | - [x] closes #51108 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51319 | 2023-02-11T00:10:29Z | 2023-03-01T16:25:02Z | 2023-03-01T16:25:02Z | 2023-06-20T07:23:05Z |
CLN: assorted | diff --git a/pandas/_libs/src/parser/io.c b/pandas/_libs/src/parser/io.c
index 2ed0cef3cdc58..38304cca94a12 100644
--- a/pandas/_libs/src/parser/io.c
+++ b/pandas/_libs/src/parser/io.c
@@ -67,7 +67,7 @@ void *buffer_rd_bytes(void *source, size_t nbytes, size_t *bytes_read,
func = PyObject_GetAttrString(src->obj,... | - [ ] 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/51318 | 2023-02-10T23:34:11Z | 2023-02-13T18:48:11Z | 2023-02-13T18:48:11Z | 2023-02-13T19:01:48Z |
allow type to be specified in argument of tolist() | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index d1bc322a6ec7a..5ee57538f0a3e 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -307,7 +307,7 @@ Other enhancements
- Added new argument ``dtype`` to :func:`read_sql` to be consistent with :func:`read_sq... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- no corresponding issue
- [x] [Tests added and passed]
- modified `tests/indexes/test_any_index.py:TestConversion.test_tolist_matches_list()`
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codeba... | https://api.github.com/repos/pandas-dev/pandas/pulls/51317 | 2023-02-10T23:28:37Z | 2023-02-13T19:56:00Z | null | 2023-02-13T20:48:14Z |
ENH: Use MaskedEngine for numeric pyarrow dtypes | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index adfa382b66514..e6068fc4e94b1 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1117,7 +1117,7 @@ Performance improvements
- Performance improvement in :meth:`DataFrame.loc` and :meth:`Series.loc` for t... | - [ ] 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/51316 | 2023-02-10T23:23:46Z | 2023-02-16T23:59:09Z | 2023-02-16T23:59:09Z | 2023-02-16T23:59:13Z |
CLN: Move DeepChainMap to only location used | diff --git a/pandas/compat/chainmap.py b/pandas/compat/chainmap.py
deleted file mode 100644
index 5bec8e5fa1913..0000000000000
--- a/pandas/compat/chainmap.py
+++ /dev/null
@@ -1,37 +0,0 @@
-from __future__ import annotations
-
-from typing import (
- ChainMap,
- TypeVar,
-)
-
-_KT = TypeVar("_KT")
-_VT = TypeVar... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/51314 | 2023-02-10T22:17:04Z | 2023-02-11T04:50:59Z | 2023-02-11T04:50:59Z | 2023-02-11T04:51:03Z |
CI/TST: Enable -W error:::pandas in pyproject.toml | diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml
index 7446ec00a87c9..bc6ecd7c5e5d0 100644
--- a/.github/workflows/macos-windows.yml
+++ b/.github/workflows/macos-windows.yml
@@ -18,8 +18,6 @@ env:
PANDAS_CI: 1
PYTEST_TARGET: pandas
PATTERN: "not slow and not db and not ne... | - [ ] closes #48553 (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/51312 | 2023-02-10T19:32:56Z | 2023-02-22T23:30:53Z | 2023-02-22T23:30:53Z | 2023-02-22T23:53:02Z |
REF: avoid try/except in _gotitem | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index cb129ec272ff3..9053bbdecf237 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -394,15 +394,18 @@ def _gotitem(self, key, ndim: int, subset=None):
grouper = self.grouper
if subset is None:
subset = se... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51311 | 2023-02-10T18:52:20Z | 2023-02-13T19:04:55Z | 2023-02-13T19:04:55Z | 2023-02-13T19:07:15Z |
DOC: fix Series.name docstring, closes #42550 | diff --git a/pandas/core/series.py b/pandas/core/series.py
index a88dd224068ac..8aeda5c71966c 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -268,7 +268,7 @@ class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc]
Data type for the output Series. If not specified, this will be
... | - [x] closes #42550 (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/51310 | 2023-02-10T18:45:23Z | 2023-02-11T04:53:46Z | 2023-02-11T04:53:46Z | 2023-02-11T16:20:19Z |
TYP: try out TypeGuard | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index fbc577712d294..31d4274bb5f8d 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -1,6 +1,6 @@
# TODO(npdtypes): Many types specified here can be made more specific/accurate;
# the more specific versions are specified in comments
-
+from decim... | This effectively makes mypy understand that `is_integer(obj)` is equivalent to `isinstance(obj, (int, np.integer))`. This is a mixed bag. It allows for getting rid of some redundant casts/ignores, but makes some new ones necessary. I'd be fine either way on this. | https://api.github.com/repos/pandas-dev/pandas/pulls/51309 | 2023-02-10T18:36:27Z | 2023-03-16T20:14:30Z | 2023-03-16T20:14:30Z | 2023-03-16T20:32:47Z |
CI: Add pyarrow 11 to ci | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index cb07c67dda2df..fc7c3cd5f4b32 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -29,7 +29,7 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
... | - [ ] 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/51308 | 2023-02-10T18:33:41Z | 2023-03-31T17:45:36Z | null | 2023-04-27T19:53:41Z |
API: ArrowDtype.type | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 3a3f0b8ce61be..18caee3249d32 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -506,6 +506,18 @@ def __len__(self) -> int:
"""
return len(self._data)
+ def __contains__... | cc @mroeschke we discussed this one of the pyarrow testing PRs.
Still has some failing `pandas/tests/extension/test_arrow.py::TestBaseInterface::test_contains` tests where eyeballs would be welcome.
ATM this returns Timestamp/Timedelta when the pyarrow unit is "ns" and pydatetime/pydatetime otherwise. We could r... | https://api.github.com/repos/pandas-dev/pandas/pulls/51307 | 2023-02-10T18:28:59Z | 2023-02-16T16:38:33Z | 2023-02-16T16:38:33Z | 2023-02-16T16:46:43Z |
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 17ad347d58fdf..9830e5d92f8d4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -593,8 +593,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.types.is_datetime64_dtype \
pandas.api.types.is_datetime64_ns_dtype \
... | - Related to issue #51236
This PR enables functions:
`pandas.api.types.is_float_dtype`
`pandas.api.types.is_int64_dtype` | https://api.github.com/repos/pandas-dev/pandas/pulls/51306 | 2023-02-10T18:23:18Z | 2023-02-11T04:52:22Z | 2023-02-11T04:52:22Z | 2023-02-11T04:52:29Z |
BUG: idxmax and idxmin raising for all na ea series | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index d1bc322a6ec7a..eb72bee265c1b 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1256,6 +1256,7 @@ Missing
- Bug in :meth:`DataFrame.update` with ``overwrite=False`` raising ``TypeError`` when ``self`` h... | - [x] closes #51276 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51305 | 2023-02-10T17:42:57Z | 2023-02-23T14:31:20Z | null | 2023-08-28T21:09:51Z |
ENH: Do unique check before computing indexer in reindex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 363bfe76d40fb..4e7b64efe7819 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4217,17 +4217,11 @@ def reindex(
)
elif self._is_multi:
raise ValueError("ca... | - [x] closes #51287 (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/51304 | 2023-02-10T17:25:20Z | 2023-02-14T20:58:08Z | 2023-02-14T20:58:08Z | 2024-02-26T03:50:56Z |
TST: Test mask/where inplace don't modify views with CoW | diff --git a/pandas/tests/copy_view/test_replace.py b/pandas/tests/copy_view/test_replace.py
index a1347d8e12950..de7278dca06ff 100644
--- a/pandas/tests/copy_view/test_replace.py
+++ b/pandas/tests/copy_view/test_replace.py
@@ -1,4 +1,5 @@
import numpy as np
+import pytest
from pandas import (
Categorical,
@@... | - [ ] 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/51303 | 2023-02-10T16:55:55Z | 2023-02-10T21:19:11Z | 2023-02-10T21:19:11Z | 2023-02-10T22:27:04Z |
ENH: Enable more Arrow CSV tests/features | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index c927dc2ac4a96..200ba9af508b6 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -270,6 +270,7 @@ Other enhancements
- :func:`to_datetime` now accepts ``"mixed"`` as an argument to ``format``, which will ... | - [ ] 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/51302 | 2023-02-10T16:46:06Z | 2023-03-15T20:28:06Z | 2023-03-15T20:28:06Z | 2023-03-15T20:28:12Z |
TST: avoid mutating DataFrame.values in tests (use iloc instead) | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 4742348b209d9..e69b0899facb9 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -796,7 +796,7 @@ def _gen_unique_rand(rng, _extra_size):
def makeMissingDataframe(density: float = 0.9, random_state=None) -> DataFrame... | This is splitting off some "usefully anyway" test changes from https://github.com/pandas-dev/pandas/pull/51082
We have several places internally where we mutate the `df.values[..] = ..` directly, while this is certainly a discouraged pattern (also only work if you have a single block), and often easily avoided by us... | https://api.github.com/repos/pandas-dev/pandas/pulls/51301 | 2023-02-10T16:03:32Z | 2023-02-11T11:36:21Z | 2023-02-11T11:36:21Z | 2023-02-14T21:12:32Z |
BUG: avoid StringArray.__setitem__ to mutate the value being set as side-effect | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 43a34c8e18b2d..410690de1a1ec 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1229,6 +1229,7 @@ Strings
^^^^^^^
- Bug in :func:`pandas.api.types.is_string_dtype` that would not return ``True`` for :c... | Encountered this while working on https://github.com/pandas-dev/pandas/pull/51082, and this can be done as independent fix.
```
In [5]: arr = pd.array(["a", "b", "c"], dtype="string")
In [6]: value = np.array(["A", None])
In [7]: arr[[0, 1]] = value
In [8]: value
Out[8]: array(['A', <NA>], dtype=object) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/51299 | 2023-02-10T15:42:07Z | 2023-02-11T04:55:44Z | 2023-02-11T04:55:44Z | 2023-02-11T08:26:17Z |
ENH: enable lazy copy in merge() for CoW | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 6c5154b90d614..37013a5d1fb8f 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -134,7 +134,7 @@ def merge(
right_index: bool = False,
sort: bool = False,
suffixes: Suffixes = ("_x", "_y"),
- co... | xref https://github.com/pandas-dev/pandas/issues/49473
The current `copy=False` only works when merging on the index; when merging on keys, we currently get a [0, 1, 2, ..] join index for both left and right, and so that still results in a copy (but that can be avoided using the `is_range_indexer` utility) | https://api.github.com/repos/pandas-dev/pandas/pulls/51297 | 2023-02-10T14:22:42Z | 2023-02-11T16:30:59Z | 2023-02-11T16:30:59Z | 2023-02-11T16:31:12Z |
TST: add CoW test for setitem with Series being set | diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py
index ae5ffb98558d3..d822cc03c499d 100644
--- a/pandas/tests/copy_view/test_methods.py
+++ b/pandas/tests/copy_view/test_methods.py
@@ -1359,6 +1359,33 @@ def test_isetitem(using_copy_on_write):
assert not np.shares_me... | xref https://github.com/pandas-dev/pandas/issues/49473
We already have a test for setitem from https://github.com/pandas-dev/pandas/pull/50692/, but that only handled setting an array (actually, does that copy the array?), and not setting with a pandas object for which we could use lazy copy mechanism.
This is o... | https://api.github.com/repos/pandas-dev/pandas/pulls/51296 | 2023-02-10T13:38:26Z | 2023-02-11T11:25:27Z | 2023-02-11T11:25:27Z | 2023-02-11T11:28:29Z |
TST: enable CoW copy keyword tests for astype/infer_objects | diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py
index 6b54345723118..54335c1131af4 100644
--- a/pandas/tests/copy_view/test_methods.py
+++ b/pandas/tests/copy_view/test_methods.py
@@ -66,11 +66,11 @@ def test_copy_shallow(using_copy_on_write):
lambda df, copy: df.se... | Small follow-up on https://github.com/pandas-dev/pandas/pull/50536, now that CoW has been properly added to `astype` and `infer_objects` | https://api.github.com/repos/pandas-dev/pandas/pulls/51293 | 2023-02-10T11:17:42Z | 2023-02-10T15:40:11Z | 2023-02-10T15:40:11Z | 2023-02-10T15:44:57Z |
TST: add CoW tests for xs() and get() | diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py
index 6b54345723118..791a744e5b4e3 100644
--- a/pandas/tests/copy_view/test_methods.py
+++ b/pandas/tests/copy_view/test_methods.py
@@ -1,6 +1,9 @@
import numpy as np
import pytest
+from pandas.errors import SettingWithCopy... | xref https://github.com/pandas-dev/pandas/issues/49473
Adding basic tests for `xs` and `get`. Those rely on indexing methods under the hood, and thus already work correctly for CoW, but adding some basic tests to have independent coverage. | https://api.github.com/repos/pandas-dev/pandas/pulls/51292 | 2023-02-10T11:12:59Z | 2023-02-10T13:40:59Z | 2023-02-10T13:40:59Z | 2023-02-10T13:41:02Z |
CI pre-commit autoupdate | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 39c1f2b3a6c85..7bd662308afa8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,7 +16,7 @@ ci:
autofix_prs: false
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.215
+ rev: v0.0.244
... | the automated one didn't run, maybe because the diff is too large?
this touches a lot of files, but it's mostly just `black` removing newlines
| https://api.github.com/repos/pandas-dev/pandas/pulls/51290 | 2023-02-10T10:50:57Z | 2023-02-11T19:15:52Z | 2023-02-11T19:15:52Z | 2023-02-11T19:15:52Z |
CI: Xfail plotting tests | diff --git a/pandas/tests/plotting/frame/test_frame_subplots.py b/pandas/tests/plotting/frame/test_frame_subplots.py
index 47d91c7975a28..0f57ade453564 100644
--- a/pandas/tests/plotting/frame/test_frame_subplots.py
+++ b/pandas/tests/plotting/frame/test_frame_subplots.py
@@ -6,6 +6,8 @@
import numpy as np
import pyt... | - [ ] 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/51289 | 2023-02-10T10:38:49Z | 2023-02-10T15:53:55Z | 2023-02-10T15:53:55Z | 2023-02-10T15:56:02Z |
DOC Fix EX01 errors - added example | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7c61157149513..99084f23818c9 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -87,7 +87,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \
... | - [ ] 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/51288 | 2023-02-10T10:23:06Z | 2023-02-11T17:51:58Z | 2023-02-11T17:51:58Z | 2023-02-11T18:13:31Z |
DOC: fix some issues | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 29f360e050548..dcc9aa9f84545 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -71,7 +71,7 @@ Below is a possibly non-exhaustive list of changes:
e.g. ``Index([1, 2, 3])`` will have a ``int64`` dtype... | Some small doc issues. | https://api.github.com/repos/pandas-dev/pandas/pulls/51286 | 2023-02-10T08:28:54Z | 2023-02-13T19:06:13Z | 2023-02-13T19:06:12Z | 2023-02-13T23:26:46Z |
TST: fix pyarrow xfails for date/time dtypes | diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx
index e6516b004a973..8df73398f1e4a 100644
--- a/pandas/_libs/missing.pyx
+++ b/pandas/_libs/missing.pyx
@@ -338,6 +338,14 @@ def _create_binary_propagating_op(name, is_divmod=False):
elif is_cmp and isinstance(other, (date, time, timedelta)):
... | Sits on top of #50689 | https://api.github.com/repos/pandas-dev/pandas/pulls/51281 | 2023-02-10T01:01:36Z | 2023-02-21T09:11:53Z | 2023-02-21T09:11:53Z | 2023-02-21T15:27:46Z |
ENH: Add CoW optimization for fillna | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 53581420f920f..fc083433b9b53 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -223,6 +223,7 @@ Copy-on-Write improvements
- :meth:`DataFrame.to_period` / :meth:`Series.to_period`
- :meth:`DataFram... | - [ ] xref #49473 (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/51279 | 2023-02-09T23:12:52Z | 2023-02-11T10:46:32Z | 2023-02-11T10:46:32Z | 2023-03-01T23:20:36Z |
BUG: replace with inplace not respecting cow | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 9fd9faf057a8a..ad4dc9edffefd 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -247,6 +247,9 @@ Copy-on-Write improvements
can never update the original Series or DataFrame. Therefore, an informative
... | - [x] closes #51277 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51278 | 2023-02-09T21:18:28Z | 2023-02-10T10:47:35Z | 2023-02-10T10:47:35Z | 2023-02-10T10:47:39Z |
DOC: Remove reference to mysql fallback support from user guide. | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1c3cdd9f4cffd..4e331df9749be 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5486,11 +5486,8 @@ included in Python's standard library by default.
You can find an overview of supported drivers for each SQL di... | - [x] closes #51263
- [ ] [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/51275 | 2023-02-09T18:47:24Z | 2023-02-10T18:02:36Z | 2023-02-10T18:02:36Z | 2023-02-10T22:33:08Z |
BUG: can't resample with non-nano dateindex, out-of-nanosecond-bounds | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index cb129ec272ff3..96982f8727188 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -1731,6 +1731,7 @@ def _get_time_bins(self, ax: DatetimeIndex):
ax.min(),
ax.max(),
self.freq,
+ unit=... | - [ ] closes #51024 (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/51274 | 2023-02-09T18:45:38Z | 2023-02-13T21:33:41Z | 2023-02-13T21:33:41Z | 2023-02-13T21:33:48Z |
Revert "PERF: ArrowExtensionArray.to_numpy(dtype=object)" | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 0ea18d69f0dbb..9fd9faf057a8a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1078,7 +1078,7 @@ Performance improvements
- Performance improvement in :meth:`~arrays.ArrowExtensionArray.factorize` (:is... | Reverts pandas-dev/pandas#51227 | https://api.github.com/repos/pandas-dev/pandas/pulls/51273 | 2023-02-09T18:33:09Z | 2023-02-09T19:09:30Z | 2023-02-09T19:09:30Z | 2023-02-09T19:10:04Z |
CI: Don't test min pyarrow version with multiple python versions | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 6726139ed5fa4..cb07c67dda2df 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -29,7 +29,7 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
... | cc @phofl
After the minimum pyarrow version was bumped to 7, we shouldn't need to test this over multiple python versions anymore.
Additionally, uses PY3.11 to test multiple pyarrow versions instead of PY3.10 | https://api.github.com/repos/pandas-dev/pandas/pulls/51272 | 2023-02-09T18:26:54Z | 2023-02-10T04:42:46Z | 2023-02-10T04:42:46Z | 2023-02-10T04:42:49Z |
CoW: Ensure that iterrows does not allow mutating parent | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 7fc856be374e9..9ceec88e494a5 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -222,6 +222,7 @@ Copy-on-Write improvements
- :meth:`DataFrame.to_timestamp` / :meth:`Series.to_timestamp`
- :meth:`Da... | - [ ] 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/51271 | 2023-02-09T18:00:34Z | 2023-02-16T08:09:51Z | 2023-02-16T08:09:51Z | 2023-02-16T10:48:21Z |
ENH: Optimize putmask implementation for CoW | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0e6356044c6db..5d2a0fe66cc1d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9612,7 +9612,8 @@ def _where(
# align the cond to same shape as myself
cond = common.apply_if_callable(cond, self)
if isinstance... | - [ ] 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/51268 | 2023-02-09T17:20:02Z | 2023-02-10T18:35:10Z | 2023-02-10T18:35:10Z | 2023-02-10T18:40:30Z |
WEB: Obfuscating workgroup email addresses to fix Issue #51209 | diff --git a/web/pandas/about/team.md b/web/pandas/about/team.md
index a21e8a3142497..49b8a26ab56e8 100644
--- a/web/pandas/about/team.md
+++ b/web/pandas/about/team.md
@@ -52,7 +52,15 @@ The project governance is available in the [project governance page]({{ base_url
### {{ workgroup.name }}
<ul>
- <li><b>Conta... | Hi,
As defined by the scope of this Issue #51209 , I have implemented a JavaScript based solution for obfuscating ```workgroup``` emails:
If required, please let me know whether any Tests/Code Checks need to be added/passed for this or if any other change needs to be implemented to close this PR successfully .
... | https://api.github.com/repos/pandas-dev/pandas/pulls/51266 | 2023-02-09T17:04:48Z | 2023-02-24T22:12:48Z | 2023-02-24T22:12:47Z | 2023-02-25T04:46:42Z |
ENH: Implement CoW for convert_dtypes | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index b10f201e79318..850391522dbff 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -225,6 +225,7 @@ Copy-on-Write improvements
- :meth:`DataFrame.tz_convert` / :meth:`Series.tz_localize`
- :meth:`DataF... | - [ ] xref #49473 (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/51265 | 2023-02-09T16:40:14Z | 2023-02-10T08:00:12Z | 2023-02-10T08:00:12Z | 2023-02-10T09:44:24Z |
DOC Correct EX02 docstring errors | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 08fbe3be9b092..17ad347d58fdf 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -589,9 +589,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.sparse.sp_values \
pandas.Timestamp.fromtimestamp \
pandas.api.... | - [ ] 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/51264 | 2023-02-09T14:09:45Z | 2023-02-09T16:00:39Z | 2023-02-09T16:00:39Z | 2023-02-09T16:08:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.