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
DEPR offsets: rename 'Q' to 'QE'
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 7ffbd9b2d740a..c78921655eb05 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -890,7 +890,7 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ ...
xref #9586, #52064 Deprecated the alias denoting quarter end frequency `"Q"` for offsets in favour of `"QE"`. - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/55553
2023-10-16T22:27:00Z
2023-10-24T14:23:19Z
2023-10-24T14:23:19Z
2023-10-24T14:23:19Z
Backport PR #55540 on branch 2.1.x (MAINT: Partially revert `np.int_` changes)
diff --git a/pandas/tests/arrays/boolean/test_reduction.py b/pandas/tests/arrays/boolean/test_reduction.py index 71156a4d84ae5..dd8c3eda9ed05 100644 --- a/pandas/tests/arrays/boolean/test_reduction.py +++ b/pandas/tests/arrays/boolean/test_reduction.py @@ -1,8 +1,6 @@ import numpy as np import pytest -from pandas.c...
Backport PR #55540: MAINT: Partially revert `np.int_` changes
https://api.github.com/repos/pandas-dev/pandas/pulls/55545
2023-10-16T16:50:08Z
2023-10-16T18:53:01Z
2023-10-16T18:53:01Z
2023-10-16T18:53:01Z
DEPR raise PDEP-6 warning in iadd operation with incompatible dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ef59c86a21598..4e086d0901c3b 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -253,6 +253,7 @@ Other Deprecations - Deprecated downcasting behavior in :meth:`Series.where`, :meth:`DataFrame.where`, :me...
addresses https://github.com/pandas-dev/pandas/issues/39584#issuecomment-1748891309
https://api.github.com/repos/pandas-dev/pandas/pulls/55543
2023-10-16T12:07:15Z
2023-10-16T17:18:35Z
null
2023-10-16T17:18:36Z
MAINT: Partially revert `np.int_` changes
diff --git a/pandas/tests/arrays/boolean/test_reduction.py b/pandas/tests/arrays/boolean/test_reduction.py index 71156a4d84ae5..dd8c3eda9ed05 100644 --- a/pandas/tests/arrays/boolean/test_reduction.py +++ b/pandas/tests/arrays/boolean/test_reduction.py @@ -1,8 +1,6 @@ import numpy as np import pytest -from pandas.c...
Hi! This PR reverts some changes introduced in https://github.com/pandas-dev/pandas/pull/55369 that, after discussions, are outdated (`np.long` should be used in places that specifically refer to the C type, rather than just "default integer").
https://api.github.com/repos/pandas-dev/pandas/pulls/55540
2023-10-16T08:47:34Z
2023-10-16T16:49:07Z
2023-10-16T16:49:07Z
2023-10-16T20:29:35Z
Adjust Series specific tests for string option
diff --git a/pandas/conftest.py b/pandas/conftest.py index 35a0d3b89400f..168ef5fed8fae 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -2022,6 +2022,14 @@ def warn_copy_on_write() -> bool: ) +@pytest.fixture +def using_infer_string() -> bool: + """ + Fixture to check if infer_string is enabl...
- [ ] 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/55538
2023-10-15T20:49:41Z
2023-11-19T23:11:44Z
2023-11-19T23:11:44Z
2023-11-19T23:11:47Z
BUG: Series inferring new string dtype even if dtype is given for scalar value
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index b4b9a4176472d..4fbc32e5bb103 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -540,6 +540,7 @@ def sanitize_array( ------- np.ndarray or ExtensionArray """ + original_dtype = dtype if isinsta...
This is a regression on main, so no whatsnew needed
https://api.github.com/repos/pandas-dev/pandas/pulls/55537
2023-10-15T18:49:18Z
2023-10-22T19:49:02Z
2023-10-22T19:49:02Z
2023-10-22T19:49:46Z
TST: Fix assert_is_sorted for eas
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index d4e7e196dc2d4..8323c6a443fac 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -440,7 +440,10 @@ def assert_is_sorted(seq) -> None: if isinstance(seq, (Index, Series)): seq = seq.values # sort...
- [ ] 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/55536
2023-10-15T16:59:48Z
2023-10-16T16:52:21Z
2023-10-16T16:52:21Z
2023-10-18T15:33:13Z
BUG: Ensure "string[pyarrow]" type is preserved when calling extractall
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 28b271f9cf446..97a718dd496e9 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -31,6 +31,7 @@ Bug fixes - Fixed bug in :meth:`Series.all` and :meth:`Series.any` not treating missing values correctly fo...
When calling `extractall` on an arrow string series, although the operation itself works, the returned dataframe column is of dtype `object` instead of preserving the arrow string type. This happens since the resulting dataframe was generated with the original array dtype only if it was an instance of `StringDType`. Ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/55534
2023-10-15T16:12:34Z
2023-10-19T16:42:44Z
2023-10-19T16:42:43Z
2023-10-19T16:42:50Z
Add env variable for infer string option
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index cc51e22265d7c..2fc1e39d995c5 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -39,7 +39,7 @@ Bug fixes Other ~~~~~ - Fixed non-working installation of optional dependency group ``output_formatting``....
- [ ] 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/55533
2023-10-15T14:04:20Z
2023-12-08T21:44:31Z
null
2023-12-08T21:44:34Z
Backport PR #55337 on branch 2.1.x (DOC: Adjust user guide for CoW docs)
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index 59bdb1926895f..d0c57b56585db 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -7,8 +7,8 @@ Copy-on-Write (CoW) ******************* Copy-on-Write was first introdu...
Backport PR #55337: DOC: Adjust user guide for CoW docs
https://api.github.com/repos/pandas-dev/pandas/pulls/55532
2023-10-15T13:45:02Z
2023-10-15T16:05:32Z
2023-10-15T16:05:32Z
2023-10-15T16:05:32Z
Backport PR #55384 on branch 2.1.x (BUG: idxmax raising for arrow strings)
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 85351945cf29c..636a22fcffe3d 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1596,6 +1596,15 @@ def _reduce( ------ TypeError : subclass does not define reductions ...
#55384
https://api.github.com/repos/pandas-dev/pandas/pulls/55531
2023-10-15T13:41:41Z
2023-10-15T18:54:23Z
2023-10-15T18:54:23Z
2023-10-15T18:54:25Z
Resolve Heisenbug in StringHashTable._unique
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 48aee18c90456..8127ce1fa6eda 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -473,6 +473,7 @@ Other - Bug in :func:`infer_freq` and :meth:`DatetimeIndex.inferred_freq` with weekly frequencies and non-...
When processing an invalid Unicode string, the exception handler for UnicodeEncodeError called `get_c_string` with an ephemeral repr value that could be garbage-collected the next time an exception was raised. Issue #45929 demonstrates the problem. This commit fixes the problem by retaining a Python reference to th...
https://api.github.com/repos/pandas-dev/pandas/pulls/55530
2023-10-15T12:18:07Z
2023-12-09T19:36:34Z
null
2023-12-09T19:36:35Z
TYP/DOC: add HTMLFlavors type to read_html and related
diff --git a/pandas/_typing.py b/pandas/_typing.py index de01434c09c39..c2d51f63eb2ab 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -410,6 +410,9 @@ def closed(self) -> bool: # read_xml parsers XMLParsers = Literal["lxml", "etree"] +# read_html flavors +HTMLFlavors = Literal["lxml", "html5lib", "bs4"] +...
Following up on what was discussed in https://github.com/pandas-dev/pandas-stubs/pull/772, accepted html flavors are now defined in their own type instead of being a str or a generic str sequence. Refs: - https://github.com/pandas-dev/pandas-stubs/pull/772#discussion_r1322037456 - https://github.com/pandas-dev/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/55529
2023-10-15T10:33:30Z
2023-10-16T16:51:01Z
2023-10-16T16:51:01Z
2023-11-02T03:53:04Z
BUG fix deprecation of `limit` and `fill_method` in `pct_change`
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 145c364728b40..37a07a9e20b1d 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -8,6 +8,14 @@ including other versions of pandas. {{ header }} +.. ----------------------------------------------------...
- [ ] Towards #53491 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) - [ ] Added an entry in the latest `doc/sourc...
https://api.github.com/repos/pandas-dev/pandas/pulls/55527
2023-10-15T08:25:28Z
2023-10-26T09:32:57Z
2023-10-26T09:32:56Z
2024-04-15T17:05:53Z
DEPS: Bump optional dependencies
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 2ca9e328adf9c..200bfcffd9e61 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -24,39 +24,41 @@ dependencies: - pytz # optional dependencies - - beautifulsoup4>=4.11.1 - - blosc>=1.21.0 - - bottleneck>=1.3.4 - - fas...
These versions will have been around for ~1 year once 2.2 comes out
https://api.github.com/repos/pandas-dev/pandas/pulls/55524
2023-10-14T21:20:45Z
2023-10-23T00:42:32Z
2023-10-23T00:42:32Z
2023-10-27T09:58:43Z
CLN/TST: clean logic of old datetime test_indexing test
diff --git a/pandas/tests/series/indexing/test_datetime.py b/pandas/tests/series/indexing/test_datetime.py index 84cf80fa1ffce..fc1c80eb4dec6 100644 --- a/pandas/tests/series/indexing/test_datetime.py +++ b/pandas/tests/series/indexing/test_datetime.py @@ -427,10 +427,10 @@ def test_indexing(): # getting # ...
Breaking off a change I had to make for https://github.com/pandas-dev/pandas/pull/55428, because it's actually unrelated to CoW and reduces the diff there a little bit. I think that this test has over time, through several small changes, become quite useful / incomprehensible. So cleaning it up, and actually asserti...
https://api.github.com/repos/pandas-dev/pandas/pulls/55523
2023-10-14T21:05:17Z
2023-10-15T01:27:59Z
2023-10-15T01:27:59Z
2023-10-17T08:22:08Z
CoW warning mode: warn in case of chained assignment
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 753aefcc00527..70f919f2dc070 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -240,8 +240,9 @@ repos: # pytest raises without context |\s\ pytest.raises + # TODO # pytest.warns (...
Follow-up PR on https://github.com/pandas-dev/pandas/pull/55428 (only last commit is relevant here, will be reviewable once parent PR is merged), xref https://github.com/pandas-dev/pandas/issues/56019 Adding warnings for the case of chained assignment, i.e. cases for which we will issue the ChainedAssignmentError wa...
https://api.github.com/repos/pandas-dev/pandas/pulls/55522
2023-10-14T20:28:51Z
2023-11-28T18:39:58Z
2023-11-28T18:39:58Z
2023-11-28T19:07:53Z
DEPR: tz_convert, tz_localize, to_timestamp, to_period
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 2c612e31d33b6..0f5d8162ce275 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -614,22 +614,6 @@ financial applications. See the :ref:`Time Series section <timeseries>`. ts = pd.Series(np.random....
- [x] closes #52110 (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/55521
2023-10-14T18:49:41Z
2024-01-10T16:22:00Z
null
2024-01-10T16:22:00Z
CoW: Use exponential backoff when clearing dead references
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 97a718dd496e9..ef69e874fdaf3 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.join` where result has missing values and dtype is ...
- [x] closes #55245 (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/55518
2023-10-14T15:14:28Z
2023-10-22T13:41:13Z
2023-10-22T13:41:13Z
2023-10-22T14:47:42Z
PERF: read_stata for wide columns
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ef59c86a21598..a3467445bf0f6 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -274,6 +274,7 @@ Other Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in :func:...
Before: `59.41s call pandas/tests/io/test_stata.py::TestStata::test_stata_119` After: `1.50s call pandas/tests/io/test_stata.py::TestStata::test_stata_119` (This function can probably be further improved as it iterates over columns many times.)
https://api.github.com/repos/pandas-dev/pandas/pulls/55515
2023-10-14T05:06:49Z
2023-10-19T16:46:17Z
2023-10-19T16:46:17Z
2023-10-19T16:46:20Z
TST: Replace node.add_marker with applymarker
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index e0aa8be066914..e22b57dbbff17 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -540,7 +540,7 @@ xfail during the testing phase. To ...
Seems like the more public way to add a marker: https://docs.pytest.org/en/7.1.x/reference/reference.html#pytest.FixtureRequest.applymarker
https://api.github.com/repos/pandas-dev/pandas/pulls/55513
2023-10-13T23:09:30Z
2023-10-15T19:00:34Z
2023-10-15T19:00:34Z
2023-10-15T19:00:56Z
Stub for Apple Numbers reader/writer
diff --git a/environment.yml b/environment.yml index a9648f3298198..bc261673a2e31 100644 --- a/environment.yml +++ b/environment.yml @@ -38,6 +38,7 @@ dependencies: - lxml>=4.8.0 - matplotlib>=3.6.1, <3.8 - numba>=0.55.2 + - numbers-parser>=4.4.6 - numexpr>=2.8.0 - openpyxl>=3.0.10 - odfpy>=1.4.1 dif...
- [x] Begins implementation of #55497 - [x] Tests added and passed to (pandas/tests/io/test_apple_numbers.py) - [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/developm...
https://api.github.com/repos/pandas-dev/pandas/pulls/55510
2023-10-13T16:54:58Z
2023-10-15T07:31:04Z
null
2023-10-15T07:31:05Z
Update get_utc declarations
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index a96779aa33255..9c8865fbdf428 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -425,7 +425,11 @@ timedelta-like} return result.base # .base to get underlying ndarray -cd...
This helps a bit with the Cython 3.0 performance; the regression here is that without noexcept Cython checks for an error each invocation of bisect_right_i8 The const qualifiers are not necessarily required, but are a nice safety add-on and only give the compiler a better chance to optimize
https://api.github.com/repos/pandas-dev/pandas/pulls/55507
2023-10-13T14:09:40Z
2023-10-13T16:32:41Z
2023-10-13T16:32:41Z
2023-10-13T16:32:48Z
Replace is_temporal checks with Cython version
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 23c8066b973f8..38b34b4bb853c 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1649,7 +1649,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str: if seen_val is False and skipna: return "empty" - if util.is_datet...
With Cython 3.0.3 I was unable to build pandas. Looks like is_timedelta / is_datetime functions were getting mixed between static / non-static declarations. I wasn't sure why that was happening, but while investigating noted that these got ported upstream by @jbrockmendel a few years back, so I think it makes sense to ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55506
2023-10-13T13:01:24Z
2023-10-19T16:02:42Z
2023-10-19T16:02:42Z
2023-10-19T16:03:41Z
Revert `np.int_` and `np.uint` changes
diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index c4721f3a6b09c..bc2f4420da784 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -184,7 +184,7 @@ can be improved by passing an ``np.ndarray``. ...: cpdef np.ndar...
Hi! In the last NumPy community meeting a decision was made that `np.int_` and `np.uint` should stay and they won't be a direct mapping to `np.long` and `np.ulong` (https://github.com/numpy/numpy/pull/24794#issuecomment-1760722889). This PR reverts my two commits that were added.
https://api.github.com/repos/pandas-dev/pandas/pulls/55505
2023-10-13T10:53:01Z
2023-10-16T08:48:33Z
null
2023-10-16T08:48:36Z
BUG: tslibs uncaught overflows
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index eec82ae26afcc..c869dfa808f57 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -290,12 +290,14 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :meth:`DatetimeIndex.union` returning object dtype for ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55503
2023-10-12T23:47:09Z
2023-10-13T16:35:01Z
2023-10-13T16:35:01Z
2023-10-13T16:41:02Z
REF: de-duplicate some Timedelta helpers
diff --git a/pandas/_libs/tslibs/timedeltas.pxd b/pandas/_libs/tslibs/timedeltas.pxd index fb6e29a8932a1..f3473e46b6699 100644 --- a/pandas/_libs/tslibs/timedeltas.pxd +++ b/pandas/_libs/tslibs/timedeltas.pxd @@ -4,6 +4,7 @@ from numpy cimport int64_t from .np_datetime cimport NPY_DATETIMEUNIT +cpdef int64_t get_u...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55501
2023-10-12T23:12:00Z
2023-10-13T18:41:56Z
2023-10-13T18:41:56Z
2023-10-13T19:13:09Z
Backport PR #55488 on branch 2.1.x (BLD: Pin numpy to < 2)
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 73d7723e2fb49..3ee10efaaf96f 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -25,8 +25,8 @@ runs: - name: Build Pandas run: | if [[ ${{ inputs.e...
Backport PR #55488: BLD: Pin numpy to < 2
https://api.github.com/repos/pandas-dev/pandas/pulls/55500
2023-10-12T22:33:59Z
2023-10-13T00:57:33Z
2023-10-13T00:57:33Z
2023-10-13T00:57:33Z
DEPR: rename ‘BM’/‘CBM’ to ‘BME’/‘CBME’ for offsets
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 9f3077e266e98..7ffbd9b2d740a 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -461,7 +461,7 @@ of those specified will not be generated: .. ipython:: python - pd.date_rang...
xref #52064 Renamed prefixes `"BM"/"CBM"` for offsets classes BusinessMonthEnd and CustomBusinessMonthEnd to `"BME"/"CBME"`.
https://api.github.com/repos/pandas-dev/pandas/pulls/55496
2023-10-12T15:48:10Z
2023-10-14T07:58:45Z
2023-10-14T07:58:45Z
2023-10-14T20:00:18Z
BUG: DataFrame.to_json OverflowError with np.long* dtypes
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 29a2d5c0b5877..e40553353fc20 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -349,6 +349,7 @@ I/O - Bug in :func:`read_excel`, with ``engine="xlrd"`` (``xls`` files) erroring when file contains NaNs/I...
- [x] closes #55403 (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/55495
2023-10-12T13:02:00Z
2023-10-16T17:53:47Z
2023-10-16T17:53:47Z
2023-10-16T17:53:54Z
BUG: DataFrame.to_json OverflowError with np.long* dtypes
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index e1415e2ca23ca..9f3077e266e98 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -896,9 +896,9 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ ...
- [x] closes #55403 (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/55494
2023-10-12T07:39:13Z
2023-10-12T11:44:37Z
null
2023-10-12T11:45:01Z
REF: De-special-case _format_with_header
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index d749235e2cd2c..515f750f11219 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1387,12 +1387,20 @@ def _format_with_header(self, *, header: list[str_t], na_rep: str_t) -> list[str values = self._values ...
- [ ] 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/55491
2023-10-11T20:37:08Z
2023-10-12T15:08:26Z
2023-10-12T15:08:26Z
2023-10-12T15:09:49Z
BLD: Pin numpy to < 2
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 73d7723e2fb49..3ee10efaaf96f 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -25,8 +25,8 @@ runs: - name: Build Pandas run: | if [[ ${{ inputs.e...
- [ ] 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/55488
2023-10-11T19:12:49Z
2023-10-12T22:32:58Z
2023-10-12T22:32:58Z
2023-10-14T15:17:00Z
BUG: categorical dtype equality for level in different type
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index eec82ae26afcc..ef1a34c4c27c6 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -285,6 +285,7 @@ Bug fixes Categorical ^^^^^^^^^^^ - :meth:`Categorical.isin` raising ``InvalidIndexError`` for categoric...
- [x] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55486
2023-10-11T15:04:50Z
2023-10-13T16:27:36Z
2023-10-13T16:27:36Z
2023-10-13T16:27:43Z
REF: share Index/Block get_values_for_csv
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 515f750f11219..f53c5606db4d3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -30,6 +30,7 @@ algos as libalgos, index as libindex, lib, + writers, ) from pandas._libs.internals import BlockValue...
I'm open to suggestions for a better place for get_values_for_csv to live.
https://api.github.com/repos/pandas-dev/pandas/pulls/55485
2023-10-11T14:37:34Z
2023-10-13T16:41:22Z
2023-10-13T16:41:22Z
2023-10-13T16:42:15Z
BUG: repr of inf values with use_inf_as_na
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 29a2d5c0b5877..eec82ae26afcc 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -394,6 +394,7 @@ Other ^^^^^ - Bug in :func:`cut` incorrectly allowing cutting of timezone-aware datetimes with timezone-n...
The real motivation here is avoiding the special-casing in _format_with_header. This makes is_float_nan unnecessary, so rips it out.
https://api.github.com/repos/pandas-dev/pandas/pulls/55483
2023-10-11T02:45:15Z
2023-10-11T17:54:58Z
2023-10-11T17:54:58Z
2023-10-11T17:56:48Z
Backport PR #55473: TST: sort index with sliced MultiIndex
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index ddd1f95c56aea..cc51e22265d7c 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -15,6 +15,8 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed bug where PDEP-6 warning about setting an item of an incompatib...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55482
2023-10-11T01:09:58Z
2023-10-19T16:43:28Z
2023-10-19T16:43:28Z
2023-11-16T12:57:02Z
DEPR: ‘AS’, ‘BA’ and ‘BAS’ in favour of ‘YS’, ‘BY’ and ‘BYS’
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index e1415e2ca23ca..9f3077e266e98 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -896,9 +896,9 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ ...
xref #55252 - deprecated strings ‘AS’, ‘BA’ and ‘BAS’ in favour of ‘YS’, ‘BY’ and ‘BYS’. - 
deprecated annual frequencies with various fiscal business year ends: “BA-DEC", “BA-JAN", etc. in favour of “BY-DEC", “BY-JAN", etc. - deprecated annual frequencies with various fiscal year begin: “AS-DEC", “AS-JAN", etc. in ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55479
2023-10-10T22:52:23Z
2023-10-11T17:55:11Z
2023-10-11T17:55:11Z
2023-10-11T17:55:11Z
ENH: EA._get_repr_footer
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 31c143ee012bb..e7b7ecba60e0b 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1663,7 +1663,14 @@ def __repr__(self) -> str: self, self._formatter(), indent_for_name=False ).rstrip(", \n") ...
- [x] closes #24278 (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/55478
2023-10-10T21:24:07Z
2023-10-11T17:54:23Z
2023-10-11T17:54:23Z
2023-10-11T17:57:18Z
DOC: Add Hail to the out-of-core community list
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index e6a6b3a8531ca..58c5da67bcd74 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -512,6 +512,21 @@ wasted). - ``vaex.from_pandas`` - ``vaex.to_pandas_df`` +### [Hail Query](https://hail.is/...
- [x] closes #55476 - [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~~ irrelevant - [x] ~~All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pr...
https://api.github.com/repos/pandas-dev/pandas/pulls/55477
2023-10-10T14:52:37Z
2023-10-27T02:18:39Z
2023-10-27T02:18:39Z
2023-10-27T02:18:46Z
CI: Add normal testing for Python 3.12
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b0a2427732a6a..8eae98972de20 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -26,7 +26,7 @@ jobs: timeout-minutes: 180 strategy: matrix: - env_file: [actions-39.yaml, ac...
- [ ] 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/55475
2023-10-10T13:45:34Z
2023-11-26T20:16:54Z
null
2024-03-16T17:12:44Z
REGR: sort index with sliced MultiIndex
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index bc6e29c3c7fbf..e6b54de9a8bfb 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -365,22 +365,15 @@ def lexsort_indexer( if codes_given: mask = k == -1 codes = k.copy() - n = len(codes) - ...
- [x] closes #55379 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/55474
2023-10-10T11:36:42Z
2023-10-18T16:45:59Z
2023-10-18T16:45:59Z
2023-11-16T12:57:03Z
TST: sort index with sliced MultiIndex
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 569864ba71122..cc51e22265d7c 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed bug where PDEP-6 warning about setting an item of an incompatible dtype was being ...
xref #55379 will open a separate PR for the targeted fix on 2.1.x This test can be back-ported though.
https://api.github.com/repos/pandas-dev/pandas/pulls/55473
2023-10-10T11:21:23Z
2023-10-10T15:41:20Z
2023-10-10T15:41:20Z
2023-11-16T12:56:48Z
EHN: read_spss stores the metadata in df.attrs
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index cfcc99bf5bda0..1d62a748a5fbb 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -76,6 +76,7 @@ Other enhancements - :attr:`Series.attrs` / :attr:`DataFrame.attrs` now uses a deepcopy for propagating ``...
- [x] closes #54264 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/55472
2023-10-10T09:56:53Z
2023-10-10T18:57:46Z
2023-10-10T18:57:46Z
2023-10-11T02:05:28Z
REF: de-duplicate IntervalArray formatting functions
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index b55a40f5488ea..4bc30d6dbd029 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -15,8 +15,6 @@ import numpy as np -from pandas._config import get_option - from pandas._libs import lib from pandas._...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55469
2023-10-10T03:15:37Z
2023-10-10T15:50:44Z
2023-10-10T15:50:44Z
2023-10-10T15:52:02Z
REF: avoid circular imports in formats
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 8955329a7afbf..c5cab225fa7b1 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -107,7 +107,10 @@ lexsort_indexer, ) -from pandas.io.formats.printing import pprint_thing +from pandas.io.formats.printing i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55467
2023-10-10T01:06:21Z
2023-10-10T15:53:20Z
2023-10-10T15:53:20Z
2023-10-10T15:54:35Z
DEPR: Series constructor fastpath keyword
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 288369145576e..f52f7a4bef37a 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -28,9 +28,6 @@ def time_constructor_dict(self): def time_constructor_no_data(self): ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55466
2023-10-10T00:56:01Z
2023-10-10T15:58:42Z
2023-10-10T15:58:42Z
2023-11-16T22:19:31Z
TST: fix file left behind
diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py index 0ff84bcf136cd..f031ac46c670c 100644 --- a/pandas/tests/io/pytables/test_store.py +++ b/pandas/tests/io/pytables/test_store.py @@ -303,8 +303,10 @@ def test_store_dropna(tmp_path, setup_path): tm.assert_frame_equal(df...
ATM local test runs are leaving an "example" file behind. This fixes that.
https://api.github.com/repos/pandas-dev/pandas/pulls/55464
2023-10-09T22:58:16Z
2023-10-10T00:37:39Z
2023-10-10T00:37:39Z
2023-10-10T00:50:13Z
Backport PR #55460 on branch 2.1.x (COMPAT: Update old numpy aliases)
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 5b190619c4ac3..0a02da09c9e15 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -977,7 +977,7 @@ def __init__(self) -> None: # with a label, but the underlying variable is -127 to 100 # we're going to drop the label and cast to int ...
Backport PR #55460: COMPAT: Update old numpy aliases
https://api.github.com/repos/pandas-dev/pandas/pulls/55463
2023-10-09T22:56:34Z
2023-10-10T00:36:30Z
2023-10-10T00:36:30Z
2023-10-10T00:36:30Z
COMPAT: Update old numpy aliases
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index d630a5ff8a41c..d00f1c666d5d6 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -977,7 +977,7 @@ def __init__(self) -> None: # with a label, but the underlying variable is -127 to 100 # we're going to drop the label and cast to int ...
- [x] closes #55454 (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
https://api.github.com/repos/pandas-dev/pandas/pulls/55460
2023-10-09T19:04:17Z
2023-10-09T22:39:49Z
2023-10-09T22:39:49Z
2023-10-09T22:59:35Z
Backport PR #55077 on branch 2.1.x (Revert "BUG: Timestamp origin takes no effect in resample for 'MS' frequency (#53938)")
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 08d1bf6a0fabc..f377fc348156b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9097,6 +9097,10 @@ def resample( .. versionadded:: 1.3.0 + .. note:: + + Only takes effect for Tick-frequencies ...
Backport PR #55077: Revert "BUG: Timestamp origin takes no effect in resample for 'MS' frequency (#53938)"
https://api.github.com/repos/pandas-dev/pandas/pulls/55459
2023-10-09T18:33:21Z
2023-10-24T18:21:55Z
2023-10-24T18:21:55Z
2023-10-24T18:22:05Z
Backport PR #55450 on branch 2.1.x (Bump pypa/cibuildwheel from 2.16.1 to 2.16.2)
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b156c3d9dfae7..6759f7b82eacf 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -138,7 +138,7 @@ jobs: run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV" - name: Build wheels - ...
Backport PR #55450: Bump pypa/cibuildwheel from 2.16.1 to 2.16.2
https://api.github.com/repos/pandas-dev/pandas/pulls/55457
2023-10-09T17:45:53Z
2023-10-09T19:40:35Z
2023-10-09T19:40:35Z
2023-10-09T19:40:35Z
Bump pypa/cibuildwheel from 2.16.1 to 2.16.2
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index efa14dd966eb1..6647bc03df17f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -138,7 +138,7 @@ jobs: run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV" - name: Build wheels - ...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.16.1 to 2.16.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p> <blockquote> <h2>v2.16.2</h2> <ul> <li>🛠 Updates CPython 3.12 version ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55450
2023-10-09T09:02:40Z
2023-10-09T17:44:49Z
2023-10-09T17:44:49Z
2023-10-09T17:45:11Z
DEPR: Previous implementation of DataFrame.stack
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 93ca2541d7ecd..69669b0d4cc54 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -261,6 +261,7 @@ Other Deprecations - Deprecated the ``fastpath`` keyword in the :class:`Series` constructor (:issue:`20110...
- [x] closes #53515 (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/55448
2023-10-09T02:55:51Z
2023-10-17T15:55:36Z
2023-10-17T15:55:36Z
2023-10-17T19:37:59Z
REF: Use alt=None for no fallback in GroupBy._cython_agg_general
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index e33c4b3579c69..12e2fe1cc42fb 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1936,7 +1936,7 @@ def _agg_py_fallback( def _cython_agg_general( self, how: str, - alt: Calla...
- [ ] 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/55447
2023-10-08T21:01:02Z
2023-10-08T22:32:48Z
null
2023-10-09T15:30:59Z
REF: avoid accessing internals in io.formats.csv
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28641031f7b21..7802657269044 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1323,6 +1323,25 @@ def to_string( line_width=line_width, ) + def _get_values_for_csv( + self, + *, + float_...
- [ ] 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/55446
2023-10-08T20:21:36Z
2023-10-09T16:59:03Z
2023-10-09T16:59:03Z
2023-10-09T17:01:30Z
TST: Close ad-hoc db connections
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 82fb98615100f..11f95ff104767 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -1,20 +1,3 @@ -"""SQL io tests - -The SQL tests are broken down in different classes: - -- `PandasSQLTest`: base class with common metho...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55445
2023-10-08T20:06:36Z
2023-10-12T15:12:38Z
2023-10-12T15:12:38Z
2023-10-12T15:12:42Z
moved bug fix notes to proper subsection rather then directly below Bug Fixes section
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 017a28ffb573a..ee394aac0daa4 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -278,12 +278,6 @@ Performance improvements Bug fixes ~~~~~~~~~ -- Bug in :class:`AbstractHolidayCalendar` where timezone...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55444
2023-10-08T18:25:01Z
2023-10-09T16:59:52Z
null
2023-10-09T16:59:53Z
Reorganize whatsnew 2.2.0 bug fixes into appropriate subsections
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d10b00e37f808..cfcc99bf5bda0 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -279,13 +279,6 @@ Performance improvements Bug fixes ~~~~~~~~~ -- Bug in :class:`AbstractHolidayCalendar` where timezone...
- [x] closes #55436 - [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) to new arguments/methods/functions. - [x] Added ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55443
2023-10-08T15:58:13Z
2023-10-08T22:56:48Z
2023-10-08T22:56:48Z
2023-10-08T22:56:58Z
Improved notes and added per class examples for accessor extensions
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 698abb2ec4989..1768d4a0de4c0 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -12,7 +12,10 @@ ) import warnings -from pandas.util._decorators import doc +from pandas.util._decorators import ( + Appender, + doc, +) from ...
- [ ] closes #49202 - [ ] 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/55442
2023-10-08T13:53:15Z
2023-11-07T01:10:07Z
null
2023-11-07T01:10:08Z
WEB: Fix rendering of PDEP-12
diff --git a/web/pandas/pdeps/0012-compact-and-reversible-JSON-interface.md b/web/pandas/pdeps/0012-compact-and-reversible-JSON-interface.md index 4fe4b935f144b..3ae34f4bb6ebb 100644 --- a/web/pandas/pdeps/0012-compact-and-reversible-JSON-interface.md +++ b/web/pandas/pdeps/0012-compact-and-reversible-JSON-interface.md...
Rendering of some bullet list is not correct -> I use markdownlint analysis to enforce standards and consistency. - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55441
2023-10-07T21:06:16Z
2023-10-09T16:57:10Z
2023-10-09T16:57:10Z
2023-10-10T07:37:29Z
TST: Fix some plotting xfails
diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 69120160699c2..64e1bdadffc21 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -4,6 +4,7 @@ from __future__ import annotations +import copy from typing import TYPE_CHECKING import numpy as 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/55440
2023-10-07T17:19:59Z
2024-04-02T02:21:12Z
null
2024-04-02T02:21:12Z
DEPR: Index.format
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 09067d541d01b..3bd817b6cb1f0 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -233,6 +233,7 @@ For example: Other Deprecations ^^^^^^^^^^^^^^^^^^ - Changed :meth:`Timedelta.resolution_string` to retu...
- [x] closes #55413 (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/55439
2023-10-07T16:29:48Z
2023-10-13T16:57:41Z
2023-10-13T16:57:41Z
2023-10-13T16:58:21Z
REF: privatize/annotate in io.formats
diff --git a/pandas/io/formats/info.py b/pandas/io/formats/info.py index d20c2a62c61e2..552affbd053f2 100644 --- a/pandas/io/formats/info.py +++ b/pandas/io/formats/info.py @@ -356,7 +356,7 @@ def _initialize_memory_usage( return memory_usage -class BaseInfo(ABC): +class _BaseInfo(ABC): """ Base clas...
Nothing really important here, but marginal improvements.
https://api.github.com/repos/pandas-dev/pandas/pulls/55438
2023-10-07T15:38:25Z
2023-10-09T17:26:42Z
2023-10-09T17:26:42Z
2023-10-09T19:34:42Z
DOC: Add DataFrame.index.levels
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 8955329a7afbf..6ac289ff8e705 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -840,6 +840,53 @@ def size(self) -> int: @cache_readonly def levels(self) -> FrozenList: + """ + Levels of...
- [X] xref #55435 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Add docstrings for MultiIndex.levels and MultiIndex.codes
https://api.github.com/repos/pandas-dev/pandas/pulls/55437
2023-10-07T14:08:15Z
2023-10-12T15:11:00Z
2023-10-12T15:11:00Z
2023-10-12T15:11:07Z
Backport PR #55380 on branch 2.1.x (CI: Exclude benchmarks directory when publishing docs)
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index e05f12ac6416a..6fa98ff352d38 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -67,7 +67,7 @@ jobs: run: cp doc/cheatsheet/Pandas_Cheat_Sheet* web/build...
Backport PR #55380: CI: Exclude benchmarks directory when publishing docs
https://api.github.com/repos/pandas-dev/pandas/pulls/55434
2023-10-07T08:22:03Z
2023-10-07T11:03:50Z
2023-10-07T11:03:50Z
2023-10-07T11:03:50Z
Doc: add DataFrame.index.levels
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 7541cf3c8af3c..ce8f7a58b066e 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1704,6 +1704,31 @@ You can assign a custom index to the ``index`` attribute: df_idx.index = pd.Index([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/55433
2023-10-07T05:17:55Z
2023-10-07T11:03:09Z
null
2023-10-07T11:03:10Z
REF: remove redundant Index formatting methods
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 58ade1ee935ec..b55a40f5488ea 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1235,7 +1235,6 @@ def value_counts(self, dropna: bool = True) -> Series: def _format_data(self) -> str: # 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/55432
2023-10-06T23:24:18Z
2023-10-09T17:51:50Z
2023-10-09T17:51:50Z
2023-10-09T19:35:07Z
WEB: Fix rendering of ntv-pandas ecosystem page
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 10ac3bccc6137..e6a6b3a8531ca 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -345,25 +345,27 @@ which pandas excels. ## IO -### [NTV-pandas](https://github.com/loco-philippe/ntv-pandas...
Change rendering bullet list in #55421 - [ ] 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.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/55430
2023-10-06T21:41:00Z
2023-10-09T18:27:37Z
2023-10-09T18:27:37Z
2023-10-09T18:27:37Z
DEPR: pandas.core for groupby
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e91629744463f..2b22da913a067 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -115,18 +115,18 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.day_name \ pandas.core.window.rolling.Rolling.corr \ p...
- [ ] 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/55429
2023-10-06T21:29:50Z
2023-12-14T02:04:14Z
null
2023-12-14T02:04:28Z
CoW: add warning mode for cases that will change behaviour
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b0a2427732a6a..d00dfc87a0584 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -69,6 +69,10 @@ jobs: env_file: actions-311.yaml pattern: "not slow and not network and no...
xref https://github.com/pandas-dev/pandas/issues/56019, https://github.com/pandas-dev/pandas/issues/48998 An initial PR working towards one of the remaining TODO items: > Add a warning mode that gives deprecation warnings for all cases where the current behaviour would change (initially also behind an option) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55428
2023-10-06T17:43:04Z
2023-10-30T10:59:26Z
2023-10-30T10:59:26Z
2023-11-17T10:05:20Z
DOC: Remove outdated docs about NumPy's broadcasting
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 2e299da5e5794..d3c9d83b943ce 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -408,20 +408,6 @@ raise a ValueError: pd.Series(['foo', 'bar', 'baz']) == pd.Series(['foo']) -Note that thi...
NumPy v1.25.0 removes the previosuly deprecated behavior of returning `False` when an array could not be broadcast. It now raises a `ValueError`, same as Pandas. https://github.com/numpy/numpy/pull/22707 The Pandas documentation previously highlighted this discrepancy. However, since it now throws an error, it is causi...
https://api.github.com/repos/pandas-dev/pandas/pulls/55427
2023-10-06T17:21:23Z
2023-10-09T18:29:16Z
2023-10-09T18:29:16Z
2023-11-09T16:31:26Z
add `ntv-pandas` to the ecosystem
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 561503de416a5..10ac3bccc6137 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -345,6 +345,27 @@ which pandas excels. ## IO +### [NTV-pandas](https://github.com/loco-philippe/ntv-pandas)...
As defined in the conclusion of the [PDEP-12](https://pandas.pydata.org/pdeps/0012-compact-and-reversible-JSON-interface.html), add `ntv-pandas` to the ecosystem . - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/55421
2023-10-06T07:52:48Z
2023-10-06T16:10:15Z
2023-10-06T16:10:15Z
2023-10-06T20:42:13Z
Backport PR #55414 on branch 2.1.x (CI: Pin Cython)
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index c1a0352b5f5c0..96210d878fa43 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -236,7 +236,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cach...
Backport PR #55414: CI: Pin Cython
https://api.github.com/repos/pandas-dev/pandas/pulls/55418
2023-10-05T22:50:47Z
2023-10-06T13:51:27Z
2023-10-06T13:51:27Z
2023-10-06T13:51:27Z
REF: remove unused box keyword from Timedelta64Formatter
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index c6c09c2636852..726de09b60d70 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1748,16 +1748,15 @@ def __init__( self, values: TimedeltaArray, nat_rep: str = "NaT", - box: bool = 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/55417
2023-10-05T22:14:25Z
2023-10-06T16:04:14Z
2023-10-06T16:04:14Z
2023-10-06T16:31:42Z
REF: remove unnecessary IntervalIndex._format_native_types
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 11f2cc8ebf1ff..c3d7bfc1998c0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1390,9 +1390,9 @@ def format( if formatter is not None: return header + list(self.map(formatter)) - retu...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/55416
2023-10-05T22:10:12Z
2023-10-06T16:05:40Z
2023-10-06T16:05:40Z
2023-10-06T16:27:54Z
Series.__repr__ with MultiIndex with level name 0
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 7743f762d8898..bd97c63115d6c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -389,6 +389,8 @@ Styler Other ^^^^^ - Bug in :func:`cut` incorrectly allowing cutting of timezone-aware datetimes with ti...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55415
2023-10-05T20:33:10Z
2023-10-06T16:07:41Z
2023-10-06T16:07:41Z
2023-10-06T16:27:29Z
CI: Pin Cython
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 139cfcde95b2c..96010a4a0227d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -236,7 +236,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cach...
- [ ] 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/55414
2023-10-05T20:05:52Z
2023-10-05T22:49:47Z
2023-10-05T22:49:47Z
2023-10-06T01:47:11Z
TYP: Add overload for ser.rename_axis
diff --git a/pandas/core/series.py b/pandas/core/series.py index 8ddce3d5cab26..937a5a6f936a8 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5004,8 +5004,44 @@ def reindex( # type: ignore[override] tolerance=tolerance, ) + @overload # type: ignore[override] + def rena...
Another overload that improves typing when not using stubs.
https://api.github.com/repos/pandas-dev/pandas/pulls/55412
2023-10-05T14:20:52Z
2023-10-06T17:29:31Z
2023-10-06T17:29:31Z
2023-10-06T17:29:52Z
BUG: fix for datetime parse error for more than 50 rows
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index e23bf6269893d..d8be68d9ccf62 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -251,6 +251,8 @@ def _maybe_cache( unique_dates = unique(arg) if len(unique_dates) < len(arg): + ...
- [x] closes #55345 - [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/contributing_codebase.html#pre-commit). - [ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/55411
2023-10-05T11:07:51Z
2023-11-07T01:09:35Z
null
2023-11-07T01:09:35Z
TYP: read_csv and read_excel fixes
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 073115cab8695..6def0024d9073 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -80,6 +80,7 @@ IntStrT, ReadBuffer, Self, + SequenceNotStr, StorageOptions, WriteExcelBuffer, ...
read_csv's date_format accepts dicts read_excel's names can be a Sequence with any Hashable types inside edit: should probably enable type-checking of some tests (`def test_xxx(...) -> None` should be enough for mypy to check what is happening inside the function)
https://api.github.com/repos/pandas-dev/pandas/pulls/55410
2023-10-05T02:11:22Z
2023-10-05T16:15:17Z
2023-10-05T16:15:17Z
2023-12-10T04:33:40Z
Fix new string dtype tests for frame folder
diff --git a/pandas/tests/frame/constructors/test_from_dict.py b/pandas/tests/frame/constructors/test_from_dict.py index 845174bbf600e..60a8e688b3b8a 100644 --- a/pandas/tests/frame/constructors/test_from_dict.py +++ b/pandas/tests/frame/constructors/test_from_dict.py @@ -3,6 +3,8 @@ import numpy as np import pytest ...
This is the first of many folders...
https://api.github.com/repos/pandas-dev/pandas/pulls/55409
2023-10-04T20:55:19Z
2023-12-09T19:16:53Z
2023-12-09T19:16:53Z
2023-12-09T19:39:13Z
TST: GroupBy.ffill on a multi-index dataframe
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 4ca8b0e317bd2..2d5e03df78d2f 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -3245,3 +3245,12 @@ def test_get_group_axis_1(): } ) tm.assert_frame_equal(result...
For additional information, we have explained how this new automated test work on first commit description. - [x] closes #43412 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/55408
2023-10-04T20:14:53Z
2023-10-09T18:30:36Z
2023-10-09T18:30:36Z
2023-10-09T18:30:42Z
Backport PR #55367 on branch 2.1.x (BUG: all not ignoring na when skipna=True)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index c699ff2df1f30..524d71a56a2e6 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -26,6 +26,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.idxmin` and :meth:`DataFrame.idxmax` raising for arrow dtypes (:is...
#55367
https://api.github.com/repos/pandas-dev/pandas/pulls/55407
2023-10-04T19:58:33Z
2023-10-04T22:01:18Z
2023-10-04T22:01:18Z
2023-10-04T22:11:31Z
Backport PR #55362 on branch 2.1.x (BUG: rank raising for arrow string dtypes)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 524d71a56a2e6..ddd1f95c56aea 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -27,6 +27,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.interpolate` raising incorrect error message (:issue:`55347`) - F...
#55362
https://api.github.com/repos/pandas-dev/pandas/pulls/55406
2023-10-04T19:55:13Z
2023-10-15T17:03:43Z
2023-10-15T17:03:43Z
2023-10-15T17:03:45Z
BUG: TimedeltaIndex.__repr__ with non-nano and round values
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 4749ceec4a330..7743f762d8898 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -296,7 +296,7 @@ Datetimelike Timedelta ^^^^^^^^^ -- +- Bug in rendering (``__repr__``) of :class:`TimedeltaIndex` and :...
- [ ] 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/55405
2023-10-04T19:03:13Z
2023-10-05T16:13:26Z
2023-10-05T16:13:26Z
2023-10-05T16:29:53Z
Backport PR #55397 on branch 2.1.x (MAINT: Add warning filter for `np.long`)
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 1b974a92f8188..51c9892b64a08 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -1,4 +1,6 @@ """ support numpy compatibility across versions """ +import warnings + import numpy as np from pandas....
Backport PR #55397: MAINT: Add warning filter for `np.long`
https://api.github.com/repos/pandas-dev/pandas/pulls/55402
2023-10-04T16:47:39Z
2023-10-04T18:20:07Z
2023-10-04T18:20:07Z
2023-10-04T18:20:07Z
DOC: Fixing EX03 - Removing flake8 errors in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index aba42f3733a3f..6caa39ae42926 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -63,16 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX03)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings...
[x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards #27977
https://api.github.com/repos/pandas-dev/pandas/pulls/55401
2023-10-04T16:27:56Z
2023-10-04T18:21:00Z
2023-10-04T18:21:00Z
2023-10-04T18:21:07Z
MAINT: Add warning filter for `np.long`
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 1b974a92f8188..51c9892b64a08 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -1,4 +1,6 @@ """ support numpy compatibility across versions """ +import warnings + import numpy as np from pandas....
Hi! This is a one-line follow-up PR after https://github.com/pandas-dev/pandas/pull/55369. Downstream libs that use nightly pandas and numpy will see a warning without it (there was a similar fix for scipy: https://github.com/scipy/scipy/pull/19341).
https://api.github.com/repos/pandas-dev/pandas/pulls/55397
2023-10-04T11:39:13Z
2023-10-04T16:44:43Z
2023-10-04T16:44:43Z
2023-10-26T13:48:25Z
Backport PR #55366 on branch 2.1.x (BUG: Inserting ndim=0 array does not infer string dtype)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 60b628c5d658c..0312ec3682f11 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -22,6 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`Categorical.equals` if other has arrow backed ...
Backport PR #55366: BUG: Inserting ndim=0 array does not infer string dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/55396
2023-10-04T08:39:28Z
2023-10-04T14:50:24Z
2023-10-04T14:50:24Z
2023-10-04T14:50:25Z
BUG: avoid DeprecationWarning when the Series has index as list of Series
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 04bbb0f806cbd..25afcbb3bb532 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -21,7 +21,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :class:`Series` constructor raising DeprecationWarning...
- [ ] Closes #55228 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) - [x] Added an entry in the latest `doc/source...
https://api.github.com/repos/pandas-dev/pandas/pulls/55395
2023-10-04T08:27:24Z
2023-11-16T17:43:59Z
2023-11-16T17:43:59Z
2023-12-04T18:32:49Z
REF: formats.format functions that should be DTA methods
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 8e60180c7bac4..fae42f170a6b6 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -28,12 +28,14 @@ get_resolution, get_supported_reso, get_unit_from_dtype, + iNaT, ints_to_pydatet...
- [ ] 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/55394
2023-10-04T04:39:55Z
2023-10-04T20:38:17Z
2023-10-04T20:38:17Z
2023-10-04T20:57:17Z
TYP: format.formats
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 8d2633c10b428..4152d2a50ea63 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1819,7 +1819,7 @@ def _empty( # type: ignore[override] return arr._from_backing_data(backing) - ...
- [ ] 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/55393
2023-10-04T03:34:53Z
2023-10-04T18:18:01Z
2023-10-04T18:18:01Z
2023-10-04T18:26:03Z
CLN: Replace _selected_obj with _obj_with_exclusions in SeriesGroupBy
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index dbabd04a87c36..904ab9bdfc6dd 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -158,7 +158,7 @@ def _wrap_agged_manager(self, mgr: Manager) -> Series: def _get_data_to_aggregate( self, *, 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/55392
2023-10-04T03:27:49Z
2023-10-05T16:18:56Z
2023-10-05T16:18:56Z
2023-10-06T15:24:52Z
REF: simplify Categorical.__repr__
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 8d2633c10b428..09d1072dd8730 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2147,21 +2147,6 @@ def _formatter(self, boxed: bool = False): # Defer to CategoricalFormatter's format...
Logic-neutral, gets weird of some duplication and some weird indirection. This is valid commit-by-commit if that is easier to review.
https://api.github.com/repos/pandas-dev/pandas/pulls/55391
2023-10-04T02:58:33Z
2023-10-04T18:19:06Z
2023-10-04T18:19:06Z
2023-10-04T18:25:12Z
[ENH] case_when function
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 16cfc3efc1024..9daa83cf6b85f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -14,6 +14,25 @@ including other versions of pandas. Enhancements ~~~~~~~~~~~~ +.. _whatsnew_220.enhancements.case_when: ...
- [x] closes #39154 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/55390
2023-10-04T01:53:04Z
2023-11-19T06:39:25Z
null
2023-11-19T07:25:35Z
REF: improve privatization in io.formats.format
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 51fceb1f09a62..b1ca7557c11ca 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3266,7 +3266,7 @@ def to_html( ... </table>''' >>> assert html_string == df.to_html() """ - if justify is not None and justify no...
Broken off from a branch that actually affects logic.
https://api.github.com/repos/pandas-dev/pandas/pulls/55389
2023-10-03T23:46:28Z
2023-10-05T00:41:22Z
2023-10-05T00:41:22Z
2023-10-05T00:53:23Z
Backport PR #55369 on branch 2.1.x (MAINT: Remove `np.int_` and `np.uint`)
diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index bc2f4420da784..c4721f3a6b09c 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -184,7 +184,7 @@ can be improved by passing an ``np.ndarray``. ...: cpdef np.ndar...
Backport PR #55369: MAINT: Remove `np.int_` and `np.uint`
https://api.github.com/repos/pandas-dev/pandas/pulls/55387
2023-10-03T22:43:26Z
2023-10-04T16:45:11Z
2023-10-04T16:45:11Z
2023-10-04T16:45:11Z
WARN: sort_values for midx warns unnecessarily if nan is in level
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 144045d40a086..041ef2d742c16 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1948,7 +1948,7 @@ def _sort_levels_monotonic(self, raise_if_incomparable: bool = False) -> MultiIn # indexer t...
I think we can skip the whatsnew here, this caused only a RuntimeWarning before
https://api.github.com/repos/pandas-dev/pandas/pulls/55386
2023-10-03T21:41:02Z
2023-10-04T17:05:44Z
2023-10-04T17:05:44Z
2023-10-04T17:13:28Z
BUG: idxmax raising for arrow strings
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 12fe9b30f3f52..473f2c1ff2222 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1627,6 +1627,15 @@ def _reduce( ------ TypeError : subclass does not define reductions ...
- [ ] 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/55384
2023-10-03T20:50:35Z
2023-10-15T13:39:09Z
2023-10-15T13:39:09Z
2023-10-15T13:41:06Z