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
BUG: infer-objects raising for bytes Series
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 6aac736abf10a..0999a9af3f72a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1969,6 +1969,9 @@ def convert( attempt to cast any object types to better types return a copy of the ...
- [x] closes #49650 (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/50067
2022-12-05T15:31:36Z
2022-12-08T00:38:22Z
2022-12-08T00:38:22Z
2022-12-08T13:19:12Z
BUG: loc.setitem raising when expanding empty frame with array value
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..279d65c68bb91 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -752,6 +752,7 @@ Indexing - Bug in :meth:`DataFrame.loc` coercing dtypes when setting values with a list indexer (:issue:`4...
- [x] closes #49972 (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/50065
2022-12-05T11:46:29Z
2023-02-22T13:52:25Z
null
2023-02-22T13:52:26Z
DEPR: Enforce DataFrameGroupBy.__iter__ returning tuples of length 1
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b70dcb0ae99fa..b1400be59b3a1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -596,7 +596,7 @@ Removal of prior version deprecations/changes - Enforced deprecation of silently dropping nuisance columns...
- [ ] 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/50064
2022-12-05T04:01:45Z
2022-12-05T09:18:22Z
2022-12-05T09:18:22Z
2022-12-13T03:16:40Z
DEPR: Enforce groupby.transform aligning with input index
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index d8a36b1711b6e..fb8462f7f58e4 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -776,12 +776,11 @@ as the one being grouped. The transform function must: * (Optionally) operates on the entire...
- [ ] 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/50063
2022-12-05T02:54:46Z
2022-12-05T11:48:23Z
2022-12-05T11:48:23Z
2022-12-06T22:22:34Z
TST: test to confirm rmod works for large series
diff --git a/pandas/tests/arrays/integer/test_arithmetic.py b/pandas/tests/arrays/integer/test_arithmetic.py index 092cbc6c7997f..3baff790bca8b 100644 --- a/pandas/tests/arrays/integer/test_arithmetic.py +++ b/pandas/tests/arrays/integer/test_arithmetic.py @@ -233,6 +233,13 @@ def test_error_invalid_values(data, all_ar...
- [ ] 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/50061
2022-12-04T22:51:43Z
2023-01-12T22:05:35Z
null
2023-01-12T22:05:36Z
TST: add test for nested OrderedDict in constructor
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index ef80cc847a5b8..fcbca5e7fa4e7 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1395,6 +1395,16 @@ def test_constructor_list_of_dicts(self): expected = DataFr...
- [ ] 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/50060
2022-12-04T22:49:56Z
2022-12-06T17:15:09Z
2022-12-06T17:15:09Z
2022-12-06T20:48:55Z
DOC: Remove all versionchanged / versionadded directives < 1.0.0
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 571f8980070af..9aa6423908cfd 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -712,10 +712,8 @@ The ufunc is applied to the underlying array in a :class:`Series`. ser = pd.Series([1, 2, ...
**Description** Remove all `versionchanged` / `versionadded` directives for versions < `1.0.0` **Checks** - [x] closes https://github.com/noatamir/pydata-global-sprints/issues/10) - [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/50057
2022-12-04T16:25:18Z
2022-12-05T09:24:09Z
2022-12-05T09:24:09Z
2022-12-05T09:24:21Z
BUG: read_csv with engine pyarrow parsing multiple date columns
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index e1ac9e3309de7..67f5484044cd5 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -386,6 +386,7 @@ I/O - :meth:`DataFrame.to_orc` now raising ``ValueError`` when non-default :class:`Index` is given (:issue...
- [ ] closes #47961 (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/50056
2022-12-04T16:23:37Z
2023-05-18T21:21:05Z
2023-05-18T21:21:05Z
2023-05-18T21:21:17Z
CI: Pin pyarrow smaller than 10
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 002d0020c2df1..7d1e54052f938 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 ${{...
lets see if this fixes ci, matplotlib is a bit weird
https://api.github.com/repos/pandas-dev/pandas/pulls/50055
2022-12-04T16:20:55Z
2022-12-04T17:27:27Z
2022-12-04T17:27:27Z
2022-12-15T13:42:58Z
BUG: to_datetime with decimal number doesn't fail for %Y%m%d
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 5b57baa9ec39a..b9b955acb757f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -661,6 +661,8 @@ Datetimelike - Bug in ``pandas.tseries.holiday.Holiday`` where a half-open date interval causes inconsiste...
- [x] closes #50051 (Replace xxxx with the GitHub issue number) - [x] closes #17410 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/50054
2022-12-04T14:32:44Z
2022-12-14T08:39:58Z
null
2022-12-14T08:39:58Z
BUG: fix AttributeError: CompileError object has no attribute orig
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 6397016d827f2..af74c20e021a0 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -29,6 +29,7 @@ Bug fixes ~~~~~~~~~ - Bug in the Copy-on-Write implementation losing track of views in certain chained inde...
- [x] closes #50062 (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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50053
2022-12-04T13:24:19Z
2023-01-18T20:27:33Z
null
2023-04-11T09:12:54Z
DEPR: remove Index._is backward_compat_public_numeric_index
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 9e00278f85cbc..999ef0d7ac68c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -90,7 +90,6 @@ ensure_platform_int, is_bool_dtype, is_categorical_dtype, - is_complex_dtype, is_dtype_equal, ...
Removes the attribute `Index._is backward_compat_public_numeric_index`and related stuff. This is the last PR before actually removing Int64/UInt64/Float64Index from the code base. This PR builds on top of #49560 (which is not yet merged), so please exclude the first commit from review of this PR. I'd also truly...
https://api.github.com/repos/pandas-dev/pandas/pulls/50052
2022-12-04T11:43:44Z
2023-01-16T17:44:37Z
2023-01-16T17:44:37Z
2023-01-16T17:55:45Z
DOC: Add tips on where to locate test
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 91f3d51460f99..b05f026bbbb44 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -338,7 +338,22 @@ Writing tests All tests should ...
Closes #50014
https://api.github.com/repos/pandas-dev/pandas/pulls/50050
2022-12-04T11:28:45Z
2022-12-06T21:07:41Z
2022-12-06T21:07:41Z
2022-12-06T21:07:50Z
DOC: Improve groupby().ngroup() explanation for missing groups
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 659ca228bdcb0..9a813e866e8d0 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3212,6 +3212,9 @@ def ngroup(self, ascending: bool = True): would be seen when iterating over the groupby object, ...
The exact prose and examples are open to improvements if you have ideas. I figure this didn't require a separate issue, please let me know if I'm missing some step in the process.
https://api.github.com/repos/pandas-dev/pandas/pulls/50049
2022-12-04T04:43:20Z
2023-01-03T21:14:37Z
2023-01-03T21:14:37Z
2023-01-04T02:45:52Z
ENH: Add nullable keyword to read_sql
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d6e0bb2ae0830..2db5f977721d8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -37,6 +37,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_csv` * :fun...
Sits on top of #50047 Functionality wise, this should work now. More broadly, I am not sure that this is the best approach we could take here. Since the ``convert_to_nullable_type`` in ``lib.maybe_convert_objects`` is not used right now except here, we could also make this strict and return the appropriate Array...
https://api.github.com/repos/pandas-dev/pandas/pulls/50048
2022-12-03T22:01:39Z
2022-12-13T02:15:44Z
2022-12-13T02:15:44Z
2023-05-03T22:47:17Z
ENH: maybe_convert_objects add boolean support with NA
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 3cbc04fb2f5cd..9bc02e90ebb9e 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -75,7 +75,7 @@ def maybe_convert_objects( convert_timedelta: Literal[False] = ..., convert_period: Literal[False] = ..., convert_interval: Literal[Fa...
This is necessary for read_sql and nullables. I could not find a usage of ``convert_to_nullable_integer``, so we should be able to repurpose the keyword
https://api.github.com/repos/pandas-dev/pandas/pulls/50047
2022-12-03T20:52:09Z
2022-12-09T00:20:58Z
2022-12-09T00:20:58Z
2022-12-09T09:24:41Z
Docker Hub Sample images
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 280b6ed601f08..c4fc3575fdfa8 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -133,33 +133,6 @@ jobs: asv machine --yes asv run --quick --dry-run --strict --durations=30 --...
Still working on mamba. Opened an open source account inquiry with Docker so will eventually place there. In the interim can place on personal account for testing
https://api.github.com/repos/pandas-dev/pandas/pulls/50046
2022-12-03T19:48:34Z
2023-05-17T16:59:43Z
null
2023-05-17T16:59:43Z
BUG: Change FutureWarning to DeprecationWarning for inplace setitem with DataFrame.(i)loc
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 489a6fda9ffab..0b670219f830c 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -48,6 +48,7 @@ Other as pandas works toward compatibility with SQLAlchemy 2.0. - Reverted deprecation (:issue:`45324...
- [X] closes #48673 - [X] [Tests added and passed]( - [ ] Added [type annotations] - [ ] All [code checks passed]. - [X] Added an entry in the latest `doc/source/whatsnew/v1.5.3.rst` file.
https://api.github.com/repos/pandas-dev/pandas/pulls/50044
2022-12-03T18:43:53Z
2023-01-18T04:42:41Z
2023-01-18T04:42:41Z
2023-01-18T14:38:30Z
BUG: Fix bug in maybe_convert_objects with None and nullable
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index e35cf2fb13768..81e0f3de748ff 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2446,7 +2446,7 @@ def maybe_convert_objects(ndarray[object] objects, seen.int_ = True floats[i] = <float64_t>val complexes[i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50043
2022-12-03T18:40:50Z
2022-12-03T20:50:16Z
2022-12-03T20:50:16Z
2022-12-03T20:50:19Z
ENH skip 'now' and 'today' when inferring format for array
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index b78174483be51..35a4131d11d50 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -431,7 +431,11 @@ def first_non_null(values: ndarray) -> int: val = values[i] if checknull_with_nat_and_na(val): continue - ...
breaking this off from https://github.com/pandas-dev/pandas/pull/49024/files haven't added a whatsnew note as it's not user facing (yet! but it will make a difference after PDEP4)
https://api.github.com/repos/pandas-dev/pandas/pulls/50039
2022-12-03T14:21:48Z
2022-12-04T16:33:17Z
2022-12-04T16:33:17Z
2022-12-05T21:02:48Z
BUG: to_datetime fails with np.datetime64 and non-ISO format
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d8609737b8c7a..b70dcb0ae99fa 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -658,7 +658,7 @@ Datetimelike - Bug in subtracting a ``datetime`` scalar from :class:`DatetimeIndex` failing to retain the ...
- [x] closes #50036 (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/50038
2022-12-03T12:41:37Z
2022-12-04T15:07:03Z
2022-12-04T15:07:03Z
2022-12-04T15:07:03Z
test: Add test for loc assignment changes datetime dtype
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index be67ce50a0634..81a5e3d9947be 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -29,6 +29,7 @@ date_range, isna, notna, + to_datet...
- [x] closes #49837 - [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/50037
2022-12-03T12:00:02Z
2022-12-05T09:25:21Z
2022-12-05T09:25:21Z
2022-12-05T09:25:32Z
ENH: Index.infer_objects
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0ecdde89d9013..e4fef0049d119 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -83,6 +83,7 @@ Other enhancements - :func:`timedelta_range` now supports a ``unit`` keyword ("s", "ms", "us", or "ns") to s...
- [ ] 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/50034
2022-12-03T02:54:45Z
2022-12-06T17:43:39Z
2022-12-06T17:43:39Z
2022-12-06T18:31:59Z
TST: adding new test for groupby cumsum with named aggregate
diff --git a/pandas/tests/extension/base/groupby.py b/pandas/tests/extension/base/groupby.py index 339c6560d6212..3a9dbe9dfb384 100644 --- a/pandas/tests/extension/base/groupby.py +++ b/pandas/tests/extension/base/groupby.py @@ -56,6 +56,30 @@ def test_groupby_agg_extension(self, data_for_grouping): result = d...
- [ ] closes #41720 - [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/50033
2022-12-03T01:33:17Z
2022-12-08T03:40:45Z
2022-12-08T03:40:45Z
2022-12-08T03:40:55Z
REF: remove soft_convert_objects
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 36c713cab7123..f227eb46273a5 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -41,7 +41,6 @@ IntCastingNaNError, LossySetitemError, ) -from pandas.util._validators import validate_bool_kwarg from pandas.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/50031
2022-12-03T00:22:26Z
2022-12-03T19:55:56Z
2022-12-03T19:55:56Z
2022-12-03T21:42:30Z
DEPR: Remove option use_inf_as null
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index bde97f3714219..d8609737b8c7a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -386,6 +386,7 @@ Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Removed dep...
Introduced in https://github.com/pandas-dev/pandas/pull/17126
https://api.github.com/repos/pandas-dev/pandas/pulls/50030
2022-12-02T23:48:18Z
2022-12-03T02:48:20Z
2022-12-03T02:48:20Z
2022-12-05T19:42:39Z
DOC: Groupby transform should mention that parameter can be a string
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index e791e956473c1..02e8236524cb7 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -427,7 +427,51 @@ def _aggregate_named(self, func, *args, **kwargs): return result - @Substitution(klass="Se...
- [ ] closes https://github.com/pandas-dev/pandas/issues/49961 - [ ] [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/50029
2022-12-02T23:31:09Z
2022-12-13T03:06:42Z
2022-12-13T03:06:42Z
2022-12-13T04:55:06Z
API: make FloatingArray.astype consistent with IntegerArray/BooleanArray
diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py index 1fd6482f650da..3aa6a12160b73 100644 --- a/pandas/core/arrays/masked.py +++ b/pandas/core/arrays/masked.py @@ -38,7 +38,6 @@ from pandas.util._decorators import doc from pandas.util._validators import validate_fillna_kwargs -from pandas.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/50028
2022-12-02T21:55:37Z
2022-12-05T09:27:23Z
2022-12-05T09:27:23Z
2022-12-05T16:47:43Z
DOC: add examples BusinessMonthEnd(0) and SemiMonthEnd(0)
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 4c6493652b216..70d437e0eea11 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2460,16 +2460,25 @@ cdef class BusinessMonthEnd(MonthOffset): """ DateOffset increments between the last busi...
This PR is related to PR #49958. - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Updated docs for `BusinessMonthEnd` and `SemiMonthEnd`. Added more examples to highlight “the last day of the month” behavior. Gave examples that use the para...
https://api.github.com/repos/pandas-dev/pandas/pulls/50027
2022-12-02T21:35:45Z
2022-12-03T12:47:11Z
2022-12-03T12:47:11Z
2022-12-03T12:47:11Z
REF: remove NDFrame._convert
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 038c889e4d5f7..d1e48a3d10a1e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6315,37 +6315,6 @@ def __deepcopy__(self: NDFrameT, memo=None) -> NDFrameT: """ return self.copy(deep=True) - @final - def _conve...
- [ ] 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/50026
2022-12-02T20:15:38Z
2022-12-02T23:03:23Z
2022-12-02T23:03:23Z
2022-12-02T23:09:46Z
BUG: when flooring, ambiguous parameter unnecessarily used (and raising Error)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b6c1c857717c7..763f9f87194d5 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -33,7 +33,6 @@ Bug fixes Other ~~~~~ - -- .. -------------------------------------------------------------------------...
- [x] closes #49565 - [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/50024
2022-12-02T19:00:38Z
2022-12-12T18:28:15Z
2022-12-12T18:28:15Z
2022-12-12T18:28:22Z
BUG: pd.DateOffset handle milliseconds
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 11185e0370e30..99ed779487c34 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -799,6 +799,7 @@ Datetimelike - Bug in :class:`Timestamp` was showing ``UserWarning``, which was not actionable by users, w...
- [X] closes #49897 - [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/50020
2022-12-02T18:06:15Z
2022-12-22T22:49:14Z
2022-12-22T22:49:14Z
2023-01-22T19:58:41Z
TST: Add test for isin for filtering with mixed types
diff --git a/pandas/tests/series/methods/test_isin.py b/pandas/tests/series/methods/test_isin.py index 449724508fcaa..92ebee9ffa7a5 100644 --- a/pandas/tests/series/methods/test_isin.py +++ b/pandas/tests/series/methods/test_isin.py @@ -220,3 +220,17 @@ def test_isin_complex_numbers(array, expected): # GH 17927 ...
- [x] closes #20883 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50019
2022-12-02T17:12:45Z
2022-12-02T19:58:42Z
2022-12-02T19:58:42Z
2022-12-05T09:10:44Z
DEV: enable liveserver for docs on gitpod
diff --git a/.gitpod.yml b/.gitpod.yml index 6bba39823791e..877c16eefb5d6 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -32,6 +32,7 @@ vscode: - yzhang.markdown-all-in-one - eamodio.gitlens - lextudio.restructuredtext + - ritwickdey.liveserver # add or remove what you think is generally useful to...
Another follow-up for https://github.com/pandas-dev/pandas/issues/47790
https://api.github.com/repos/pandas-dev/pandas/pulls/50018
2022-12-02T17:06:38Z
2022-12-02T20:29:54Z
2022-12-02T20:29:54Z
2022-12-02T20:29:58Z
DOC: align description of sort argument with implementation
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 5ce69d2c2ab4c..aced5a73a1f02 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -195,10 +195,7 @@ def concat( Check whether the new concatenated axis contains duplicates. This can be very ex...
If sort is provided to concat, the non-concatenation axis is always sorted, so remove the conditional. - [x] closes #49646 - [ ] [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 pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/50017
2022-12-02T17:04:24Z
2022-12-02T18:33:35Z
2022-12-02T18:33:35Z
2023-07-04T14:01:06Z
ENH: add copy on write for df reorder_levels GH49473
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c7f0a7ced7576..eb3365d4f8410 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7407,7 +7407,7 @@ def swaplevel(self, i: Axis = -2, j: Axis = -1, axis: Axis = 0) -> DataFrame: result.columns = result.columns.swaplevel(i, j) ...
- [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/50016
2022-12-02T16:59:06Z
2022-12-02T21:06:43Z
2022-12-02T21:06:43Z
2022-12-02T21:07:00Z
BUG: frame[object].astype(M8[unsupported]) not raising
diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py index 7b5c77af7864b..53c2cfd345e32 100644 --- a/pandas/core/dtypes/astype.py +++ b/pandas/core/dtypes/astype.py @@ -135,16 +135,15 @@ def astype_nansafe( elif is_object_dtype(arr.dtype): # if we have a datetime/timedelta array of o...
Already has a whatsnew _whatsnew_200.api_breaking.astype_to_unsupported_datetimelike
https://api.github.com/repos/pandas-dev/pandas/pulls/50015
2022-12-02T16:40:27Z
2022-12-02T18:56:51Z
2022-12-02T18:56:51Z
2022-12-02T19:17:10Z
STYLE double-quote cython strings #21
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0779f9c95f7b4..18f3644a0e0ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,7 @@ repos: rev: v0.9.1 hooks: - id: cython-lint + - id: double-quote-cython-strings - repo: https://github.com/pre-c...
task here is: add id: double-quote-cython-strings to https://github.com/pandas-dev/pandas/blob/3d0d197cec32ed5ce30d28b922f329510c03f153/.pre-commit-config.yaml#L29 run pre-commit run double-quote-cython-strings --all-files git add -u, git commit -m 'double quote cython strings', git push origin HEAD` Mot...
https://api.github.com/repos/pandas-dev/pandas/pulls/50013
2022-12-02T16:07:02Z
2022-12-02T18:11:14Z
2022-12-02T18:11:14Z
2023-03-30T16:14:22Z
DOC: Add missing :ref: to a link in a docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0144aefedaa5f..aa61399f94330 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5168,7 +5168,7 @@ def drop( Remove rows or columns by specifying label names and corresponding axis, or by specifying directly index or column na...
- [x] closes https://github.com/noatamir/pydata-global-sprints/issues/18 - [ ] [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/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/50012
2022-12-02T15:51:20Z
2022-12-02T17:36:15Z
2022-12-02T17:36:15Z
2022-12-02T17:58:01Z
REF: remove numeric arg from NDFrame._convert
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 60488a8ef9715..36c713cab7123 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -954,8 +954,8 @@ def coerce_indexer_dtype(indexer, categories) -> np.ndarray: def soft_convert_objects( values: np.ndarray, + *, ...
Moving towards getting rid of _convert and soft_convert_objects and just using infer_objects and maybe_infer_objects
https://api.github.com/repos/pandas-dev/pandas/pulls/50011
2022-12-02T15:23:19Z
2022-12-02T18:39:19Z
2022-12-02T18:39:18Z
2022-12-02T19:17:41Z
ENH/TST: expand copy-on-write to assign() method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0144aefedaa5f..5358fdb0b4dbd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4887,7 +4887,7 @@ def assign(self, **kwargs) -> DataFrame: Portland 17.0 62.6 290.15 Berkeley 25.0 77.0 298.15 """ - ...
- [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). Added copy-on-write to `...
https://api.github.com/repos/pandas-dev/pandas/pulls/50010
2022-12-02T15:16:44Z
2022-12-02T17:36:36Z
2022-12-02T17:36:36Z
2022-12-02T17:36:37Z
TST/DEV: remove geopandas downstream test + remove from environment.yml
diff --git a/environment.yml b/environment.yml index 1a02b522fab06..87c5f5d031fcf 100644 --- a/environment.yml +++ b/environment.yml @@ -64,7 +64,6 @@ dependencies: - cftime - dask - ipython - - geopandas-base - seaborn - scikit-learn - statsmodels diff --git a/pandas/tests/test_downstream.py b/panda...
See https://github.com/pandas-dev/pandas/pull/49994 for context - [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/50008
2022-12-02T13:26:37Z
2022-12-02T15:30:06Z
2022-12-02T15:30:06Z
2022-12-02T15:31:59Z
DEV: update gitpod docker
diff --git a/gitpod/Dockerfile b/gitpod/Dockerfile index 299267a11fdd1..7581abe822816 100644 --- a/gitpod/Dockerfile +++ b/gitpod/Dockerfile @@ -13,7 +13,7 @@ # are visible in the host and container. # The docker image is retrieved from the pandas dockerhub repository # -# docker run --rm -it -v $(pwd):/home/pandas ...
Follow-up on https://github.com/pandas-dev/pandas/pull/48107
https://api.github.com/repos/pandas-dev/pandas/pulls/50007
2022-12-02T11:50:14Z
2022-12-02T15:24:10Z
2022-12-02T15:24:10Z
2022-12-02T15:25:56Z
DOC: Update Benchmark Link #49871
diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst index 9e32e43f30dfc..6e9f622e18eea 100644 --- a/doc/source/development/maintaining.rst +++ b/doc/source/development/maintaining.rst @@ -318,7 +318,7 @@ Benchmark machine ----------------- The team currently owns dedicated h...
- [ ] Updated the broken benchmark-machine link in `doc/source/development/maintaining.rst` file fixing a bug #49871.
https://api.github.com/repos/pandas-dev/pandas/pulls/50006
2022-12-02T11:45:13Z
2022-12-02T13:14:08Z
2022-12-02T13:14:08Z
2022-12-02T13:14:16Z
TYP #37715: Fix mypy errors in accessor.py
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 71a50c69bfee1..f8dad3b252223 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -562,6 +562,8 @@ def cat( if sep is None: sep = "" + data: Series | np.ndarray + ...
- [ ] xref #37715 - [ ] Tests added and passed if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codeba...
https://api.github.com/repos/pandas-dev/pandas/pulls/50005
2022-12-02T07:15:08Z
2023-01-16T19:41:58Z
null
2023-01-16T19:41:58Z
DOC: remove okwarning from scale guide
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index 129f43dd36930..a974af4ffe1c5 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -257,7 +257,6 @@ We'll import ``dask.dataframe`` and notice that the API feels similar to pandas. We can use Dask's ``r...
- [ ] closes #29960 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Updati...
https://api.github.com/repos/pandas-dev/pandas/pulls/50004
2022-12-02T01:06:49Z
2022-12-03T18:48:23Z
2022-12-03T18:48:23Z
2022-12-03T18:48:30Z
Adding to the function docs that groupby.transform() function parameter can be a string
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 497e0ef724373..c73a2d40a33e1 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -399,7 +399,7 @@ class providing the base-class of operations. Parameters ---------- -f : function +f : function, str ...
Docs change: Adding to the function docs that groupby.transform() function parameter can be a string - [ ] closes #49961 - [ ] [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 pas...
https://api.github.com/repos/pandas-dev/pandas/pulls/50002
2022-12-01T23:29:10Z
2022-12-02T03:25:21Z
2022-12-02T03:25:21Z
2022-12-02T05:31:52Z
REF: avoid _with_infer constructor
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 02ee13d60427e..43020ae471f10 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -274,7 +274,7 @@ def box_expected(expected, box_cls, transpose: bool = True): else: expected = pd.array(expected, ...
Trying to get down to Just One constructor.
https://api.github.com/repos/pandas-dev/pandas/pulls/50001
2022-12-01T23:00:31Z
2022-12-03T05:36:16Z
2022-12-03T05:36:16Z
2022-12-03T21:42:09Z
API: dont do inference on object-dtype arithmetic results
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7838ef8df4164..a3ba0557bc31c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -367,6 +367,7 @@ Other API changes - Passing a sequence containing a type that cannot be converted to :class:`Timedelta` to...
- [ ] 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/49999
2022-12-01T21:54:19Z
2022-12-07T18:15:40Z
2022-12-07T18:15:40Z
2022-12-16T23:32:56Z
Fix styler excel example - take 2
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index d7cb70b0f5110..c4690730596ff 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1110,8 +1110,7 @@ def format( >>> df = pd.DataFrame({"A": [1, 0, -1]}) >>> pseudo_css = "nu...
TypeError: <lambda>() takes 0 positional arguments but 1 was given. Following https://github.com/pandas-dev/pandas/pull/49971#issuecomment-1334262698.
https://api.github.com/repos/pandas-dev/pandas/pulls/49996
2022-12-01T20:11:08Z
2022-12-02T21:27:27Z
2022-12-02T21:27:27Z
2022-12-02T21:27:34Z
DOC: Add example for read_csv with nullable dtype
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index a073087f6ec8f..f1c212b53a87a 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -464,6 +464,17 @@ worth trying. os.remove("foo.csv") +Setting ``use_nullable_dtypes=True`` will result in nullable dtypes fo...
The first issue in the link: https://github.com/noatamir/pyladies-berlin-sprints/issues/4
https://api.github.com/repos/pandas-dev/pandas/pulls/49995
2022-12-01T19:59:47Z
2022-12-02T03:27:47Z
2022-12-02T03:27:47Z
2022-12-02T03:27:54Z
DEV: remove geopandas from the environment.yml file
- [x] closes #https://github.com/noatamir/pyladies-berlin-sprints/issues/9 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/49994
2022-12-01T19:21:51Z
2022-12-01T19:35:23Z
null
2023-04-29T20:07:07Z
Add new mamba environment creation command
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index afa0d0306f1af..3b9075f045e69 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -119,7 +119,7 @@ We'll now kick off a th...
- [X] closes #49959 - [ ] [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/49993
2022-12-01T19:15:23Z
2022-12-01T19:26:27Z
2022-12-01T19:26:27Z
2022-12-23T21:04:39Z
fixed up standart library imports part 1 of 2
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 18f3644a0e0ae..77be428bb2c72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -314,3 +314,9 @@ repos: additional_dependencies: - autotyping==22.9.0 - libcst==0.4.7 + - id: stdlib-imports + na...
all but the pandas/tests files in this draft PR
https://api.github.com/repos/pandas-dev/pandas/pulls/49992
2022-12-01T17:55:42Z
2022-12-07T18:31:31Z
null
2022-12-07T18:31:46Z
TST/CoW: copy-on-write tests for add_prefix and add_suffix
diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py index 8015eb93988c9..f5c7b31e59bc5 100644 --- a/pandas/tests/copy_view/test_methods.py +++ b/pandas/tests/copy_view/test_methods.py @@ -253,6 +253,45 @@ def test_set_index(using_copy_on_write): tm.assert_frame_equal(df, df...
[Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). This PR is related to https://...
https://api.github.com/repos/pandas-dev/pandas/pulls/49991
2022-12-01T17:46:52Z
2022-12-03T18:49:26Z
2022-12-03T18:49:26Z
2022-12-03T18:49:32Z
Fix dataframe.replace when columns contain pd.na
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 0d058ead9d22c..8243b0705a4b2 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -88,12 +88,14 @@ def mask_missing(arr: ArrayLike, values_to_mask) -> npt.NDArray[np.bool_]: # GH 21977 mask = np.zeros(arr.shape, dtype=bool) + ...
- [x] closes #47480 - [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
https://api.github.com/repos/pandas-dev/pandas/pulls/49988
2022-12-01T13:49:09Z
2022-12-01T18:31:13Z
null
2022-12-01T18:31:14Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0779f9c95f7b4..93e5328b088d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,12 +57,12 @@ repos: - flake8-bugbear==22.7.1 - pandas-dev-flaker==0.5.0 - repo: https://github.com/pycqa/pylint - rev: v2.15...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/main) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/node_...
https://api.github.com/repos/pandas-dev/pandas/pulls/49984
2022-12-01T07:09:46Z
2022-12-01T09:11:46Z
null
2022-12-02T00:29:17Z
DOC: fix RT02 errors in pd.io.formats.style #49968
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 4d685bd8e8858..6c62c4efde6bb 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -290,7 +290,7 @@ def concat(self, other: Styler) -> Styler: Returns ------- - self : Styler + Styler ...
Simplified return type for several Styler methods in pd.io.formats.style. - [x] xref #49968 - [ ] tests added and passed - [x] passes pre-commit code checks - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/function...
https://api.github.com/repos/pandas-dev/pandas/pulls/49983
2022-12-01T06:24:51Z
2022-12-05T19:35:05Z
2022-12-05T19:35:05Z
2022-12-06T07:59:12Z
Pip use psycopg2 wheel
diff --git a/requirements-dev.txt b/requirements-dev.txt index eac825493845c..19ed830eca07e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -30,7 +30,7 @@ numexpr>=2.8.0 openpyxl odfpy pandas-gbq -psycopg2 +psycopg2-binary pyarrow pymysql pyreadstat diff --git a/scripts/generate_pip_deps_from_cond...
For pip users this makes the installation a bit easier
https://api.github.com/repos/pandas-dev/pandas/pulls/49982
2022-12-01T04:00:09Z
2022-12-01T18:43:58Z
2022-12-01T18:43:58Z
2023-04-12T20:17:39Z
Streamline docker usage
diff --git a/.devcontainer.json b/.devcontainer.json index 8bea96aea29c1..7c5d009260c64 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -9,8 +9,7 @@ // You can edit these settings after create using File > Preferences > Settings > Remote. "settings": { "terminal.integrated.shell.linux": "/bin/bash", ...
Took a look at this setup today and found a few things that could be improved to make it easier for new contributors. Some quick comparisons: - Image size current 6.1 GB vs new 2.75 GB - Image build time of current somewhere in the 30-45 minute range versus new at 2.5 min - Current image blurs the lines of respons...
https://api.github.com/repos/pandas-dev/pandas/pulls/49981
2022-12-01T03:46:58Z
2022-12-02T10:03:18Z
2022-12-02T10:03:18Z
2022-12-23T21:19:01Z
CLN: assorted
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 17facf9e16f4b..8c27170f65353 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -666,20 +666,20 @@ cpdef inline datetime localize_pydatetime(datetime dt, tzinfo tz): cdef tzinfo conve...
- [ ] 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/49979
2022-11-30T23:11:51Z
2022-12-10T19:16:30Z
2022-12-10T19:16:30Z
2022-12-10T22:22:55Z
REF: Refactor merge array conversions for factorizer
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index e818e367ca83d..b6fa5da857910 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -2364,35 +2364,7 @@ def _factorize_keys( # "_values_for_factorize" rk, _ = rk._values_for_factorize() # t...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49978
2022-11-30T21:51:04Z
2022-12-01T18:59:57Z
2022-12-01T18:59:56Z
2022-12-10T20:00:59Z
DEP: Enforce deprecation of mangle_dupe_cols
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 53bcf6ffd7a8a..a073087f6ec8f 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -155,15 +155,6 @@ usecols : list-like or callable, default ``None`` when using the c engine. The Python engine loads the data fir...
#48137
https://api.github.com/repos/pandas-dev/pandas/pulls/49977
2022-11-30T21:42:53Z
2022-11-30T23:40:46Z
2022-11-30T23:40:46Z
2022-12-10T20:00:16Z
Standard library imports
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0779f9c95f7b4..87885b9c8a0e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -313,3 +313,9 @@ repos: additional_dependencies: - autotyping==22.9.0 - libcst==0.4.7 + - id: stdlib-imports + na...
This is part 1 of 2 making style changes to GH49647
https://api.github.com/repos/pandas-dev/pandas/pulls/49976
2022-11-30T20:28:13Z
2022-12-01T18:25:04Z
null
2022-12-01T18:25:05Z
add multi index with categories test
diff --git a/pandas/tests/indexes/multi/test_setops.py b/pandas/tests/indexes/multi/test_setops.py index d0345861d6778..aa6e472a7f5a5 100644 --- a/pandas/tests/indexes/multi/test_setops.py +++ b/pandas/tests/indexes/multi/test_setops.py @@ -692,6 +692,43 @@ def test_intersection_lexsort_depth(levels1, levels2, codes1, ...
This PR adds test to address the issue in #49337, which have already been fixed on main - [x] closses #49337 - [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://...
https://api.github.com/repos/pandas-dev/pandas/pulls/49975
2022-11-30T17:00:21Z
2023-01-03T21:07:41Z
null
2023-01-05T17:03:08Z
PERF: ArrowExtensionArray.to_numpy
diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py index cb949637ea745..924040ff0648b 100644 --- a/asv_bench/benchmarks/array.py +++ b/asv_bench/benchmarks/array.py @@ -92,3 +92,41 @@ def time_setitem_slice(self, multiple_chunks): def time_tolist(self, multiple_chunks): self.arra...
- [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/49973
2022-11-30T12:52:21Z
2022-12-16T03:26:13Z
2022-12-16T03:26:13Z
2022-12-20T00:46:16Z
Fix `Styler.format()` Excel example
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 9244a8c5e672d..d7cb70b0f5110 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1110,7 +1110,7 @@ def format( >>> df = pd.DataFrame({"A": [1, 0, -1]}) >>> pseudo_css = "nu...
- [ ] 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/49971
2022-11-30T04:38:27Z
2022-11-30T23:35:41Z
2022-11-30T23:35:41Z
2022-12-01T21:14:28Z
TST : Adding Oracle Database support to run SQL Tests.
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 394fceb69b788..de3f2d203a915 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -11,7 +11,7 @@ - Tests for the different SQL flavors (flavor specific type conversions) - Tests for the sqlalchemy mode: `_TestSQL...
- [ ] 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/49970
2022-11-30T03:23:47Z
2022-12-17T19:55:21Z
null
2022-12-17T19:55:21Z
BUG: Avoid intercepting TypeError in DataFrame.agg
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 6d9f5510eb8c5..722de91ba5246 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -663,12 +663,6 @@ def agg(self): result = None try: result = super().agg() - except TypeError as err: - exc = TypeE...
- [x] closes #49399 - [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/49969
2022-11-30T02:59:45Z
2022-12-01T20:31:02Z
2022-12-01T20:31:02Z
2022-12-01T20:31:09Z
BUG: Allow read_sql to work with chunksize.
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 2c98ff61cbef6..62a54a548a990 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -9,7 +9,10 @@ ABC, abstractmethod, ) -from contextlib import contextmanager +from contextlib import ( + ExitStack, + contextmanager, +) from datetime import ( ...
- [X] closes #50199 - [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/49967
2022-11-30T00:57:53Z
2023-01-31T21:23:32Z
2023-01-31T21:23:32Z
2023-02-02T09:28:35Z
REF: reverse dispatch in factorize
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 381f76c4502d6..65691e6f46eb5 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -73,7 +73,6 @@ ABCExtensionArray, ABCIndex, ABCMultiIndex, - ABCRangeIndex, ABCSeries, ABCTimedeltaArray, ) @@ -738...
- [ ] 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/49966
2022-11-30T00:50:25Z
2022-12-01T01:00:37Z
2022-12-01T01:00:37Z
2022-12-01T02:53:28Z
ENH: Add io.nullable_backend=pyarrow support to read_excel
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 541d021791f35..0c3d85cbcb620 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -28,13 +28,26 @@ The available extras, found in the :ref:`installation guide<install.dependencies ``[all, performance, comp...
- [x] xref #48957 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/49965
2022-11-30T00:16:46Z
2022-12-02T11:13:08Z
2022-12-02T11:13:08Z
2022-12-02T17:56:11Z
DOC: See also box should refer to same type (Series.dt.tz_convert --> Series.dt.tz_localize)
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 5fdf2c88503a5..9560a3703dc63 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -814,8 +814,8 @@ def tz_convert(self, tz) -> DatetimeArray: See Also -------- - DatetimeIndex...
- [x] closes #49297 - [ ] [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/49964
2022-11-30T00:13:39Z
2023-01-03T21:07:25Z
null
2023-01-03T21:07:25Z
TST/CoW: copy-on-write tests for df.head and df.tail
diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py index 0c68f6a866eec..bf65f153b10dd 100644 --- a/pandas/tests/copy_view/test_methods.py +++ b/pandas/tests/copy_view/test_methods.py @@ -250,3 +250,33 @@ def test_set_index(using_copy_on_write): df2.iloc[0, 1] = 0 asse...
- [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). Progress towards #49473 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49963
2022-11-29T22:35:16Z
2022-12-01T20:41:19Z
2022-12-01T20:41:19Z
2022-12-01T20:41:25Z
STYLE: #49656 - generic.py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1b17deb7def90..2de83bb7a4468 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4,7 +4,7 @@ import collections import datetime as dt import gc -import json +from json import loads import operator import pickle import re @@ -134,7...
- [ ] closes #49656 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49960
2022-11-29T20:46:18Z
2022-11-29T23:13:04Z
2022-11-29T23:13:04Z
2022-11-29T23:13:04Z
48779-doc-MonthEnd
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 8e022ac662d21..82f134a348fee 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2412,11 +2412,28 @@ cdef class MonthEnd(MonthOffset): """ DateOffset of one month end. + MonthEnd goes t...
- [x] closes #48779 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). As proposed by @MarcoGorelli I updated docs for `MonthEnd` and added one more example to highlight “the last day of the month” behavior. I checked that build of documenta...
https://api.github.com/repos/pandas-dev/pandas/pulls/49958
2022-11-29T09:40:50Z
2022-11-30T16:31:31Z
2022-11-30T16:31:31Z
2022-11-30T20:41:54Z
STYLE #49656: format.py - 9.99/10
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index cdc21f04da43a..24c701bdca448 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -9,7 +9,7 @@ QUOTE_NONE, QUOTE_NONNUMERIC, ) -import decimal +import decimal as dec from functools import partial from io i...
- [ ] xref #49656 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49957
2022-11-29T06:07:09Z
2022-11-29T08:09:04Z
null
2022-11-29T08:10:36Z
Update format.py
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index cdc21f04da43a..cbb56e2d19cc0 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -9,7 +9,7 @@ QUOTE_NONE, QUOTE_NONNUMERIC, ) -import decimal +import decimal as dec from functools import partial from io i...
- [ ] xref #49656 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] A...
https://api.github.com/repos/pandas-dev/pandas/pulls/49956
2022-11-29T05:25:56Z
2022-11-29T06:00:19Z
null
2022-11-29T06:00:19Z
Remove defaults channel from conda asv conf
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index b1feb1d0af79c..16f8f28b66d31 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -57,7 +57,7 @@ "odfpy": [], "jinja2": [], }, - "conda_channels": ["defaults", "conda-forge"], + "conda_channels": ["conda-f...
Looks like we only use conda-forge elsewhere so assuming this is an oversight
https://api.github.com/repos/pandas-dev/pandas/pulls/49955
2022-11-29T04:24:17Z
2022-11-29T08:20:11Z
2022-11-29T08:20:11Z
2022-11-29T17:24:49Z
REF: move methods to TimelikeOps
diff --git a/pandas/_libs/tslibs/offsets.pyi b/pandas/_libs/tslibs/offsets.pyi index eacdf17b0b4d3..dfa72a9592e3c 100644 --- a/pandas/_libs/tslibs/offsets.pyi +++ b/pandas/_libs/tslibs/offsets.pyi @@ -14,6 +14,7 @@ import numpy as np from pandas._typing import npt +from .nattype import NaTType from .timedeltas im...
Broken off from branch working on removing .freq from DTA/TDA.
https://api.github.com/repos/pandas-dev/pandas/pulls/49952
2022-11-29T00:40:54Z
2022-11-29T23:27:56Z
null
2022-11-29T23:28:18Z
DEPR: Change numeric_only default to False in remaining groupby methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 42170aaa09978..9abd08004edaa 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -572,7 +572,7 @@ Removal of prior version deprecations/changes - Changed default of ``numeric_only`` to ``False`` in all Da...
- [ ] 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/49951
2022-11-29T00:35:14Z
2022-11-29T18:02:18Z
2022-11-29T18:02:18Z
2022-11-29T22:40:17Z
ASV: Fix asv after versioneer change
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 4a0c882640eb6..b1feb1d0af79c 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -125,6 +125,7 @@ "regression_thresholds": { }, "build_command": - ["python setup.py build -j4", + ["python -m pip install versionee...
- [ ] 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/49948
2022-11-28T23:48:01Z
2022-11-29T03:18:39Z
2022-11-29T03:18:39Z
2023-01-21T01:33:39Z
STYLE make black local hook run twice as fast
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 7a90e1bec7783..540e9481befd6 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -36,6 +36,8 @@ jobs: - name: Run pre-commit uses: pre-commit/action@v2.0.3 + with: + e...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49947
2022-11-28T23:16:05Z
2022-11-29T17:51:16Z
2022-11-29T17:51:16Z
2022-11-29T17:51:26Z
DEPR: enforce not-automatically aligning in DataFrame comparisons
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 496db66c78569..4f84e0a562687 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -106,6 +106,10 @@ def time_frame_op_with_series_axis0(self, opname): def time_frame_op_with_series_axis...
- [ ] 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/49946
2022-11-28T22:52:54Z
2022-12-01T22:06:38Z
2022-12-01T22:06:38Z
2022-12-01T22:06:45Z
STYLE pre-commit autoupdate
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc6875589c691..9a10d48cf3e27 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,11 +28,11 @@ repos: types_or: [python, rst, markdown] additional_dependencies: [tomli] - repo: https://github.com/MarcoGorelli/...
- [ ] 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/49943
2022-11-28T21:32:14Z
2022-11-29T01:34:31Z
2022-11-29T01:34:31Z
2022-11-29T01:34:43Z
PERF: read_html: Reading one HTML file with multiple tables is much slower than loading each table separatly
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e657a98f6358f..baed1750c0f9b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -613,6 +613,7 @@ Performance improvements - Performance improvement in :func:`read_stata` with parameter ``index_col`` set ...
- [x] closes #49929 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/49942
2022-11-28T20:34:33Z
2022-11-29T17:30:36Z
2022-11-29T17:30:36Z
2022-12-13T00:23:20Z
REF: simplify DTI/PI.get_loc
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 5709f94e2ccd5..1b9291a19d32c 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -526,29 +526,35 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed: dt.datetime): "...
- [ ] 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/49941
2022-11-28T18:41:25Z
2022-11-28T22:58:14Z
2022-11-28T22:58:14Z
2022-11-29T00:29:12Z
STYLE #49656: fixed redefined-outer-name linting issue to format.py
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc6875589c691..97a9748de8513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -79,8 +79,6 @@ repos: |^pandas/util/_test_decorators\.py # keep excluded |^pandas/_version\.py # keep excluded ...
Fixed redefined-outer-name issue in: - pandas/io/formats/format.py redefined-outer-name t issues raised for: - justify function (import from pandas.io.formats.printing) - decimal (changed to from decimal import Decimal) - is_dates_only parameter conflict with function name - updated get_format_datetime64 func...
https://api.github.com/repos/pandas-dev/pandas/pulls/49937
2022-11-28T04:28:25Z
2022-11-29T19:06:21Z
2022-11-29T19:06:21Z
2022-11-29T19:06:28Z
BUG: avoid segfault in tz_localize with ZoneInfo
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index 99855b36e8676..afdf6d3d9b001 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -233,6 +233,7 @@ timedelta-like} int64_t shift_delta = 0 ndarray[int64_t] result_a...
- [ ] 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/49936
2022-11-27T22:46:37Z
2022-11-28T18:17:46Z
2022-11-28T18:17:45Z
2022-11-28T18:30:22Z
CI_check_correctness_notebooks
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 66bc7cd917b31..7a90e1bec7783 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -79,6 +79,10 @@ jobs: run: ci/code_checks.sh docstrings if: ${{ steps.build.outcome == 'success' &...
This PR is related to the PR #49874. Creating new PR, that checks correctness notebooks, as was discussed with @MarcoGorelli . - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). CI didn't fail when documentation notebook executed with an err...
https://api.github.com/repos/pandas-dev/pandas/pulls/49935
2022-11-27T22:29:57Z
2022-11-28T17:45:03Z
2022-11-28T17:45:03Z
2022-11-28T17:45:14Z
Bug: Incorrect IntervalIndex.is_overlapping
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d8609737b8c7a..451cba732ff60 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -698,7 +698,7 @@ Strings Interval ^^^^^^^^ -- +- Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interva...
- [x] closes #49581 - [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/49933
2022-11-27T20:58:42Z
2022-12-05T20:07:59Z
2022-12-05T20:07:59Z
2022-12-07T00:17:48Z
BUG: metadata does not always propagate in binary operations
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 97ee96d8be25d..4fb68b1f90288 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -771,7 +771,7 @@ Styler Metadata ^^^^^^^^ - Fixed metadata propagation in :meth:`DataFrame.corr` and :meth:`DataFrame.cov...
- [x] closes #49916 (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/49931
2022-11-27T19:03:02Z
2022-12-30T10:10:58Z
null
2022-12-30T10:10:58Z
CLN: clean core.construction._extract_index
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 8e186b1f4a034..563011abe2c41 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -580,63 +580,59 @@ def _extract_index(data) -> Index: """ Try to infer an Index from t...
Return early in the case of len(data) == 0, thereby avoiding needing a long `else` clause. Also clean type hints. EDIT: The PR looks a bit messy at first sight, but it's mostly just dedenting stuff. Checking "Hide whitespace" makes the PR much clearer, as suggested by @MarcoGorelli in #49921.
https://api.github.com/repos/pandas-dev/pandas/pulls/49930
2022-11-27T18:16:01Z
2022-11-28T08:57:27Z
2022-11-28T08:57:27Z
2022-11-28T09:12:31Z
Backport PR #49908 on branch 1.5.x ( BUG: SeriesGroupBy.apply sets name attribute if result is DataFrame)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index e7428956c50b5..e0bcd81805cc1 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed performance regression in :meth:`Series.isin` when ``values`` is empty (:issue:`49...
Backport PR #49908: BUG: SeriesGroupBy.apply sets name attribute if result is DataFrame
https://api.github.com/repos/pandas-dev/pandas/pulls/49928
2022-11-27T16:05:53Z
2022-11-27T19:05:23Z
2022-11-27T19:05:23Z
2022-11-27T19:05:24Z
BUG: IntervalIndex.overlapping with duplicate left boundaries
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 97ee96d8be25d..a3448b7eb53a8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -672,7 +672,7 @@ Strings Interval ^^^^^^^^ -- +- Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interva...
- [x] closes #49581 - [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/49927
2022-11-27T09:03:19Z
2022-11-27T20:55:39Z
null
2022-11-27T20:55:39Z
TST: added test for pd.where overflow error GH31687
diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py index 501822f856a63..2a283f719ec0d 100644 --- a/pandas/tests/frame/indexing/test_where.py +++ b/pandas/tests/frame/indexing/test_where.py @@ -1017,3 +1017,15 @@ def test_where_producing_ea_cond_for_np_dtype(): {"...
Added a test for pd.where to /indexing/test_where.py - [x] closes #31687 - [x] tests added / passed - [x] passes all pre-commit code checks - [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. - [ ] Added ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49926
2022-11-27T06:46:26Z
2022-11-28T09:08:18Z
2022-11-28T09:08:18Z
2022-11-29T01:14:06Z
BLD: use nonvendor versioneer
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index cf8a0fe0da91c..806742c99abac 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -38,7 +38,8 @@ jobs: /opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \ ...
This PR: 1. move versioneer config to pyproject.toml 2. use nonvendored version of versioneer After this, we could enable PEP 517.
https://api.github.com/repos/pandas-dev/pandas/pulls/49924
2022-11-27T01:11:21Z
2022-11-28T20:14:11Z
2022-11-28T20:14:11Z
2023-04-03T23:20:05Z
CLN: move codespell config to pyproject.toml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b74dd057e865..cc6875589c691 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: hooks: - id: codespell types_or: [python, rst, markdown] + additional_dependencies: [tomli] - repo:...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/49923
2022-11-27T00:37:03Z
2022-11-27T08:45:49Z
2022-11-27T08:45:49Z
2022-11-27T08:45:50Z
API: ensure read_json closes file handle
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index f1ee96ddc3c16..dd46cd533bb80 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -349,6 +349,7 @@ Other API changes - :func:`read_stata` with parameter ``index_col`` set to ``None`` (the default) will now...
Use context manager instead of closing manually with `self.close` to ensure file always closes. Not sure if this should have a whatsnew entry and where.
https://api.github.com/repos/pandas-dev/pandas/pulls/49921
2022-11-26T23:40:51Z
2022-12-02T00:31:10Z
2022-12-02T00:31:10Z
2022-12-05T09:27:37Z
Json fix normalize
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 97ee96d8be25d..e657a98f6358f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -717,6 +717,7 @@ I/O - Bug in :func:`read_csv` for a single-line csv with fewer columns than ``names`` raised :class:`.erro...
closes #49861
https://api.github.com/repos/pandas-dev/pandas/pulls/49920
2022-11-26T20:01:42Z
2022-11-28T20:04:06Z
2022-11-28T20:04:06Z
2023-01-03T18:19:16Z