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 |
|---|---|---|---|---|---|---|---|
ENH: Dtype._is_immutable | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index c6c162001d147..bc776434b2e6e 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -396,6 +396,16 @@ def _can_hold_na(self) -> bool:
"""
return True
+ @property
+ def _is_immutable(self) -> bool:
+... | cc @phofl | https://api.github.com/repos/pandas-dev/pandas/pulls/54421 | 2023-08-04T22:05:11Z | 2023-08-06T10:20:05Z | 2023-08-06T10:20:05Z | 2023-08-06T21:19:44Z |
DOC: Simplify enhancingperf.rst | diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst
index 0909d5cd91355..2ddc3e709be85 100644
--- a/doc/source/user_guide/enhancingperf.rst
+++ b/doc/source/user_guide/enhancingperf.rst
@@ -7,11 +7,9 @@ Enhancing performance
*********************
In this part of the tutori... | * Simplified some language; removed language that was outdated
* Fixed some formatting
* Reorganized the eval section | https://api.github.com/repos/pandas-dev/pandas/pulls/54419 | 2023-08-04T21:10:37Z | 2023-08-05T18:10:29Z | 2023-08-05T18:10:29Z | 2023-08-05T18:23:35Z |
DOC: Simplify scale.rst | diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst
index b66ddcd33a684..bc49c7f958cb7 100644
--- a/doc/source/user_guide/scale.rst
+++ b/doc/source/user_guide/scale.rst
@@ -13,33 +13,10 @@ This document provides a few recommendations for scaling your analysis to larger
It's a complement to ... | * Simplified showing data
* Simplified some unnecessary language | https://api.github.com/repos/pandas-dev/pandas/pulls/54418 | 2023-08-04T19:21:46Z | 2023-08-05T18:06:00Z | 2023-08-05T18:06:00Z | 2023-08-05T18:23:23Z |
DOC: Simplify gotchas.rst | diff --git a/doc/source/user_guide/gotchas.rst b/doc/source/user_guide/gotchas.rst
index 47f1b74c0b894..67106df328361 100644
--- a/doc/source/user_guide/gotchas.rst
+++ b/doc/source/user_guide/gotchas.rst
@@ -13,7 +13,7 @@ DataFrame memory usage
The memory usage of a :class:`DataFrame` (including the index) is shown w... | * Add more sphinx referencing
* Update information about missing value representation in pandas | https://api.github.com/repos/pandas-dev/pandas/pulls/54415 | 2023-08-04T18:59:50Z | 2023-08-05T18:11:37Z | 2023-08-05T18:11:37Z | 2023-08-05T18:23:48Z |
REF: de-duplicate test_combine_add | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index 7807ef366d280..dea43e53ffc40 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -345,13 +345,24 @@ def test_combine_add(self, data_repeated):
orig_data1, orig_data... | - [ ] 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/54414 | 2023-08-04T18:28:16Z | 2023-08-04T21:17:53Z | 2023-08-04T21:17:53Z | 2023-08-04T21:23:17Z |
REF: de-duplicate test_divmod_series_array | diff --git a/pandas/tests/extension/conftest.py b/pandas/tests/extension/conftest.py
index 85bbafbeb5129..9e1b44d3bac02 100644
--- a/pandas/tests/extension/conftest.py
+++ b/pandas/tests/extension/conftest.py
@@ -27,7 +27,11 @@ def data():
@pytest.fixture
def data_for_twos():
- """Length-100 array in which all 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/54413 | 2023-08-04T18:17:21Z | 2023-08-04T21:19:06Z | 2023-08-04T21:19:06Z | 2023-08-04T21:21:05Z |
REF: de-duplicate test_add_series_with_extension_array | diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py
index 658018a7ac740..83d134161a8fb 100644
--- a/pandas/tests/extension/base/ops.py
+++ b/pandas/tests/extension/base/ops.py
@@ -161,7 +161,18 @@ def test_divmod_series_array(self, data, data_for_twos):
self._check_divmod_op(ot... | - [ ] 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/54412 | 2023-08-04T18:01:39Z | 2023-08-05T18:12:25Z | 2023-08-05T18:12:25Z | 2023-08-05T19:09:38Z |
CI: Build sdist again on macOS | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 77ab152ce712e..4e3544d5e443a 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -104,21 +104,42 @@ jobs:
with:
fetch-depth: 0
+ # TODO: Build wheels from sdist again
+ # There'... | - [ ] 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/54411 | 2023-08-04T17:56:19Z | 2023-08-04T21:22:19Z | 2023-08-04T21:22:19Z | 2023-08-04T21:23:58Z |
REF: de-duplicate test_direct_arith_with_ndframe_returns_not_implemented | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 483c5ad59872f..73835252c0329 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -269,6 +269,26 @@
EMPTY_STRING_PATTERN = re.compile("^$")
+arithmetic_dunder_methods = [
+ "__add__",
+ "__radd__",
+ "__s... | Also extends it to test for Index and all the arithmetic/comparison methods instead of just `__add__`. Uses a loop inside the test bc im leaning towards trying to slow the expansion of the test suite, but not super-opposed to parametrizing if reviewers have strong opinions.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54410 | 2023-08-04T17:53:53Z | 2023-08-04T23:29:41Z | 2023-08-04T23:29:41Z | 2023-08-05T01:02:46Z |
REF/DEPR: Deprecate AbstractMethodError | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 6d21f4a1ac8a2..3f50f24df3ee0 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -1,5 +1,9 @@
from __future__ import annotations
+from abc import (
+ ABC,
+ abstractmethod,
+)
from functools import w... | Squashed+rebased version of #48913
closes #48909 | https://api.github.com/repos/pandas-dev/pandas/pulls/54408 | 2023-08-04T13:58:42Z | 2023-12-26T17:55:00Z | null | 2024-01-17T02:49:56Z |
Fix #54391: Use memcpy() for unaligned loads | diff --git a/pandas/_libs/byteswap.pyx b/pandas/_libs/byteswap.pyx
index 511af5140b563..67cd7ad58d229 100644
--- a/pandas/_libs/byteswap.pyx
+++ b/pandas/_libs/byteswap.pyx
@@ -10,53 +10,57 @@ from libc.stdint cimport (
uint32_t,
uint64_t,
)
+from libc.string cimport memcpy
def read_float_with_byteswap(... | - [x] closes #54391
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
@jonashaag | https://api.github.com/repos/pandas-dev/pandas/pulls/54407 | 2023-08-04T13:29:38Z | 2023-08-04T21:23:59Z | 2023-08-04T21:23:59Z | 2023-08-05T11:35:36Z |
DOC: Added list of functions to ignore EX03 test | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 07c5ad1868d9e..aba42f3733a3f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -61,6 +61,118 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01,EX02,EX04,GL01,GL02,GL03,GL... | - [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/54406 | 2023-08-04T13:20:50Z | 2023-08-04T16:51:03Z | 2023-08-04T16:51:03Z | 2023-08-04T17:12:32Z |
ENH: Update numpy exceptions imports | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 11c6d8ea1a821..6d419098bf279 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -32,6 +32,7 @@
import numpy as np
from pandas._libs import lib
+from pandas.compat.numpy import np_version_gte1p24
from pandas.core.dtypes.cast import co... | Due to NumPy's main namespace being changed in https://github.com/numpy/numpy/pull/24316, here I update warning imports.
- [ ] closes #xxxx
- [ ] [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
- [ ] Al... | https://api.github.com/repos/pandas-dev/pandas/pulls/54405 | 2023-08-04T11:38:39Z | 2023-08-07T17:49:48Z | 2023-08-07T17:49:48Z | 2023-08-07T17:50:24Z |
CI: remove test cases which would have globbed pandas.tests | diff --git a/scripts/tests/test_check_test_naming.py b/scripts/tests/test_check_test_naming.py
index 9ddaf2fe2a97d..dbd803ce4dd31 100644
--- a/scripts/tests/test_check_test_naming.py
+++ b/scripts/tests/test_check_test_naming.py
@@ -17,18 +17,7 @@
1,
),
("def test_foo(): pass\n", "", 0),
... | This came up here https://github.com/pandas-dev/pandas/pull/54365#issuecomment-1664639342
I've removed the test cases which would've ended up triggering globbing of pandas/tests, this should remove the noise observed in that PR | https://api.github.com/repos/pandas-dev/pandas/pulls/54404 | 2023-08-04T10:30:39Z | 2023-08-04T17:00:56Z | 2023-08-04T17:00:55Z | 2023-08-04T17:01:04Z |
DEPR: 'A' in favour of 'Y' | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 4fd9740f184c8..49543c166d047 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -262,7 +262,7 @@ class Timeseries:
def setup(self, tz):
N = 10**6
halfway = (N // 2) ... | - [x] closes #54275
xref #54061
deprecated `'A'` in favour of `'Y'`.
* Deprecated `'A'` in Timedelta units in favour of `'Y'`
* Deprecated alias `'A'`, `'AS'`, `'A-DEC'`, etc. for time series frequencies in favour of `'Y'`, `'YS'`, `'Y-DEC'`, etc.
* Deprecated resolution `'A'` for Timedelta.resolution_strin... | https://api.github.com/repos/pandas-dev/pandas/pulls/54403 | 2023-08-04T09:37:10Z | 2023-11-17T15:36:35Z | null | 2023-11-17T15:36:35Z |
Fix #54391: Invalid pointer aliasing in SAS7BDAT parser | diff --git a/pandas/_libs/byteswap.pyx b/pandas/_libs/byteswap.pyx
index 511af5140b563..0d69e0b8f8211 100644
--- a/pandas/_libs/byteswap.pyx
+++ b/pandas/_libs/byteswap.pyx
@@ -16,7 +16,7 @@ def read_float_with_byteswap(bytes data, Py_ssize_t offset, bint byteswap):
assert offset + 4 < len(data)
cdef:
... | @thesamesam please review.
- [x] closes #54391 (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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/54401 | 2023-08-04T07:56:58Z | 2023-08-04T17:06:00Z | null | 2023-08-04T17:06:01Z |
TYP: Enable pyright's reportInconsistentConstructor | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 15bdc816ee65c..dc1ae4bd99612 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -138,7 +138,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.... | reportInconsistentConstructor checks that `__new__` and `__init__` should be consistent (argument names and their types) | https://api.github.com/repos/pandas-dev/pandas/pulls/54398 | 2023-08-04T02:17:38Z | 2023-08-04T17:25:18Z | 2023-08-04T17:25:18Z | 2023-08-09T15:08:31Z |
DEPR: Positional arguments in to_sql except name | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 006ab5c49e24c..6e352c52cd60e 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5651,7 +5651,7 @@ the database using :func:`~pandas.DataFrame.to_sql`.
data = pd.DataFrame(d, columns=c)
data
- data.to... | - [X] xref #54229
- [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] A... | https://api.github.com/repos/pandas-dev/pandas/pulls/54397 | 2023-08-04T01:22:12Z | 2023-08-10T00:44:42Z | 2023-08-10T00:44:42Z | 2024-02-17T17:20:08Z |
CLN/DOC: DataFrame.count remove references to "level" | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 3adb0597cf563..96fe90ce08c5f 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -512,19 +512,10 @@ def setup(self, axis):
self.df_mixed = self.df.copy()
self.... | 1. Removed mention of `level` in `DataFrame.count` docstring as it has been deprecated and removed.
2. Removed "level" from `frame_methods.Count` benchmark name and the `MultiIndex` since it was only relevant when using `level`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54395 | 2023-08-04T00:34:35Z | 2023-08-04T17:07:46Z | 2023-08-04T17:07:46Z | 2023-09-06T00:54:35Z |
REF: simplify extension reduction tests | diff --git a/pandas/tests/extension/base/__init__.py b/pandas/tests/extension/base/__init__.py
index 0e9a35b9f07e8..7d76838998540 100644
--- a/pandas/tests/extension/base/__init__.py
+++ b/pandas/tests/extension/base/__init__.py
@@ -60,6 +60,7 @@ class TestMyDtype(BaseDtypeTests):
BaseBooleanReduceTests,
Base... | - [x] closes #44742 (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/54394 | 2023-08-03T23:15:01Z | 2023-08-04T23:31:58Z | 2023-08-04T23:31:58Z | 2023-08-05T01:03:12Z |
REF: de-duplicate check_reduce_frame | diff --git a/pandas/tests/extension/base/reduce.py b/pandas/tests/extension/base/reduce.py
index 8f3c919cb0957..b7edfb860549c 100644
--- a/pandas/tests/extension/base/reduce.py
+++ b/pandas/tests/extension/base/reduce.py
@@ -1,3 +1,4 @@
+from typing import final
import warnings
import pytest
@@ -15,6 +16,9 @@ class... | - [ ] 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/54393 | 2023-08-03T22:09:02Z | 2023-08-04T00:24:06Z | 2023-08-04T00:24:06Z | 2023-08-04T00:40:13Z |
TST: Use pytest or assert_produces_warnings instead of catch_warnings | diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst
index df5b69c471b09..c06c0f8703d11 100644
--- a/doc/source/development/contributing_codebase.rst
+++ b/doc/source/development/contributing_codebase.rst
@@ -576,16 +576,6 @@ ignore the error.
def test_th... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54390 | 2023-08-03T19:30:01Z | 2023-08-05T18:38:26Z | 2023-08-05T18:38:26Z | 2023-08-05T18:38:29Z |
bug fix 54251 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index bc187361493c0..914f6d4d9b566 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -487,6 +487,7 @@ Conversion
- Bug in :meth:`DataFrame.info` raising ``ValueError`` when ``use_numba`` is set (:issue:`5192... | - [x] closes #54251
- [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/54388 | 2023-08-03T17:21:42Z | 2023-08-04T16:52:28Z | 2023-08-04T16:52:28Z | 2023-08-04T16:52:34Z |
TST: Use importorskip over skip_if_no_scipy | diff --git a/pandas/conftest.py b/pandas/conftest.py
index a55aea369e0ed..1dcf413f2edf6 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1868,7 +1868,7 @@ def spmatrix(request):
"""
Yields scipy sparse matrix classes.
"""
- from scipy import sparse
+ sparse = pytest.importorskip("scipy.... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54387 | 2023-08-03T17:03:18Z | 2023-08-04T17:07:12Z | 2023-08-04T17:07:12Z | 2023-08-04T17:07:15Z |
DOC: Fixing EX01 - Added example | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a793e03b8745f..07c5ad1868d9e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -57,13 +57,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (EX02, EX04, GL01, GL02, GL03, GL04, GL05, GL06, ... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
closes https://github.com/pandas-dev/pandas/issues/37875 | https://api.github.com/repos/pandas-dev/pandas/pulls/54384 | 2023-08-03T10:21:52Z | 2023-08-03T14:58:09Z | 2023-08-03T14:58:09Z | 2023-08-03T15:50:09Z |
ENH: add consortium standard entrypoint | diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml
index 6ff3d3b0a3b98..6c9ba89d82794 100644
--- a/.github/workflows/package-checks.yml
+++ b/.github/workflows/package-checks.yml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
- extra: ["test... | Here's an entry point to the Consortium's DataFrame API Standard
It enables dataframe-consuming libraries to just check for a `__dataframe_consortium_standard__` attribute on a dataframe they receive - then, so long as they stick to the spec defined in https://data-apis.org/dataframe-api/draft/index.html, then their... | https://api.github.com/repos/pandas-dev/pandas/pulls/54383 | 2023-08-03T10:18:48Z | 2023-08-07T20:19:26Z | 2023-08-07T20:19:26Z | 2023-08-07T20:19:33Z |
CLN: VariableOffsetWindowIndexer | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 861d802d3ba62..d5bcbcd59b667 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -205,6 +205,7 @@ Other enhancements
- Improve error message when setting :class:`DataFrame` with wrong number of columns th... | * Improved typing
* Added validation to arguments
* Clarified steps in `get_window_bounds` | https://api.github.com/repos/pandas-dev/pandas/pulls/54379 | 2023-08-03T01:58:32Z | 2023-08-04T17:06:30Z | 2023-08-04T17:06:30Z | 2023-08-04T17:06:34Z |
TST: Use more pytest.importorskip | diff --git a/pandas/tests/arrays/interval/test_interval.py b/pandas/tests/arrays/interval/test_interval.py
index 8d4022112f2a4..e16ef37e8799d 100644
--- a/pandas/tests/arrays/interval/test_interval.py
+++ b/pandas/tests/arrays/interval/test_interval.py
@@ -1,8 +1,6 @@
import numpy as np
import pytest
-import pandas... | - [ ] [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/54377 | 2023-08-02T19:13:57Z | 2023-08-03T16:18:52Z | 2023-08-03T16:18:52Z | 2023-08-03T16:18:55Z |
Add DB-API 2.0 cursor support to pandas DataFrame constructor `data` parameter | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 17894914b44d1..0615f7aca5798 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -213,7 +213,7 @@ Other enhancements
- Many read/to_* functions, such as :meth:`DataFrame.to_pickle` and :func:`read_csv`, s... | The current `DataFrame` constructor takes many objects as the `data` to use including a list-like object which can contain other list-like objects as rows. Most DB-API clients support iterating over a cursor object that has data to download from a database. If the rows of data are in `namedtuple`s, the column names are... | https://api.github.com/repos/pandas-dev/pandas/pulls/54376 | 2023-08-02T18:18:12Z | 2023-08-25T18:14:38Z | null | 2023-08-25T18:14:39Z |
COMPAT: Change khcomplex64/128_t typedefs | diff --git a/pandas/_libs/include/pandas/vendored/klib/khash_python.h b/pandas/_libs/include/pandas/vendored/klib/khash_python.h
index 56afea049c1ec..76b212a4b4660 100644
--- a/pandas/_libs/include/pandas/vendored/klib/khash_python.h
+++ b/pandas/_libs/include/pandas/vendored/klib/khash_python.h
@@ -2,10 +2,14 @@
#inc... | xref https://github.com/numpy/numpy/pull/24085
suggestion by @seberg | https://api.github.com/repos/pandas-dev/pandas/pulls/54375 | 2023-08-02T17:06:58Z | 2023-08-03T20:23:44Z | 2023-08-03T20:23:44Z | 2023-08-03T20:23:47Z |
DOC: Changed from_custom_template example | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index f77778ee45ae3..f883d9de246ab 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -3602,13 +3602,12 @@ def from_custom_template(
Examples
--------
- >>> from pandas.io.formats.style import Styler... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Changes after latest review of #54039 | https://api.github.com/repos/pandas-dev/pandas/pulls/54374 | 2023-08-02T13:59:25Z | 2023-08-03T15:10:48Z | 2023-08-03T15:10:48Z | 2023-08-03T15:47:08Z |
BUG: pd.array([]) should return masked array | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index c50e031c815a6..c73531f1f0e43 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -628,7 +628,8 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :func:`DataFrame.style.to_latex` and :func:`DataFrame.style.to_ht... | - [x] closes #54371
- [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/54372 | 2023-08-02T05:54:47Z | 2023-08-03T22:08:20Z | 2023-08-03T22:08:19Z | 2023-08-04T04:58:18Z |
CI: fix cython lint errors | diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx
index 8d01fe4efe545..b42a9415fbefb 100644
--- a/pandas/_libs/sparse.pyx
+++ b/pandas/_libs/sparse.pyx
@@ -726,7 +726,7 @@ def make_mask_object_ndarray(ndarray[object, ndim=1] arr, object fill_value):
for i in range(new_length):
value = arr[i... | fixing the following cython lint errors: https://results.pre-commit.ci/run/github/858127/1690944452.T8XDmbvwSAOmc-pEz3dwVg
| https://api.github.com/repos/pandas-dev/pandas/pulls/54370 | 2023-08-02T02:59:43Z | 2023-08-02T09:22:32Z | 2023-08-02T09:22:32Z | 2023-09-06T00:54:37Z |
Added documentation for Named aggregation in groupby.agg (Issue #18220) | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 75c816f66d5e4..40c175ab108da 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -722,16 +722,45 @@ accepts the special syntax in :meth:`.DataFrameGroupBy.agg` and :meth:`.SeriesGr
to make i... | closes #18220 | https://api.github.com/repos/pandas-dev/pandas/pulls/54369 | 2023-08-02T02:07:10Z | 2023-08-15T21:33:29Z | null | 2023-08-15T21:33:30Z |
TST: Remove tm.rands/rands_array | diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py
index ecd8c26ba6ca5..09c4acc0ab309 100644
--- a/asv_bench/benchmarks/array.py
+++ b/asv_bench/benchmarks/array.py
@@ -2,8 +2,6 @@
import pandas as pd
-from .pandas_vb_common import tm
-
class BooleanArray:
def setup(self):
@@ -56,7 ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54368 | 2023-08-02T00:33:53Z | 2023-08-03T20:24:58Z | 2023-08-03T20:24:58Z | 2023-08-03T20:25:01Z |
REF: remove test_accumulate_series_raises | diff --git a/pandas/tests/extension/base/accumulate.py b/pandas/tests/extension/base/accumulate.py
index 6774fcc27f35c..d60b41ccbb46e 100644
--- a/pandas/tests/extension/base/accumulate.py
+++ b/pandas/tests/extension/base/accumulate.py
@@ -11,28 +11,32 @@ class BaseAccumulateTests(BaseExtensionTests):
make sense ... | - [ ] 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/54367 | 2023-08-01T23:33:56Z | 2023-08-02T17:11:28Z | 2023-08-02T17:11:28Z | 2023-08-02T17:55:00Z |
REF: implement BaseOpsUtil._cast_pointwise_result | diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py
index 49598f014fbf6..bc2048f9c31bb 100644
--- a/pandas/tests/extension/base/ops.py
+++ b/pandas/tests/extension/base/ops.py
@@ -1,5 +1,7 @@
from __future__ import annotations
+from typing import final
+
import numpy as np
import p... | Along with #54365 this goes most of the way towards getting rid of the most egregious patterns in the extension arithmetic tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/54366 | 2023-08-01T22:53:11Z | 2023-08-02T15:48:03Z | 2023-08-02T15:48:03Z | 2023-08-02T16:27:53Z |
REF: dont pass exception to check_opname | diff --git a/pandas/tests/extension/base/ops.py b/pandas/tests/extension/base/ops.py
index bc2048f9c31bb..aafb1900a4236 100644
--- a/pandas/tests/extension/base/ops.py
+++ b/pandas/tests/extension/base/ops.py
@@ -12,6 +12,28 @@
class BaseOpsUtil(BaseExtensionTests):
+ series_scalar_exc: type[Exception] | None =... | - [ ] 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/54365 | 2023-08-01T21:58:18Z | 2023-08-04T16:48:17Z | 2023-08-04T16:48:17Z | 2023-08-04T17:06:08Z |
CLN: Remove None check in attrs property lookup | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index aa6578bbcaf66..8a3a105749800 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -381,8 +381,6 @@ def attrs(self) -> dict[Hashable, Any]:
>>> df.attrs
{'A': [10, 20, 30]}
"""
- if self._attrs is None:
- ... | `self._attrs` is always initialized to an empty dict per https://github.com/pandas-dev/pandas/blob/c93e8034a13d3dbe2358b1b2f868a0d54d1034a7/pandas/core/generic.py#L275
The attribute `_attrs` is only witten to in two other places
a) in the attrs.setter property (which enforces dict as well)
b) in `__setstate__`, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/54364 | 2023-08-01T21:21:31Z | 2023-08-02T15:48:51Z | 2023-08-02T15:48:51Z | 2023-08-02T16:03:12Z |
BUG: is_list_like returns True even if __iter__ raises an error | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 17894914b44d1..8a0b53d8ea0d7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -827,6 +827,7 @@ Other
- Bug in :func:`api.interchange.from_dataframe` when converting an empty DataFrame object (:issue:`5... | Changed so c_is_list_like() returns false if __iter__() throws exception
- [x] closes #54176
- [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.or... | https://api.github.com/repos/pandas-dev/pandas/pulls/54363 | 2023-08-01T21:21:26Z | 2023-08-08T16:45:15Z | null | 2023-08-08T16:45:15Z |
CI/TST: Cleanups | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index e41650870bd70..4f81acb6d2099 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -48,10 +48,10 @@ source activate pandas-dev
# downstream CI jobs that may also build pandas from source.
export PANDAS_CI=1
-if pip list | grep -q ^pand... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54362 | 2023-08-01T21:04:02Z | 2023-08-02T15:50:07Z | 2023-08-02T15:50:07Z | 2023-08-02T15:50:10Z |
REF: avoid monkeypatch in arrow tests | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 962641b99b4c7..7025262514776 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -863,17 +863,22 @@ def get_op_from_name(self, op_name):
short_opname = op_name.strip("_")
... | It's still an unholy mess, but marginally better. | https://api.github.com/repos/pandas-dev/pandas/pulls/54361 | 2023-08-01T20:49:14Z | 2023-08-01T22:22:10Z | 2023-08-01T22:22:10Z | 2023-08-01T22:24:47Z |
Added pivot table test for explicit datetime types Issue#43574 | diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py
index 18cace98f04d6..9fed22d4d0cba 100644
--- a/pandas/tests/reshape/test_pivot.py
+++ b/pandas/tests/reshape/test_pivot.py
@@ -2625,3 +2625,30 @@ def test_pivot_table_empty_dataframe_correct_index(self):
expected = Index([]... | - [ ] closes #43574
- [ ] [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/54360 | 2023-08-01T20:36:42Z | 2023-08-01T22:23:03Z | 2023-08-01T22:23:02Z | 2023-08-01T22:23:09Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 59e707c32ceb6..a793e03b8745f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -63,7 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; 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 https://github.com/pandas-dev/pandas/issues/37875 | https://api.github.com/repos/pandas-dev/pandas/pulls/54357 | 2023-08-01T17:09:54Z | 2023-08-02T15:37:32Z | 2023-08-02T15:37:32Z | 2023-08-02T15:40:02Z |
TST: Add tests to ensure proper conversion of datetime64/timedelta64/timestamp/duration to and from pyarrow | diff --git a/pandas/tests/frame/methods/test_convert_dtypes.py b/pandas/tests/frame/methods/test_convert_dtypes.py
index 082ef025992dd..c2b1016e88402 100644
--- a/pandas/tests/frame/methods/test_convert_dtypes.py
+++ b/pandas/tests/frame/methods/test_convert_dtypes.py
@@ -167,3 +167,11 @@ def test_convert_dtypes_pyarro... | - [ ] closes #54191
- [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/54356 | 2023-08-01T17:07:34Z | 2023-08-09T17:00:42Z | 2023-08-09T17:00:42Z | 2023-08-09T17:00:49Z |
REF/TST: remove overriding tm.assert_foo pattern | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index aedf07c9c48cd..15bdc816ee65c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -256,15 +256,6 @@ repos:
|default_rng\(\)
files: ^pandas/tests/
types_or: [python, cython, rst]
- - id: unwanted-pat... | Sits on top of #54337 | https://api.github.com/repos/pandas-dev/pandas/pulls/54355 | 2023-08-01T16:52:20Z | 2023-08-01T21:05:29Z | 2023-08-01T21:05:29Z | 2023-08-21T13:06:47Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 922e381a46f5d..59e707c32ceb6 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -64,7 +64,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Towards https://github.com/pandas-dev/pandas/issues/37875
| https://api.github.com/repos/pandas-dev/pandas/pulls/54354 | 2023-08-01T15:15:42Z | 2023-08-01T19:43:16Z | 2023-08-01T19:43:16Z | 2023-08-02T09:12:40Z |
Added Test for multi-index groupby partial indexing equivalence | diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py
index 1e9c4b446c4d0..bad2e0c048dc8 100644
--- a/pandas/tests/groupby/test_grouping.py
+++ b/pandas/tests/groupby/test_grouping.py
@@ -562,6 +562,37 @@ def test_groupby_multiindex_tuple(self):
result = df.groupby(("b", 1)... | - [x] closes #17977
- [x] [Tests added and passed]
| https://api.github.com/repos/pandas-dev/pandas/pulls/54353 | 2023-08-01T13:49:04Z | 2023-08-01T17:50:04Z | 2023-08-01T17:50:04Z | 2023-08-01T17:50:10Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7678e1e975d1a..e4df7c0d164a4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -66,7 +66,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.NaT \
pandas.io.stata.StataWriter.write_file \
pandas.plotting.deregiste... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Towards https://github.com/pandas-dev/pandas/issues/37875
Sphinx acting weird locally :-/ | https://api.github.com/repos/pandas-dev/pandas/pulls/54351 | 2023-08-01T10:12:40Z | 2023-08-01T16:48:56Z | 2023-08-01T16:48:56Z | 2023-08-01T16:51:27Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7678e1e975d1a..7340798ddda76 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -63,7 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; 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 https://github.com/pandas-dev/pandas/issues/37875 | https://api.github.com/repos/pandas-dev/pandas/pulls/54350 | 2023-08-01T09:37:46Z | 2023-08-01T16:26:59Z | 2023-08-01T16:26:59Z | 2023-08-01T16:45:28Z |
DEPR offsets: rename 'Q' to 'QE' | diff --git a/doc/source/getting_started/intro_tutorials/09_timeseries.rst b/doc/source/getting_started/intro_tutorials/09_timeseries.rst
index 470b3908802b2..b0530087e5b84 100644
--- a/doc/source/getting_started/intro_tutorials/09_timeseries.rst
+++ b/doc/source/getting_started/intro_tutorials/09_timeseries.rst
@@ -295... | xref #52064
Deprecated the alias 'Q' for offsets in favour of 'QE'.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54349 | 2023-08-01T08:50:10Z | 2023-10-16T22:26:03Z | null | 2023-10-16T22:26:03Z |
restructured drop method return value defination | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e4755d5dd2bdf..f83467d42bc42 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5209,8 +5209,8 @@ def drop(
Returns
-------
DataFrame or None
- DataFrame without the removed index or column labels or
- ... | - [x] closes #54319 (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/54348 | 2023-08-01T07:52:12Z | 2023-08-01T16:31:13Z | 2023-08-01T16:31:13Z | 2023-08-01T16:31:19Z |
Parquet metadata persistence of DataFrame.attrs | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 98465b5686ca1..22a9366ae0752 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -176,8 +176,8 @@ Other enhancements
- Performance improvement in :func:`concat` with homogeneous ``np.float64`` or ``np.flo... | - [x] closes #https://github.com/pandas-dev/pandas/issues/54321
- [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).
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/54346 | 2023-08-01T04:49:32Z | 2023-08-03T20:39:35Z | 2023-08-03T20:39:35Z | 2023-11-21T15:34:40Z |
REF: don patch assert_series_equal, assert_equal | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index eea79a789148e..311727b124df1 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -873,21 +873,6 @@ def test_basic_equals(self, data):
class TestBaseArithmeticOps(base.BaseArithmeti... | As in #54343, I think we should follow up by getting rid of these patterns altogether. | https://api.github.com/repos/pandas-dev/pandas/pulls/54345 | 2023-08-01T03:57:05Z | 2023-08-01T16:33:56Z | 2023-08-01T16:33:56Z | 2023-08-01T16:43:26Z |
Pyarrow metadata | diff --git a/pandas/_libs/join 2.pyx b/pandas/_libs/join 2.pyx
new file mode 100644
index 0000000000000..164ed8a5c9227
--- /dev/null
+++ b/pandas/_libs/join 2.pyx
@@ -0,0 +1,897 @@
+cimport cython
+from cython cimport Py_ssize_t
+import numpy as np
+
+cimport numpy as cnp
+from numpy cimport (
+ int64_t,
+ intp_... | - [ ] closes #54321
- [ ] [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/54344 | 2023-08-01T03:47:49Z | 2023-08-01T04:20:39Z | null | 2023-08-01T04:20:39Z |
REF: dont patch assert_frame_equal | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index fb2208b304f9e..5daefd8321f10 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -79,45 +79,7 @@ def data_for_grouping():
class BaseJSON:
- # NumPy doesn't h... | This is the only place where we patch assert_frame_equal in the tests. I think this pattern is pretty useless since it indicates that the relevant EA test wouldn't work for a user who didn't _also_ patch assert_frame_equal. So we should merge this and then follow up to get rid of the patching-assert_frame_equal patte... | https://api.github.com/repos/pandas-dev/pandas/pulls/54343 | 2023-08-01T03:39:27Z | 2023-08-01T16:32:36Z | 2023-08-01T16:32:36Z | 2023-08-01T16:35:10Z |
ENH: allow opt-in to inferring pyarrow strings | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index c3fbd3ee4853e..183a111249710 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1299,6 +1299,7 @@ cdef class Seen:
bint datetimetz_ # seen_datetimetz
bint period_ # seen_period
bint interval_ # s... | cc @phofl
Enabling this at the top of conftest.py breaks 4290 tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/54342 | 2023-08-01T03:03:05Z | 2023-08-05T19:10:55Z | null | 2023-08-05T19:11:02Z |
PERF: axis=1 reductions with EA dtypes | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 998efdedb1b57..1c6269d50295d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -614,6 +614,7 @@ Performance improvements
- :class:`Period`'s default formatter (`period_format`) is now significantly (~tw... | - [x] closes #52016
- [x] closes #54389
- [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.ht... | https://api.github.com/repos/pandas-dev/pandas/pulls/54341 | 2023-08-01T02:51:28Z | 2023-08-13T12:47:37Z | 2023-08-13T12:47:37Z | 2023-09-06T00:54:34Z |
REF: de-duplicate extension tests | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index 25bc99e8b9270..1e34de96d5860 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -65,7 +65,13 @@ def test_value_counts_with_normalize(self, data):
else:
... | - [ ] 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/54340 | 2023-08-01T02:39:00Z | 2023-08-01T18:11:13Z | 2023-08-01T18:11:13Z | 2023-08-01T18:21:31Z |
DOC: Move performance improvements in whatsnew | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b0d2acd9d3490..27632788cdd15 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -149,15 +149,6 @@ Other enhancements
- Adding ``engine_kwargs`` parameter to :meth:`DataFrame.read_excel` (:issue:`52214`)
... | - [ ] 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/54339 | 2023-08-01T02:32:41Z | 2023-08-01T16:37:18Z | 2023-08-01T16:37:18Z | 2023-08-01T19:03:00Z |
TST: fix Decimal constructor xfail | diff --git a/pandas/tests/extension/decimal/array.py b/pandas/tests/extension/decimal/array.py
index d24b70a884c45..f0a6a42cb252e 100644
--- a/pandas/tests/extension/decimal/array.py
+++ b/pandas/tests/extension/decimal/array.py
@@ -12,6 +12,7 @@
from pandas.core.dtypes.common import (
is_dtype_equal,
is_flo... | - [ ] 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/54338 | 2023-08-01T02:29:09Z | 2023-08-01T16:38:15Z | 2023-08-01T16:38:15Z | 2023-08-01T16:38:43Z |
REF: remove overriding assert_extension_array_equal | diff --git a/pandas/tests/extension/base/base.py b/pandas/tests/extension/base/base.py
index 97d8e7c66dbdb..717ddaec6eb28 100644
--- a/pandas/tests/extension/base/base.py
+++ b/pandas/tests/extension/base/base.py
@@ -15,7 +15,3 @@ def assert_series_equal(cls, left, right, *args, **kwargs):
@classmethod
def as... | - [ ] 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/54337 | 2023-07-31T23:38:40Z | 2023-08-01T18:07:38Z | 2023-08-01T18:07:38Z | 2023-08-01T18:22:15Z |
DEPS: Bump cython 3.0 | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 810764754b7e1..b7dce4f63f94c 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -41,7 +41,7 @@
// pip (with all the conda available packages installed first,
// followed by the pip installed packages).
"matrix": {
- ... | - [ ] 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/54335 | 2023-07-31T22:41:56Z | 2023-08-04T17:11:27Z | 2023-08-04T17:11:27Z | 2023-08-04T17:14:21Z |
REF/TST: handle boolean dtypes in base extension tests | diff --git a/pandas/tests/extension/base/groupby.py b/pandas/tests/extension/base/groupby.py
index bc8781eacfe06..acabcb600ffcc 100644
--- a/pandas/tests/extension/base/groupby.py
+++ b/pandas/tests/extension/base/groupby.py
@@ -30,15 +30,25 @@ def test_grouping_grouper(self, data_for_grouping):
@pytest.mark.param... | Fixes a handful of xfails in the pyarrow tests, avoids special-casing in a bunch of the BooleanArray tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/54334 | 2023-07-31T22:37:56Z | 2023-08-01T00:45:29Z | 2023-08-01T00:45:28Z | 2023-08-01T01:35:49Z |
details on weekday argument for DateOffset docs | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index f330a0cea1917..a013fb5c6c1c0 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1465,6 +1465,28 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
normalize : bool, default False
... | - [ ] towards #52650
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54332 | 2023-07-31T22:34:22Z | 2023-08-25T13:45:28Z | 2023-08-25T13:45:28Z | 2023-08-25T15:44:17Z |
REF: share IntegerArray/FloatingArray extension tests | diff --git a/pandas/tests/extension/masked_shared.py b/pandas/tests/extension/masked_shared.py
deleted file mode 100644
index ebbc14d27026c..0000000000000
--- a/pandas/tests/extension/masked_shared.py
+++ /dev/null
@@ -1,158 +0,0 @@
-"""
-Shared test code for IntegerArray/FloatingArray/BooleanArray.
-"""
-import pytest... | Before long I'd like to merge the BooleanArray tests into these too, basically mirroring what we have for ArrowEA.
Bigger picture I think these tests could use some attention to make it so EA authors basically only have to write the fixtures and everything else Just Works. | https://api.github.com/repos/pandas-dev/pandas/pulls/54331 | 2023-07-31T21:46:28Z | 2023-08-01T00:43:13Z | 2023-08-01T00:43:13Z | 2023-08-01T01:36:32Z |
STY: Enable ruff ambiguous unicode character | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5207fd5db1c4d..e4755d5dd2bdf 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7131,7 +7131,7 @@ def value_counts(
ascending : bool, default False
Sort in ascending order.
dropna : bool, default True
- ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54330 | 2023-07-31T21:36:54Z | 2023-08-01T02:06:49Z | 2023-08-01T02:06:49Z | 2023-08-01T16:23:29Z |
Added pivot table test for explicit datetime types [Issue#43574] | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 3dba120c0c64b..42e12b9741d99 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1718,9 +1718,21 @@ at `fsimpl1`_ for implementations built into ``fsspec`` and `fsimpl2`_
for those not included in the main ``fss... | - [ ] closes #43574 (Replace 43574 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/54329 | 2023-07-31T21:16:20Z | 2023-08-01T20:30:39Z | null | 2023-08-01T20:30:55Z |
COMPAT: Pyarrow supports div with duration | diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py
index 197cdc3f436a1..bdcd8f1ef0d50 100644
--- a/pandas/tests/extension/test_arrow.py
+++ b/pandas/tests/extension/test_arrow.py
@@ -37,6 +37,7 @@
pa_version_under8p0,
pa_version_under9p0,
pa_version_under11p0,
+ p... | - [ ] closes #54315 (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/54327 | 2023-07-31T19:14:15Z | 2023-07-31T22:06:22Z | 2023-07-31T22:06:22Z | 2023-07-31T22:12:35Z |
DOC : Updated the comparison with spreadsheets with Missing Values | diff --git a/doc/source/_static/spreadsheets/drop_missing.png b/doc/source/_static/spreadsheets/drop_missing.png
new file mode 100644
index 0000000000000..16c453b3593f2
Binary files /dev/null and b/doc/source/_static/spreadsheets/drop_missing.png differ
diff --git a/doc/source/_static/spreadsheets/fill_missing.png b/do... | - [x] part of https://github.com/pandas-dev/pandas/issues/38990
- [ ] [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/54325 | 2023-07-31T16:30:37Z | 2023-09-05T18:47:13Z | null | 2023-09-05T18:47:14Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9ef8a7395d30e..7678e1e975d1a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -64,13 +64,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; 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 https://github.com/pandas-dev/pandas/issues/37875
| https://api.github.com/repos/pandas-dev/pandas/pulls/54324 | 2023-07-31T16:18:39Z | 2023-07-31T16:45:31Z | 2023-07-31T16:45:31Z | 2023-07-31T16:45:37Z |
DEPS: drop np 1.21 | diff --git a/ci/deps/actions-39-minimum_versions.yaml b/ci/deps/actions-39-minimum_versions.yaml
index 91961e4af2d1c..7ad64e18ba993 100644
--- a/ci/deps/actions-39-minimum_versions.yaml
+++ b/ci/deps/actions-39-minimum_versions.yaml
@@ -22,7 +22,7 @@ dependencies:
# required dependencies
- python-dateutil=2.8.2... | xref #53047
| https://api.github.com/repos/pandas-dev/pandas/pulls/54323 | 2023-07-31T14:13:15Z | 2023-07-31T21:48:15Z | 2023-07-31T21:48:15Z | 2023-08-03T18:21:52Z |
BUG: respect allow_copy=False in interchange.from_dataframe | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b0d2acd9d3490..4e5a53b439fe3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -684,6 +684,7 @@ Other
- Bug in :class:`DataFrame` and :class:`Series` raising for data of complex dtype when ``NaN`` value... | On `main`, the following doesn't raise:
```python
import pyarrow as pa
import pyarrow.compute as pc
n_legs = pa.chunked_array([[2, 2, 4], [4, 5, 100]])
names = ["n_legs"]
table = pa.table([n_legs], names=names)
pd.api.interchange.from_dataframe(table, allow_copy=False)
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/54322 | 2023-07-31T13:37:25Z | 2023-07-31T16:54:19Z | 2023-07-31T16:54:19Z | 2023-07-31T16:54:26Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f6ed36b735cf4..9ef8a7395d30e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -63,16 +63,12 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; echo $MSG
$BASE_DIR/scripts/validate_docstring... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Towards https://github.com/pandas-dev/pandas/issues/37875 | https://api.github.com/repos/pandas-dev/pandas/pulls/54318 | 2023-07-31T09:11:48Z | 2023-07-31T15:18:25Z | 2023-07-31T15:18:25Z | 2023-07-31T15:48:46Z |
TST: Remove type-hint from test | diff --git a/pandas/tests/frame/methods/test_shift.py b/pandas/tests/frame/methods/test_shift.py
index d2281ad3a7480..1a472b2bd6d8f 100644
--- a/pandas/tests/frame/methods/test_shift.py
+++ b/pandas/tests/frame/methods/test_shift.py
@@ -692,7 +692,7 @@ def test_shift_with_iterable_series(self):
shifts = [0, 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/54317 | 2023-07-31T00:47:34Z | 2023-07-31T16:51:20Z | 2023-07-31T16:51:20Z | 2023-07-31T20:34:34Z |
CLN/ASV: Remove NumPy/built-in aliases in ASVs | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index e3176830c23fb..70ea19d6af2c9 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -511,8 +511,8 @@ def time_apply_axis_1(self):
def time_apply_lambda_mean(self):
se... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/54316 | 2023-07-30T23:59:43Z | 2023-07-31T16:52:01Z | 2023-07-31T16:52:01Z | 2023-07-31T20:34:45Z |
API / CoW: Add ChainedAssignmentError for inplace ops | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8b258b40f8ac5..835de62d43d2d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -81,6 +81,12 @@ Copy-on-Write improvements
- DataFrame.update / Series.update
- DataFrame.fillna / Series.fillna
- ... | - [ ] 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/54313 | 2023-07-30T15:27:57Z | 2023-08-11T09:15:57Z | 2023-08-11T09:15:57Z | 2023-08-11T09:16:00Z |
Docs formatting df join validate | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 68705097048d8..83b9fa3617e80 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10183,8 +10183,7 @@ def join(
* left: use calling frame's index (or column if on is specified)
* right: use `other`'s index.
... | - [x] closes **https://github.com/noatamir/pyladies-hh23-sprint/issues/9** (however this issue is no longer available, this was a follow-up task for the bold first list item.
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug o... | https://api.github.com/repos/pandas-dev/pandas/pulls/54311 | 2023-07-30T13:39:49Z | 2023-07-31T16:56:31Z | 2023-07-31T16:56:31Z | 2023-07-31T16:56:38Z |
BUG: raise a ParserWarning instead of printing to stderr when on_bad_lines is true | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index b0d2acd9d3490..351ad766d226a 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -578,6 +578,7 @@ I/O
- Bug in :func:`json_normalize`, fix json_normalize cannot parse metadata fields list type (:issue:`37... | Fixes the bug discussed on #54296
- [x] closes #54296
- [ ] [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/contribut... | https://api.github.com/repos/pandas-dev/pandas/pulls/54309 | 2023-07-29T23:13:25Z | 2023-08-31T17:50:47Z | null | 2023-08-31T17:50:48Z |
PERF: DataFrame reductions with axis=None and EA dtypes | diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py
index 65bcb3d55c4f1..1652fcf8d48da 100644
--- a/asv_bench/benchmarks/stat_ops.py
+++ b/asv_bench/benchmarks/stat_ops.py
@@ -6,7 +6,7 @@
class FrameOps:
- params = [ops, ["float", "int", "Int64"], [0, 1]]
+ params = [ops, ["float... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/54308 | 2023-07-29T18:56:57Z | 2023-07-31T16:58:05Z | 2023-07-31T16:58:05Z | 2023-08-01T21:29:57Z |
BUG: Fix Series.groupby raising OutOfBoundsDatetime with DatetimeIndex and month name | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 0fdec3175f635..aa66a10a163ac 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -628,6 +628,7 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.var` failing to raise ``TypeError`` when called with date... | Fix the bug as discussed in #48509 @topper-123
- [x] closes #48509
- [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/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/54306 | 2023-07-29T14:13:52Z | 2023-08-01T16:47:19Z | 2023-08-01T16:47:19Z | 2023-08-02T03:25:14Z |
BUG: fix hardcoded scatter marker size issue #54204 | diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst
index ddc8a37911c98..1a805d3071552 100644
--- a/doc/source/getting_started/intro_tutorials/04_plotting.rst
+++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst
@@ -103,7 +103,... | - [x] closes #54204
- [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/54304 | 2023-07-29T07:22:38Z | 2023-09-01T17:16:11Z | null | 2023-09-01T17:16:11Z |
ENH: Change DataFrame.to_excel to output unformatted excel file | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index a08315818366f..060db772b9682 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3908,6 +3908,20 @@ The look and feel of Excel worksheets created from pandas can be modified using
* ``float_format`` : Format str... | - [X] closes #54154
- [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/54302 | 2023-07-29T03:47:29Z | 2024-02-15T21:19:48Z | 2024-02-15T21:19:48Z | 2024-02-17T17:19:51Z |
CLN/ASV: avoid deprecation warnings in ASVs | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index b43fce73ee128..e63e66f441afe 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -408,7 +408,7 @@ def time_multi_size(self):
self.df.groupby(["key1", "key2"]).size()
def time_category_s... | Avoid various future warnings being raised in ASVs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/54301 | 2023-07-29T00:44:43Z | 2023-07-29T03:30:33Z | 2023-07-29T03:30:33Z | 2023-08-01T21:30:00Z |
BUG: from_dummies always returning object data | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 861d802d3ba62..f1a6ea1d01727 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -828,6 +828,8 @@ Other
- Bug in :func:`api.interchange.from_dataframe` when converting an empty DataFrame object (:issue:`5... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/54300 | 2023-07-29T00:39:19Z | 2023-08-04T17:12:34Z | 2023-08-04T17:12:34Z | 2023-08-04T17:12:37Z |
PERF: DataFrame.astype where dtype is an ExtensionDtype | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index e3176830c23fb..3a1c775699c4e 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -17,6 +17,40 @@
from .pandas_vb_common import tm
+class AsType:
+ params = [
+ [
... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/54299 | 2023-07-29T00:35:57Z | 2023-07-30T12:55:55Z | 2023-07-30T12:55:55Z | 2023-08-01T21:30:03Z |
BUG: to_timedelta with ArrowDtype(pa.duration) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 0fdec3175f635..55bef324a0065 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -504,6 +504,7 @@ Timedelta
- :meth:`TimedeltaIndex.map` with ``na_action="ignore"`` now works as expected (:issue:`51644`)
... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/54298 | 2023-07-28T23:05:38Z | 2023-08-03T20:26:01Z | 2023-08-03T20:26:01Z | 2023-08-03T20:26:05Z |
BUG: melt with extension dtype column | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 9c64105fb0464..a5520d9e5ca2f 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -636,6 +636,7 @@ Reshaping
^^^^^^^^^
- Bug in :func:`concat` coercing to ``object`` dtype when one column has ``pa.null()`... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/54297 | 2023-07-28T22:12:56Z | 2023-07-31T17:58:12Z | 2023-07-31T17:58:12Z | 2023-07-31T17:58:18Z |
TYP: level and fill_value in Series.mul | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 8c5eea02c60d8..24390b6d88378 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -5988,7 +5988,13 @@ def rsub(self, other, level=None, fill_value=None, axis: Axis = 0):
)
@Appender(ops.make_flex_doc("mul", "series"))
- def... | - [ ] 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/54294 | 2023-07-28T18:13:11Z | 2023-07-28T20:00:20Z | 2023-07-28T20:00:20Z | 2023-07-28T20:00:28Z |
FIX: pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 598dac0dc94db..61879e71702d0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,7 +16,7 @@ ci:
autofix_prs: false
autoupdate_schedule: monthly
# manual stage hooks
- skip: [pylint, pyright, mypy, autotyping]
+ ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/54293 | 2023-07-28T18:12:00Z | 2023-07-28T18:18:06Z | 2023-07-28T18:18:06Z | 2023-07-28T18:18:09Z |
Contributor Docs: update gitpod docs and small fix | diff --git a/doc/source/development/contributing_gitpod.rst b/doc/source/development/contributing_gitpod.rst
index 042a2f316cd42..2ba43a44b87d3 100644
--- a/doc/source/development/contributing_gitpod.rst
+++ b/doc/source/development/contributing_gitpod.rst
@@ -77,6 +77,7 @@ repository:
$ python -m pytest panda... | - [x] No issue for this change, was noticed while running through the onboarding docs
- [ ] [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-d... | https://api.github.com/repos/pandas-dev/pandas/pulls/54292 | 2023-07-28T18:03:51Z | 2023-08-01T07:28:29Z | 2023-08-01T07:28:29Z | 2023-08-01T07:30:41Z |
ENH: Improve Type Annotations | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 6a61b37ff4a94..e09b644040d50 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -463,3 +463,17 @@ def closed(self) -> bool:
# to_stata
ToStataByteorder = Literal[">", "<", "little", "big"]
+
+Justify = Literal[
+ "left",
+ "right",
+ "center",... | Update typing on the following:
- `justify for DataFrame.to_string`
- - `justify for DataFrame.to_html`
- [ ] 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... | https://api.github.com/repos/pandas-dev/pandas/pulls/54291 | 2023-07-28T18:02:51Z | 2023-09-01T00:32:09Z | null | 2023-09-01T00:32:10Z |
Added axis for Index : argmin, argmax, min and max | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 2f044905d33f9..2645697ab31e5 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -49,7 +49,9 @@
ArrayLike,
Axes,
Axis,
+ AxisInt,
DropKeep,
+ Dtype,
DtypeObj,
F,
IgnoreRaise,
@... | - [ ] 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/54290 | 2023-07-28T17:54:06Z | 2023-09-11T16:39:45Z | null | 2023-09-11T16:39:45Z |
Add return annotation for Index.view | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 2f044905d33f9..9fc4284ee1c22 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1006,7 +1006,7 @@ def ravel(self, order: str_t = "C") -> Self:
"""
return self[:]
- def view(self, cls=None):
+ ... | - [x] closes [sprint issue](https://github.com/noatamir/pyladies-hh23-sprint/issues/11)
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/54289 | 2023-07-28T17:53:42Z | 2023-08-25T18:12:22Z | null | 2023-08-25T18:12:23Z |
DOC: Fixing EX01 - Added examples | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 6ec41a153dc7d..f6ed36b735cf4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -63,9 +63,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Partially validate docstrings (EX01)' ; 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 https://github.com/pandas-dev/pandas/issues/37875
| https://api.github.com/repos/pandas-dev/pandas/pulls/54288 | 2023-07-28T17:21:16Z | 2023-07-28T20:01:43Z | 2023-07-28T20:01:43Z | 2023-07-28T20:01:51Z |
BUG: during interchanging from non-pandas tz-aware data | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 277eb430c2f8b..2fe6e94b31372 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -688,6 +688,7 @@ Other
- Bug in :class:`DatetimeIndex` where ``repr`` of index passed with time does not print time is midn... | xref #54246
Added a test for interchanging from non-pandas tz-aware.
EDIT: fixed bug which was raising during interchanging from non-pandas tz-aware data. | https://api.github.com/repos/pandas-dev/pandas/pulls/54287 | 2023-07-28T15:55:48Z | 2023-07-31T19:51:57Z | 2023-07-31T19:51:57Z | 2023-07-31T19:52:04Z |
DOCS: clarify self-merging and needs-triage | diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst
index a38e6c13dea41..b49c9644e1b2a 100644
--- a/doc/source/development/maintaining.rst
+++ b/doc/source/development/maintaining.rst
@@ -121,6 +121,8 @@ Here's a typical workflow for triaging a newly opened issue.
unless it'... | clarifying a couple of things which aren't really in there at the moment:
- needs triage label
- self-merging with approval | https://api.github.com/repos/pandas-dev/pandas/pulls/54286 | 2023-07-28T15:54:51Z | 2023-07-28T18:00:41Z | 2023-07-28T18:00:41Z | 2023-07-28T18:00:48Z |
DOC: Remove roadmap.rst in favor of the website roadmap | diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst
index 69f04494a271c..aa7e7845bfa7a 100644
--- a/doc/source/development/index.rst
+++ b/doc/source/development/index.rst
@@ -23,5 +23,4 @@ Development
extending
developer
policies
- roadmap
community
diff --git a/doc/... | https://pandas.pydata.org/about/roadmap.html seems a lot more up to date and relevant than https://pandas.pydata.org/docs/dev/development/roadmap.html so I think it's a good idea to prefer the former. | https://api.github.com/repos/pandas-dev/pandas/pulls/54283 | 2023-07-28T00:07:52Z | 2023-07-28T17:12:15Z | 2023-07-28T17:12:15Z | 2023-07-28T17:12:18Z |
DOC: Use more executed instead of static code blocks | diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst
index 41b0c98e339da..682fa4c9b4fcc 100644
--- a/doc/source/user_guide/advanced.rst
+++ b/doc/source/user_guide/advanced.rst
@@ -620,31 +620,23 @@ inefficient (and show a ``PerformanceWarning``). It will also
return a copy of the data ... | - [x] closes #45235 (Replace xxxx with the GitHub issue number)
- [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/54282 | 2023-07-27T22:09:35Z | 2023-07-31T18:05:54Z | 2023-07-31T18:05:54Z | 2023-07-31T18:05:57Z |
TYP: Add typing.overload signatures to DataFrame.drop_duplicates. | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 75a177f0969ca..f6da6a7cba98d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6383,6 +6383,39 @@ def dropna(
self._update_inplace(result)
return None
+ @overload
+ def drop_duplicates(
+ self,
+ subset... | This adds overloads so that a type checker can determine whether drop_duplicates returns DataFrame or None based on the value of the `inplace` argument.
The motivation for this is that we're using a type checker that looks at the pandas source code for type information. I realize that we should be using the stubs in... | https://api.github.com/repos/pandas-dev/pandas/pulls/54281 | 2023-07-27T21:43:44Z | 2023-07-28T13:48:05Z | 2023-07-28T13:48:05Z | 2023-07-28T18:22:26Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.