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
Rewrite dict literal for files in tests/plotting/frame/test_frame_subplots.py
diff --git a/pandas/tests/plotting/frame/test_frame_subplots.py b/pandas/tests/plotting/frame/test_frame_subplots.py index bb7da2b808da7..427b2c1c3a180 100644 --- a/pandas/tests/plotting/frame/test_frame_subplots.py +++ b/pandas/tests/plotting/frame/test_frame_subplots.py @@ -508,33 +508,33 @@ def test_xlabel_ylabel_da...
- [ ] xref #38138 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry identify unnecessary dict call - rewrite as a literal Rewrites as dictionary literals for the following files: pandas/tests/plotting/frame/t...
https://api.github.com/repos/pandas-dev/pandas/pulls/38188
2020-11-30T16:19:54Z
2020-11-30T18:53:06Z
2020-11-30T18:53:06Z
2020-11-30T18:53:56Z
BUG: groupby.rank for dt64tz, period dtypes
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 24db70481c136..2add16ae8ec8f 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -766,6 +766,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` dropped ``nan`` groups from result with ``drop...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This sits on top of #38162
https://api.github.com/repos/pandas-dev/pandas/pulls/38187
2020-11-30T16:01:42Z
2020-12-02T12:11:34Z
2020-12-02T12:11:34Z
2020-12-05T20:35:34Z
Rewrite dict literal for files in tests/plotting/test_boxplot_method.py
diff --git a/pandas/tests/plotting/test_boxplot_method.py b/pandas/tests/plotting/test_boxplot_method.py index 438b8ceafe773..54a40afd019c3 100644 --- a/pandas/tests/plotting/test_boxplot_method.py +++ b/pandas/tests/plotting/test_boxplot_method.py @@ -171,11 +171,11 @@ def test_boxplot_numeric_data(self): "co...
- [ ] xref #38138 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Rewrites as dictionary literals for the following files: - pandas/tests/plotting/test_boxplot_method.py
https://api.github.com/repos/pandas-dev/pandas/pulls/38186
2020-11-30T15:36:54Z
2020-11-30T18:52:03Z
2020-11-30T18:52:03Z
2020-11-30T18:52:31Z
Backport PR #38120: API: preserve freq in DTI/TDI.factorize
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index edc2f7327abfc..4770ab37e08d2 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` and :meth:`Series.loc` for ``__setitem__`` whe...
Backport PR #38120
https://api.github.com/repos/pandas-dev/pandas/pulls/38185
2020-11-30T14:53:04Z
2020-11-30T18:27:05Z
2020-11-30T18:27:05Z
2020-11-30T18:27:10Z
DOC: trim error traceback in allows_duplicate_labels whatsnew entry
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 1f8fa1e2072fd..02e98c4267e27 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -24,27 +24,45 @@ prevent accidental introduction of duplicate labels, which can affect downstream By default, duplicates ...
xref https://github.com/pandas-dev/pandas/issues/37784#issuecomment-733183201 Ensure a more readable section (shorter error traceback) by using a plain code-block instead of the dynamic ipython directive
https://api.github.com/repos/pandas-dev/pandas/pulls/38184
2020-11-30T10:11:45Z
2020-11-30T13:20:42Z
2020-11-30T13:20:42Z
2020-11-30T13:34:28Z
Rewrite dict literal for files in tests/reshape/
diff --git a/pandas/tests/reshape/concat/test_datetimes.py b/pandas/tests/reshape/concat/test_datetimes.py index a4d6b58307523..44a5e7f806309 100644 --- a/pandas/tests/reshape/concat/test_datetimes.py +++ b/pandas/tests/reshape/concat/test_datetimes.py @@ -373,10 +373,10 @@ def test_concat_tz_series_with_datetimelike(s...
- [ ] xref #38138 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Rewrites as dictionary literals for the following files: - ./pandas/tests/reshape/concat/test_datetimes.py - ./pandas/tests/reshape/merge/test_m...
https://api.github.com/repos/pandas-dev/pandas/pulls/38180
2020-11-30T09:50:15Z
2020-11-30T14:28:25Z
2020-11-30T14:28:25Z
2020-11-30T14:28:29Z
PERF: Introducing hash tables for complex64 and complex128
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index 7b630c264753f..cc9341665b8db 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -1,12 +1,16 @@ from numpy cimport intp_t, ndarray from pandas._libs.khash cimport ( + complex64_t, + complex128_t, float32_t,...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Next step for #33287 The complex case is somewhat less straight forward, because Cython [defines](https://github.com/cython/cython/blob/master/Cython/Includes/numpy/_...
https://api.github.com/repos/pandas-dev/pandas/pulls/38179
2020-11-30T09:39:23Z
2020-12-30T18:31:37Z
2020-12-30T18:31:37Z
2020-12-31T08:01:48Z
BUG: preserve nullable dtype for float result in IntegerArray/BooleanArray arithmetic ops
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 9168041a4f474..84eb3b3f15780 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -196,6 +196,9 @@ Alternatively, you can also use the dtype object: pd.Series([1.5, None], dtype=pd.Float32Dtype()) +...
xref https://github.com/pandas-dev/pandas/issues/38110 This ensures that an operation on IntegerArray that results in floats (eg division) returns a FloatingArray instead of numpy float array. This is only a small change in the actual code, the bulk of the changes is updating the tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/38178
2020-11-30T08:46:51Z
2020-12-01T09:32:48Z
2020-12-01T09:32:48Z
2020-12-01T09:32:52Z
Revert "REF: define nanargminmax without values_for_argsort"
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index 729f517c789a7..0a1cbc6de1cda 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -31,7 +31,6 @@ if TYPE_CHECKING: from pandas import MultiIndex - from pandas.core.arrays import ExtensionArray from pandas.core.indexes.base...
Reverts pandas-dev/pandas#37815
https://api.github.com/repos/pandas-dev/pandas/pulls/38177
2020-11-30T07:53:14Z
2020-11-30T13:21:22Z
2020-11-30T13:21:21Z
2020-11-30T13:21:28Z
The error message for unsupported index on shift() could be more explicit
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 09fe885e47754..4c02b1561d92a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4735,7 +4735,10 @@ def shift(self, periods=1, freq=None): '2012-03-01'], dtype='datetime...
When the type of data index is not datetime-like, the following error message will raise: `NotImplementedError: Not supported for type Index` The error message could be more useful by explicitly stating which types of data that `shift` supports. Expected error message: ` f"This method is only implemented for ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38176
2020-11-30T06:54:41Z
2020-12-04T02:00:09Z
2020-12-04T02:00:09Z
2020-12-04T02:00:17Z
ENH: support nanoseconds in Period constructor
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 17cdb7538dad2..311dfa244f780 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -587,6 +587,7 @@ Datetimelike - Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` in...
- [x] closes #34621 - [x] closes #17053 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Picking up #34720 ASVs: ``` asv continuous -f 1.1 upstream/master HEAD -b ^period before after ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38175
2020-11-30T05:47:11Z
2020-12-02T12:12:18Z
2020-12-02T12:12:18Z
2020-12-05T13:13:44Z
BUG: array-like quantile fails on column groupby
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 84ac2d0c17676..5c7ccd256a84c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -769,6 +769,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` dropped ``nan`` groups from result with ``drop...
- [x] closes #33795 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38173
2020-11-30T05:22:31Z
2020-12-02T15:40:02Z
2020-12-02T15:40:01Z
2020-12-03T08:46:39Z
CI: update tests for numpy 1.20 change to floordiv
diff --git a/pandas/tests/arrays/integer/test_arithmetic.py b/pandas/tests/arrays/integer/test_arithmetic.py index cf382dd5e37e0..ae5538a2a85a2 100644 --- a/pandas/tests/arrays/integer/test_arithmetic.py +++ b/pandas/tests/arrays/integer/test_arithmetic.py @@ -3,6 +3,8 @@ import numpy as np import pytest +from pand...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Looks like https://github.com/numpy/numpy/pull/16161 changed numpy's floordiv behavior
https://api.github.com/repos/pandas-dev/pandas/pulls/38172
2020-11-30T03:47:40Z
2020-11-30T18:44:52Z
2020-11-30T18:44:52Z
2020-11-30T18:48:03Z
TST: add comment that plotting tests are slow
diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index c868c8d4fba07..1f94e18d8e622 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -1,3 +1,10 @@ +""" +Module consolidating common testing functions for checking plotting. + +Currently all plotting tests...
- [ ] xref https://github.com/pandas-dev/pandas/pull/38079#issuecomment-735262800 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Add comment (module docstring) in ``pandas/tests/plotting/common.py``, mentioning tha...
https://api.github.com/repos/pandas-dev/pandas/pulls/38171
2020-11-30T03:20:25Z
2020-12-02T02:31:37Z
2020-12-02T02:31:37Z
2020-12-03T07:56:14Z
BUG: unexpected merge_ordered results caused by wrongly groupby
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3fab4850dd1ec..68a5641aec5e1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -756,6 +756,8 @@ Reshaping - Bug in :func:`concat` resulting in a ``ValueError`` when at least one of both inputs had a non...
- [x] closes #38166 - [x] closes #38167 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38170
2020-11-30T01:28:22Z
2020-12-02T02:31:03Z
2020-12-02T02:31:02Z
2020-12-02T02:45:26Z
fix frame, generic, series.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c9030a0b2423a..aaccdc3411865 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -172,14 +172,14 @@ # --------------------------------------------------------------------- # Docstring templates -_shared_doc_kwargs = dict( - axes="index, c...
- [x] xref #38138 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Identify unnecessary dict call - rewrite as a literal
https://api.github.com/repos/pandas-dev/pandas/pulls/38169
2020-11-30T01:23:30Z
2020-11-30T14:30:16Z
2020-11-30T14:30:16Z
2020-11-30T16:43:11Z
BUG/CLN: Minimize number of ResourceWarnings
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index c519baa4c21da..fa4b86216b1e1 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -553,6 +553,9 @@ class ExcelWriter(metaclass=abc.ABCMeta): Default is to use xlwt for xls, openpyxl for xlsx, odf for ods. See DataFrame.t...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I think I got all `ResourceWarning`s when running: `PYTHONWARNINGS=default pytest pandas/tests/io`
https://api.github.com/repos/pandas-dev/pandas/pulls/38168
2020-11-30T01:20:42Z
2020-12-01T00:17:10Z
2020-12-01T00:17:10Z
2020-12-01T00:34:33Z
REF: remove unnecessary maybe_cast_result
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index b9226732d5a69..45f88e16728b1 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -35,7 +35,6 @@ from pandas.core.dtypes.cast import ( find_common_type, - maybe_cast_result, maybe_cast_resul...
https://api.github.com/repos/pandas-dev/pandas/pulls/38165
2020-11-30T00:53:52Z
2020-11-30T14:26:16Z
2020-11-30T14:26:16Z
2021-11-20T23:21:30Z
REF: avoid try/except in wrapping in cython_agg_blocks
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index f019890264331..00561e5441e00 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -58,7 +58,7 @@ validate_func_kwargs, ) import pandas.core.algorithms as algorithms -from pandas.core.arrays import Ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/38164
2020-11-30T00:11:09Z
2020-12-02T12:43:49Z
2020-12-02T12:43:49Z
2020-12-04T16:21:25Z
REF: implement _ea_wrap_cython_operation
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 2542b2d7071cb..db0f0dbe17386 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -24,7 +24,7 @@ from pandas._libs import NaT, iNaT, lib import pandas._libs.groupby as libgroupby import pandas._libs.reduction as libredu...
I've identified some bugs in _cython_operation. As a preliminary to fixing them, this splits out the EA-handling from the ndarray-handling. This will also make it easier to keep track of what we need to generalize if we want this to support arbitrary EAs.
https://api.github.com/repos/pandas-dev/pandas/pulls/38162
2020-11-29T23:08:08Z
2020-12-02T02:04:00Z
2020-12-02T02:04:00Z
2020-12-04T15:44:03Z
REF: more distinctive names for BaseGrouper.aggregate, transform
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index b9226732d5a69..36b03615fd5a5 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1063,8 +1063,8 @@ def cast_agg_result(result, values: ArrayLike, how: str) -> ArrayLike: def blk_func(bvalues: Arr...
ATM it is way too difficult to reason about where BaseGrouper.transform/aggregate is being called from. This removes two one-liners to make it this easy.
https://api.github.com/repos/pandas-dev/pandas/pulls/38161
2020-11-29T22:40:41Z
2020-11-30T14:27:08Z
2020-11-30T14:27:08Z
2020-11-30T14:52:25Z
ENH: Add use_nullable_dtypes to read_spss
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c814e585672cb..2f98f03efbd14 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -47,6 +47,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_sql_table` * ...
- [ ] 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/51115
2023-02-01T21:41:20Z
2023-02-02T18:25:07Z
2023-02-02T18:25:07Z
2023-02-02T19:59:32Z
DOC: Fix doc example in read_stata
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index f4e08b583f1cf..fd6ffe5c165ab 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -167,9 +167,9 @@ -------- Creating a dummy stata for this example ->>> df = pd.DataFrame({{'animal': ['falcon', 'parrot', 'falcon', -... 'p...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51114
2023-02-01T21:40:34Z
2023-02-02T00:12:10Z
2023-02-02T00:12:10Z
2023-02-02T08:46:07Z
CI fix test parsing
diff --git a/pandas/tests/tslibs/test_parsing.py b/pandas/tests/tslibs/test_parsing.py index b0f7f755518a4..701c11bb7f52d 100644 --- a/pandas/tests/tslibs/test_parsing.py +++ b/pandas/tests/tslibs/test_parsing.py @@ -32,7 +32,7 @@ def test_parsing_tzlocal_deprecated(): assert isinstance(res.tzinfo, tzlocal) ...
this is failing on main
https://api.github.com/repos/pandas-dev/pandas/pulls/51113
2023-02-01T20:38:38Z
2023-02-01T22:15:27Z
2023-02-01T22:15:27Z
2023-02-01T22:15:28Z
CLN: Assorted
diff --git a/pandas/_testing/_random.py b/pandas/_testing/_random.py index 52e5d5f58b01f..7cfd92efb5d5f 100644 --- a/pandas/_testing/_random.py +++ b/pandas/_testing/_random.py @@ -5,10 +5,6 @@ from pandas._typing import NpDtype RANDS_CHARS = np.array(list(string.ascii_letters + string.digits), dtype=(np.str_, 1)) ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51112
2023-02-01T19:36:47Z
2023-02-02T16:27:58Z
2023-02-02T16:27:57Z
2023-02-02T16:38:55Z
DOC: Update docs to reflect that Index can hold int64, int32 etc. arrays
diff --git a/doc/source/development/internals.rst b/doc/source/development/internals.rst index f9cff9634f3cb..3dd687ef2087d 100644 --- a/doc/source/development/internals.rst +++ b/doc/source/development/internals.rst @@ -19,9 +19,6 @@ containers for the axis labels: assuming nothing about its contents. The labels mu...
Add whatsnew and make doc changes in order to document that `Index` can hold int64, int32 etc. arrays. Removes references to `Int64Index` etc. from the docs. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51111
2023-02-01T19:04:29Z
2023-02-02T16:26:15Z
2023-02-02T16:26:15Z
2023-02-02T17:17:26Z
DOC Unsetting "copy_on_write" mode to remove EX02 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7509d857d7569..9c8d48bc6ba45 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -578,13 +578,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX02)' ; echo $MSG $BASE_DIR/scripts/validate_docstri...
- [ ] 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/51110
2023-02-01T17:24:06Z
2023-02-01T18:21:01Z
2023-02-01T18:21:00Z
2023-02-02T08:30:34Z
DOC: clean up internals.rst
diff --git a/doc/source/development/internals.rst b/doc/source/development/internals.rst index cec385dd087db..f9cff9634f3cb 100644 --- a/doc/source/development/internals.rst +++ b/doc/source/development/internals.rst @@ -15,24 +15,24 @@ Indexing In pandas there are a few objects implemented which can serve as valid c...
Add links to classes etc.
https://api.github.com/repos/pandas-dev/pandas/pulls/51107
2023-02-01T12:31:30Z
2023-02-01T18:22:37Z
2023-02-01T18:22:37Z
2023-02-01T18:29:34Z
DOC: remove reference to pandas v 0.21
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 6566a1d67d1c9..276157b2868b4 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -231,7 +231,7 @@ You can also assign a ``dict`` to a row of a ``DataFrame``: You can use attribute access...
Minor doc issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/51106
2023-02-01T10:28:53Z
2023-02-01T12:13:05Z
2023-02-01T12:13:04Z
2023-02-01T12:30:07Z
BUG: doc string error
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 9105764100f2d..881e83313ced5 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -332,7 +332,7 @@ class Index(IndexOpsMixin, PandasObject): Index(['a', 'b', 'c'], dtype='object') >>> pd.Index([1, 2, 3], dt...
An error is occurring in `ci/code_checks.sh docstrings` because of a missing rebase: ``` Error: /home/runner/work/pandas/pandas/pandas/core/indexes/base.py:285:EX02:pandas.Index:Examples do not pass tests: ********************************************************************** Line 49, in pandas.Index Failed exam...
https://api.github.com/repos/pandas-dev/pandas/pulls/51103
2023-02-01T08:06:03Z
2023-02-01T09:30:25Z
2023-02-01T09:30:25Z
2023-02-01T19:05:28Z
REF: GroupBy.ops don't depend on mutation status
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 72411f6ac4e96..e4a07a70ead38 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1788,7 +1788,6 @@ def _gotitem(self, key, ndim: int, subset=None): sort=self.sort, group_...
`self.mutated` is only used in one place (see one-line edit in first commit) and removing that doesn't break anything. Conceivably could change some behavior but until we have an example I don't think it is even worth documenting as an API change. Might be leftover from the old libreduction path? cc @jreback for...
https://api.github.com/repos/pandas-dev/pandas/pulls/51102
2023-02-01T03:37:10Z
2023-02-01T18:28:39Z
2023-02-01T18:28:39Z
2023-02-01T19:36:09Z
DEPR: Remove NumericIndex from tests/arithmetic/
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index e41a3c212fbf8..d2fb384c91c39 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -2,9 +2,11 @@ import pytest import pandas as pd -from pandas import RangeIndex +from pandas import (...
Removes `NumericIndex` from `pandas/tests/arithemetic/`. I've tried quite a lot to generalize the tests here to be for all the numeric numpy dtypes, but it seems almost impossible. The main issue is that numexpr operations behave differently for many dtypes lower than 64-bit than python ones, and its behaviour just ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51100
2023-02-01T00:28:25Z
2023-02-01T13:39:11Z
2023-02-01T13:39:11Z
2023-02-01T19:05:53Z
DEPR: Remove NumericIndex from pandas/_testing/
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 491b9703ffed4..2f9fa9dd2a334 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -599,6 +599,7 @@ Other API changes - The ``other`` argument in :meth:`DataFrame.mask` and :meth:`Series.mask` now defaults ...
Removes `NumericIndex` from `pandas._testing`. A decision has to be made how `assert_index_equal` should interpret equivalence between an index and a `RangeIndex`. IMO two indexes should be equivalent if they both return true for one of the two tests below: 1. isinstance(index, RangeIndex) is True, or 2. (type(in...
https://api.github.com/repos/pandas-dev/pandas/pulls/51098
2023-01-31T22:30:24Z
2023-02-02T17:47:29Z
2023-02-02T17:47:29Z
2023-02-02T17:55:09Z
REF: avoid group_selection_context
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 68c7ba72729e6..72411f6ac4e96 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -242,8 +242,7 @@ def apply(self, func, *args, **kwargs) -> Series: def aggregate(self, func=None, *args, engine=None, e...
xref #46944 cc @rhshadrach
https://api.github.com/repos/pandas-dev/pandas/pulls/51096
2023-01-31T22:22:27Z
2023-02-01T04:25:04Z
2023-02-01T04:25:04Z
2023-02-01T04:39:57Z
DEPR: Remove NumericIndex from indexes/range.py
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index daa824c301a82..144665401a2a0 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -4,7 +4,6 @@ import operator from sys import getsizeof from typing import ( - TYPE_CHECKING, Any, Callable, Has...
Remove `NumericIndex` from `pandas/core/indexes/range.py`. There are a few instances left that will be removed when `NumericIndex`is removed proper. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51095
2023-01-31T20:42:15Z
2023-02-01T13:37:01Z
2023-02-01T13:37:01Z
2023-02-01T13:43:02Z
DOC: Remove redundant word from `Categorical` docstring
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 5b61695410474..5a124ae811b9c 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -248,7 +248,7 @@ class Categorical(NDArrayBackedExtensionArray, PandasObject, ObjectStringArrayMi """ ...
Removes the second "only" in "only take on only".
https://api.github.com/repos/pandas-dev/pandas/pulls/51094
2023-01-31T20:19:20Z
2023-01-31T20:20:41Z
2023-01-31T20:20:41Z
2023-01-31T20:28:18Z
API: integer values and non-nano dtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c814e585672cb..2341ea7b6fbad 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -628,6 +628,7 @@ Other API changes - Passing ``dtype`` of "timedelta64[s]", "timedelta64[ms]", or "timedelta64[us]" to :cla...
I'm open to suggestions for a better wording on the whatsnew. Note this handles all-int cases but not mixed-int. timedelta64 analogue coming up.
https://api.github.com/repos/pandas-dev/pandas/pulls/51092
2023-01-31T18:21:04Z
2023-02-03T20:51:46Z
2023-02-03T20:51:45Z
2023-02-03T23:56:43Z
DOC add examples to Timestamp.unit
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 471b79d865566..7509d857d7569 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -187,7 +187,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.show_versions \ pandas.test \ pandas.NaT \ - pandas.Timestamp.u...
xref https://github.com/pandas-dev/pandas/issues/37875 Just an example of how to open such a PR Before submitting, you should run ``` python scripts/validate_docstrings.py pandas.Timestamp.unit ``` and check that `No examples section found` doesn't appear in the "errors found" section (if other errors appear,...
https://api.github.com/repos/pandas-dev/pandas/pulls/51091
2023-01-31T17:40:59Z
2023-01-31T21:28:32Z
2023-01-31T21:28:32Z
2023-01-31T21:28:40Z
PERF: avoid copy in _obj_with_exclusions, _selected_obj
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 46428dcf462ea..80d8f3380dd88 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -948,6 +948,8 @@ Performance improvements - Performance improvement in :meth:`.SeriesGroupBy.value_counts` with categorical...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51090
2023-01-31T17:36:26Z
2023-02-01T21:59:05Z
2023-02-01T21:59:05Z
2023-02-01T22:04:25Z
DEPR: Move NumericIndex doc string + some minor stuff
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index be84e292b63e7..20a6996d9de3a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -288,6 +288,11 @@ class Index(IndexOpsMixin, PandasObject): The basic object storing axis labels for all pandas objects. + ....
Moves doc string of `NumericIndex` to `Index`. Also moves `_can_hold_strings` attribute and removes `NumericIndex._default_dtype`, & `NumericIndex._typ`. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51089
2023-01-31T17:28:19Z
2023-01-31T23:45:24Z
2023-01-31T23:45:24Z
2023-02-01T01:07:48Z
TEST: join df with categorical multiIndex
diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index e5927aa094193..7008e1594712f 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -956,3 +956,43 @@ def test_join_empty(left_empty, how, exp): expected = exp...
- [x] closes #50906 - [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). Add...
https://api.github.com/repos/pandas-dev/pandas/pulls/51088
2023-01-31T17:26:32Z
2023-02-06T13:46:49Z
2023-02-06T13:46:49Z
2023-02-06T13:47:08Z
BUG: can't round-trip non-nano Timestamp
diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index b2948ac0fe54c..1b3214605582a 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -42,8 +42,8 @@ cdef _TSObject convert_str_to_tsobject(str ts, tzinfo tz, str unit, cdef int64_t get_datetim...
- [ ] xref #51060 (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/51087
2023-01-31T17:10:36Z
2023-02-09T12:31:56Z
2023-02-09T12:31:56Z
2023-02-09T12:31:56Z
API / CoW: return read-only numpy arrays in .values/to_numpy()
diff --git a/pandas/core/base.py b/pandas/core/base.py index d9b2647d19f93..b32419b307b6e 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -20,6 +20,8 @@ import numpy as np +from pandas._config import using_copy_on_write + from pandas._libs import lib from pandas._typing import ( Axis, @@ -592,...
Context: with the Copy-on-Write implementation (see overview follow up issue https://github.com/pandas-dev/pandas/issues/48998), we can avoid that mutating one pandas object doesn't update another pandas object. But users can still easily get a viewing numpy array, and mutate that one. And at that point, we don't have ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51082
2023-01-31T09:34:15Z
2023-03-13T17:49:51Z
2023-03-13T17:49:51Z
2023-08-14T07:34:03Z
TST: Move xfail to its own test
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index e9b18836e003c..1a145c65a13a9 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2426,14 +2426,6 @@ def test_group_on_two_row_multiindex_returns_one_tuple_key(): (DataFram...
- [x] closes #35443 (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/51079
2023-01-31T04:09:59Z
2023-01-31T19:23:31Z
2023-01-31T19:23:30Z
2023-02-01T01:07:58Z
CLN: assorted
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 94d21f39dc61a..2565d7998c9c7 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -238,8 +238,6 @@ cdef class IndexEngine: return self.unique == 1 cdef _do_unique_check(self): - - # this de-facto the same s...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51078
2023-01-31T00:47:20Z
2023-01-31T20:03:29Z
2023-01-31T20:03:29Z
2023-01-31T20:13:27Z
API: frames from HDFStore stored without an index now give RangeIndex
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 17decf08f9960..6fef64d0dea8d 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -619,6 +619,7 @@ Other API changes new DataFrame (shallow copy) instead of the original DataFrame, consistent with other ...
Use `RangeIndex` when an index isn't stored in the `HDFStore`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51076
2023-01-30T23:10:47Z
2023-01-31T20:05:01Z
2023-01-31T20:05:01Z
2023-01-31T20:16:48Z
TST: fix test_empty_groupby xfails
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index d6e1f1d138e65..4861b7c90d1bb 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -1858,6 +1858,7 @@ def test_pivot_table_values_key_error(): Categorical([0]), [to_...
sits on top of #51034
https://api.github.com/repos/pandas-dev/pandas/pulls/51075
2023-01-30T21:18:25Z
2023-02-01T18:46:59Z
2023-02-01T18:46:58Z
2023-02-01T19:35:43Z
BUG: astype to string modifying input array inplace
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index a23efc802c74e..0bc9edd1046bc 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1023,6 +1023,7 @@ Conversion - Bug where any :class:`ExtensionDtype` subclass with ``kind="M"`` would be interpreted as a ...
- [ ] 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/51073
2023-01-30T20:47:43Z
2023-02-01T20:53:46Z
2023-02-01T20:53:46Z
2023-02-01T21:41:37Z
REF: Avoid kwargs in rename_axis
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e92059c552b65..8fa86e80e1a44 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -90,10 +90,7 @@ SettingWithCopyError, SettingWithCopyWarning, ) -from pandas.util._decorators import ( - doc, - rewrite_axis_style_signatur...
Unaccepted kwargs already raised a `TypeError`, so can just replace with the accepted arguments which allows some cleanup
https://api.github.com/repos/pandas-dev/pandas/pulls/51072
2023-01-30T20:42:51Z
2023-02-02T16:35:53Z
2023-02-02T16:35:53Z
2023-02-02T16:36:26Z
CI: Address flaky unit tests
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 18559b9b4f899..86be104b16367 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -860,6 +860,19 @@ def test_basic_frame_series_alignment( def test_basic_series_frame_alignm...
Noticed `test_basic_series_frame_alignment` and `test_raw_roundtrip` can occasitionally fail in the CI. Marking as xfail strict=False and clearing the clipboard respectively
https://api.github.com/repos/pandas-dev/pandas/pulls/51070
2023-01-30T20:13:25Z
2023-01-31T15:44:35Z
2023-01-31T15:44:35Z
2023-01-31T17:52:27Z
CI bump isort
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2ca5b5c9b896b..06f8d112cfcc6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,7 +54,7 @@ repos: - flake8-bugbear==22.7.1 - pandas-dev-flaker==0.5.0 - repo: https://github.com/PyCQA/isort - rev: 5.10.1 +...
from https://github.com/pandas-dev/pandas/pull/51048/files
https://api.github.com/repos/pandas-dev/pandas/pulls/51069
2023-01-30T20:10:29Z
2023-01-31T00:15:31Z
2023-01-31T00:15:31Z
2023-01-31T00:15:38Z
DEPR: Remove NumericIndex name in repr output
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 1e7d5f0436e7e..861c9712cd2ae 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -769,8 +769,7 @@ def total_seconds(self) -> npt.NDArray[np.float64]: dtype='timedelta64[ns]'...
This is getting close now. This PR removes `”NumericIndex”` name from the index repr output and replaces it with `"Index"` in preparation for removal of `NumericIndex`. Also introduces some scaffolding that will be removed when we remove `NumericIndex` xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51068
2023-01-30T20:03:08Z
2023-01-31T20:08:26Z
2023-01-31T20:08:26Z
2023-02-01T08:39:00Z
REF: use _treat_as_na more
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index f0beab7193183..cc7c6e0e49c50 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -289,10 +289,8 @@ def group_cumprod( if uses_mask: isna_entry = mask[i, j] - elif int64float_...
- [ ] 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/51067
2023-01-30T18:44:03Z
2023-01-31T20:15:19Z
2023-01-31T20:15:19Z
2023-01-31T20:41:09Z
REF: de-duplicate min_count checking in groupby.pyx
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index cc7c6e0e49c50..dd2bdadce31c5 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -747,31 +747,9 @@ def group_sum( compensation[lab, j] = t - sumx[lab, j] - y sumx[lab, j] = t - ...
We _could_ also de-duplicate the object-dtype cases, but that would necessitate acquiring and re-releasing the GIL. Not a huge overhead, so id be OK either way.
https://api.github.com/repos/pandas-dev/pandas/pulls/51066
2023-01-30T17:02:29Z
2023-02-02T17:27:58Z
2023-02-02T17:27:58Z
2023-02-02T17:35:25Z
Update copyright year
diff --git a/LICENSE b/LICENSE index d4e49a140f1cb..cdfa749dc34df 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ BSD 3-Clause License Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team All rights reserved. -Copyright (c) 2011-2022, Open source contributors. +C...
- [ ] 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/51065
2023-01-30T15:38:47Z
2023-01-30T18:47:11Z
2023-01-30T18:47:11Z
2023-01-30T18:47:20Z
DEPR: Remove NumericIndex from pandas/io/
diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index 136f49fef156e..18bcfc5b212a6 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -24,7 +24,6 @@ ) from pandas.core.api import ( DataFrame, - NumericIndex, RangeIndex, ) from pandas.core.shared_docs im...
Removing `NumericIndex` from pandas/io and replaces it with `Index` in preparation for removal of `NumericIndex` from tests/indexes/numeric.py. Also fixes a typing issue. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51058
2023-01-30T09:24:15Z
2023-01-30T18:49:22Z
2023-01-30T18:49:22Z
2023-01-30T18:56:30Z
BUG: Series(category).replace to maintain order of categories
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 5b61695410474..6c497b3a7b6d8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2284,7 +2284,16 @@ def _replace(self, *, to_replace, value, inplace: bool = False): ser = ser.replace(...
- [x] closes #51016 - [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/51057
2023-01-29T21:08:44Z
2023-02-01T23:38:33Z
2023-02-01T23:38:33Z
2023-02-23T01:38:38Z
DOC towards complying with EX01 specs
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index dc8784de67f13..471b79d865566 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -83,7 +83,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX04,GL01,GL02,GL03,GL04,GL05,GL06...
- [ ] 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/51055
2023-01-29T17:11:07Z
2023-01-30T10:51:07Z
2023-01-30T10:51:07Z
2023-01-30T12:31:22Z
PERF: improve performance of infer_dtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 802e2e6a488d0..ea492c6fb3fcc 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1051,6 +1051,7 @@ Performance improvements - Performance improvement for :meth:`MultiIndex.unique` (:issue:`48335`) - Per...
Improves performance of `api.types.infer_dtype`: ```python >>> import numpy as np >>> import pandas as pd >>> from pandas.api.types import infer_dtype >>> >>> base_arr = np.arange(10_000_000) >>> x = np.array(base_arr) >>> %timeit infer_dtype(x) 596 ns ± 128 ns per loop # main 146 ns ± 8.73 ns per loop # ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51054
2023-01-29T12:20:05Z
2023-02-09T17:30:37Z
2023-02-09T17:30:37Z
2023-02-09T21:48:44Z
TYP: added missing __init__ in pandas/core/methods
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c5c5cc09a0e7a..dfbd24767a189 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -135,7 +135,7 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@1....
See https://github.com/microsoft/pyright/issues/4544#issuecomment-1407513778 Ruff's INP001 could have caught this. Could enable it if the following are ignored: > ci/fix_wheels.py:1:1: INP001 File `ci/fix_wheels.py` is part of an implicit namespace package. Add an `__init__.py`. > ci/test_wheels.py:1:1: INP001...
https://api.github.com/repos/pandas-dev/pandas/pulls/51052
2023-01-29T02:48:49Z
2023-02-01T16:55:54Z
2023-02-01T16:55:54Z
2023-02-01T16:56:02Z
Enable Pylint warning `consider-using-ternary`
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index a7fa77d1ff0ee..17abed45f65cc 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1197,8 +1197,10 @@ def is_valid_dtype_n_method(dtype: DtypeObj) -> bool: nsmallest/nlargest methods """ return ( - ...
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Enables the Pylint type-W warning `consider-using-ternary`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51051
2023-01-28T20:02:09Z
2023-01-30T19:01:42Z
2023-01-30T19:01:41Z
2023-01-30T19:01:50Z
DEPR: Remove NumericIndex.__new__ + related methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c1d9b2744b27e..a3fd1918f0067 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -619,6 +619,7 @@ Other API changes new DataFrame (shallow copy) instead of the original DataFrame, consistent with other ...
Removes methods `__new__`, `_ensure_array`, `_validate_dtype`, `_ensure_dtype` & `_assert_safe_casting` from `NumericIndex`. Also adds needed contents to `Index` and other locations as needed. Some scaffolding is added to `NumericIndex.__new__`, but that will be removed in the next PR. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51050
2023-01-28T19:29:53Z
2023-01-30T19:05:42Z
2023-01-30T19:05:42Z
2023-01-30T19:28:41Z
ENH, TST: Add FutureWarning to read_table
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 118d77ff71151..c5c5cc09a0e7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -92,7 +92,7 @@ repos: args: [--disable=all, --enable=redefined-outer-name] stages: [manual] - repo: https://github.com/PyCQA/isort ...
- [x] closes #51017
https://api.github.com/repos/pandas-dev/pandas/pulls/51048
2023-01-28T19:01:37Z
2023-01-30T15:47:54Z
2023-01-30T15:47:54Z
2023-01-30T20:11:43Z
DEPR: Remove *args and **kwargs on resample methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7cf88a642f511..24a5c27b734c1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -780,6 +780,7 @@ Deprecations - :meth:`Index.is_object` has been deprecated. Use :func:`pandas.api.types.is_object_dtype` i...
- [ ] closes #50977 (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/51042
2023-01-28T12:21:53Z
2023-02-05T20:22:33Z
2023-02-05T20:22:33Z
2023-02-05T20:22:38Z
BUG: GroupBy.sum,prod,cumsum,cumprod with PeriodDtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c1d9b2744b27e..988d0db8543e8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1105,6 +1105,7 @@ Period - Bug in adding a :class:`Period` object to an array of :class:`DateOffset` objects incorrectly r...
- [ ] 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/51040
2023-01-28T03:55:05Z
2023-01-30T19:18:46Z
2023-01-30T19:18:46Z
2023-01-30T20:25:59Z
ENH: infer Timestamp unit in non-iso paths
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 62fff2ace1627..933e10a35118c 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -50,28 +50,26 @@ from pandas._libs.tslibs.np_datetime cimport ( from pandas._libs.tslibs.np_datetime impo...
- [ ] 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/51039
2023-01-28T03:49:38Z
2023-02-01T09:59:16Z
2023-02-01T09:59:16Z
2023-02-01T15:28:54Z
Backport PR #50925 on branch 1.5.x (TST: Remove fsspec internals from tests)
diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index 4f033fd63f978..fd1b30eca449e 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -50,10 +50,8 @@ def test_read_csv(cleared_fs, df1): def test_reasonable_error(monkeypatch, cleared_fs): - from fsspe...
#50925
https://api.github.com/repos/pandas-dev/pandas/pulls/51038
2023-01-28T02:04:25Z
2023-01-28T13:37:27Z
2023-01-28T13:37:27Z
2023-01-30T19:56:08Z
DOC: Highlight dtype_backend with note
diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py index a2bebc7dd3217..ea150f714845c 100644 --- a/pandas/core/tools/numeric.py +++ b/pandas/core/tools/numeric.py @@ -91,6 +91,16 @@ def to_numeric( set to True, nullable dtypes are used for all dtypes that have a nullable implemen...
- [ ] 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/51037
2023-01-28T01:54:10Z
2023-01-30T17:52:08Z
2023-01-30T17:52:07Z
2023-01-30T19:56:11Z
TYP: Adjust typing for Blockplacement.__getitem__
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index 143f6b68deaa6..79bdbea71e4d8 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -44,7 +44,9 @@ class BlockPlacement: @property def is_slice_like(self) -> bool: ... @overload - def __getitem__(self, loc:...
- [ ] 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/51036
2023-01-28T01:29:22Z
2023-02-01T15:51:28Z
2023-02-01T15:51:28Z
2023-02-01T21:39:51Z
Backport PR #51030 on branch 1.5.x (DOC: Fix intendation of compression notes)
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 09c8cf39f5839..b0e204b72be0f 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -443,8 +443,8 @@ a reproducible gzip archive: ``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``. - .. ve...
Backport PR #51030: DOC: Fix intendation of compression notes
https://api.github.com/repos/pandas-dev/pandas/pulls/51035
2023-01-28T01:14:41Z
2023-01-28T20:05:25Z
2023-01-28T20:05:25Z
2023-01-28T20:05:25Z
BUG: GroupBy.min/max with unordered Categorical and no groups
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4f23a23992c54..f11397e5b8ada 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -956,6 +956,7 @@ Categorical - Bug in :meth:`Series.replace` with categorical dtype losing nullable dtypes of underlying ca...
- [ ] 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/51034
2023-01-28T00:50:28Z
2023-01-31T20:19:44Z
2023-01-31T20:19:44Z
2023-01-31T20:40:38Z
API: Avoid returning same object for various methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 843d530417e1e..7c905976c0191 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -624,7 +624,7 @@ Other API changes - Loading a JSON file with duplicate columns using ``read_json(orient='split')`` renames...
- [ ] 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/51032
2023-01-27T23:59:41Z
2023-01-31T08:19:06Z
2023-01-31T08:19:05Z
2023-01-31T09:25:38Z
ENH: Avoid copying unnecessary columns in setitem by splitting blocks for CoW
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index e66011acb978b..1f55a132d665b 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1605,6 +1605,9 @@ def delete(self, loc) -> list[Block]: values = self.values.delete(loc) mgr_...
xref https://github.com/pandas-dev/pandas/issues/48998 - [ ] 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://api.github.com/repos/pandas-dev/pandas/pulls/51031
2023-01-27T23:34:02Z
2023-02-10T17:55:09Z
2023-02-10T17:55:09Z
2023-02-10T17:55:13Z
DOC: Fix intendation of compression notes
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 486fab62d93e7..184b77c880238 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -444,8 +444,8 @@ a reproducible gzip archive: ``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1}``. - .. ve...
- [ ] 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/51030
2023-01-27T23:02:35Z
2023-01-28T01:14:10Z
2023-01-28T01:14:10Z
2023-01-28T01:14:14Z
DOC: fix broken links
diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index ced34340029f6..b5e23511f03bc 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -193,7 +193,7 @@ def radviz( influence of all dimensions. More info available at the `original article - <https://citeseerx.ist.psu.e...
fix broken link to the article and another one in the "See also" section - [ ] 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 [c...
https://api.github.com/repos/pandas-dev/pandas/pulls/51028
2023-01-27T19:38:44Z
2023-01-27T22:21:10Z
2023-01-27T22:21:10Z
2023-01-27T22:56:53Z
PERF: avoid unnecessary cast in Groupby.std with Float64
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index d129e8b37a350..103739e22047d 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2097,13 +2097,18 @@ def std( f"numeric_only={numeric_only} and dtype {self.obj.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/51021
2023-01-27T15:18:13Z
2023-01-27T21:40:26Z
2023-01-27T21:40:26Z
2023-01-27T22:09:11Z
API deprecate date_parser, add date_format
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 3b06fa1b5517a..043394ded42e9 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -290,6 +290,16 @@ date_parser : function, default ``None`` values from the columns defined by parse_dates into a single array and...
- [ ] closes #50601 (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/51019
2023-01-27T11:07:05Z
2023-02-15T21:48:16Z
2023-02-15T21:48:16Z
2023-02-15T22:18:47Z
DEPR: Remove NumericIndex from tests/indexes/numeric.py
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index cd4cf9dd61b97..e8f9df3c8a5f0 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -929,15 +929,13 @@ def test_arithmetic_explicit_conversions(self): result = a - fidx tm.assert_index_equal...
Removing `NumericIndex` from tests/indexes/numeric.py and replaces it with `Index` in preparation for removal of `NumericIndex` from tests/indexes/numeric.py. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/51013
2023-01-27T06:56:45Z
2023-01-28T13:35:18Z
2023-01-28T13:35:18Z
2023-01-28T13:39:08Z
DOC: Remove inplace from user guide
diff --git a/doc/source/getting_started/comparison/includes/copies.rst b/doc/source/getting_started/comparison/includes/copies.rst index 08ccd47624932..e55d085faecb3 100644 --- a/doc/source/getting_started/comparison/includes/copies.rst +++ b/doc/source/getting_started/comparison/includes/copies.rst @@ -11,13 +11,3 @@ ...
This starts with removing inplace from the user guide
https://api.github.com/repos/pandas-dev/pandas/pulls/51011
2023-01-27T03:10:51Z
2023-02-02T17:44:14Z
2023-02-02T17:44:14Z
2023-02-02T17:52:21Z
Remove broken link to NumPy's `HOWTO_DOCUMENT.rst.txt`
diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index a87d8d5ad44bf..6524e4da2299d 100644 --- a/doc/source/development/contributing_docstring.rst +++ b/doc/source/development/contributing_docstring.rst @@ -67,8 +67,6 @@ case of pandas, the NumPy docstri...
- [ ] 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/51010
2023-01-27T02:45:32Z
2023-01-27T22:22:21Z
2023-01-27T22:22:21Z
2023-01-27T22:22:25Z
ENH: Add ignore_index to dropna
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 76aa426cc1cee..378a24016c9b0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -183,6 +183,7 @@ Other enhancements - Added ``copy`` parameter to :meth:`Series.infer_objects` and :meth:`DataFrame.infer_o...
- [x] closes #31725 (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/51009
2023-01-27T02:36:33Z
2023-01-30T19:32:15Z
2023-01-30T19:32:14Z
2023-01-30T19:55:06Z
BUG: to_coo raising Systemerror for EA
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 76aa426cc1cee..b271cc92f7640 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1154,7 +1154,7 @@ Sparse ^^^^^^ - Bug in :meth:`Series.astype` when converting a ``SparseDtype`` with ``datetime64[ns]`` ...
- [x] closes #50996 (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/51007
2023-01-27T01:11:15Z
2023-01-30T19:39:49Z
2023-01-30T19:39:49Z
2023-01-30T19:54:47Z
CI: Test numpy 1.24 on 3.11 build
diff --git a/ci/deps/actions-311.yaml b/ci/deps/actions-311.yaml index aef97c232e940..fd12df0afda65 100644 --- a/ci/deps/actions-311.yaml +++ b/ci/deps/actions-311.yaml @@ -18,7 +18,7 @@ dependencies: # required dependencies - python-dateutil - - numpy<1.24.0 + - numpy - pytz # optional dependencies d...
- [ ] 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/51006
2023-01-27T00:25:24Z
2023-02-09T17:53:11Z
2023-02-09T17:53:11Z
2023-02-10T08:48:48Z
BUG: Series.interpolate with dt64/td64 raises
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bd1a92be0de80..265643b219bec 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1105,6 +1105,7 @@ Datetimelike - Bug in :func:`to_datetime` was raising ``ValueError`` when parsing mixed-offset :class:`T...
- [x] closes #11312 (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/51005
2023-01-27T00:15:50Z
2023-02-03T18:20:56Z
2023-02-03T18:20:56Z
2023-02-03T18:35:38Z
DOC: Update versionadded for 2.0 instead of 1.6
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 685ed9f972a32..1d86c81745a6a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1902,7 +1902,7 @@ def to_dict( is 'tight') in the returned dictionary. Can only be ``False`` when `orient` is 'split' or 'tight'. - ...
- [ ] 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/51002
2023-01-26T23:30:00Z
2023-01-27T01:11:44Z
2023-01-27T01:11:44Z
2023-01-27T01:11:48Z
BLD: Drop universal2 wheels
diff --git a/pyproject.toml b/pyproject.toml index b8a2cb89ff3a0..726ec1a137861 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -147,8 +147,8 @@ test-requires = "hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asy test-command = "python {project}/ci/test_wheels.py" [tool.cibuildwheel.macos] -archs =...
Numpy hasn't provided them anymore for a while, so let's drop them as well to cut down on compilation time and save space on PyPI. - [ ] 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-te...
https://api.github.com/repos/pandas-dev/pandas/pulls/51001
2023-01-26T23:07:50Z
2023-01-28T00:51:44Z
2023-01-28T00:51:44Z
2023-03-14T12:16:01Z
PERF: conditionally mark xfails as slow
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index e51b0aa318582..d912ab59ab025 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -429,6 +429,12 @@ def test_accumulate_series(self, data, all_numeric_accumulations, skipna, reques ...
Cuts a full minute off the runtime
https://api.github.com/repos/pandas-dev/pandas/pulls/50999
2023-01-26T22:24:01Z
2023-01-28T03:11:28Z
2023-01-28T03:11:28Z
2023-01-28T15:47:33Z
ENH: support reductions for pyarrow temporal types
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 052eb7792a19c..60a9b3d4fd30e 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -30,6 +30,7 @@ pa_version_under7p0, pa_version_under8p0, pa_version_under9p0, + pa_version_under11p0, ) @@ -159,6 +160,7 ...
We could plausibly disallow mean for date types, matching what we do for PeriodDtype. Fixes 232 xfails, cuts test runtime by 88 seconds.
https://api.github.com/repos/pandas-dev/pandas/pulls/50998
2023-01-26T19:46:53Z
2023-02-09T17:51:43Z
2023-02-09T17:51:43Z
2023-02-09T17:52:30Z
WEB: Add Intel as a sponsor
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 816eb6ab296c1..444fc1ea85be3 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -168,6 +168,11 @@ sponsors: logo: /static/img/partners/nvidia.svg kind: partner description: "Matthew Roeschke" + - name: "Intel" + url: http...
I didn't realize Intel wasn't added as a sponsor. I guess it became not long after I updated the sponsors, and I had the feeling it was already there. Adding it now. Seems like they've got this new logo, first time I see it. CC: @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/50995
2023-01-26T16:14:26Z
2023-01-26T19:00:32Z
2023-01-26T19:00:32Z
2023-01-26T19:00:33Z
BUG: to_datetime with out-of-bounds np.datetime64 and errors='ignore' doesn't return input
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c814e585672cb..434b76b42d938 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1025,6 +1025,7 @@ Datetimelike - Bug in :func:`to_datetime` was raising ``ValueError`` when parsing mixed-offset :class:`T...
- [ ] closes #50587 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/50992
2023-01-26T11:14:36Z
2023-02-02T16:42:32Z
2023-02-02T16:42:31Z
2023-02-02T16:46:04Z
DEPR: Move Numericindex._convert_slice_indexer & ._maybe_cast_slice_bound
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 50f0597772cd9..b6bdec2083cd3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3983,6 +3983,13 @@ def _convert_slice_indexer(self, key: slice, kind: str_t): # potentially cast the bounds to integers ...
Moves`_convert_slice_indexer` & `_maybe_cast_slice_bound` from `NumericIndex`to `Index` in preparation to remove `NumericIndex` and include numpy int/uint/float64 in the base `Index`. Each commit contains one method moving each, could be easier to view each method separately in the commit. xref #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/50989
2023-01-26T06:41:27Z
2023-01-27T22:27:35Z
2023-01-27T22:27:35Z
2023-01-27T22:27:42Z
Min max added to reduction ops
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 46428dcf462ea..b31fbf047d674 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1016,6 +1016,7 @@ Numeric - Bug in DataFrame reduction methods (e.g. :meth:`DataFrame.sum`) with object dtype, ``axis=1`` ...
- [x] closes #50937 - [ ] [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/50988
2023-01-26T04:37:39Z
2023-02-02T16:18:02Z
2023-02-02T16:18:02Z
2023-02-02T16:18:10Z
REF: ArrowEA _data->_pa_array
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index f2f0aaffcd6b5..c49dda2763c83 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -1028,8 +1028,8 @@ def shares_memory(left, right) -> bool: left = cast("ArrowExtensionArray", left) if isinstance(righ...
Totally subjective: I prefer a distinctive/informative name. This makes it easy to e.g. grep for all the places where we access this attribute.
https://api.github.com/repos/pandas-dev/pandas/pulls/50987
2023-01-26T03:06:35Z
2023-03-10T11:32:07Z
2023-03-10T11:32:07Z
2023-03-13T17:35:49Z
BUG: ArrowExtensionArray.mode(dropna=False) not respecting NAs
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 78422ec686da8..c959a9777b0b0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1229,6 +1229,7 @@ Numeric - Bug in DataFrame reduction methods (e.g. :meth:`DataFrame.sum`) with object dtype, ``axis=1`` ...
- [x] closes #50982 (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/50986
2023-01-26T02:26:17Z
2023-02-18T01:00:29Z
2023-02-18T01:00:29Z
2023-02-18T01:00:32Z
ENH: Add dtype_backend support to read_sql
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 843d530417e1e..51e55c23cdeaf 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -69,6 +69,9 @@ to select the nullable dtypes implementation. * :func:`read_html` * :func:`read_xml` * :func:`read_json` +...
- [ ] 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/50985
2023-01-26T02:21:24Z
2023-01-31T21:31:28Z
2023-01-31T21:31:27Z
2023-01-31T21:35:29Z
BUG: astype to pyarrow does not copy np array
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3c9c861afd989..7d7a280208de9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1015,6 +1015,7 @@ Conversion - Bug in :class:`.arrays.ArrowExtensionArray` that would raise ``NotImplementedError`` when p...
- [ ] 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/50984
2023-01-26T01:50:21Z
2023-01-30T17:53:45Z
2023-01-30T17:53:45Z
2023-01-30T19:55:27Z
BUG/ENH: fix pyarrow quantile xfails
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 0e70b3795bc85..425346b5a6983 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1243,7 +1243,7 @@ def _quantile( pa_dtype = self._data.type data = self._data - if p...
fix 156 xfails and shave 49 seconds off the test runtime
https://api.github.com/repos/pandas-dev/pandas/pulls/50983
2023-01-26T01:08:16Z
2023-02-01T19:52:13Z
2023-02-01T19:52:13Z
2023-02-01T19:59:31Z
DOC: Update release note v1.1.4.rst
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 1e5b3614895b4..ef0c4d741ca58 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -31,7 +31,7 @@ Fixed regressions - Fixed regression in setitem with :meth:`DataFrame.iloc` which raised error when trying t...
- [x] closes #38519
https://api.github.com/repos/pandas-dev/pandas/pulls/50981
2023-01-25T23:59:52Z
2023-01-26T19:38:18Z
2023-01-26T19:38:18Z
2023-01-28T18:55:00Z
BUG/ENH: groupby.quantile support non-nano
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index c15948ce877a8..a70ad73366cc8 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3196,10 +3196,10 @@ def pre_processor(vals: ArrayLike) -> tuple[np.ndarray, Dtype | None]: elif is_bool_dtype(...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50978
2023-01-25T23:17:55Z
2023-01-26T17:43:54Z
2023-01-26T17:43:54Z
2023-01-26T18:40:23Z
BUG: df_empty.convert_dtypes() with pyarrow backend
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 0e70b3795bc85..57759af23ddd5 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -137,15 +137,17 @@ def to_pyarrow_type( Convert dtype to a pyarrow type instance. """ if isinstan...
- [x] closes #50970 (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/50976
2023-01-25T22:06:54Z
2023-01-27T01:40:27Z
2023-01-27T01:40:27Z
2023-01-27T01:44:54Z