title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
STY: De-privatize imported names
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index ffaf6d6505955..5a0cddb0af197 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -56,7 +56,7 @@ from pandas._libs.missing cimport checknull cdef int64_t NPY_NAT = util.get_nat() -_SIZE_HINT_LIMIT = (1 << 20) + 7 +SIZ...
getting close to being able to enable a code_check for these
https://api.github.com/repos/pandas-dev/pandas/pulls/36156
2020-09-06T03:06:33Z
2020-09-06T17:05:36Z
2020-09-06T17:05:36Z
2020-09-06T19:04:13Z
CLN: backport mpl warning fix to 1.1.2
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index d1a66256454ca..95701d00b3c29 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -44,6 +44,7 @@ Bug fixes Other ~~~~~ - :meth:`factorize` now supports ``na_sentinel=None`` to include NaN in the uniques ...
backport #35946 and #36145
https://api.github.com/repos/pandas-dev/pandas/pulls/36155
2020-09-06T02:44:40Z
2020-09-06T17:17:54Z
2020-09-06T17:17:54Z
2020-09-06T17:18:15Z
REF: share more EA methods
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 2976747d66dfa..8b79f8ce66756 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -4,9 +4,10 @@ from pandas.compat.numpy import function as nv from pandas.errors import AbstractMethodError -from pandas.util...
https://api.github.com/repos/pandas-dev/pandas/pulls/36154
2020-09-06T00:05:22Z
2020-09-06T17:08:26Z
2020-09-06T17:08:26Z
2020-09-06T19:29:40Z
Fix compressed multiindex for output of groupby.rolling
diff --git a/doc/source/whatsnew/v1.1.2.rst b/doc/source/whatsnew/v1.1.2.rst index d1a66256454ca..6a21f36284996 100644 --- a/doc/source/whatsnew/v1.1.2.rst +++ b/doc/source/whatsnew/v1.1.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Regression in :meth:`DataFrame.replace` where a ``TypeError`` would be raised when attem...
- [x] closes #36018 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The number of leves for MultiIndex in input was compressed to one, because the tuples representing the Index rows were not unpacked. Also name was ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36152
2020-09-05T23:16:51Z
2020-09-07T21:06:30Z
2020-09-07T21:06:29Z
2020-09-07T21:14:34Z
REF: use BlockManager.apply in csv code
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index c8da04fbbf987..eb5b887c8b0cb 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -593,7 +593,7 @@ def astype(self, dtype, copy: bool = False, errors: str = "raise"): # use native typ...
This doesn't get rid of internals usage entirely, but makes that access 1 layer less deep
https://api.github.com/repos/pandas-dev/pandas/pulls/36150
2020-09-05T22:56:02Z
2020-09-12T21:28:01Z
2020-09-12T21:28:01Z
2020-09-12T21:30:15Z
Make to_numeric default to correct precision
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2afa1f1a6199e..2aac2596c18cb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -245,7 +245,7 @@ Timezones Numeric ^^^^^^^ -- +- Bug in :func:`to_numeric` where float precision was incorrect (:issue:`...
- [x] closes #31364 - [x] tests added / passed - tools/test_to_numeric.py:test_precision - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This relates to a very old issue #8002 where the default precision for CSV files could create wrong ans...
https://api.github.com/repos/pandas-dev/pandas/pulls/36149
2020-09-05T20:59:20Z
2020-09-08T15:30:37Z
2020-09-08T15:30:36Z
2020-09-18T11:34:47Z
DEPR: disallow tznaive datetimes when indexing tzaware datetimeindex
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 5be9155b3ff0b..afc0046ec6822 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -289,6 +289,7 @@ Deprecations - Deprecated :meth:`Index.is_all_dates` (:issue:`27744`) - Deprecated automatic alignment on...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @mroeschke
https://api.github.com/repos/pandas-dev/pandas/pulls/36148
2020-09-05T20:05:51Z
2020-10-07T20:29:37Z
2020-10-07T20:29:37Z
2021-11-23T02:54:52Z
REGR: Series access with Index of tuples/frozenset
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..5aca33869bca1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Ser...
- [x] closes #35534 - [x] closes #35747 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36147
2020-09-05T20:02:05Z
2020-09-12T21:39:40Z
2020-09-12T21:39:40Z
2020-09-13T12:29:54Z
DOC: Update pct_change documentation
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e4f7bb43b23dc..3dde957f75ea2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10797,7 +10797,7 @@ def pct_change( ---------- periods : int, default 1 Periods to shift for forming percent change. - ...
Related to SO question: [How to avoid bfill or ffill when calculating pct_change with NaNs](https://stackoverflow.com/questions/75395345/how-to-avoid-bfill-or-ffill-when-calculating-pct-change-with-nans)
https://api.github.com/repos/pandas-dev/pandas/pulls/51262
2023-02-09T10:14:51Z
2023-02-09T17:17:08Z
2023-02-09T17:17:08Z
2023-02-09T17:20:32Z
CLN: simplify groupby wrapping
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 7745de87633eb..d4d0a94f5fa50 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -219,16 +219,9 @@ def apply(self, func, *args, **kwargs) -> Series: def aggregate(self, func=None, *args, engine=None, ...
This is the last of the groupby cleanup I have lined up. @rhshadrach im hoping more progress can be made in simplifying the wrapping and apply/agg try/excepts but don't see an immediate way forward.
https://api.github.com/repos/pandas-dev/pandas/pulls/51259
2023-02-09T03:01:30Z
2023-02-09T21:51:14Z
2023-02-09T21:51:14Z
2023-02-09T22:15:16Z
BUG: IntervalArray.shift with invalid NA fill_value
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7d4477cd4bd8d..6c5f74f728934 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1195,6 +1195,7 @@ Interval ^^^^^^^^ - Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interval has duplic...
- [ ] 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/51258
2023-02-09T02:59:51Z
2023-02-09T17:21:45Z
2023-02-09T17:21:45Z
2023-02-09T17:48:58Z
TST: clean up some groupby xfails
diff --git a/pandas/tests/groupby/test_api_consistency.py b/pandas/tests/groupby/test_api_consistency.py index bd29f29719494..d62ee3593cd44 100644 --- a/pandas/tests/groupby/test_api_consistency.py +++ b/pandas/tests/groupby/test_api_consistency.py @@ -21,17 +21,22 @@ def test_frame_consistency(request, groupby_func): ...
- [ ] 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/51257
2023-02-09T01:41:03Z
2023-02-09T17:21:33Z
2023-02-09T17:21:33Z
2023-02-09T17:52:44Z
BUG: Groupby.filter with pd.NA
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 7745de87633eb..bd0f1bc677fba 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -562,7 +562,7 @@ def filter(self, func, dropna: bool = True, *args, **kwargs): # Interpret np.nan as False. ...
@Dr-Irv this is an example of the kind of bug that I have in mind when I said in the Categorical issue that getting pd.NA is a PITA. We've had 3 years to track them down and we're still finding places where having it unexpectedly causes bugs. Users will have this long tail until the end of time.
https://api.github.com/repos/pandas-dev/pandas/pulls/51255
2023-02-09T00:06:05Z
2023-02-10T21:19:51Z
2023-02-10T21:19:51Z
2023-02-10T21:21:13Z
BLD: Try stripping wheels
diff --git a/pyproject.toml b/pyproject.toml index e5d6f420915ef..f4998fbe82722 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,6 +143,7 @@ parentdir_prefix = "pandas-" [tool.cibuildwheel] skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" build-verbosity = "3" +environment = { LD...
- [ ] 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/51251
2023-02-08T23:14:16Z
2023-02-09T16:17:36Z
2023-02-09T16:17:36Z
2023-02-13T12:32:26Z
ENH: Add CoW optimization to interpolate
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bea7dd0a1ed6d..6bc0cb2969734 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -223,6 +223,9 @@ Copy-on-Write improvements - :meth:`DataFrame.to_period` / :meth:`Series.to_period` - :meth:`DataFram...
- [ ] xref #49473 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51249
2023-02-08T21:58:41Z
2023-02-10T10:27:59Z
2023-02-10T10:27:58Z
2023-02-10T10:28:07Z
PERF: Construction of a DatetimeIndex from a list of Timestamp with timezone
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index d5854b3fcad18..1ec26e7ecdeef 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - extra: ["test...
- [ ] closes #49048 (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/51247
2023-02-08T21:21:11Z
2023-03-15T15:27:13Z
2023-03-15T15:27:13Z
2023-03-17T13:43:29Z
BUG validate_docstrings.py flake8 PermissionError
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index 5d0ef6e460486..a0eb02d069c58 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -207,7 +207,9 @@ def validate_pep8(self): ) error_messages = [] - with tempfile.NamedTemporaryFil...
- [x] Part of #51236 - [ ] [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/51244
2023-02-08T20:12:01Z
2023-02-09T10:31:18Z
2023-02-09T10:31:18Z
2023-02-09T10:31:28Z
DOC fix EX02 algorithms.factorize docstring
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 08fbe3be9b092..dcbf1cc0ee522 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -578,9 +578,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX02)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [x] Part of #51236 - [ ] [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/51243
2023-02-08T18:41:39Z
2023-02-09T17:45:28Z
2023-02-09T17:45:28Z
2023-02-09T17:45:29Z
BUG: bug in Index._should_fallback_to_positional
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 29f360e050548..c991b3b6a6004 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1250,6 +1250,8 @@ Indexing - Bug in :meth:`Series.loc` raising error for out of bounds end of slice indexer (:issue:`50161...
- [x] closes #51053 - [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/51241
2023-02-08T16:38:09Z
2023-02-13T19:15:32Z
2023-02-13T19:15:32Z
2023-02-13T23:27:08Z
API / CoW: constructing DataFrame from DataFrame/BlockManager creates lazy copy
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 9bf170d6eb9e4..224604a8ff8d0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -246,6 +246,10 @@ Copy-on-Write improvements a modification to the data happens) when constructing a Series from an exist...
- [ ] 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/51239
2023-02-08T15:57:33Z
2023-02-26T17:43:12Z
2023-02-26T17:43:12Z
2023-03-01T09:22:32Z
DOC: remove reference of NumericIndex in Int64Index docs
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index fe11a02eccb3c..2b3c27db7984e 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -313,7 +313,7 @@ def _format_native_types( Immutable sequence used for indexing and alignment. .. deprecated:: 1...
Small fix for https://github.com/pandas-dev/pandas/issues/51020#issuecomment-1422820547, in case we end up doing another 1.5.x release to have correct docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/51238
2023-02-08T15:45:11Z
2023-02-08T18:03:05Z
2023-02-08T18:03:05Z
2023-02-08T19:06:21Z
TYP: more precise types + add type collections
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index dac949f69bfaf..4742348b209d9 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -133,8 +133,10 @@ ALL_INT_EA_DTYPES = UNSIGNED_INT_EA_DTYPES + SIGNED_INT_EA_DTYPES ALL_INT_DTYPES: list[Dtype] = [*ALL_INT_NUMPY_DTYP...
`float_numpy_dtypes` has a too wide dtype + I think it would be beneficial for testing purposes to add some more numeric type collections.
https://api.github.com/repos/pandas-dev/pandas/pulls/51234
2023-02-08T14:44:45Z
2023-02-08T19:14:53Z
2023-02-08T19:14:53Z
2023-02-08T19:36:10Z
TST: categorical alignment
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index a7f73f2e22fca..08fdad5ff1edd 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -287,6 +287,20 @@ def test_alignment_doesnt_change_tz(self): assert ser.index is dt...
- [x] closes #13365 - [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/51232
2023-02-08T12:40:28Z
2023-02-08T17:01:30Z
2023-02-08T17:01:30Z
2023-02-23T01:38:49Z
DOC Correcting EX02 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 3ab63b9bcb860..18f394b8e549b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -601,12 +601,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_int64_dtype \ pandas.api.types.is_integer_dtype \ 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/51231
2023-02-08T12:27:04Z
2023-02-08T14:03:29Z
2023-02-08T14:03:29Z
2023-02-08T14:30:38Z
DOC: add/fix Timedeltas docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 18f394b8e549b..08fbe3be9b092 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -204,7 +204,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Timestamp.utctimetuple \ pandas.Timestamp.weekday \ pandas.arrays.Date...
- [X] xref #27977 - ~[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). - ~ Adde...
https://api.github.com/repos/pandas-dev/pandas/pulls/51229
2023-02-08T08:31:54Z
2023-02-09T10:34:49Z
2023-02-09T10:34:49Z
2023-02-09T10:36:03Z
BUG: groupby.agg with numba and as_index=False
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index f907e89880d25..3717e9b011f1c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1297,6 +1297,7 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.resample` raises ``KeyError`` when getting th...
- [ ] 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/51228
2023-02-08T03:08:27Z
2023-02-08T22:13:08Z
2023-02-08T22:13:08Z
2023-02-08T22:13:34Z
PERF: ArrowExtensionArray.to_numpy(dtype=object)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7d028935ad175..d7787e50d8179 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1061,7 +1061,7 @@ Performance improvements - Performance improvement in :meth:`~arrays.ArrowExtensionArray.factorize` (:is...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/51227
2023-02-08T02:12:22Z
2023-02-09T17:33:43Z
2023-02-09T17:33:43Z
2023-02-09T18:37:38Z
REF: simplify aggregate_frame, column-name-pinning
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index fd07b472fc3da..3850f6bc12efd 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -269,11 +269,8 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs) result =...
- [ ] 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/51226
2023-02-08T01:47:49Z
2023-02-08T17:15:19Z
2023-02-08T17:15:19Z
2023-02-08T17:16:54Z
REF: remove _transform_item_by_item
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index fd07b472fc3da..d0fdb7d5cca0f 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1558,9 +1558,8 @@ def _transform_general(self, func, *args, **kwargs): object.__setattr__(group, "name", name)...
AFAICT this is leftover from when we dropped nuisance columns.
https://api.github.com/repos/pandas-dev/pandas/pulls/51224
2023-02-08T00:27:47Z
2023-02-08T16:56:41Z
2023-02-08T16:56:41Z
2023-02-08T17:09:08Z
ENH: add unit, as_unit to dt accessor
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 659385c611ff0..5a43e5796d1d9 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -326,6 +326,7 @@ Datetime properties Series.dt.days_in_month Series.dt.tz Series.dt.freq + Series.dt.unit ...
- [ ] 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/51223
2023-02-07T23:53:33Z
2023-02-09T16:16:25Z
2023-02-09T16:16:25Z
2023-02-09T16:19:09Z
REF: remove aggregate_item_by_item
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index fd07b472fc3da..471ff1697a34a 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1378,22 +1378,6 @@ def _aggregate_frame(self, func, *args, **kwargs) -> DataFrame: return out - def _aggreg...
- [ ] 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/51222
2023-02-07T23:33:01Z
2023-02-08T16:55:35Z
2023-02-08T16:55:35Z
2023-02-08T17:10:02Z
DEP: Deprecated pad/backfill for Series/DataFrame
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7d028935ad175..c504afa195192 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -784,6 +784,10 @@ Deprecations - Deprecated calling ``float`` or ``int`` on a single element :class:`Series` to return a ``...
- [x] xref #33396 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/51221
2023-02-07T23:25:22Z
2023-02-08T17:46:44Z
2023-02-08T17:46:44Z
2023-02-08T18:07:24Z
REF: de-duplicate BusinessDay apply, apply_array
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 79332f8ede936..132d1033016ae 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1582,25 +1582,7 @@ cdef class BusinessDay(BusinessMixin): # avoid slowness below by operating on weeks 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/51220
2023-02-07T21:54:53Z
2023-02-08T17:50:26Z
2023-02-08T17:50:26Z
2023-02-08T17:53:41Z
CI/TST: Mark test_basic_series_frame_alignment for python engine as flaky
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 86be104b16367..8bd26a7b0b4c7 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -862,7 +862,7 @@ def test_basic_series_frame_alignment( ): if ( engin...
Seems to also be flaky with the python engine: https://github.com/pandas-dev/pandas/actions/runs/4109864025/jobs/7092127908
https://api.github.com/repos/pandas-dev/pandas/pulls/51219
2023-02-07T20:53:35Z
2023-02-10T12:18:18Z
2023-02-10T12:18:18Z
2023-02-10T17:43:11Z
DOC Correcting EX02 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2fd772b3015b8..3ab63b9bcb860 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -590,7 +590,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.sparse.sp_values \ pandas.Timestamp.fromtimestamp \ pandas.api....
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51217
2023-02-07T18:37:50Z
2023-02-07T19:42:05Z
2023-02-07T19:42:05Z
2023-02-08T08:10:43Z
REF: unused group_keys, indexer from BaseGrouper
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index dc109f6b30d5c..28e104ec1bc0e 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -677,11 +677,6 @@ class BaseGrouper: for example for grouper list to groupby, need to pass the list sort : bool, default True ...
- [ ] 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/51214
2023-02-07T17:36:08Z
2023-02-07T20:36:24Z
2023-02-07T20:36:24Z
2023-02-07T20:37:23Z
REF: remove copy keyword from ensure_foo
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index 5a2005722c85c..20a805533e8cc 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -127,12 +127,12 @@ def diff_2d( ) -> None: ... def ensure_platform_int(arr: object) -> npt.NDArray[np.intp]: ... def ensure_object(arr: object) -> npt.ND...
It wasn't respected anyway.
https://api.github.com/repos/pandas-dev/pandas/pulls/51213
2023-02-07T17:27:10Z
2023-02-08T17:57:43Z
2023-02-08T17:57:43Z
2023-02-08T17:59:41Z
TST: suppress deprecation messages in doc tests for Index.is_foo
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ed2e3a7499728..de3e1028f5f00 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2268,15 +2268,15 @@ def is_boolean(self) -> bool: Examples -------- >>> idx = pd.Index([True, False, True]) ...
There were a lot of deprecation messages shown when running `ci/code_checks.sh docstrings`. This suppresses those messages. Example of messages that are now suppressed: ``` <doctest pandas.Index.is_boolean[1]>:1: FutureWarning: Index.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead. idx....
https://api.github.com/repos/pandas-dev/pandas/pulls/51212
2023-02-07T16:07:48Z
2023-02-08T16:43:12Z
2023-02-08T16:43:12Z
2023-02-08T17:03:00Z
TST: parametrize CoW indexing tests for extension (nullable) dtypes
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 892205cebf6a8..79c42d2577ade 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -827,8 +827,9 @@ def _slice_take_blocks_ax0( # A non-consolidatable block, it's easy, becau...
Experimenting with one possible approach to have the Copy-on-Write tests cover more block types / dtypes (cfr https://github.com/pandas-dev/pandas/pull/51144#issuecomment-1416394873). In this PR I parametrized with numpy vs nullable dtype, but that should cover ExtensionDtype in general (for internal coverage, we s...
https://api.github.com/repos/pandas-dev/pandas/pulls/51208
2023-02-07T10:00:38Z
2023-02-20T08:11:08Z
2023-02-20T08:11:08Z
2023-02-20T08:11:15Z
ENH: Allow ArrowDtype(pa.string()) to be compatable with str accessor
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7fc856be374e9..85993304b4407 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -284,6 +284,7 @@ Alternatively, copy on write can be enabled locally through: Other enhancements ^^^^^^^^^^^^^^^^^^ +- A...
Reboot of #50325 Notable change was that `pandas.core.strings.BaseStringArrayMethods` in the `__init__.py` was causing a circular import when used in `ArrowExtensionArray`, so needed to remove the import into `__init__.py.` This breaks one of our dask tests but it has been fixed downstream https://github.com/dask/da...
https://api.github.com/repos/pandas-dev/pandas/pulls/51207
2023-02-07T02:26:55Z
2023-02-16T02:07:06Z
2023-02-16T02:07:06Z
2023-02-16T11:05:50Z
DEPR: Grouper.ax, Grouper.obj, Grouper.indexer
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 532881fee0892..d7888c6c75454 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -786,6 +786,9 @@ Deprecations - Deprecated calling ``float`` or ``int`` on a single element :class:`Series` to return a ``f...
- [x] closes #51134 (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/51206
2023-02-07T02:04:39Z
2023-02-09T17:27:36Z
2023-02-09T17:27:36Z
2023-02-09T17:49:20Z
API: dont infer dtype for object-dtype groupby reductions
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b006d3820889f..3cc55f8682670 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -778,7 +778,9 @@ Other API changes - The levels of the index of the :class:`Series` returned from ``Series.sparse.from_coo`...
- [ ] 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/51205
2023-02-06T23:21:42Z
2023-02-10T18:08:59Z
2023-02-10T18:08:59Z
2023-02-10T18:10:59Z
TYP: Upgrade mypy to 1.0
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index df30a31889a99..353ae4455caba 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -650,7 +650,7 @@ If installed, we now require: +-------------------+-----------------+----------+---------+ | Package ...
- [ ] 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/51204
2023-02-06T22:42:57Z
2023-02-07T19:22:41Z
2023-02-07T19:22:41Z
2023-02-07T19:29:00Z
DOC: Minor doc cleanups
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 18f394b8e549b..462873d4e88b0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -267,6 +267,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_integer \ pandas.api.types.pandas_dtype \ pandas.read_cli...
- [ ] 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/51202
2023-02-06T20:01:55Z
2023-02-09T17:36:31Z
2023-02-09T17:36:31Z
2023-02-09T17:38:06Z
REF: de-duplicate wrap_agged_manager/wrap_aggregate_result
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index e6f2e300c5567..cdb5dddf03a64 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -163,15 +163,7 @@ def prop(self): class SeriesGroupBy(GroupBy[Series]): def _wrap_agged_manager(self, mgr: Manager) ...
- [ ] 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/51201
2023-02-06T19:26:17Z
2023-02-06T23:12:14Z
2023-02-06T23:12:14Z
2023-02-06T23:12:54Z
DOC: fix-up numpy numeric Index docs
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 802e2e6a488d0..e3dd67175fdc2 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -65,15 +65,14 @@ Below is a possibly non-exhaustive list of changes: 1. Instantiating using a numpy numeric array now fol...
Minor doc corrections related to #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51200
2023-02-06T18:32:27Z
2023-02-06T19:49:32Z
2023-02-06T19:49:32Z
2023-02-06T21:00:11Z
DOC Correcting EX02 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index cb66a1f350e8f..62a5d81fc8f73 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -597,10 +597,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_datetime64_dtype \ pandas.api.types.is_datetime64_ns_dtype \ ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51198
2023-02-06T17:52:26Z
2023-02-06T19:40:00Z
2023-02-06T19:40:00Z
2023-02-07T11:01:11Z
BUG: ensure reindex / getitem to select columns properly copies data for extension dtypes
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index a37503460901b..75aec514031b4 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1395,6 +1395,7 @@ ExtensionArray - Bug in :meth:`api.types.is_integer_dtype`, :meth:`api.types.is_unsigned_integer_dtype`,...
I encountered this while writing more tests for Copy-on-Write. Currently, the _general_ rule is that selecting columns with a list-like indexer using getitem gives a copy: ```python df = pd.DataFrame(np.random.randn(10, 4), columns=['a', 'b', 'c', 'd']) subset = df[["a", "b"]] # subset is a copy subset.iloc[0, 0...
https://api.github.com/repos/pandas-dev/pandas/pulls/51197
2023-02-06T15:16:55Z
2023-02-15T10:38:12Z
2023-02-15T10:38:12Z
2023-02-15T10:38:16Z
BUG: loc.setitem modifying values with empty indexer
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ef6bb1340dc69..de3941682f539 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1200,6 +1200,7 @@ Indexing - Bug in :meth:`Series.loc` raising error for out of bounds end of slice indexer (:issue:`50161...
- [x] closes #45981 (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/51193
2023-02-06T11:43:38Z
2023-02-06T18:42:11Z
2023-02-06T18:42:10Z
2023-02-16T16:31:40Z
BUG: setting non-string value into StringArray raises ValueError instead of TypeError
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ef6bb1340dc69..64f21e027e048 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1324,6 +1324,7 @@ ExtensionArray - Bug in :meth:`api.types.is_numeric_dtype` where a custom :class:`ExtensionDtype` would ...
- [x] closes #49632 (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/51191
2023-02-06T08:03:24Z
2023-02-06T20:03:35Z
2023-02-06T20:03:35Z
2023-02-07T03:29:18Z
CI, ENH: Check each minimum dependency is enforced in *.yaml and environment.yml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f369fcabe3f01..b1028ea9f52c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -313,7 +313,7 @@ repos: entry: python scripts/generate_pip_deps_from_conda.py files: ^(environment.yml|requirements-dev.txt)$ ...
- [x] closes #50207 - [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/51189
2023-02-06T03:20:17Z
2023-02-23T16:38:44Z
2023-02-23T16:38:44Z
2023-02-23T20:25:04Z
REF: prune groupby paths
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 815f9936057f4..aec2037d044b8 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -380,10 +380,16 @@ def _wrap_applied_output( """ if len(values) == 0: # GH #6265 + ...
- [ ] 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/51187
2023-02-06T00:42:36Z
2023-02-06T18:45:47Z
2023-02-06T18:45:47Z
2023-02-06T19:37:41Z
REF: consolidate numeric_only checks in GroupBy
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 815f9936057f4..77bc30d5512a6 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -58,6 +58,7 @@ is_dict_like, is_integer_dtype, is_interval_dtype, + is_numeric_dtype, is_scalar, ) ...
- [ ] 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/51185
2023-02-06T00:17:32Z
2023-02-06T12:33:22Z
2023-02-06T12:33:22Z
2023-02-06T16:01:51Z
REF: dont rely on Grouper.ax
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 366be9e79004c..f9817d3e72f73 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -8,7 +8,6 @@ TYPE_CHECKING, Hashable, Iterator, - cast, final, ) import warnings @@ -300,9 +299,9 @...
- [ ] 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/51184
2023-02-05T22:52:55Z
2023-02-06T23:08:43Z
2023-02-06T23:08:43Z
2023-02-06T23:12:15Z
DEPR: Grouper.grouper, Grouper.groups
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1bfe9f50efbc8..f634e21132bed 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -781,6 +781,9 @@ Deprecations - :meth:`Index.is_interval` has been deprecated. Use :func:`pandas.api.types.is_intterval_dty...
Partially reverts #51145 cc @phofl
https://api.github.com/repos/pandas-dev/pandas/pulls/51182
2023-02-05T19:53:29Z
2023-02-05T23:13:52Z
2023-02-05T23:13:52Z
2023-02-05T23:14:53Z
TYP: resample
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6e893c46acfdb..6008e6b6cb566 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8783,7 +8783,7 @@ def resample( axis = self._get_axis_number(axis) return get_resampler( - self, + cast("Series |...
- [ ] 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/51178
2023-02-05T02:58:00Z
2023-02-06T18:50:25Z
2023-02-06T18:50:25Z
2023-02-06T19:31:05Z
DOC: fix various typos in plotting documentation
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index fbd1eef138792..e861a10968af2 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -308,7 +308,7 @@ def hist_frame( See Also -------- -Series.plot.hist: Make a histogram. +pandas.Series.plot.hist: Make a histogram. matplotlib....
- [ ] 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/51176
2023-02-05T02:27:30Z
2023-02-05T20:29:01Z
2023-02-05T20:29:01Z
2023-02-05T20:29:08Z
CI: unpin pyarrow, fix failing test
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index f4b1d9e49f63a..002d0020c2df1 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -18,7 +18,7 @@ runs: - name: Set Arrow version in ${{ inputs.environment-file }} to ${{...
- [x] closes #51146 - [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/51175
2023-02-05T01:40:46Z
2023-02-10T18:15:09Z
2023-02-10T18:15:09Z
2023-02-23T01:38:52Z
BUG: PandasArray.astype use astype_nansafe
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 2ed42d699e862..216dbede39a6a 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -16,7 +16,12 @@ ) from pandas.compat.numpy import function as nv +from pandas.core.dtypes.astype import astype_array from panda...
- [ ] 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/51174
2023-02-04T22:42:56Z
2023-02-06T19:51:16Z
2023-02-06T19:51:16Z
2023-02-06T19:52:50Z
DOC: fix a typo "docstring" -> "docstrings"
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index b619523b16eef..63554447f295e 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -25,7 +25,7 @@ contributing them to the project:: ...
when using the "docstring" parameter I get an error: ``` $ ./ci/code_checks.sh docstring Unknown command docstring. Usage: ./ci/code_checks.sh [code|doctests|docstrings|single-docs|notebooks] ```
https://api.github.com/repos/pandas-dev/pandas/pulls/51169
2023-02-04T21:30:40Z
2023-02-04T21:35:26Z
2023-02-04T21:35:26Z
2023-02-04T21:42:46Z
BUG: pd.array failing to raise with DataFrame
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7cf88a642f511..f5dd5666b6ca5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1333,6 +1333,7 @@ Metadata Other ^^^^^ - Bug in :meth:`Series.searchsorted` inconsistent behavior when accepting :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/51167
2023-02-04T21:09:15Z
2023-02-05T15:38:31Z
2023-02-05T15:38:30Z
2023-02-05T16:13:25Z
REF: let EAs override WrappedCythonOp groupby implementations
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index a5032c590300c..accbf4468405d 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1722,6 +1722,82 @@ def map(self, mapper, na_action=None): """ return map_array(self, mapper, na_action=na_action) + ...
- [x] closes #43682 Goal is to allow EAs (including our own pyarrow-backed) to implement performant GroupBy reductions/transforms without necessarily having to convert to numpy. Analogous to #51003 (quantile) and #51116 (any, all, std). This implements EA.grouby_op which takes a "how" keyword to specify which ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51166
2023-02-04T20:53:37Z
2023-04-05T22:11:30Z
2023-04-05T22:11:30Z
2023-04-05T22:18:28Z
REF: Resampler subclasses remove unused arg, ensure parent is not None
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index ebb803ee8f3b4..7b174be9df99b 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -7,6 +7,7 @@ Callable, Hashable, Literal, + cast, final, no_type_check, ) @@ -479,7 +480,7 @@ def _get_resampler_for_groupi...
- [ ] 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/51163
2023-02-04T16:27:14Z
2023-02-04T22:04:32Z
2023-02-04T22:04:32Z
2023-02-04T22:43:28Z
BUG: DataFrame.from_records with tzaware
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 802e2e6a488d0..3d0a502bf408d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1131,6 +1131,7 @@ Datetimelike - Bug in :func:`to_datetime` with unit of "Y" or "M" giving incorrect results, not matching...
- [ ] 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/51162
2023-02-04T16:05:10Z
2023-02-04T23:31:26Z
2023-02-04T23:31:26Z
2023-02-05T01:18:34Z
BUG: Add ``is_any_real_numeric_dtype`` to solve discrepancy between ```Index.is_numeric()``` and ```is_numeric_dtype()```
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 62a5d81fc8f73..2fd772b3015b8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -590,6 +590,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.sparse.sp_values \ pandas.Timestamp.fromtimestamp \ pandas.api....
- [x] closes #51152 - [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/51160
2023-02-04T15:43:04Z
2023-02-07T10:26:48Z
2023-02-07T10:26:48Z
2023-02-07T10:27:00Z
BUG: catch decimal.InvalidOperation exception from dateutil
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bdf27020dbdfa..f629e669edf49 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1132,6 +1132,7 @@ Datetimelike - Bug in :meth:`Series.interpolate` and :meth:`DataFrame.interpolate` with datetime or time...
- [X] closes #51084 - [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/51157
2023-02-04T09:18:42Z
2023-02-07T14:09:40Z
2023-02-07T14:09:40Z
2023-02-07T15:48:30Z
REF: remove _get_grouper, make Grouper.__init__ less stateful
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index d77ad59a4bb82..78517e88a5296 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -441,7 +441,6 @@ class Grouping: _codes: npt.NDArray[np.signedinteger] | None = None _group_index: Index | None ...
Having a BaseGrouper._get_grouper, BinGrouper._get_grouper, and Grouper._get_grouper that all do different things is making my eye twitch. L509-513 the case where `isinstance(newgrouper, ops.BaseGrouper)` looks like things might go wrong if we ever get there with `len(newgrouper.groupings) > 1`, but we have no tests...
https://api.github.com/repos/pandas-dev/pandas/pulls/51155
2023-02-04T02:04:18Z
2023-02-06T21:02:25Z
2023-02-06T21:02:25Z
2023-02-06T21:05:40Z
DOC: Additions to month_name & day_name
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 0766b1c6a5262..659a5d1a7181e 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1202,7 +1202,9 @@ def month_name(self, locale=None) -> npt.NDArray[np.object_]: ---------- locale : s...
- [x] closes #51138 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). In the issue #51138 I was trying to set a column in my DF for the month and day's names in portuguese, then a good guy told me about the `locale -a` command from terminal ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51154
2023-02-04T00:06:18Z
2023-02-08T17:59:03Z
2023-02-08T17:59:03Z
2023-02-08T18:24:50Z
DOC: Clean whatsnews
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b61547d1523cf..b167b7e811d98 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -362,7 +362,7 @@ Other enhancements - A :class:`errors.PerformanceWarning` is now thrown when using ``string[pyarrow]`` dty...
- [ ] 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/51153
2023-02-03T22:38:59Z
2023-02-04T01:10:55Z
2023-02-04T01:10:55Z
2023-02-04T11:31:13Z
Upgrade pyarrow minimum version to 7.0
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index caeee07c324d1..7652b6347ad4f 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -43,7 +43,7 @@ dependencies: - openpyxl=3.0.7 - pandas-gbq=0.15.0 - psycopg...
- [ ] 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/51151
2023-02-03T19:51:29Z
2023-02-07T02:10:36Z
2023-02-07T02:10:36Z
2023-02-07T10:27:08Z
REF: avoid passing silently-ignored kwargs to Resampler
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index ebb803ee8f3b4..255b926ba226a 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -151,7 +151,6 @@ def __init__( *, group_keys: bool | lib.NoDefault = lib.no_default, selection=None, - **kwargs, ...
- [ ] 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/51149
2023-02-03T18:54:01Z
2023-02-04T19:19:33Z
2023-02-04T19:19:33Z
2023-02-04T20:02:14Z
DOC: Add CoW optimizations to whatsnew
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bc1cf8d03ce98..5ba0d5b60e372 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -189,6 +189,7 @@ Copy-on-Write improvements - :meth:`DataFrame.reset_index` / :meth:`Series.reset_index` - :meth:`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/51148
2023-02-03T18:40:29Z
2023-02-03T20:58:52Z
2023-02-03T20:58:52Z
2023-02-08T15:57:11Z
BUG: interpolate not respecting CoW
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 81c5810d29456..ff80cccaa20d3 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -409,8 +409,15 @@ def diff(self: T, n: int, axis: AxisInt) -> T: axis = self._normalize_axis(axis) ...
- [x] closes #51126 (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/51147
2023-02-03T18:31:24Z
2023-02-04T19:16:47Z
2023-02-04T19:16:47Z
2023-02-04T19:16:51Z
REF/API: dont alter Grouper in _get_grouper
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 52700a29cb592..d77ad59a4bb82 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -6,9 +6,9 @@ from typing import ( TYPE_CHECKING, - Any, Hashable, Iterator, + cast, final, ) ...
This doesn't break any tests and I haven't concocted any new cases in which it would matter, but the logic is hard enough to disentangle (xref #51134) that I can't promise it won't
https://api.github.com/repos/pandas-dev/pandas/pulls/51145
2023-02-03T16:56:06Z
2023-02-03T21:07:07Z
2023-02-03T21:07:07Z
2023-02-03T23:20:22Z
CoW: Push reference tracking down to the block level
diff --git a/doc/source/development/copy_on_write.rst b/doc/source/development/copy_on_write.rst new file mode 100644 index 0000000000000..34625ed645615 --- /dev/null +++ b/doc/source/development/copy_on_write.rst @@ -0,0 +1,41 @@ +.. _copy_on_write: + +{{ header }} + +************* +Copy on write +************* + +Cop...
- [ ] 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/51144
2023-02-03T16:13:46Z
2023-02-08T09:01:09Z
2023-02-08T09:01:09Z
2023-02-22T09:19:37Z
DOC Correcting EX02 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9c8d48bc6ba45..cb66a1f350e8f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -579,8 +579,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX02)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51143
2023-02-03T12:08:08Z
2023-02-03T16:10:19Z
2023-02-03T16:10:19Z
2023-02-04T15:30:26Z
DEPR: Remove NumericIndex
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 3e171b57af3ba..818ea1e6ef9d0 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -363,14 +363,7 @@ def is_class_equiv(idx: Index) -> bool: This only checks class equivalence. There is a separate check tha...
- [x] closes #42717 - [x] closes #51020 This finishes the removal of `NumericIndex` from the code base. Note that this PR builds atop of #51132, so you might want to merge that first. Everything should be finished now after this PR, e.g. the doc updates have been merged (#51111) and the doc string has been upda...
https://api.github.com/repos/pandas-dev/pandas/pulls/51139
2023-02-03T07:40:47Z
2023-02-03T13:02:20Z
2023-02-03T13:02:20Z
2023-05-19T02:59:12Z
CLN: Partially revert #29553
diff --git a/pandas/core/array_algos/replace.py b/pandas/core/array_algos/replace.py index 466eeb768f5f9..14bf26f40ea0d 100644 --- a/pandas/core/array_algos/replace.py +++ b/pandas/core/array_algos/replace.py @@ -19,8 +19,6 @@ ) from pandas.core.dtypes.common import ( - is_datetimelike_v_numeric, - is_numeric...
- [ ] 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/51137
2023-02-03T02:53:10Z
2023-02-06T21:09:27Z
2023-02-06T21:09:27Z
2023-02-06T22:45:15Z
CLN: Assorted
diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi index 0f72b2b72141f..09f4fbec5176e 100644 --- a/pandas/_libs/groupby.pyi +++ b/pandas/_libs/groupby.pyi @@ -55,6 +55,7 @@ def group_any_all( mask: np.ndarray, # const uint8_t[::1] val_test: Literal["any", "all"], skipna: bool, + nullabl...
- [ ] 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/51136
2023-02-03T01:47:06Z
2023-02-07T20:34:52Z
2023-02-07T20:34:52Z
2023-02-07T20:38:04Z
REF: Resampler.groupby -> _timegrouper
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index d3b3c844e8c4e..23bf4e5e937d1 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -127,6 +127,7 @@ class Resampler(BaseGroupBy, PandasObject): """ grouper: BinGrouper + _timegrouper: TimeGrouper exclusions: frozens...
GroupBy object is very different from a TimeGrouper object. Hopefully this will make this code slightly less confusing (xref #51134 this is a PITA)
https://api.github.com/repos/pandas-dev/pandas/pulls/51135
2023-02-03T01:36:15Z
2023-02-03T21:08:39Z
2023-02-03T21:08:39Z
2023-02-03T23:17:05Z
CI: Change development python version to 3.10
diff --git a/.circleci/config.yml b/.circleci/config.yml index e704c37df3e45..e7322e748662f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: image: ubuntu-2004:2022.04.1 resource_class: arm.large environment: - ENV_FILE: ci/deps/circle-38-arm64.yaml + ENV...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51133
2023-02-02T23:16:16Z
2023-04-26T14:30:37Z
2023-04-26T14:30:37Z
2023-04-26T15:52:47Z
DEPR: Remove NumericIndex from tests/indexes/test_numpy_compat.py
diff --git a/pandas/tests/indexes/test_numpy_compat.py b/pandas/tests/indexes/test_numpy_compat.py index cdc5446bfeba3..2a29e57678df9 100644 --- a/pandas/tests/indexes/test_numpy_compat.py +++ b/pandas/tests/indexes/test_numpy_compat.py @@ -10,8 +10,10 @@ isna, ) import pandas._testing as tm -from pandas.api.typ...
This was a bit tricky. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51132
2023-02-02T21:24:03Z
2023-02-03T09:40:01Z
2023-02-03T09:40:01Z
2023-02-03T13:57:04Z
DEPR: float/int(Series[single_elemet])
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c3481a5452091..2258c76a6cff5 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -780,7 +780,7 @@ Deprecations - :meth:`Index.is_object` has been deprecated. Use :func:`pandas.api.types.is_object_dtype` i...
- [ ] closes #51101 (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/51131
2023-02-02T21:04:41Z
2023-02-04T19:20:50Z
2023-02-04T19:20:50Z
2023-02-06T18:20:58Z
CLN: Use fixture dtype_backend in nullable tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index 64a8f0f9efc1d..888205366f9e6 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1293,6 +1293,22 @@ def string_storage(request): return request.param +@pytest.fixture( + params=[ + "pandas", + pytest.param("pyarrow", marks=td....
- [ ] 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/51129
2023-02-02T20:21:07Z
2023-02-04T01:11:58Z
2023-02-04T01:11:58Z
2023-02-04T11:30:40Z
ENH: Implement arrow support for read_csv with engine=c
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7d028935ad175..12f8b1736a479 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -138,8 +138,8 @@ The option will only work for functions with the keyword ``use_nullable_dtypes`` Additionally a new global...
- [ ] 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/51128
2023-02-02T20:03:06Z
2023-02-08T22:02:32Z
2023-02-08T22:02:32Z
2023-02-08T22:03:07Z
DEPR: Remove various uses of NumericIndex
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index b2305d0fe1cbf..db5ebc6d6bef1 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -62,7 +62,6 @@ if TYPE_CHECKING: from pandas.core.api import ( DataFrame, - NumericIndex, ...
xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51127
2023-02-02T20:00:14Z
2023-02-03T00:56:07Z
2023-02-03T00:56:07Z
2023-02-03T00:56:14Z
CLN: Put exit_stack inside _query_iterator.
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index b4624a1f4a447..d88decc8601f0 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -75,14 +75,6 @@ # -- Helper functions -def _cleanup_after_generator(generator, exit_stack: ExitStack): - """Does the cleanup after iterating through the generator.""" - ...
- [ ] 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/51125
2023-02-02T18:53:47Z
2023-02-03T19:21:42Z
2023-02-03T19:21:42Z
2023-02-09T18:36:13Z
DOC: remove inplace usage from docstring examples
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index f2e54185c11ff..7197994bfbcb1 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1673,13 +1673,6 @@ def sort_values( [5, 2, 2, 1, 1] Categories (3, int64): [1, 2, 5] - ...
- [ ] 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/51124
2023-02-02T18:01:21Z
2023-02-03T16:10:56Z
2023-02-03T16:10:56Z
2023-02-03T16:35:05Z
TYP: suppress pyright's information-level output
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfbd24767a189..39c1f2b3a6c85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -135,11 +135,11 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@...
`pre-commit run --hook-stage manual -av pyright_reportGeneralTypeIssues` is currently very verbose as pyright prints a line for each un-annotated function it skips. This PR removes these information-level messages (still prints warnings and errors).
https://api.github.com/repos/pandas-dev/pandas/pulls/51122
2023-02-02T16:52:02Z
2023-02-03T19:22:27Z
2023-02-03T19:22:27Z
2023-08-09T15:08:26Z
CI: Pin pyarrow to < 11.0
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 002d0020c2df1..f4b1d9e49f63a 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -18,7 +18,7 @@ runs: - name: Set Arrow version in ${{ inputs.environment-file }} to ${{...
- [ ] 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/51120
2023-02-02T10:16:07Z
2023-02-02T13:41:07Z
2023-02-02T13:41:07Z
2023-02-02T15:20:16Z
DOC: Add rolling in reference/groupby.rst
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 54b2e893bfd08..8374b0c739f89 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -97,6 +97,7 @@ Function application DataFrameGroupBy.quantile DataFrameGroupBy.rank DataFrameGroupBy.res...
- [ ] close #51097
https://api.github.com/repos/pandas-dev/pandas/pulls/51119
2023-02-02T08:30:58Z
2023-02-08T16:47:29Z
2023-02-08T16:47:29Z
2023-02-09T04:17:43Z
DEPR: remove NumericIndex.__new__ & ._should_fallback_to_positional
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 881e83313ced5..993fefdc91aa0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5689,6 +5689,8 @@ def _should_fallback_to_positional(self) -> bool: """ Should an integer key be treated as positiona...
Remove `NumericIndex.__new__` & `._should_fallback_to_positional` to Index. Next up is to actually remove `NumericIndex` from the code base (there is various scaffolding around, that I need to remove/alter at the same time). This move `NumericIndex._should_fallback_to_positional` to `Index` as-is. There is an issue ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51118
2023-02-02T07:17:19Z
2023-02-02T17:17:46Z
2023-02-02T17:17:46Z
2023-02-02T18:24:27Z
REF: remove group_selection_context
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 696f924e31179..fd9a06a06cfa7 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -8,7 +8,6 @@ class providing the base-class of operations. """ from __future__ import annotations -from contextlib impor...
cc @rhshadrach
https://api.github.com/repos/pandas-dev/pandas/pulls/51117
2023-02-02T01:12:38Z
2023-02-03T03:47:12Z
2023-02-03T03:47:12Z
2023-02-03T04:03:23Z
CLN: standardize ArrowExtensionArray in tests
diff --git a/pandas/tests/extension/arrow/arrays.py b/pandas/tests/extension/arrow/arrays.py index fad28c1896ad0..3707447151ae3 100644 --- a/pandas/tests/extension/arrow/arrays.py +++ b/pandas/tests/extension/arrow/arrays.py @@ -77,7 +77,9 @@ class ArrowExtensionArray(OpsMixin, ExtensionArray): _data: pa.ChunkedAr...
- [ ] 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/46009
2022-02-15T21:57:14Z
2022-02-16T13:33:13Z
2022-02-16T13:33:13Z
2022-02-16T13:33:13Z
BUG: to_csv not respecting float_format for Float64
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 71394a858aefe..6fb2914543fc1 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -353,6 +353,7 @@ I/O - Bug in :func:`read_excel` results in an infinite loop with certain ``skiprows`` callables (:issue:`4...
- [x] closes #45991 (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/46007
2022-02-15T20:48:49Z
2022-02-16T13:31:02Z
2022-02-16T13:31:02Z
2022-02-16T18:46:31Z
BUG: PeriodArray subtraction returning wrong results
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 71394a858aefe..3b5d0fc624753 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -358,7 +358,7 @@ I/O Period ^^^^^^ -- +- Bug in subtraction of :class:`Period` from :class:`PeriodArray` returning wrong...
- [x] closes #45999 (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/46006
2022-02-15T20:36:57Z
2022-02-16T13:35:33Z
2022-02-16T13:35:33Z
2022-02-16T18:47:26Z
Backport PR #45995 on branch 1.4.x (CI: Add single_cpu build)
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 0e8da7b66026f..35196ad2840c6 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -13,7 +13,6 @@ on: - "doc/**" env: - PYTEST_WORKERS: "auto" PANDAS_CI: 1 jobs: @@ -25,33 +24,48 @@ jobs: timeout-m...
Backport PR #45995: CI: Add single_cpu build
https://api.github.com/repos/pandas-dev/pandas/pulls/46005
2022-02-15T20:34:10Z
2022-02-16T13:05:05Z
2022-02-16T13:05:05Z
2022-02-16T13:05:06Z
TST: Don't mark all plotting tests as slow
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 7c11eb13e0e1d..aa6bb714af9dd 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -30,10 +30,6 @@ if [[ "$PATTERN" ]]; then PYTEST_CMD="$PYTEST_CMD -m \"$PATTERN\"" fi -if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then - PYTEST_CMD="$PYTEST_CMD --...
- [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). Ideally we should be mor...
https://api.github.com/repos/pandas-dev/pandas/pulls/46003
2022-02-15T19:32:40Z
2022-02-27T15:20:55Z
2022-02-27T15:20:55Z
2022-02-28T03:05:45Z
REF: Share NumericArray/NumericDtype methods
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index d55aef953b5b5..49a71922f331b 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -3,8 +3,8 @@ import numpy as np from pandas._typing import DtypeObj -from pandas.util._decorators import cache_readonly ...
- [ ] 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/45997
2022-02-15T06:12:01Z
2022-02-16T13:36:22Z
2022-02-16T13:36:22Z
2022-02-16T15:45:12Z
TST: Use uuid instead of random chars for temp files
diff --git a/pandas/_testing/contexts.py b/pandas/_testing/contexts.py index 5a77c06d65d07..547ec9db20994 100644 --- a/pandas/_testing/contexts.py +++ b/pandas/_testing/contexts.py @@ -3,14 +3,13 @@ from contextlib import contextmanager import os from pathlib import Path -import random from shutil import rmtree -im...
- [x] closes #39197 (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/45996
2022-02-15T03:17:11Z
2022-02-15T18:55:09Z
2022-02-15T18:55:09Z
2022-02-15T18:55:13Z