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 |
|---|---|---|---|---|---|---|---|
Backport PR #31704 on branch 1.0.x (DOC: fix contributors listing for v1.0.1) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 5863ff7367626..ef3bb8161d13f 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -76,4 +76,4 @@ Bug fixes
Contributors
~~~~~~~~~~~~
-.. contributors:: v0.25.3..v1.0.1|HEAD
+.. contributors:: v1.0.0..v1... | Backport PR #31704: DOC: fix contributors listing for v1.0.1 | https://api.github.com/repos/pandas-dev/pandas/pulls/31706 | 2020-02-05T15:54:50Z | 2020-02-05T15:57:47Z | 2020-02-05T15:57:47Z | 2020-02-05T15:57:47Z |
DOC: fix contributors listing for v1.0.1 | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 5863ff7367626..ef3bb8161d13f 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -76,4 +76,4 @@ Bug fixes
Contributors
~~~~~~~~~~~~
-.. contributors:: v0.25.3..v1.0.1|HEAD
+.. contributors:: v1.0.0..v1... | Follow-up on https://github.com/pandas-dev/pandas/pull/31699 | https://api.github.com/repos/pandas-dev/pandas/pulls/31704 | 2020-02-05T15:28:05Z | 2020-02-05T15:54:39Z | 2020-02-05T15:54:39Z | 2020-02-05T15:54:43Z |
Backport PR #31616 on branch 1.0.x (REGR: Fixed AssertionError in groupby) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 222690b2aed8d..6b26e46e7eb55 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`... | Backport PR #31616: REGR: Fixed AssertionError in groupby | https://api.github.com/repos/pandas-dev/pandas/pulls/31703 | 2020-02-05T14:55:38Z | 2020-02-05T15:40:56Z | 2020-02-05T15:40:56Z | 2020-02-05T15:40:56Z |
Backport PR #31699 on branch 1.0.x (DOC: Update 1.0.1 release notes) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 222690b2aed8d..bf9fa5f9d0708 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -1,7 +1,7 @@
.. _whatsnew_101:
-What's new in 1.0.1 (??)
-------------------------
+What's new in 1.0.1 (February 5, 2020... | Backport PR #31699: DOC: Update 1.0.1 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/31702 | 2020-02-05T14:43:33Z | 2020-02-05T15:22:36Z | 2020-02-05T15:22:36Z | 2020-02-05T15:22:37Z |
started to fixturize pandas/tests/base | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 131a011c5a101..78feaa817b531 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -17,6 +17,7 @@
from pandas import DataFrame
import pandas._testing as tm
from pandas.core import ops
+from pandas.core.indexes.api import Index, MultiIndex
hypothesis... | Part of #23877
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
-------------------------------------------
I didn't apply the fixtures to the rest of `test_ops.py` yet since @jreback voiced some [concerns in this comment](https://github.... | https://api.github.com/repos/pandas-dev/pandas/pulls/31701 | 2020-02-05T14:32:07Z | 2020-02-15T01:12:49Z | 2020-02-15T01:12:49Z | 2020-02-15T01:22:29Z |
TYP: remove type:ignore from pandas/io/common.py | diff --git a/pandas/io/common.py b/pandas/io/common.py
index e506cc155d48d..c4772895afd1e 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -7,7 +7,19 @@
import mmap
import os
import pathlib
-from typing import IO, Any, AnyStr, Dict, List, Mapping, Optional, Tuple, Union
+from typing import (
+ IO,
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31700 | 2020-02-05T14:19:24Z | 2020-02-05T15:12:31Z | 2020-02-05T15:12:31Z | 2020-02-05T15:20:32Z | |
DOC: Update 1.0.1 release notes | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 222690b2aed8d..bf9fa5f9d0708 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -1,7 +1,7 @@
.. _whatsnew_101:
-What's new in 1.0.1 (??)
-------------------------
+What's new in 1.0.1 (February 5, 2020... | cc @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/31699 | 2020-02-05T13:51:06Z | 2020-02-05T14:43:22Z | 2020-02-05T14:43:22Z | 2020-02-05T15:28:25Z |
Backport PR #31596 on branch 1.0.x (BUG: read_csv used in file like object RawIOBase is not recognize encoding option) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 2ca836d9c5508..222690b2aed8d 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -33,6 +33,7 @@ Fixed regressions
- Fixed regression in :meth:`qcut` when passed a nullable integer. (:issue:`31389`)
- Fix... | Backport PR #31596: BUG: read_csv used in file like object RawIOBase is not recognize encoding option | https://api.github.com/repos/pandas-dev/pandas/pulls/31698 | 2020-02-05T13:27:18Z | 2020-02-05T14:16:20Z | 2020-02-05T14:16:20Z | 2020-02-05T14:16:21Z |
Backport PR #31690 on branch 1.0.x (TST: add test for regression in groupby with empty MultiIndex level) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index c82a58e5d3c45..2ca836d9c5508 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ... | Backport PR #31690: TST: add test for regression in groupby with empty MultiIndex level | https://api.github.com/repos/pandas-dev/pandas/pulls/31692 | 2020-02-05T10:17:17Z | 2020-02-05T11:09:51Z | 2020-02-05T11:09:51Z | 2020-02-05T11:09:51Z |
TST: add test for regression in groupby with empty MultiIndex level | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index c82a58e5d3c45..2ca836d9c5508 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ... | Closes https://github.com/pandas-dev/pandas/issues/31670 (the actual fix was already in #29243) | https://api.github.com/repos/pandas-dev/pandas/pulls/31690 | 2020-02-05T09:00:05Z | 2020-02-05T10:17:06Z | 2020-02-05T10:17:06Z | 2020-02-05T10:17:11Z |
Backport PR #29243 on branch 1.0.x (Follow up PR: #28097 Simplify branch statement) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 6c125e17e5549..0c57b27f325d0 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1270,10 +1270,10 @@ def _get_grouper_for_level(self, mapper, level):
# on the output of a groupby doesn't reflect back... | Backport PR #29243: Follow up PR: #28097 Simplify branch statement | https://api.github.com/repos/pandas-dev/pandas/pulls/31689 | 2020-02-05T08:47:51Z | 2020-02-05T09:47:56Z | 2020-02-05T09:47:56Z | 2020-02-05T09:47:57Z |
Backport PR #31666: BUG: Block.iget not wrapping timedelta64/datetime64 | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index be888f1952636..9aa9ece9a5267 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -25,6 +25,7 @@ Fixed regressions
- Fixed regression in :meth:`to_datetime` when parsing non-nanosecond resolution datetimes... | Backport of https://github.com/pandas-dev/pandas/pull/31666 | https://api.github.com/repos/pandas-dev/pandas/pulls/31688 | 2020-02-05T08:45:09Z | 2020-02-05T09:47:31Z | 2020-02-05T09:47:31Z | 2020-02-05T09:47:35Z |
DOC: fixup v1.0.1 whatsnew entries | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 0e36fd149d9cc..c82a58e5d3c45 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -20,9 +20,12 @@ Fixed regressions
- Fixed regression in ``DataFrame.__setitem__`` raising an ``AttributeError`` with a :cla... | Fixing the merge of https://github.com/pandas-dev/pandas/pull/31614 | https://api.github.com/repos/pandas-dev/pandas/pulls/31686 | 2020-02-05T08:36:47Z | 2020-02-05T08:39:55Z | 2020-02-05T08:39:55Z | 2020-02-05T08:40:18Z |
Backport PR #31614: REGR: fix non-reduction apply with tz-aware objects | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index be888f1952636..df8cf1932f793 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in ``.groupby()`` aggregations with categorical dtype using Cythonized ... | backport https://github.com/pandas-dev/pandas/pull/31614 | https://api.github.com/repos/pandas-dev/pandas/pulls/31685 | 2020-02-05T08:30:02Z | 2020-02-05T09:35:44Z | 2020-02-05T09:35:44Z | 2020-02-05T09:35:53Z |
BUG: string methods with NA | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 70aaaa6d0a60d..ac0a3ae42f6db 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -29,6 +29,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | - [x] closes #31632
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31684 | 2020-02-05T06:41:15Z | 2020-03-10T14:08:01Z | 2020-03-10T14:08:01Z | 2020-03-10T14:09:34Z |
REF: Use _maybe_cast_indexer and dont override Categorical.get_loc | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 718b6afb70e06..2eda54ec8d4ed 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -439,44 +439,10 @@ def _to_safe_for_reshape(self):
""" convert to object if we are a categorical """
r... | https://api.github.com/repos/pandas-dev/pandas/pulls/31681 | 2020-02-05T03:55:04Z | 2020-02-06T23:59:31Z | 2020-02-06T23:59:31Z | 2020-02-07T00:05:47Z | |
CLN: remove libindex.get_value_at | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 5ea0108d87c9a..4185cc2084469 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -1,17 +1,12 @@
-from datetime import datetime, timedelta, date
import warnings
-import cython
-
import numpy as np
cimport numpy as cnp
from numpy cim... | There was a usage in MultiIndex.get_value that was just removed, leaving just the one in sparse.array that this changes to handle in python-space. | https://api.github.com/repos/pandas-dev/pandas/pulls/31680 | 2020-02-05T03:29:43Z | 2020-02-07T00:04:21Z | 2020-02-07T00:04:21Z | 2020-02-07T00:06:45Z |
REGR: fix op(frame, frame2) with reindex | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 19358689a2186..c9031ac1ae9fe 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | - [x] closes #31623
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @TomAugspurger this is pretty ugly, and I'm not sure how well it will behave if either frame has MultiIndex colums.
On the plus side, it could... | https://api.github.com/repos/pandas-dev/pandas/pulls/31679 | 2020-02-05T00:55:52Z | 2020-02-19T00:26:28Z | 2020-02-19T00:26:28Z | 2020-02-19T10:00:44Z |
Backport PR #31668 on branch 1.0.x (REGR: Fixed handling of Categorical in cython ops) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index 20cfcfbde389c..be888f1952636 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`... | Backport PR #31668: REGR: Fixed handling of Categorical in cython ops | https://api.github.com/repos/pandas-dev/pandas/pulls/31678 | 2020-02-05T00:31:37Z | 2020-02-05T07:31:27Z | 2020-02-05T07:31:27Z | 2020-02-05T07:31:27Z |
REF: make _convert_scalar_indexer require a scalar | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 718cd0957cdc6..fe6f8d55baa87 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -398,15 +398,17 @@ def _convert_scalar_indexer(self, key, kind=None):
assert kind in ["loc", ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31676 | 2020-02-04T23:23:40Z | 2020-02-05T00:56:42Z | 2020-02-05T00:56:42Z | 2020-02-05T01:08:33Z | |
CLN: Remove CategoricalAccessor._deprecations | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 3a6662d3e3ae2..d26ff7490e714 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -2504,10 +2504,6 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin):
>>> s.ca... | These deprecated attributes have all been removed, so ``._deprecated`` is no longer needed. | https://api.github.com/repos/pandas-dev/pandas/pulls/31675 | 2020-02-04T23:23:05Z | 2020-02-05T00:43:13Z | 2020-02-05T00:43:13Z | 2020-02-12T21:49:03Z |
CLN: assorted cleanups in indexes/ | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6a7551391f2a8..ccb4927d9b4b7 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4107,6 +4107,11 @@ def __contains__(self, key: Any) -> bool:
bool
Whether the key search is in the index.
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31674 | 2020-02-04T23:14:09Z | 2020-02-05T00:42:25Z | 2020-02-05T00:42:25Z | 2020-02-05T00:45:56Z | |
CLN: misc tslibs, annotations, unused imports | diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx
index c0b20c14e9920..1e0eb7f97ec54 100644
--- a/pandas/_libs/tslibs/resolution.pyx
+++ b/pandas/_libs/tslibs/resolution.pyx
@@ -27,7 +27,7 @@ cdef:
# ----------------------------------------------------------------------
-cpdef re... | https://api.github.com/repos/pandas-dev/pandas/pulls/31673 | 2020-02-04T23:09:40Z | 2020-02-05T00:46:52Z | 2020-02-05T00:46:52Z | 2020-02-05T00:48:50Z | |
REF: move convert_scalar out of cython | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index b39afc57f34f6..5ea0108d87c9a 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -535,61 +535,6 @@ cdef class PeriodEngine(Int64Engine):
return super(PeriodEngine, self).get_indexer_non_unique(ordinal_array)
-cpdef convert_s... | There's nothing about this that particularly benefits from being in cython (I think until recently this was used within index.pyx) and its clearer in python. Plus we get a slightly smaller/faster build. | https://api.github.com/repos/pandas-dev/pandas/pulls/31672 | 2020-02-04T23:01:56Z | 2020-02-05T02:45:09Z | 2020-02-05T02:45:09Z | 2020-02-05T02:50:39Z |
Backport PR #31477 on branch 1.0.x (REGR: Fix TypeError in groupby min / max of period column) | diff --git a/doc/source/whatsnew/v1.0.1.rst b/doc/source/whatsnew/v1.0.1.rst
index f9c756b2518af..20cfcfbde389c 100644
--- a/doc/source/whatsnew/v1.0.1.rst
+++ b/doc/source/whatsnew/v1.0.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in ``DataFrame.__setitem__`` raising an ``AttributeError`` with a :clas... | Backport PR #31477: REGR: Fix TypeError in groupby min / max of period column | https://api.github.com/repos/pandas-dev/pandas/pulls/31671 | 2020-02-04T22:53:09Z | 2020-02-05T00:22:44Z | 2020-02-05T00:22:44Z | 2020-02-05T00:22:44Z |
CLN: remove kwargs from signature of (Index|MultiIndex).copy | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e431d0bcf7e9b..38ff3f3c3b871 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -823,20 +823,22 @@ def repeat(self, repeats, axis=None):
# --------------------------------------------------------------------
... | Removes ``**kwargs`` from ``Index.copy`` and ``MultiIndex.copy``.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31669 | 2020-02-04T22:52:42Z | 2020-02-09T17:30:24Z | 2020-02-09T17:30:24Z | 2020-02-12T21:48:50Z |
Avoid unnecessary re-opening of HDF5 files (Closes: #58248) | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 17328e6084cb4..237001df750c8 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -331,6 +331,7 @@ Performance improvements
- Performance improvement in :meth:`RangeIndex.reindex` returning a :class:`Range... | - [X] closes #58248 (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/58275 | 2024-04-16T07:57:34Z | 2024-04-16T18:49:46Z | 2024-04-16T18:49:46Z | 2024-04-16T19:06:56Z |
Backport PR #58268 on branch 2.2.x (CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test) | diff --git a/pandas/tests/indexes/object/test_indexing.py b/pandas/tests/indexes/object/test_indexing.py
index 443cacf94d239..ebf9dac715f8d 100644
--- a/pandas/tests/indexes/object/test_indexing.py
+++ b/pandas/tests/indexes/object/test_indexing.py
@@ -7,7 +7,6 @@
NA,
is_matching_na,
)
-from pandas.compat im... | Backport PR #58268: CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test | https://api.github.com/repos/pandas-dev/pandas/pulls/58269 | 2024-04-15T19:48:04Z | 2024-04-15T21:01:12Z | 2024-04-15T21:01:12Z | 2024-04-15T21:01:12Z |
CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test | diff --git a/pandas/tests/indexes/object/test_indexing.py b/pandas/tests/indexes/object/test_indexing.py
index 34cc8eab4d812..039836da75cd5 100644
--- a/pandas/tests/indexes/object/test_indexing.py
+++ b/pandas/tests/indexes/object/test_indexing.py
@@ -7,7 +7,6 @@
NA,
is_matching_na,
)
-from pandas.compat im... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58268 | 2024-04-15T18:41:03Z | 2024-04-15T19:47:31Z | 2024-04-15T19:47:31Z | 2024-04-15T19:47:34Z |
REF: Clean up some iterator usages | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index e36abdf0ad971..107608ec9f606 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -219,8 +219,7 @@ cdef _get_calendar(weekmask, holidays, calendar):
holidays = holidays + calendar.holidays().to... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58267 | 2024-04-15T18:29:27Z | 2024-04-16T18:28:30Z | 2024-04-16T18:28:30Z | 2024-04-16T18:28:33Z |
DOC: Enforce Numpy Docstring Validation for pandas.Float32Dtype and pandas.Float64Dtype | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 01baadab67dbd..66f6bfd7195f9 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -153,8 +153,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeTZDtype SA01" \
-i "pandas.DatetimeTZDtype.tz SA01" \
-i "... | - [ ] xref #58067
- [ ] [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/58266 | 2024-04-15T18:18:59Z | 2024-04-15T19:48:32Z | 2024-04-15T19:48:32Z | 2024-04-16T03:55:37Z |
DOC: Move whatsnew 3.0 elements | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index ca0285ade466d..5493320f803f0 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -339,19 +339,6 @@ Performance improvements
Bug fixes
~~~~~~~~~
-- Fixed bug in :class:`SparseDtype` for equal comparison... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58265 | 2024-04-15T17:38:54Z | 2024-04-15T18:41:50Z | 2024-04-15T18:41:50Z | 2024-04-15T18:41:53Z |
DOC: Reference Excel reader installation in the read and write tabular data tutorial | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 3cd9e030d6b3c..cf5f15ceb8344 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -269,6 +269,8 @@ SciPy 1.10.0 computation Miscellaneous ... | Created a link to the Excel file recommended installation section and referenced it in the `How do I read and write tabular data?` tutorial.
- [x] closes #58246
The below are not applicable because I am just updating documentation.
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/deve... | https://api.github.com/repos/pandas-dev/pandas/pulls/58261 | 2024-04-15T04:51:29Z | 2024-04-15T16:47:31Z | 2024-04-15T16:47:31Z | 2024-04-15T16:47:44Z |
DOC: replace deprecated frequency alias | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index f4f076103d8c3..8ada9d88e08bc 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1787,7 +1787,7 @@ def strftime(self, date_format: str) -> npt.NDArray[np.object_]:
----------
fre... | replace 'S' with 's'
Dreprecated since version 2.2.0 https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#other-deprecations.
See https://github.com/pandas-dev/pandas/issues/52536
- ~~[ ] closes #xxxx (Replace xxxx with the GitHub issue number)~~
- ~~[ ] [Tests added and passed](https://pandas.pydata.org/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/58256 | 2024-04-14T14:11:16Z | 2024-04-16T17:12:19Z | 2024-04-16T17:12:19Z | 2024-04-16T17:12:29Z |
DEPR: logical ops with dtype-less sequences | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 50643454bbcec..f709bec842c86 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -208,6 +208,7 @@ Removal of prior version deprecations/changes
- :meth:`SeriesGroupBy.agg` no longer pins the name of the g... | - [ ] 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/58242 | 2024-04-12T21:20:54Z | 2024-04-14T19:13:24Z | 2024-04-14T19:13:24Z | 2024-04-15T15:28:55Z |
DEPR: object casting in Series logical ops in non-bool cases | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index e05cc87d1af14..50643454bbcec 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -208,6 +208,7 @@ Removal of prior version deprecations/changes
- :meth:`SeriesGroupBy.agg` no longer pins the name of the g... | - [ ] 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/58241 | 2024-04-12T21:06:29Z | 2024-04-13T00:14:38Z | 2024-04-13T00:14:38Z | 2024-04-13T14:49:50Z |
API: Expose api.typing.FrozenList for typing | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index e05cc87d1af14..6e4fef387fdfb 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -28,6 +28,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
+- :class:`pandas.api.typing.FrozenList` is available ... | Since it was decided not to remove this in favor of `tuple` https://github.com/pandas-dev/pandas/pull/57788, exposing `FrozenList` in `.api.typing` instead | https://api.github.com/repos/pandas-dev/pandas/pulls/58237 | 2024-04-12T18:56:06Z | 2024-04-15T20:40:52Z | 2024-04-15T20:40:52Z | 2024-04-15T20:42:02Z |
DOC: Enforce Numpy Docstring Validation for pandas.ExcelFile, pandas.ExcelFile.parse and pandas.ExcelWriter | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9c39fac13b230..70cc160cb4904 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -154,9 +154,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeTZDtype SA01" \
-i "pandas.DatetimeTZDtype.tz SA01" \
-i "... | - [ ] xref #58067
- [ ] [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).
- [ ] A... | https://api.github.com/repos/pandas-dev/pandas/pulls/58235 | 2024-04-12T16:55:51Z | 2024-04-15T16:29:03Z | 2024-04-15T16:29:03Z | 2024-04-15T18:27:28Z |
ASV: benchmark for DataFrame.Update | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index ce31d63f0b70f..6a2ab24df26fe 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -862,4 +862,28 @@ def time_last_valid_index(self, dtype):
self.df.last_valid_index()
... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/58228 | 2024-04-12T00:28:10Z | 2024-04-15T21:16:32Z | 2024-04-15T21:16:32Z | 2024-04-15T21:16:40Z |
REF: Use PyUnicode_AsUTF8AndSize instead of get_c_string_buf_and_size | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index e3a9102fec395..5c6254c6a1ec7 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -3,7 +3,7 @@ Template for each `dtype` helper function for hashtable
WARN... | cc @WillAyd
| https://api.github.com/repos/pandas-dev/pandas/pulls/58227 | 2024-04-11T23:02:04Z | 2024-04-12T00:51:06Z | 2024-04-12T00:51:06Z | 2024-04-12T00:52:55Z |
BUG: Timestamp ignoring explicit tz=None | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index e05cc87d1af14..66f6c10e36bdc 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -357,6 +357,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
+- Bug in :class:`Timestamp` constructor failing to raise when ``... | - [x] closes #48688(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/58226 | 2024-04-11T22:24:18Z | 2024-04-15T17:12:09Z | 2024-04-15T17:12:09Z | 2024-04-15T17:17:12Z |
DOC: Fix docstring error for pandas.DataFrame.axes | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9c39fac13b230..b76ef69efa9f2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -83,7 +83,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.__iter__ SA01" \
-i "pandas.DataFrame.assign SA01" \
-i "p... | - Fixes docstring error for pandas.DataFrame.axes method (https://github.com/pandas-dev/pandas/issues/58065).
- [ ] [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://pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/58223 | 2024-04-11T17:57:55Z | 2024-04-11T19:10:12Z | 2024-04-11T19:10:12Z | 2024-04-11T19:10:19Z |
Revert "CI: Pin blosc to fix pytables" | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 7402f6495c788..ed7dfe1a3c17e 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -24,8 +24,6 @@ dependencies:
# optional dependencies
- beautifulsoup4>=4.11.2
- # https://github.com/conda-forge/pytables-feedstock/issues/... | Reverts pandas-dev/pandas#58209 | https://api.github.com/repos/pandas-dev/pandas/pulls/58218 | 2024-04-11T12:24:43Z | 2024-04-11T15:21:49Z | 2024-04-11T15:21:49Z | 2024-04-11T15:22:15Z |
DOC: update DatetimeTZDtype unit limitation | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 2d8e490f02d52..98e689528744e 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -698,8 +698,8 @@ class DatetimeTZDtype(PandasExtensionDtype):
Parameters
----------
unit : str, default "ns"
- ... | - [x] closes #58212
- [ ] [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/58213 | 2024-04-10T17:44:15Z | 2024-04-12T18:07:59Z | 2024-04-12T18:07:59Z | 2024-04-12T18:52:50Z |
Backport PR #58209: CI: Pin blosc to fix pytables | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index a3e44e6373145..ea2336ae78f81 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -24,6 +24,8 @@ dependencies:
# optional dependencies
- beautifulsoup4>=4.11.2
+ # https://github.com/conda-forge/pytables-feedstock/issues/... | - [ ] 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/58211 | 2024-04-10T15:38:55Z | 2024-04-10T16:42:52Z | 2024-04-10T16:42:52Z | 2024-04-10T16:42:53Z |
CI: Pin blosc to fix pytables | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index ed7dfe1a3c17e..7402f6495c788 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -24,6 +24,8 @@ dependencies:
# optional dependencies
- beautifulsoup4>=4.11.2
+ # https://github.com/conda-forge/pytables-feedstock/issues/... | - [ ] 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/58209 | 2024-04-10T14:29:32Z | 2024-04-10T15:36:29Z | 2024-04-10T15:36:29Z | 2024-04-11T07:59:40Z |
Backport PR #58202: DOC/TST: Document numpy 2.0 support and add tests… | diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst
index 0dac3660c76b2..856a31a5cf305 100644
--- a/doc/source/whatsnew/v2.2.2.rst
+++ b/doc/source/whatsnew/v2.2.2.rst
@@ -9,6 +9,21 @@ including other versions of pandas.
{{ header }}
.. ------------------------------------------------------... | … for string array
- [ ] 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-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/58208 | 2024-04-10T12:07:10Z | 2024-04-10T13:01:08Z | 2024-04-10T13:01:08Z | 2024-04-10T13:01:09Z |
Backport PR #58203 on branch 2.2.x (DOC: Add release date/contributors for 2.2.2) | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 310dd921e44f6..4db0069ec4b95 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -87,4 +87,4 @@ Other
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.2.0..v2.2.1|HEAD
+.. contributors:: v2.2.0..v2.2.1
... | Backport PR #58203: DOC: Add release date/contributors for 2.2.2 | https://api.github.com/repos/pandas-dev/pandas/pulls/58206 | 2024-04-10T00:16:06Z | 2024-04-10T12:06:47Z | 2024-04-10T12:06:47Z | 2024-04-10T12:06:47Z |
GH: PDEP vote issue template | diff --git a/.github/ISSUE_TEMPLATE/pdep_vote.yaml b/.github/ISSUE_TEMPLATE/pdep_vote.yaml
new file mode 100644
index 0000000000000..6dcbd76eb0f74
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/pdep_vote.yaml
@@ -0,0 +1,74 @@
+name: PDEP Vote
+description: Call for a vote on a PDEP
+title: "VOTE: "
+labels: [Vote]
+
+body:... | Continuation of https://github.com/pandas-dev/pandas/pull/54469
Feel free to preview this by opening an issue in my fork | https://api.github.com/repos/pandas-dev/pandas/pulls/58204 | 2024-04-09T23:02:01Z | 2024-04-16T17:17:02Z | 2024-04-16T17:17:02Z | 2024-04-16T17:17:12Z |
DOC: Add release date/contributors for 2.2.2 | diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst
index 310dd921e44f6..4db0069ec4b95 100644
--- a/doc/source/whatsnew/v2.2.1.rst
+++ b/doc/source/whatsnew/v2.2.1.rst
@@ -87,4 +87,4 @@ Other
Contributors
~~~~~~~~~~~~
-.. contributors:: v2.2.0..v2.2.1|HEAD
+.. contributors:: v2.2.0..v2.2.1
... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/58203 | 2024-04-09T22:40:02Z | 2024-04-10T00:15:38Z | 2024-04-10T00:15:38Z | 2024-04-10T00:15:39Z |
DOC/TST: Document numpy 2.0 support and add tests for string array | diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst
index 0dac3660c76b2..856a31a5cf305 100644
--- a/doc/source/whatsnew/v2.2.2.rst
+++ b/doc/source/whatsnew/v2.2.2.rst
@@ -9,6 +9,21 @@ including other versions of pandas.
{{ header }}
.. ------------------------------------------------------... | - [ ] closes #58104 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/58202 | 2024-04-09T22:34:15Z | 2024-04-10T11:48:25Z | 2024-04-10T11:48:24Z | 2024-04-10T12:32:01Z |
CLN: Remove unused code | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 239d78b3b8b7a..124730e1b5ca9 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -263,7 +263,6 @@ def __init__(
self.sort = sort
self.dropna = dropna
- self._grouper_deprecated =... | This looks like a `mypy` error only, which passes now. | https://api.github.com/repos/pandas-dev/pandas/pulls/58201 | 2024-04-09T21:55:22Z | 2024-04-09T22:53:31Z | 2024-04-09T22:53:31Z | 2024-04-09T22:54:15Z |
CLN: Make iterators lazier | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index e8df24850f7a8..832beeddcef3c 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1710,9 +1710,9 @@ def normalize_keyword_aggregation(
# TODO: aggspec type: typing.Dict[str, List[AggScalar]]
aggspec = defaultdict(list)
order = []
... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58200 | 2024-04-09T17:30:18Z | 2024-04-09T18:45:50Z | 2024-04-09T18:45:50Z | 2024-04-09T21:51:10Z |
Fix ASV with virtualenv | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index e02ff26ba14e9..30c692115eab1 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -41,6 +41,7 @@
// pip (with all the conda available packages installed first,
// followed by the pip installed packages).
"matrix": {
+ ... | The default remains conda, but this is needed if you ever change the default locally. Otherwise you get
STDERR -------->
/home/willayd/clones/pandas/asv_bench/env/7e437c4d615a12609229592196e74215/bin/python: No module named build | https://api.github.com/repos/pandas-dev/pandas/pulls/58199 | 2024-04-09T16:33:56Z | 2024-04-09T17:16:16Z | 2024-04-09T17:16:16Z | 2024-04-09T17:16:23Z |
Remove unused tslib function | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index ee8ed762fdb6e..aecf9f2e46bd4 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -70,7 +70,6 @@ from pandas._libs.tslibs.conversion cimport (
from pandas._libs.tslibs.dtypes cimport npy_unit_to_abbrev
from pandas._libs.tslibs.nattype c... | Flagged during compilation
[22/27] Compiling C object pandas/_libs/tslib.cpython-310-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslib.pyx.c.o
pandas/_libs/tslib.cpython-310-x86_64-linux-gnu.so.p/pandas/_libs/tslib.pyx.c:27000:18: warning: '__pyx_f_6pandas_5_libs_5tslib__array_with_unit_to_datetime_object_... | https://api.github.com/repos/pandas-dev/pandas/pulls/58198 | 2024-04-09T16:28:14Z | 2024-04-09T17:15:43Z | 2024-04-09T17:15:43Z | 2024-04-09T17:15:50Z |
Add low-level create_dataframe_from_blocks helper function | diff --git a/pandas/api/internals.py b/pandas/api/internals.py
new file mode 100644
index 0000000000000..03d8992a87575
--- /dev/null
+++ b/pandas/api/internals.py
@@ -0,0 +1,62 @@
+import numpy as np
+
+from pandas._typing import ArrayLike
+
+from pandas import (
+ DataFrame,
+ Index,
+)
+from pandas.core.interna... | See my explanation at https://github.com/pandas-dev/pandas/issues/56815/
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [c... | https://api.github.com/repos/pandas-dev/pandas/pulls/58197 | 2024-04-09T15:40:41Z | 2024-04-15T17:37:16Z | 2024-04-15T17:37:16Z | 2024-04-15T19:21:52Z |
TST: Add tests for reading Stata dta files saved in big-endian format | diff --git a/pandas/tests/io/data/stata/stata-compat-be-105.dta b/pandas/tests/io/data/stata/stata-compat-be-105.dta
new file mode 100644
index 0000000000000..af75548c840d4
Binary files /dev/null and b/pandas/tests/io/data/stata/stata-compat-be-105.dta differ
diff --git a/pandas/tests/io/data/stata/stata-compat-be-108.... | - [x] closes #58194
- [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/58195 | 2024-04-09T13:48:34Z | 2024-04-09T21:53:28Z | 2024-04-09T21:53:28Z | 2024-04-09T21:53:34Z |
TST: Match dta format used for Stata test files with that implied by their filenames | diff --git a/pandas/tests/io/data/stata/stata10_115.dta b/pandas/tests/io/data/stata/stata10_115.dta
index b917dde5ad47d..bdca3b9b340c1 100644
Binary files a/pandas/tests/io/data/stata/stata10_115.dta and b/pandas/tests/io/data/stata/stata10_115.dta differ
diff --git a/pandas/tests/io/data/stata/stata4_114.dta b/pandas... | - [x] closes #57693
- [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/58192 | 2024-04-09T12:46:24Z | 2024-04-09T16:43:19Z | 2024-04-09T16:43:19Z | 2024-04-09T16:43:26Z |
TST: catch exception for div/truediv operations between Timedelta and pd.NA | diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py
index 73b2da0f7dd50..01e7ba52e58aa 100644
--- a/pandas/tests/scalar/timedelta/test_timedelta.py
+++ b/pandas/tests/scalar/timedelta/test_timedelta.py
@@ -11,6 +11,7 @@
import pytest
from pandas._libs impor... | - [x] closes #54315
- [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).
- [No... | https://api.github.com/repos/pandas-dev/pandas/pulls/58188 | 2024-04-08T20:33:15Z | 2024-04-15T17:13:21Z | 2024-04-15T17:13:21Z | 2024-04-16T20:34:17Z |
Backport PR #58181 on branch 2.2.x (CI: correct error msg in test_view_index) | diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py
index 1fa48f98942c2..b7204d7af1cbb 100644
--- a/pandas/tests/indexes/test_base.py
+++ b/pandas/tests/indexes/test_base.py
@@ -358,7 +358,10 @@ def test_view_with_args_object_array_raises(self, index):
with pytest.raises(NotI... | Backport PR #58181: CI: correct error msg in test_view_index
| https://api.github.com/repos/pandas-dev/pandas/pulls/58187 | 2024-04-08T20:19:29Z | 2024-04-08T21:34:15Z | 2024-04-08T21:34:15Z | 2024-04-08T21:34:23Z |
CLN: union_indexes | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index b39d32d069619..daaaacee3487d 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -67,7 +67,6 @@ def fast_multiget(
default=...,
) -> ArrayLike: ...
def fast_unique_multiple_list_gen(gen: Generator, sort: bool = ...) -> list: ...
-def fast... | - Just used sets where appropriate
- Added some typing
- Split some helper functions to branches where they are used | https://api.github.com/repos/pandas-dev/pandas/pulls/58183 | 2024-04-08T18:57:52Z | 2024-04-11T15:39:27Z | 2024-04-11T15:39:27Z | 2024-04-11T15:39:30Z |
CI: correct error msg in `test_view_index` | diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py
index 088fcfcd7d75f..676d33d2b0f81 100644
--- a/pandas/tests/indexes/numeric/test_numeric.py
+++ b/pandas/tests/indexes/numeric/test_numeric.py
@@ -312,7 +312,10 @@ def test_cant_or_shouldnt_cast(self, dtype):
... | CI failed, the reason: `AssertionError: Regex pattern did not match.`
Replaced error msg `'Cannot change data-type for object array'` with `'Cannot change data-type for array of references.'` | https://api.github.com/repos/pandas-dev/pandas/pulls/58181 | 2024-04-08T16:02:43Z | 2024-04-08T18:23:00Z | 2024-04-08T18:23:00Z | 2024-04-08T21:34:31Z |
Cleanup json_normalize documentation | diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py
index ef717dd9b7ef8..7d3eefae39679 100644
--- a/pandas/io/json/_normalize.py
+++ b/pandas/io/json/_normalize.py
@@ -289,10 +289,10 @@ def json_normalize(
meta : list of paths (str or list of str), default None
Fields to use as metada... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58180 | 2024-04-08T14:09:37Z | 2024-04-08T16:43:15Z | 2024-04-08T16:43:15Z | 2024-04-08T17:28:37Z |
TST: Remove deprecation check from test_pyarrow_engine | diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py
index 8d4c28bd61fa1..44a55cf3be240 100644
--- a/pandas/tests/io/parser/test_unsupported.py
+++ b/pandas/tests/io/parser/test_unsupported.py
@@ -155,12 +155,8 @@ def test_pyarrow_engine(self):
kwargs[def... | - [x] ref https://github.com/pandas-dev/pandas/issues/57966#issuecomment-2041619807_
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/58175 | 2024-04-07T21:56:08Z | 2024-04-09T16:46:13Z | 2024-04-09T16:46:13Z | 2024-04-09T16:46:20Z |
ENH: add numeric_only to Dataframe.cum* methods | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 19b448a1871c2..d189c4f4bf248 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -35,7 +35,7 @@ Other enhancements
- Support passing a :class:`Series` input to :func:`json_normalize` that retains the :cla... | - [x] closes #53072
- [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/58172 | 2024-04-06T15:46:25Z | 2024-04-11T15:20:49Z | 2024-04-11T15:20:49Z | 2024-04-11T15:24:01Z |
REF: de-duplicate tzinfo-awareness mismatch checks | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index effd7f586f266..ee8ed762fdb6e 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -74,7 +74,6 @@ from pandas._libs.tslibs.nattype cimport (
c_nat_strings as nat_strings,
)
from pandas._libs.tslibs.timestamps cimport _Timestamp
-fro... | - [ ] 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/58171 | 2024-04-06T15:44:29Z | 2024-04-08T16:44:54Z | 2024-04-08T16:44:54Z | 2024-04-08T17:02:17Z |
No longer produce test.tar/test.zip after running test suite | diff --git a/pandas/tests/frame/methods/test_to_csv.py b/pandas/tests/frame/methods/test_to_csv.py
index f87fa4137d62d..66a35c6f486a4 100644
--- a/pandas/tests/frame/methods/test_to_csv.py
+++ b/pandas/tests/frame/methods/test_to_csv.py
@@ -1406,19 +1406,21 @@ def test_to_csv_categorical_and_interval(self):
ex... | - [x] closes #58162 (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/58168 | 2024-04-05T21:45:59Z | 2024-04-05T23:11:11Z | 2024-04-05T23:11:11Z | 2024-04-05T23:11:18Z |
DEPR: enforce Sparse deprecations | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 983768e0f67da..190b515981098 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -208,6 +208,7 @@ Removal of prior version deprecations/changes
- All arguments except ``name`` in :meth:`Index.rename` are ... | - [ ] 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/58167 | 2024-04-05T20:26:39Z | 2024-04-05T21:40:31Z | 2024-04-05T21:40:30Z | 2024-04-06T00:13:37Z |
TST: Use temp_file fixture over ensure_clean | diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py
index 0cc8018ea6213..1bd71768d226e 100644
--- a/pandas/tests/io/test_stata.py
+++ b/pandas/tests/io/test_stata.py
@@ -63,16 +63,16 @@ def read_csv(self, file):
return read_csv(file, parse_dates=True)
@pytest.mark.parametrize("ver... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/58166 | 2024-04-05T20:14:49Z | 2024-04-09T13:11:36Z | 2024-04-09T13:11:36Z | 2024-04-09T16:32:00Z |
STY: Add flake8-slots and flake8-raise rules | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b8726e058a52b..8eec5d5515239 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,12 +30,6 @@ repos:
files: ^pandas
exclude: ^pandas/tests
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-f... | Also moves `ICN001` to the main ruff linter | https://api.github.com/repos/pandas-dev/pandas/pulls/58161 | 2024-04-05T17:48:52Z | 2024-04-08T16:45:42Z | 2024-04-08T16:45:41Z | 2024-04-08T16:45:45Z |
DEPR: PandasArray alias | diff --git a/doc/redirects.csv b/doc/redirects.csv
index e71a031bd67fd..c11e4e242f128 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -1422,7 +1422,6 @@ reference/api/pandas.Series.transpose,pandas.Series.T
reference/api/pandas.Index.transpose,pandas.Index.T
reference/api/pandas.Index.notnull,pandas.Index.n... | - [ ] 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/58158 | 2024-04-05T15:58:26Z | 2024-04-05T17:01:56Z | 2024-04-05T17:01:55Z | 2024-04-05T18:02:17Z |
DEPR: Categorical fastpath | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 983768e0f67da..bb1e0b33c2ab8 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -212,6 +212,7 @@ Removal of prior version deprecations/changes
- Disallow passing a pandas type to :meth:`Index.view` (:iss... | - [ ] 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/58157 | 2024-04-05T15:56:26Z | 2024-04-05T19:45:43Z | 2024-04-05T19:45:43Z | 2024-04-06T00:13:28Z |
ENH: Add support for reading value labels from 108-format and prior Stata dta files | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 19b448a1871c2..0f71b52120a47 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -33,6 +33,7 @@ Other enhancements
- :meth:`Styler.set_tooltips` provides alternative method to storing tooltips by using ti... | - [x] closes #58154
- [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/58155 | 2024-04-05T13:23:31Z | 2024-04-09T16:55:40Z | 2024-04-09T16:55:40Z | 2024-04-09T16:55:47Z |
BUG: Fix Index.sort_values with natsort_key raises | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index d2d5707f32bf3..46ecb8ac9db5d 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -448,6 +448,7 @@ Other
- Bug in :func:`unique` on :class:`Index` not always returning :class:`Index` (:issue:`57043`)
- Bu... | - [x] closes #56081 (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/58148 | 2024-04-04T12:09:08Z | 2024-04-05T16:50:15Z | 2024-04-05T16:50:15Z | 2024-04-06T04:16:14Z |
Backport PR #58138 on branch 2.2.x (BLD: Fix nightlies not building) | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 470c044d2e99e..b9bfc766fb45c 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,8 +139,7 @@ jobs:
shell: bash -el {0}
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
-... | Backport PR #58138: BLD: Fix nightlies not building | https://api.github.com/repos/pandas-dev/pandas/pulls/58140 | 2024-04-03T19:30:17Z | 2024-04-03T22:02:48Z | 2024-04-03T22:02:48Z | 2024-04-03T22:02:48Z |
BLD: Fix nightlies not building | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index d6cfd3b0ad257..4bd9068e91b67 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -139,8 +139,7 @@ jobs:
shell: bash -el {0}
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
-... | - [ ] 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/58138 | 2024-04-03T17:46:00Z | 2024-04-03T19:29:37Z | 2024-04-03T19:29:37Z | 2024-04-03T19:30:43Z |
Backport PR #58100 on branch 2.2.x (MNT: fix compatibility with beautifulsoup4 4.13.0b2) | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 26e71c9546ffd..4eeeb1b655f8a 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -591,14 +591,8 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
:class:`pandas.io.html._HtmlFrameParser`.
"""
- def __init__(self, *args, **kwargs) ... | Backport PR #58100: MNT: fix compatibility with beautifulsoup4 4.13.0b2 | https://api.github.com/repos/pandas-dev/pandas/pulls/58137 | 2024-04-03T17:28:29Z | 2024-04-03T19:29:53Z | 2024-04-03T19:29:53Z | 2024-04-03T19:29:53Z |
DOC: Add return value for Index.slice_locs when label not found #32680 | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 73e564f95cf65..feb58a4806047 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -6453,6 +6453,10 @@ def slice_locs(self, start=None, end=None, step=None) -> tuple[int, int]:
>>> idx = pd.Index(list("abcd"))
... | - [ ] Add return value for Index.slice_locs when label not found #32680
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/dev... | https://api.github.com/repos/pandas-dev/pandas/pulls/58135 | 2024-04-03T16:38:26Z | 2024-04-03T21:36:34Z | 2024-04-03T21:36:34Z | 2024-04-03T21:36:41Z |
Backport PR #58126: BLD: Build wheels with numpy 2.0rc1 | diff --git a/pyproject.toml b/pyproject.toml
index c225ed80dcb10..b2764b137a1f8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,12 +6,9 @@ requires = [
"meson==1.2.1",
"wheel",
"Cython==3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json
- # Any NumPy version should be fine f... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/58127 | 2024-04-03T02:04:55Z | 2024-04-03T02:57:16Z | 2024-04-03T02:57:16Z | 2024-04-03T02:57:16Z |
BLD: Build wheels with numpy 2.0rc1 | diff --git a/pyproject.toml b/pyproject.toml
index 259d003de92d5..c9180cf04e7f5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,12 +6,9 @@ requires = [
"meson==1.2.1",
"wheel",
"Cython~=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json
- # Any NumPy version should be fine f... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/58126 | 2024-04-02T23:15:29Z | 2024-04-03T00:23:49Z | 2024-04-03T00:23:49Z | 2024-04-03T02:04:15Z |
DEPR: keyword-only arguments for DataFrame/Series statistical methods | diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst
index eed3fc149263a..92799359a61d2 100644
--- a/doc/source/user_guide/basics.rst
+++ b/doc/source/user_guide/basics.rst
@@ -476,15 +476,15 @@ For example:
.. ipython:: python
df
- df.mean(0)
- df.mean(1)
+ df.mean(axis=0)
+ ... | - [x] closes #57087 (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/58122 | 2024-04-02T19:19:01Z | 2024-04-09T16:58:28Z | 2024-04-09T16:58:28Z | 2024-04-09T16:58:36Z |
PERF: concat([Series, DataFrame], axis=0) returns RangeIndex columns when possible | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 78ee359397df5..d2d5707f32bf3 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -298,6 +298,7 @@ Performance improvements
- :attr:`Categorical.categories` returns a :class:`RangeIndex` columns instead of... | Discovered in #57441 | https://api.github.com/repos/pandas-dev/pandas/pulls/58119 | 2024-04-02T18:13:03Z | 2024-04-03T20:14:07Z | 2024-04-03T20:14:07Z | 2024-04-03T20:15:11Z |
PERF: Series(dict) returns RangeIndex when possible | diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst
index 4debd41de213f..78ee359397df5 100644
--- a/doc/source/whatsnew/v3.0.0.rst
+++ b/doc/source/whatsnew/v3.0.0.rst
@@ -297,6 +297,7 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- :attr:`Categorical.categories` returns a :class:`Rang... | Discovered in https://github.com/pandas-dev/pandas/pull/57441 | https://api.github.com/repos/pandas-dev/pandas/pulls/58118 | 2024-04-02T17:24:14Z | 2024-04-03T18:42:13Z | 2024-04-03T18:42:13Z | 2024-04-03T18:59:18Z |
Add note for name field in groupby | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 7f957a8b16787..8c222aff52fd7 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -416,6 +416,12 @@ You can also include the grouping columns if you want to operate on them.
grouped[["A", ... | - [x] closes #58024
- [N/A] [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/58114 | 2024-04-02T02:53:32Z | 2024-04-02T18:18:58Z | 2024-04-02T18:18:58Z | 2024-04-02T19:25:27Z |
BUG: Remove "Mean of empty slice" warning in nanmedian | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index a124e8679ae8e..2bc5f031ce69d 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -745,6 +745,10 @@ def nanmedian(values, *, axis: AxisInt | None = None, skipna: bool = True, mask=
>>> s = pd.Series([1, np.nan, 2, 2])
>>> nanops.nan... | This PR supresses a warning when calculating the `median` of a `pd.Series` that is full of `NA`s. The warning is just letting you know that `numpy` got an empty array but correctly returns `np.nan`.
The warning is issued as follows:
1. When the series has `NA`s and you try to calculate the `median`, `nanops.nanmedi... | https://api.github.com/repos/pandas-dev/pandas/pulls/58107 | 2024-04-01T18:21:54Z | 2024-04-01T22:40:49Z | 2024-04-01T22:40:49Z | 2024-04-01T22:40:55Z |
Backport PR #58087 on branch 2.2.x (BLD: Build wheels using numpy 2.0rc1) | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ea93575ac9430..6f134c9a7a7bd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -72,10 +72,6 @@ jobs:
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
co... | Backport PR #58087: BLD: Build wheels using numpy 2.0rc1 | https://api.github.com/repos/pandas-dev/pandas/pulls/58105 | 2024-04-01T17:37:14Z | 2024-04-09T22:40:19Z | 2024-04-09T22:40:19Z | 2024-04-09T22:40:20Z |
[pre-commit.ci] pre-commit autoupdate | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 41f1c4c6892a3..b8726e058a52b 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.3.1
+ rev: v0.3.4
... | <!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.1 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.1...v0.3.4)
- [github.com/jendrikseipp/vulture: v2.10 → v2.11](https://github.com/jendrikseipp/vulture/compare/v2.10...v2.11)
- [github.com/pylint-dev/pylint: v3.0.1 → ... | https://api.github.com/repos/pandas-dev/pandas/pulls/58103 | 2024-04-01T16:29:30Z | 2024-04-01T20:45:20Z | 2024-04-01T20:45:20Z | 2024-04-01T20:45:23Z |
DOC: fix docstring for DataFrame.to_period, pandas.DataFrame.to_timestamp, pandas.DataFrame.tz_convert #58065 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f4ea0a1e2bc28..49f93a8589ac4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -121,9 +121,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.to_feather SA01" \
-i "pandas.DataFrame.to_markdown SA01" \
... | Fixes docstring errorrs for DataFrame and Series for methods `pandas.DataFrame.to_period` ,`pandas.DataFrame.to_timestamp` ,`pandas.DataFrame.tz_convert`. (issue #58065)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or ad... | https://api.github.com/repos/pandas-dev/pandas/pulls/58101 | 2024-04-01T13:39:31Z | 2024-04-01T18:54:45Z | 2024-04-01T18:54:44Z | 2024-04-01T18:54:51Z |
MNT: fix compatibility with beautifulsoup4 4.13.0b2 | diff --git a/pandas/io/html.py b/pandas/io/html.py
index b4f6a5508726b..42f5266e7649b 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -584,14 +584,8 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
:class:`pandas.io.html._HtmlFrameParser`.
"""
- def __init__(self, *args, **kwargs) ... | Closes #58086
- [x] 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/de... | https://api.github.com/repos/pandas-dev/pandas/pulls/58100 | 2024-04-01T12:26:18Z | 2024-04-01T17:08:54Z | 2024-04-01T17:08:53Z | 2024-04-03T19:55:22Z |
DOC: Fix docstring errors for pandas.DataFrame.unstack, pandas.DataFrame.value_counts and pandas.DataFrame.tz_localize | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0c4e6641444f1..a9f69ee4f6c57 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -127,9 +127,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.to_period SA01" \
-i "pandas.DataFrame.to_timestamp SA01" \
... | - Fixes docstring erros for following methods (https://github.com/pandas-dev/pandas/issues/58065):
`pandas.DataFrame.unstack`, `pandas.DataFrame.value_counts` and `pandas.DataFrame.tz_localize`
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tes... | https://api.github.com/repos/pandas-dev/pandas/pulls/58097 | 2024-03-31T23:12:27Z | 2024-04-01T17:11:43Z | 2024-04-01T17:11:43Z | 2024-04-01T17:11:51Z |
Remove 'Not implemented for Series' from _num_doc in generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 858d2ba82a969..b5cdafeb57134 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11712,7 +11712,7 @@ def last_valid_index(self) -> Hashable:
skipna : bool, default True
Exclude NA/null values when computing the result.
numeric_on... | Documentation fix in `generic.py`
line 11715: Removed 'Not implemented for Series' in _num_doc given that `numeric_only` is now implemented for Series in all the methods min, max, mean, median, skew, kurt
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/58096 | 2024-03-31T22:27:34Z | 2024-04-01T17:19:57Z | 2024-04-01T17:19:57Z | 2024-04-01T17:20:04Z |
DOC: read_sql_query docstring contraine wrong examples #58094 | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index aa9d0d88ae69a..8c4c4bac884e5 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -473,8 +473,9 @@ def read_sql_query(
--------
>>> from sqlalchemy import create_engine # doctest: +SKIP
>>> engine = create_engine("sqlite:///database.db") # docte... | - [x] closes #58094
- [ ] [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/58095 | 2024-03-31T20:07:44Z | 2024-04-02T01:41:32Z | 2024-04-02T01:41:32Z | 2024-04-02T01:41:40Z |
Revert "BLD: Pin numpy on 2.2.x" | diff --git a/pyproject.toml b/pyproject.toml
index b2764b137a1f8..778146bbcd909 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,9 +27,9 @@ authors = [
license = {file = 'LICENSE'}
requires-python = '>=3.9'
dependencies = [
- "numpy>=1.22.4,<2; python_version<'3.11'",
- "numpy>=1.23.2,<2; python_version=='3... | Reverts pandas-dev/pandas#56812
Waiting for #58087 to be merged and backported | https://api.github.com/repos/pandas-dev/pandas/pulls/58093 | 2024-03-31T15:06:52Z | 2024-04-03T17:28:27Z | 2024-04-03T17:28:27Z | 2024-04-03T17:28:30Z |
DOC: Changed ndim to 1, modified doc as suggested. #57088 | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 50a93994dc76b..932344ae91eab 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -11494,7 +11494,7 @@ def any(
**kwargs,
) -> Series | bool: ...
- @doc(make_doc("any", ndim=2))
+ @doc(make_doc("any", ndim=1))
def any(
... | - [ ] closes #57088 | https://api.github.com/repos/pandas-dev/pandas/pulls/58091 | 2024-03-31T01:28:35Z | 2024-04-01T17:32:02Z | 2024-04-01T17:32:02Z | 2024-04-01T17:32:08Z |
CI: Remove deprecated methods from code_checks.sh | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0c4e6641444f1..3cdbbc2b93a01 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -84,7 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.assign SA01" \
-i "pandas.DataFrame.at_time PR01" \
-i "pa... | - [ ] xref #58065
- [ ] [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/58090 | 2024-03-31T00:22:21Z | 2024-04-01T17:27:25Z | 2024-04-01T17:27:25Z | 2024-04-01T17:27:31Z |
BLD: Build wheels using numpy 2.0rc1 | diff --git a/.circleci/config.yml b/.circleci/config.yml
index ea93575ac9430..6f134c9a7a7bd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -72,10 +72,6 @@ jobs:
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
co... | - [ ] closes #55519 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/58087 | 2024-03-30T17:21:12Z | 2024-04-01T17:36:41Z | 2024-04-01T17:36:41Z | 2024-04-02T02:45:12Z |
ENH: Enable fillna(value=None) | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 2e104ac06f9f4..5149bd30dbbef 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -386,6 +386,27 @@ Replace NA with a scalar value
df
df.fillna(0)
+When the data ha... | - [x] closes #57723 (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/58085 | 2024-03-30T14:14:53Z | 2024-04-15T17:22:40Z | 2024-04-15T17:22:40Z | 2024-04-15T20:32:33Z |
CLN: move raising TypeError for `interpolate` with `object` dtype to Block | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 858d2ba82a969..c6f7e6296bc13 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7749,11 +7749,6 @@ def interpolate(
raise ValueError("'method' should be a string, not None.")
obj, should_transpose = (self.T, Tru... | xref #57820
moved raising `TypeError` for `interpolate` with object dtype from ``NDFrame`` to ``Block`` | https://api.github.com/repos/pandas-dev/pandas/pulls/58083 | 2024-03-30T00:45:24Z | 2024-04-01T20:49:57Z | 2024-04-01T20:49:57Z | 2024-04-01T20:50:04Z |
Backport PR #58075 on branch 2.2.x (DOC: whatsnew note for #57553) | diff --git a/doc/source/whatsnew/v2.2.2.rst b/doc/source/whatsnew/v2.2.2.rst
index 9e1a883d47cf8..0dac3660c76b2 100644
--- a/doc/source/whatsnew/v2.2.2.rst
+++ b/doc/source/whatsnew/v2.2.2.rst
@@ -15,6 +15,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- :meth:`DataFrame.__dataframe__` was producing incorrect data buffers ... | Backport PR #58075: DOC: whatsnew note for #57553 | https://api.github.com/repos/pandas-dev/pandas/pulls/58080 | 2024-03-29T21:40:25Z | 2024-04-01T21:23:48Z | 2024-04-01T21:23:48Z | 2024-04-01T21:23:50Z |
CLN: Remove unnecessary block in apply_str | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index de2fd9394e2fa..e8df24850f7a8 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -564,22 +564,10 @@ def apply_str(self) -> DataFrame | Series:
"axis" not in arg_names or func in ("corrwith", "skew")
):
... | - [ ] 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/58077 | 2024-03-29T19:30:21Z | 2024-03-29T21:39:18Z | 2024-03-29T21:39:18Z | 2024-03-29T22:07:23Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.