title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
ENH: Raise when subsetting columns on groupby with axis=1
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e488ca52be8a0..b1e43485cc44e 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -233,6 +233,7 @@ Other enhancements - :func:`read_csv` supports memory-mapping for compressed files (:issue:`37621`) - Imp...
- [x] closes #37725 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37727
2020-11-09T22:29:32Z
2020-11-11T02:36:21Z
2020-11-11T02:36:21Z
2020-12-06T14:04:54Z
TST: Add test for filling new rows through reindexing MultiIndex
diff --git a/pandas/tests/frame/methods/test_reindex.py b/pandas/tests/frame/methods/test_reindex.py index bc3750a196c5f..113a80f1c5c4e 100644 --- a/pandas/tests/frame/methods/test_reindex.py +++ b/pandas/tests/frame/methods/test_reindex.py @@ -864,3 +864,13 @@ def test_reindex_signature(self): "fill_value...
- [x] closes #23693 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Issue was fixed previously
https://api.github.com/repos/pandas-dev/pandas/pulls/37726
2020-11-09T22:29:15Z
2020-11-13T05:11:10Z
2020-11-13T05:11:10Z
2020-11-13T13:16:08Z
REF: remove Categorical._validate_listlike, unbox_listlike
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 87a049c77dc32..9f011bc9d2651 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1680,26 +1680,6 @@ def _box_func(self, i: int): return np.NaN return self.categories[i] ...
Getting closer to having these standardized.
https://api.github.com/repos/pandas-dev/pandas/pulls/37724
2020-11-09T21:14:28Z
2020-11-10T03:36:13Z
2020-11-10T03:36:13Z
2020-11-10T03:43:13Z
REF: collect boilerplate in _datetimelike_compat
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index cfb02e5b1e987..d9e51810f1445 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -367,6 +367,32 @@ def _wrap_results(result, dtype: np.dtype, fill_value=None): return result +def _datetimelike_compat(func): + """ + If we have ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37723
2020-11-09T21:02:07Z
2020-11-10T03:21:39Z
2020-11-10T03:21:39Z
2020-11-10T19:30:14Z
BUG: loc.__getitem__[[na_value]] with CategoricalIndex containing NAs
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e488ca52be8a0..77d55de5d3170 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -469,6 +469,7 @@ Indexing - Bug in :meth:`Index.where` incorrectly casting numeric values to strings (:issue:`37591`) - Bu...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37722
2020-11-09T20:41:42Z
2020-11-13T05:11:47Z
2020-11-13T05:11:47Z
2020-11-13T05:16:23Z
CLN: clean categorical indexes tests
diff --git a/pandas/tests/indexing/test_categorical.py b/pandas/tests/indexing/test_categorical.py index 9885765bf53e4..20d7662855ab3 100644 --- a/pandas/tests/indexing/test_categorical.py +++ b/pandas/tests/indexing/test_categorical.py @@ -59,10 +59,6 @@ def test_loc_scalar(self): with pytest.raises(TypeError...
Found this while searching for other tests. Deleted code fragement was probably for ix previously.
https://api.github.com/repos/pandas-dev/pandas/pulls/37721
2020-11-09T20:05:19Z
2020-11-09T22:16:02Z
2020-11-09T22:16:02Z
2020-11-09T22:16:17Z
TST: Add test for missing fillvalue in categorical dtype
diff --git a/pandas/tests/indexes/categorical/test_reindex.py b/pandas/tests/indexes/categorical/test_reindex.py index f59ddc42ce4e4..189582ea635d2 100644 --- a/pandas/tests/indexes/categorical/test_reindex.py +++ b/pandas/tests/indexes/categorical/test_reindex.py @@ -1,6 +1,7 @@ import numpy as np +import pytest -f...
- [x] closes #18185 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` cc @jreback Could not find a test for something similar with reindex.
https://api.github.com/repos/pandas-dev/pandas/pulls/37720
2020-11-09T19:48:40Z
2020-11-09T21:24:32Z
2020-11-09T21:24:31Z
2020-11-09T21:36:10Z
TST: Add test for KeyError with MultiIndex
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index 5a9da262dc54d..646520a9ac54f 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -614,3 +614,12 @@ def test_loc_with_nan(): result = df.loc["a"]...
- [x] closes #25236 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` cc @jreback Added a test
https://api.github.com/repos/pandas-dev/pandas/pulls/37719
2020-11-09T19:32:07Z
2020-11-10T03:20:06Z
2020-11-10T03:20:06Z
2020-11-10T07:33:45Z
TST: improve readability using dedent in test_to_string.py
diff --git a/pandas/tests/io/formats/test_to_string.py b/pandas/tests/io/formats/test_to_string.py index a1ed1ba2e8bf5..5d7b4b417006a 100644 --- a/pandas/tests/io/formats/test_to_string.py +++ b/pandas/tests/io/formats/test_to_string.py @@ -1,5 +1,6 @@ from datetime import datetime from io import StringIO +from textw...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Improve readability of expected outputs using dedent in ``pandas/tests/io/formats/test_to_string.py``
https://api.github.com/repos/pandas-dev/pandas/pulls/37718
2020-11-09T14:21:22Z
2020-11-09T18:57:10Z
2020-11-09T18:57:09Z
2020-11-10T04:43:51Z
TST: move and reformat latex_na_rep test
diff --git a/pandas/tests/io/formats/test_to_latex.py b/pandas/tests/io/formats/test_to_latex.py index 7cf7ed3f77609..81e8e0bd2b526 100644 --- a/pandas/tests/io/formats/test_to_latex.py +++ b/pandas/tests/io/formats/test_to_latex.py @@ -972,6 +972,30 @@ def test_to_latex_float_format_no_fixed_width_integer(self): ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Move test to a more suitable location (``class TestToLatexFormatters``) and reformat using ``_dedent`` and raw string for better readability.
https://api.github.com/repos/pandas-dev/pandas/pulls/37717
2020-11-09T14:07:30Z
2020-11-09T18:56:08Z
2020-11-09T18:56:08Z
2020-11-10T04:44:18Z
CLN: cleanup, deduplicate plotting/test_frame
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index 2c635856cd255..11a46858ba281 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -2047,7 +2047,6 @@ def test_no_legend(self): df = DataFrame(np.random.rand(3, 3), columns=["a",...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry 1. Make more reasonable var names 2. Get rid of one test in favor of parametrization in another one
https://api.github.com/repos/pandas-dev/pandas/pulls/37714
2020-11-09T12:23:17Z
2020-11-09T18:57:51Z
2020-11-09T18:57:51Z
2020-11-10T04:44:38Z
Backport PR #37657 on branch 1.1.x: BUG: unpickling modifies Block.ndim
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index a122154904996..e0fa68e3b9f80 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -24,6 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in metadata propagation for ``groupby`` iterator (:issue:`3734...
Backport PR #37657
https://api.github.com/repos/pandas-dev/pandas/pulls/37713
2020-11-09T11:19:25Z
2020-11-09T12:49:09Z
2020-11-09T12:49:09Z
2020-11-09T12:49:28Z
REF: remove ObjectBlock._replace_single
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index fd23b89365496..ed77a210b6913 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -813,17 +813,50 @@ def replace( ) return blocks - def _replace_single( + def _replace_regex( ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37710
2020-11-09T04:07:19Z
2020-11-09T12:52:49Z
2020-11-09T12:52:49Z
2020-11-09T15:53:13Z
Bug in loc raised Error when non-integer slice was given for MultiIndex
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 08c528fb484c8..48561b50f66ae 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -620,6 +620,7 @@ Indexing - Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :class:`CategoricalIndex` usi...
- [x] closes #25165 - [x] closes #24263 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry A slice return caused issues everywhere, when this function was used. So I unpacked it right in there.
https://api.github.com/repos/pandas-dev/pandas/pulls/37707
2020-11-09T01:05:41Z
2020-11-24T21:59:58Z
2020-11-24T21:59:57Z
2020-11-24T22:01:54Z
BUG: Fix return of missing values when applying loc to single level of MultiIndex
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index d4d28dde52d58..ea995a4327ee8 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -467,6 +467,7 @@ Indexing - Bug in :meth:`Series.__getitem__` when using an unsigned integer array as an indexer giving inc...
- [x] closes #27104 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This confused ``-1`` representing missing values in input with the ``-1`` signaling which components to exclude from output.
https://api.github.com/repos/pandas-dev/pandas/pulls/37706
2020-11-08T22:31:11Z
2020-11-09T20:27:35Z
2020-11-09T20:27:35Z
2020-11-09T20:29:14Z
REF: simplify NDFrame.replace, ObjectBlock.replace
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bea650c1b50fd..02fa7308e7ee8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6744,25 +6744,25 @@ def replace( else: raise TypeError("value argument must be scalar, dict, or Series") - ...
This makes it so that we only call BlockManager.replace from one spot, so we can rule out more cases when reasoning about the arguments in ObjectBlock.replace. This will have a merge conflict with #37696; doesnt matter which one goes in first. One both are in, there are further simplifications available. I'm hop...
https://api.github.com/repos/pandas-dev/pandas/pulls/37704
2020-11-08T18:16:28Z
2020-11-09T00:37:00Z
2020-11-09T00:37:00Z
2020-11-09T00:39:32Z
remove unnecessary use of Appender
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 02fa7308e7ee8..32dad8f9e3801 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10724,6 +10724,7 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): cls.all = all @doc( + NDFrame....
- [x] ref #31942 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] removes the last use of Appender() in NDFrame
https://api.github.com/repos/pandas-dev/pandas/pulls/37703
2020-11-08T15:44:52Z
2020-11-11T20:30:48Z
2020-11-11T20:30:48Z
2020-11-11T20:31:02Z
CLN: Simplify groupby head/tail tests
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index df1d7819a1894..10394ea997775 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -487,53 +487,30 @@ def test_nth_multi_index_as_expected(): tm.assert_frame_equal(result, expected) -def tes...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Going to add axis=1 tests as part of resolution of #9772, simplifying test first.
https://api.github.com/repos/pandas-dev/pandas/pulls/37702
2020-11-08T15:08:24Z
2020-11-09T00:39:05Z
2020-11-09T00:39:05Z
2020-12-06T14:04:53Z
DOC: Highlight pre-commit section
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 5aa1c1099d6e0..9477a9ac79dd6 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -12,8 +12,9 @@ pandas code style guide pandas follows the `PEP8 <https://www.python.org/dev/pep...
- [x] closes #37358 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/37701
2020-11-08T12:36:07Z
2020-11-10T09:42:08Z
2020-11-10T09:42:07Z
2020-11-10T09:43:17Z
DOC: Add caveat to to_stata with version=119
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfb633ae55095..76ae900d26a68 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2131,6 +2131,11 @@ def to_stata( support Unicode characters, and version 119 supports more than 32,767 variables. + Version ...
- [x] closes #37490 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/37700
2020-11-08T11:20:49Z
2020-11-10T03:38:45Z
2020-11-10T03:38:45Z
2020-11-10T04:08:07Z
DOC: capitalize Gregorian and fix word order
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index b817d80c64ccd..d83138528a6f9 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2316,7 +2316,7 @@ class Period(_Period): freq : str, default None One of pandas period strings or correspondi...
Gregorian is a proper noun (https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). Also, "proleptic" is modifying the compound noun "Gregorian epoch" rather than "Gregorian" modifying a "proleptic epoch". - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff ups...
https://api.github.com/repos/pandas-dev/pandas/pulls/37697
2020-11-08T05:28:39Z
2020-11-09T21:10:46Z
2020-11-09T21:10:46Z
2020-11-10T02:03:22Z
REF: implement replace_regex, remove unreachable branch in ObjectBlock.replace
diff --git a/pandas/core/array_algos/replace.py b/pandas/core/array_algos/replace.py index 9eaa265adab2b..76d723beac7e6 100644 --- a/pandas/core/array_algos/replace.py +++ b/pandas/core/array_algos/replace.py @@ -3,7 +3,7 @@ """ import operator import re -from typing import Pattern, Union +from typing import Optiona...
https://api.github.com/repos/pandas-dev/pandas/pulls/37696
2020-11-08T04:12:17Z
2020-11-09T03:30:12Z
2020-11-09T03:30:12Z
2020-11-09T03:32:20Z
TYP: @final for NDFrame methods
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8470ef7ba5efb..255c45d5a45aa 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -49,6 +49,7 @@ TimedeltaConvertibleTypes, TimestampConvertibleTypes, ValueKeyFunc, + final, ) from pandas.compat._optional import import...
attempt 2
https://api.github.com/repos/pandas-dev/pandas/pulls/37694
2020-11-08T02:52:02Z
2020-11-10T23:16:46Z
2020-11-10T23:16:46Z
2020-11-10T23:28:45Z
REF: make Series._replace_single a regular method
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 36ce2c4776bd0..bea650c1b50fd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -137,36 +137,6 @@ ) -def _single_replace(self: "Series", to_replace, method, inplace, limit): - """ - Replaces values in a Series using the fill ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37691
2020-11-07T23:44:47Z
2020-11-08T02:10:13Z
2020-11-08T02:10:13Z
2020-11-08T02:41:15Z
DOC: add examples to insert and update generally
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f710660d6ad8e..2f5736be8f604 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3752,6 +3752,28 @@ def insert(self, loc, column, value, allow_duplicates=False) -> None: Label of the inserted column. value : int, Series, o...
This commit mainly adds examples on usage. This commit also fills in information suggested by `validate_docstrings.py` script. Ran ``` python scripts/validate_docstrings.py pandas.DataFrame.insert ``` to check docs and added in suggested information (e.g., See Also section). - [ ] closes #xxxx - [ ] tes...
https://api.github.com/repos/pandas-dev/pandas/pulls/37690
2020-11-07T23:10:53Z
2020-12-08T18:32:45Z
2020-12-08T18:32:45Z
2020-12-08T18:45:16Z
CLN: Clean indexing tests
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index 6c80354610a78..5bb7258329653 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -615,7 +615,6 @@ def test_iloc_mask(self): # UserWarnings from reindex of a boolean mask w...
- [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Found a few unuesed statements
https://api.github.com/repos/pandas-dev/pandas/pulls/37689
2020-11-07T23:01:09Z
2020-11-08T02:59:32Z
2020-11-08T02:59:31Z
2020-11-08T12:07:04Z
TYP: make some internal funcs keyword-only
diff --git a/pandas/core/array_algos/masked_reductions.py b/pandas/core/array_algos/masked_reductions.py index 3f4625e2b712a..bce6f1aafb2c5 100644 --- a/pandas/core/array_algos/masked_reductions.py +++ b/pandas/core/array_algos/masked_reductions.py @@ -17,6 +17,7 @@ def _sumprod( func: Callable, values: np.nd...
https://api.github.com/repos/pandas-dev/pandas/pulls/37688
2020-11-07T22:54:51Z
2020-11-08T02:04:59Z
2020-11-08T02:04:59Z
2020-11-08T02:40:21Z
pd.Series.loc.__getitem__ promotes to float64 instead of raising KeyError
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 3b0fae537a6e5..0faa784634fd2 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -1512,6 +1512,16 @@ def test_series_loc_getitem_label_list_missing_values(): s.loc[key] +def test_s...
- [x] closes #25927 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` cc @jreback Added a test. The test above was the only one explicitly added for the ``KeyError``
https://api.github.com/repos/pandas-dev/pandas/pulls/37687
2020-11-07T22:34:01Z
2020-11-07T23:47:12Z
2020-11-07T23:47:12Z
2020-11-07T23:50:43Z
CLN: _replace_single
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 1f34e91d71077..8e01aaa396265 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -726,7 +726,6 @@ def replace( value, inplace: bool = False, regex: bool = False, - con...
Confirmed that the `regex` kwarg is always bool, which lets us remove some gymnastics (L2570-L2586). Then removed always-True `convert` kwarg.
https://api.github.com/repos/pandas-dev/pandas/pulls/37683
2020-11-07T04:52:12Z
2020-11-08T01:47:27Z
2020-11-08T01:47:27Z
2020-11-08T02:08:02Z
REF/TST: share some api tests
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 25d3fab76ca36..157c8687808b3 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -263,12 +263,16 @@ def _check_f(base, f): @async_mark() @td.check_file_leaks - async def test_tab_complete_wa...
https://api.github.com/repos/pandas-dev/pandas/pulls/37679
2020-11-07T00:27:48Z
2020-11-07T01:30:19Z
2020-11-07T01:30:19Z
2020-11-07T01:31:41Z
TST/REF: misplaced Categorical tests
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index 45e0d503f30e7..5b0004a395334 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -59,30 +59,6 @@ def test_isin_cats(): tm.assert_numpy_array...
https://api.github.com/repos/pandas-dev/pandas/pulls/37678
2020-11-07T00:00:46Z
2020-11-08T00:02:16Z
2020-11-08T00:02:16Z
2020-11-08T00:14:17Z
REF/TST: collect indexing tests by method
diff --git a/pandas/tests/frame/indexing/test_categorical.py b/pandas/tests/frame/indexing/test_categorical.py index d3c907f4ce30f..6137cadc93125 100644 --- a/pandas/tests/frame/indexing/test_categorical.py +++ b/pandas/tests/frame/indexing/test_categorical.py @@ -352,7 +352,7 @@ def test_assigning_ops(self): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37677
2020-11-06T23:51:28Z
2020-11-08T00:07:13Z
2020-11-08T00:07:13Z
2020-11-08T00:58:43Z
BUG: setitem with boolean mask and series as value is broken for Series with EA type
diff --git a/pandas/conftest.py b/pandas/conftest.py index b2daa2c5bc3f7..77e9af67590a6 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1143,6 +1143,26 @@ def any_nullable_int_dtype(request): return request.param +@pytest.fixture(params=tm.ALL_EA_INT_DTYPES + tm.FLOAT_EA_DTYPES) +def any_numeric_d...
- [x] closes #26468 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Was fixed already, added a test
https://api.github.com/repos/pandas-dev/pandas/pulls/37676
2020-11-06T22:51:37Z
2020-11-17T01:21:38Z
2020-11-17T01:21:37Z
2020-11-17T08:35:51Z
Bug in loc raised for numeric label even when label is in Index
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 9ac3585aa9002..a8f9c4d8fb2d9 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -464,6 +464,7 @@ Indexing - Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :class:`MultiIndex` with a le...
- [x] closes #26491 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Additionally checking for the label inside values, this fixes the problem.
https://api.github.com/repos/pandas-dev/pandas/pulls/37675
2020-11-06T22:15:45Z
2020-11-09T02:52:07Z
2020-11-09T02:52:06Z
2023-04-27T19:52:13Z
CLN: only call _wrap_results one place in nanmedian
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 8e917bb770247..5da8bd300433e 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -681,26 +681,26 @@ def get_median(x): # there's a non-empty array to apply over otherwise numpy raises if notempty: if not skipna...
https://api.github.com/repos/pandas-dev/pandas/pulls/37673
2020-11-06T21:17:40Z
2020-11-08T00:20:34Z
2020-11-08T00:20:34Z
2020-11-08T01:03:19Z
BUG: Fix bug in loc setitem changing the dtype when condition is False
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c3cf64c84510e..eb3fcfd74819d 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -697,6 +697,7 @@ Indexing - Bug in :meth:`DataFrame.loc.__getitem__` incorrectly raising ``KeyError`` when selecting a sing...
- [x] closes #37550 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This fixes the bug, but I am not sure, if the solution is good enough....
https://api.github.com/repos/pandas-dev/pandas/pulls/37672
2020-11-06T20:49:53Z
2021-12-13T16:53:42Z
2021-12-13T16:53:41Z
2023-04-27T19:52:27Z
TYP: Index._concat
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f350e18198057..545d1d834fe2d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4297,13 +4297,13 @@ def append(self, other): return self._concat(to_concat, name) - def _concat(self, to_concat, name):...
https://api.github.com/repos/pandas-dev/pandas/pulls/37671
2020-11-06T18:15:31Z
2020-11-08T00:31:20Z
2020-11-08T00:31:20Z
2020-11-08T00:54:08Z
TST: fix warning for pie chart
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index e6a61d35365a3..48a923e85eed7 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -2650,11 +2650,20 @@ def test_pie_df(self): self._check_colors(ax.patches, facecolors=color...
- [ ] closes #37668 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix MatplotlibDeprecationWarning for pie chart by specifically passing ``normalize=True``.
https://api.github.com/repos/pandas-dev/pandas/pulls/37669
2020-11-06T16:13:48Z
2020-11-08T03:00:21Z
2020-11-08T03:00:20Z
2020-11-09T11:33:52Z
BUG: CategoricalIndex.equals casting non-categories to np.nan
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 690e6b8f725ad..73493bbeb0eac 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -380,7 +380,7 @@ Categorical ^^^^^^^^^^^ - :meth:`Categorical.fillna` will always return a copy, will validate a passed fi...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37667
2020-11-06T16:04:19Z
2020-11-08T00:34:52Z
2020-11-08T00:34:52Z
2020-11-08T01:05:39Z
TST: match matplotlib warning message
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index e6a61d35365a3..c9d1d84e0b7cf 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -2739,11 +2739,11 @@ def test_errorbar_plot_different_kinds(self, kind): ax = _check_plot_works...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Follow up on #36982. Since, currently ``assert_produces_warning`` now allows matching warning message, instead of the comment we will match the mes...
https://api.github.com/repos/pandas-dev/pandas/pulls/37666
2020-11-06T15:47:11Z
2020-11-07T14:43:52Z
2020-11-07T14:43:52Z
2020-11-09T11:34:18Z
REF: simplify cycling through colors
diff --git a/pandas/plotting/_matplotlib/style.py b/pandas/plotting/_matplotlib/style.py index b2c7b2610845c..cc2dde0f2179a 100644 --- a/pandas/plotting/_matplotlib/style.py +++ b/pandas/plotting/_matplotlib/style.py @@ -1,3 +1,4 @@ +import itertools from typing import ( TYPE_CHECKING, Collection, @@ -74,7 +...
- [ ] closes #37604 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I tried to address #37604, but it turns out that on some occasions it is absolutely mandatory to return more colors than ``num_colors`` says. In pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/37664
2020-11-06T13:23:06Z
2020-11-08T02:11:13Z
2020-11-08T02:11:12Z
2020-11-09T11:33:41Z
Move inconsistent namespace check to pre-commit, fixup more files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c1e4e330c903..f9b396715664a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -119,6 +119,12 @@ repos: entry: python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module" types:...
xref https://github.com/pandas-dev/pandas/pull/37401#discussion_r515312381
https://api.github.com/repos/pandas-dev/pandas/pulls/37662
2020-11-06T08:10:27Z
2020-11-08T21:24:34Z
2020-11-08T21:24:34Z
2020-11-08T21:43:01Z
BUG: RollingGroupby when groupby key is in the index
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index e0fa68e3b9f80..a29ae1912e338 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -25,6 +25,7 @@ Bug fixes ~~~~~~~~~ - Bug in metadata propagation for ``groupby`` iterator (:issue:`37343`) - Bug in index...
- [x] closes #37641 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37661
2020-11-06T07:07:49Z
2020-11-09T18:56:37Z
2020-11-09T18:56:37Z
2020-11-10T13:40:23Z
REF: implement _wrap_reduction_result
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 63c414d96c8de..c1b5897164d76 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -1,4 +1,4 @@ -from typing import Any, Sequence, TypeVar +from typing import Any, Optional, Sequence, TypeVar import numpy as ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37660
2020-11-06T03:45:04Z
2020-11-08T02:14:32Z
2020-11-08T02:14:32Z
2020-11-08T02:38:59Z
CI: catch windows py38 OSError
diff --git a/pandas/_libs/tslibs/tzconversion.pxd b/pandas/_libs/tslibs/tzconversion.pxd index 1990afd77a8fb..3666d00707ac8 100644 --- a/pandas/_libs/tslibs/tzconversion.pxd +++ b/pandas/_libs/tslibs/tzconversion.pxd @@ -2,7 +2,9 @@ from cpython.datetime cimport tzinfo from numpy cimport int64_t -cdef int64_t tz_c...
Still seeing these following #37652, so catching again one level higher.
https://api.github.com/repos/pandas-dev/pandas/pulls/37659
2020-11-06T02:50:11Z
2020-11-07T01:24:28Z
2020-11-07T01:24:28Z
2020-11-07T01:30:23Z
REF: dont support dt64tz in nanmean
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 6dc05c23c026f..cfb02e5b1e987 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -8,7 +8,7 @@ from pandas._config import get_option -from pandas._libs import NaT, Timedelta, Timestamp, iNaT, lib +from pandas._libs import NaT, Timedelta,...
nanmean is annotated as taking a ndarray, no reason for it to support dt64tz
https://api.github.com/repos/pandas-dev/pandas/pulls/37658
2020-11-06T01:36:47Z
2020-11-09T00:38:23Z
2020-11-09T00:38:23Z
2020-11-09T00:44:40Z
BUG: unpickling modifies Block.ndim
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index a122154904996..e0fa68e3b9f80 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -24,6 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in metadata propagation for ``groupby`` iterator (:issue:`3734...
- [x] closes #37631 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37657
2020-11-06T00:38:38Z
2020-11-09T00:38:09Z
2020-11-09T00:38:08Z
2020-11-09T11:20:22Z
TST: split up tests/plotting/test_frame.py into subdir & modules #34769
diff --git a/pandas/tests/plotting/frame/__init__.py b/pandas/tests/plotting/frame/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/frame/test_frame.py similarity index 61% rename from pandas/tests/plotting/test_frame.py rename ...
Created instead of #37538 - [x] closes #34769 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I moved the file to a new directory. What is the best structure for this folder? [before_test_ploting_frame](https:...
https://api.github.com/repos/pandas-dev/pandas/pulls/37655
2020-11-05T21:29:47Z
2020-11-13T02:51:08Z
2020-11-13T02:51:08Z
2020-11-13T05:52:50Z
BUG: don't suppress OSError in tzlocal
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index 4c62b16d430bd..4a3fac1954ab7 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -500,9 +500,11 @@ cdef int64_t[:] _tz_convert_from_utc(const int64_t[:] vals, tzinfo tz): retur...
Seeing a bunch of suppressed exceptions in the py38 windows tests. Hopefully this will cause them to surface correctly.
https://api.github.com/repos/pandas-dev/pandas/pulls/37652
2020-11-05T16:06:59Z
2020-11-06T00:09:03Z
2020-11-06T00:09:03Z
2020-11-06T00:11:38Z
REF: implement Categorical.encode_with_my_categories
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 3e2da3e95f396..87a049c77dc32 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1693,9 +1693,8 @@ def _validate_listlike(self, target: ArrayLike) -> np.ndarray: # Indexing on cod...
Categorical._validate_listlike is misleading, since it treats not-in-categories entries as NAs, whereas we usually want to raise when we see those. This implements the more obviously-named encode_with_my_categories
https://api.github.com/repos/pandas-dev/pandas/pulls/37650
2020-11-05T15:18:13Z
2020-11-09T00:37:38Z
2020-11-09T00:37:38Z
2020-11-09T00:54:30Z
BUG: Series.to_dict does not return native Python types
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index bf67ff6525005..982cfaeecf6f0 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -324,6 +324,7 @@ Numeric Conversion ^^^^^^^^^^ +- Bug in :meth:`Series.to_dict` with ``orient='records'`` now returns py...
- [x] xref #25969 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This resolves the issue of return types from `to_dict`. #25969 also discusses return types from `.items()`, which relates to an outstanding NumPy issu...
https://api.github.com/repos/pandas-dev/pandas/pulls/37648
2020-11-05T15:01:59Z
2021-02-19T01:12:56Z
2021-02-19T01:12:56Z
2023-01-27T15:38:09Z
BUG: preserve fold in Timestamp.replace
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 690e6b8f725ad..57064bd348aa5 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -412,7 +412,7 @@ Timezones ^^^^^^^^^ - Bug in :func:`date_range` was raising AmbiguousTimeError for valid input with ``a...
- [X] closes #37610 - [X] 1 tests added / 1 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ## Problem We currently lose `fold` information (whether the Timestamp corresponds to the first or second instance of wall clock time in a DST ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37644
2020-11-05T09:54:34Z
2020-11-08T02:22:48Z
2020-11-08T02:22:48Z
2020-11-09T13:10:19Z
REF: de-duplicate _validate_insert_value with _validate_scalar
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 67ac2a3688214..63c414d96c8de 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -45,7 +45,7 @@ def _box_func(self, x): """ return x - def _validate_insert_value(self, value): + def _...
There is only one place where `_validate_insert_value` isnt identical to `_validate_scalar`, and that is in `DatetimeLikeArrayMixin._validate_scalar`, which ATM does not unbox (which all the other `_validate_scalar` methods do). This updates `_validate_scalar` to unbox. If we stopped there, `TimedeltaIndex.get_loc`...
https://api.github.com/repos/pandas-dev/pandas/pulls/37640
2020-11-05T03:19:43Z
2020-11-06T00:31:07Z
2020-11-06T00:31:07Z
2020-11-06T00:39:03Z
REF: move get_filepath_buffer into get_handle
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 1c271e74aafba..1bd35131622ab 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1024,9 +1024,10 @@ Writing CSVs to binary file objects .. versionadded:: 1.2.0 -``df.to_csv(..., mode="w+b")`` allows writing ...
- [x] closes #33987 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR makes `get_filepath_buffer` a private function and is called inside `get_handle` - one function to rule all of IO ;) This PR will make it easier for future PRs...
https://api.github.com/repos/pandas-dev/pandas/pulls/37639
2020-11-05T03:10:46Z
2020-11-13T13:39:29Z
2020-11-13T13:39:29Z
2020-12-11T04:34:31Z
TST/REF: collect indexing tests by method
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 9eaa0d0ae6876..4214ac14cba49 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -66,21 +66,6 @@ def test_getitem_dupe_cols(self): with pyte...
https://api.github.com/repos/pandas-dev/pandas/pulls/37638
2020-11-05T02:54:40Z
2020-11-06T00:26:14Z
2020-11-06T00:26:14Z
2020-11-06T00:27:00Z
DOC: test organization
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst index f8a6bb6deb52d..e842c827b417f 100644 --- a/doc/source/development/index.rst +++ b/doc/source/development/index.rst @@ -16,6 +16,7 @@ Development code_style maintaining internals + test_writing extending dev...
Documenting the MO behind the test organization we've been doing. 1) I expect this is not valid rst ATM 2) The style does not match the rest of the docs, so probably needs a re-write.
https://api.github.com/repos/pandas-dev/pandas/pulls/37637
2020-11-04T23:49:27Z
2020-11-11T00:19:19Z
2020-11-11T00:19:19Z
2020-11-11T15:35:04Z
DOC: Fix typo
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3ec575a849abe..7cdb37a76d563 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6448,7 +6448,7 @@ def update( See Also -------- dict.update : Similar method for dictionaries. - DataFrame.merge : For column(s)-...
"columns(s)" sounded odd, I believe it was supposed to be just "column(s)".
https://api.github.com/repos/pandas-dev/pandas/pulls/37636
2020-11-04T20:41:02Z
2020-11-05T12:35:47Z
2020-11-05T12:35:47Z
2020-11-05T14:00:30Z
TST/REF: collect tests for get_numeric_data
diff --git a/pandas/tests/frame/methods/test_get_numeric_data.py b/pandas/tests/frame/methods/test_get_numeric_data.py new file mode 100644 index 0000000000000..d73dbdf045be3 --- /dev/null +++ b/pandas/tests/frame/methods/test_get_numeric_data.py @@ -0,0 +1,96 @@ +import numpy as np + +from pandas import Categorical, D...
https://api.github.com/repos/pandas-dev/pandas/pulls/37634
2020-11-04T18:32:46Z
2020-11-06T00:26:51Z
2020-11-06T00:26:51Z
2020-11-06T00:27:33Z
Added dataclass into dataframe API reference
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a3130ec27713d..cd22cf35eff02 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -360,7 +360,7 @@ class DataFrame(NDFrame, OpsMixin): Parameters ---------- data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame -...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added dataclass constructor for dataframe into the Pandas in pandas/init.py line 363 and 426.
https://api.github.com/repos/pandas-dev/pandas/pulls/37632
2020-11-04T15:53:54Z
2020-11-04T17:26:23Z
2020-11-04T17:26:23Z
2020-11-04T17:34:04Z
DOC: Fix typo
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 38e36c8ff8d01..c9940c78b8d7d 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -91,7 +91,7 @@ index. If a dict or Series is passed, the Series or dict VALUES will be used to determine the groups (the Series' v...
I'm not entirely sure about this one, but "If an ndarray is passed, the values are used as-is determine the groups." does sound odd to me, so I do believe it was missing the "to".
https://api.github.com/repos/pandas-dev/pandas/pulls/37630
2020-11-04T14:39:25Z
2020-11-04T16:53:39Z
2020-11-04T16:53:39Z
2020-11-04T16:58:27Z
Backport PR #37461 on branch 1.1.x: BUG: Metadata propagation for groupby iterator
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index cf728d94b2a55..a122154904996 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -23,7 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in metadata propagation for ``groupby`` iterator (:issue:...
Backport PR #37461
https://api.github.com/repos/pandas-dev/pandas/pulls/37628
2020-11-04T14:18:37Z
2020-11-04T15:54:21Z
2020-11-04T15:54:21Z
2020-11-04T15:54:30Z
TST: 32bit dtype compat test_groupby_dropna
diff --git a/pandas/tests/groupby/test_groupby_dropna.py b/pandas/tests/groupby/test_groupby_dropna.py index 02ce4dcf2ae2b..e38fa5e8de87e 100644 --- a/pandas/tests/groupby/test_groupby_dropna.py +++ b/pandas/tests/groupby/test_groupby_dropna.py @@ -343,7 +343,7 @@ def test_groupby_nan_included(): df = pd.DataFrame...
Part of #36579 Related to ``test_groupby_nan_included``.
https://api.github.com/repos/pandas-dev/pandas/pulls/37623
2020-11-04T07:07:07Z
2020-11-04T11:04:33Z
2020-11-04T11:04:33Z
2020-11-06T15:38:24Z
ENH: memory_map for compressed files
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 9ac3585aa9002..a38d7bc5e02e5 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -230,6 +230,7 @@ Other enhancements - :class:`DatetimeIndex` and :class:`Series` with ``datetime64`` or ``datetime64tz`` dt...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Apply memory mapping first and then compression. The existing order didn't work. This adds support for memory mapping in `read_csv` when compression is specified (pyt...
https://api.github.com/repos/pandas-dev/pandas/pulls/37621
2020-11-04T04:43:10Z
2020-11-05T00:40:04Z
2020-11-05T00:40:04Z
2020-11-05T00:47:18Z
TST/REF: parametrize set_axis tests
diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py index 3cd35e900ee06..4bd1d5fa56468 100644 --- a/pandas/tests/frame/test_alter_axes.py +++ b/pandas/tests/frame/test_alter_axes.py @@ -1,7 +1,6 @@ from datetime import datetime import numpy as np -import pytest from pandas....
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37619
2020-11-04T00:30:58Z
2020-11-04T02:05:28Z
2020-11-04T02:05:28Z
2020-11-04T04:02:09Z
TST/REF: tests.generic
diff --git a/pandas/tests/frame/methods/test_equals.py b/pandas/tests/frame/methods/test_equals.py index c024390297fec..de2509ed91be2 100644 --- a/pandas/tests/frame/methods/test_equals.py +++ b/pandas/tests/frame/methods/test_equals.py @@ -1,4 +1,6 @@ -from pandas import DataFrame +import numpy as np + +from pandas im...
https://api.github.com/repos/pandas-dev/pandas/pulls/37618
2020-11-04T00:09:51Z
2020-11-04T01:50:30Z
2020-11-04T01:50:30Z
2020-11-04T04:01:56Z
TST: collect tests by method
diff --git a/pandas/tests/frame/methods/test_asfreq.py b/pandas/tests/frame/methods/test_asfreq.py index cdcd922949bcf..368ce88abe165 100644 --- a/pandas/tests/frame/methods/test_asfreq.py +++ b/pandas/tests/frame/methods/test_asfreq.py @@ -74,3 +74,14 @@ def test_asfreq_fillvalue(self): expected_series = ts.a...
https://api.github.com/repos/pandas-dev/pandas/pulls/37617
2020-11-03T23:16:38Z
2020-11-04T01:51:34Z
2020-11-04T01:51:34Z
2020-11-04T03:53:42Z
TST/REF: share tests across Series/DataFrame
diff --git a/pandas/tests/frame/methods/test_asof.py b/pandas/tests/frame/methods/test_asof.py index 70b42976c95a7..6931dd0ea2d4c 100644 --- a/pandas/tests/frame/methods/test_asof.py +++ b/pandas/tests/frame/methods/test_asof.py @@ -96,12 +96,16 @@ def test_missing(self, date_range_frame): result = df.asof("19...
https://api.github.com/repos/pandas-dev/pandas/pulls/37616
2020-11-03T22:19:50Z
2020-11-04T01:53:17Z
2020-11-04T01:53:17Z
2020-11-04T03:41:58Z
BUG: read-only values in cython funcs
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 0937ec3866e12..95450437ba6eb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -399,11 +399,13 @@ Datetimelike - Bug in :meth:`TimedeltaIndex.sum` and :meth:`Series.sum` with ``timedelta64`` dtype on an...
- [x] closes #34857 - [x] closes #37264 - [x] closes #37312 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37613
2020-11-03T20:59:30Z
2020-11-04T13:43:47Z
2020-11-04T13:43:46Z
2021-09-12T05:30:38Z
DOC: Fix punctuation
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c90ab9cceea8c..8050ce8b1b636 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2196,7 +2196,7 @@ def to_json( * Series: - default is 'index' - - allowed values are: {'split','records','in...
Fixed punctuation to match others.
https://api.github.com/repos/pandas-dev/pandas/pulls/37612
2020-11-03T20:49:38Z
2020-11-04T01:58:13Z
2020-11-04T01:58:13Z
2020-11-04T01:58:17Z
Add tests for categorical with null ea as input
diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py index 657511116c306..23921356a2c5d 100644 --- a/pandas/tests/arrays/categorical/test_constructors.py +++ b/pandas/tests/arrays/categorical/test_constructors.py @@ -682,3 +682,10 @@ def test_interval(...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` cc @jreback Is this what you had in mind for ExtensionArrays and Categoricals?
https://api.github.com/repos/pandas-dev/pandas/pulls/37611
2020-11-03T19:49:26Z
2020-11-13T13:08:25Z
2020-11-13T13:08:25Z
2020-11-13T13:14:46Z
CLN: remove rebox_native
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 579719d8bac3b..1955a96160a4a 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -151,7 +151,9 @@ def _rebox_native(cls, value: int) -> Union[int, np.datetime64, np.timedelta64]: "...
https://api.github.com/repos/pandas-dev/pandas/pulls/37608
2020-11-03T17:38:29Z
2020-11-03T23:09:06Z
2020-11-03T23:09:06Z
2020-11-03T23:14:41Z
BUG: nunique not ignoring both None and np.nan
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 7111d54d65815..1da61d4b83e16 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -562,6 +562,7 @@ Other - Bug in :meth:`Index.union` behaving differently depending on whether operand is a :class:`Index` o...
- [x] closes #37566 - [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/37607
2020-11-03T16:52:21Z
2020-11-10T23:41:48Z
2020-11-10T23:41:47Z
2020-11-11T17:03:30Z
BUG: set index of DataFrame.apply(f) when f returns dict (#37544)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2e976371c0ac8..bd8b05b8de3e4 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -547,6 +547,7 @@ Reshaping - Bug in :func:`join` returned a non deterministic level-order for the resulting :class:`MultiIn...
- [x] closes #37544 - [x] tests (added) updated / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37606
2020-11-03T16:51:28Z
2020-11-04T23:48:00Z
2020-11-04T23:47:59Z
2020-11-12T16:12:14Z
ERR: fix error message in Period for invalid frequency
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index b1f9ff71f5faa..b817d80c64ccd 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2438,7 +2438,7 @@ cpdef int freq_to_dtype_code(BaseOffset freq) except? -1: try: return freq._period_dtype_co...
Small fix of the error message, it was missing the actual freq to fill into the message. On master, you get: ``` In [1]: pd.Period("2012-01-02", freq="WOM-1MON") ... ValueError: Invalid frequency: {0} ```
https://api.github.com/repos/pandas-dev/pandas/pulls/37602
2020-11-03T14:59:02Z
2020-11-03T19:18:26Z
2020-11-03T19:18:26Z
2020-11-03T19:18:30Z
DEPR: DataFrame/Series.slice_shift
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 45a95f6aeb2f6..ea2e6784087f2 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -341,6 +341,8 @@ Deprecations - Deprecate use of strings denoting units with 'M', 'Y' or 'y' in :func:`~pandas.to_timedelta...
- [x] ref #18262 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37601
2020-11-03T12:28:07Z
2020-11-04T02:21:01Z
2020-11-04T02:21:01Z
2020-11-04T09:23:51Z
REF: re-use _validate_setitem_value in Categorical.fillna
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index b1f913e9ea641..9f0414cf7a806 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1655,21 +1655,15 @@ def fillna(self, value=None, method=None, limit=None): codes = self._ndarray.c...
https://api.github.com/repos/pandas-dev/pandas/pulls/37597
2020-11-03T03:47:54Z
2020-11-04T02:25:35Z
2020-11-04T02:25:35Z
2020-11-04T03:42:36Z
TST/REF: share method tests between DataFrame and Series
diff --git a/pandas/conftest.py b/pandas/conftest.py index 515d20e8c5781..dfca95c1f9efe 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -290,6 +290,16 @@ def unique_nulls_fixture(request): # ---------------------------------------------------------------- # Classes # -------------------------------------...
By default, a test using the frame_or_series fixture goes in tests.frame
https://api.github.com/repos/pandas-dev/pandas/pulls/37596
2020-11-02T22:35:47Z
2020-11-03T02:43:39Z
2020-11-03T02:43:39Z
2020-11-03T02:51:11Z
CLN: de-duplicate _validate_where_value with _validate_setitem_value
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 03f66ff82ad75..263512e427c69 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1177,11 +1177,6 @@ def map(self, mapper): # ------------------------------------------------------------- ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37595
2020-11-02T20:20:39Z
2020-11-02T22:22:20Z
2020-11-02T22:22:20Z
2020-11-02T22:23:07Z
BUG: Index.where casting ints to str
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8a092cb6e36db..45a95f6aeb2f6 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -456,6 +456,7 @@ Indexing - Bug in :meth:`Series.loc.__getitem__` with a non-unique :class:`MultiIndex` and an empty-list i...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Two things going on here (can separate if asked, but they got mixed together in the process). 1) don't re-raise in `DatetimeLikeIndexMixin.where`,...
https://api.github.com/repos/pandas-dev/pandas/pulls/37591
2020-11-02T15:48:14Z
2020-11-03T02:47:21Z
2020-11-03T02:47:20Z
2020-11-03T02:51:44Z
TST/REF: collect indexing tests by method
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 58f0e5bc1ad39..9eaa0d0ae6876 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -1327,32 +1327,6 @@ def test_getitem_list_duplicates(self): ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37590
2020-11-02T15:36:20Z
2020-11-02T21:21:20Z
2020-11-02T21:21:20Z
2020-11-02T21:47:52Z
DOC: fix inconsistencies in `read_csv` docstring type descriptions
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 153899e023137..777a74f46d75e 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -101,7 +101,8 @@ By file-like object, we refer to objects with a ``read()`` method, such as a file handle (e.g. via builti...
- [x] closes #53763 - [ ] 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/53834
2023-06-25T03:18:44Z
2023-06-26T17:45:53Z
2023-06-26T17:45:53Z
2023-06-26T22:20:00Z
BUG: DataFrame.shift(axis=1) with EADtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7b9efd7f593dd..ede720bbbec40 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -535,11 +535,12 @@ Other - Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`51...
- [ ] 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/53832
2023-06-24T20:36:30Z
2023-06-26T17:48:53Z
2023-06-26T17:48:53Z
2023-08-28T20:30:56Z
DEPR: Remove bytes input for read_excel
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7b9efd7f593dd..b3f17c62f3dde 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -295,6 +295,7 @@ Deprecations - Deprecated allowing ``downcast`` keyword other than ``None``, ``False``, "infer", or a dict...
- [X] closes #53767 - [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/53830
2023-06-24T15:14:47Z
2023-06-27T17:29:07Z
2023-06-27T17:29:07Z
2024-02-17T17:20:18Z
TST: Use pytest-localserver instead of making network connections
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 0923594f2c840..ffa7732c604a0 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -15,6 +15,7 @@ dependencies: - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17.0 + - pytest-localserver>=0.7.1 - boto3 # r...
Since we have a lot of CI jobs with unit test that make network connections, it is better if the network connections could be made locally if possible. This PR refactors all tests that make network connections to use `pytest-localserver` instead
https://api.github.com/repos/pandas-dev/pandas/pulls/53828
2023-06-24T02:16:48Z
2023-06-27T16:58:07Z
2023-06-27T16:58:06Z
2023-07-04T07:37:08Z
REF: implement PandasArray.pad_or_backfill
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ea085b3d1f6ab..48c9305cf2ccc 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2235,7 +2235,7 @@ def interpolate( *, method, axis: int, - index: Index |...
Goes with (but independent of) #53822 trying to separate out pad_or_backfill from interpolate/fillna. xref #53621
https://api.github.com/repos/pandas-dev/pandas/pulls/53827
2023-06-23T22:53:11Z
2023-06-26T17:51:31Z
2023-06-26T17:51:31Z
2023-06-26T17:52:45Z
BUG: DataFrame.stack sometimes sorting the resulting index
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index ee1f1b7be1b86..13a4a4531e6d0 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -104,7 +104,6 @@ Other enhancements - Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string c...
- [x] closes #53824 (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/53825
2023-06-23T21:12:22Z
2023-06-28T16:10:21Z
2023-06-28T16:10:21Z
2023-06-28T18:25:00Z
Backport PR #53819 on branch 2.0.x (TST/CI: Skipif test_complibs)
diff --git a/pandas/tests/io/pytables/test_file_handling.py b/pandas/tests/io/pytables/test_file_handling.py index 1a126ad75c01c..623d6e664090f 100644 --- a/pandas/tests/io/pytables/test_file_handling.py +++ b/pandas/tests/io/pytables/test_file_handling.py @@ -230,11 +230,11 @@ def test_complibs_default_settings_overri...
Backport PR #53819: TST/CI: Skipif test_complibs
https://api.github.com/repos/pandas-dev/pandas/pulls/53823
2023-06-23T20:05:23Z
2023-06-23T23:50:48Z
2023-06-23T23:50:48Z
2023-06-23T23:50:49Z
REF: implement Manager.pad_or_backfill
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0be840f9a4ef1..a8a3bf3fc532e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6876,7 +6876,7 @@ def _fillna_with_method( return result - new_mgr = self._mgr.interpolate( + new_mgr = self._mgr.pad_or_bac...
Working towards separating fillna/interpolate
https://api.github.com/repos/pandas-dev/pandas/pulls/53822
2023-06-23T19:24:08Z
2023-06-25T20:42:08Z
2023-06-25T20:42:08Z
2023-06-25T20:55:34Z
better cython debugging
diff --git a/.gitignore b/.gitignore index cd22c2bb8cb5b..051a3ec11b794 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,7 @@ .mesonpy-native-file.ini MANIFEST compile_commands.json -debug +.debug # Python files # ################ diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/dev...
This is still super buggy but hopefully this gets people a bit closer
https://api.github.com/repos/pandas-dev/pandas/pulls/53821
2023-06-23T18:57:49Z
2023-10-07T20:38:30Z
2023-10-07T20:38:30Z
2023-10-07T20:38:42Z
TST: Refactor more slow tests
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 23ed053521baf..9d0e2145567bf 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -450,6 +450,9 @@ def unique_with_mask(values, mask: npt.NDArray[np.bool_] | None = None): unique1d = unique +_MINIMUM_COMP_ARR_LEN = 1_000_...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/53820
2023-06-23T17:47:39Z
2023-06-26T17:39:39Z
2023-06-26T17:39:39Z
2023-06-26T17:39:42Z
TST/CI: Skipif test_complibs
diff --git a/pandas/tests/io/pytables/test_file_handling.py b/pandas/tests/io/pytables/test_file_handling.py index 1a126ad75c01c..623d6e664090f 100644 --- a/pandas/tests/io/pytables/test_file_handling.py +++ b/pandas/tests/io/pytables/test_file_handling.py @@ -230,11 +230,11 @@ def test_complibs_default_settings_overri...
Even though this was just xfailed, it appears to also be causing segfault in the CI so just skipping for now e.g. https://github.com/pandas-dev/pandas/actions/runs/5352556089/jobs/9707592733
https://api.github.com/repos/pandas-dev/pandas/pulls/53819
2023-06-23T17:44:56Z
2023-06-23T20:04:23Z
2023-06-23T20:04:23Z
2023-06-23T20:04:27Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 472bd78e4d3bc..5870a9ad8d60b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -105,17 +105,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.errors.UnsupportedFunctionCall \ pandas.test \ pandas.NaT \ - ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/53818
2023-06-23T17:07:23Z
2023-06-26T16:45:39Z
2023-06-26T16:45:39Z
2023-06-26T17:07:45Z
DEPR: Deprecate use of un-supported numpy dt64/td64 dtype for pandas.array
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b517f5fc38d5e..e154ca2cd3884 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -320,7 +320,9 @@ Deprecations - Deprecated strings ``T``, ``t``, ``L`` and ``l`` denoting units in :func:`to_timedelta` (:i...
- [X] closes #53058 - [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/53817
2023-06-23T16:12:03Z
2023-07-11T01:51:48Z
2023-07-11T01:51:47Z
2024-02-17T17:20:11Z
CLN: PDEP6 precusor
diff --git a/pandas/tests/copy_view/test_interp_fillna.py b/pandas/tests/copy_view/test_interp_fillna.py index 71023a538a2c3..5d4fd75df830c 100644 --- a/pandas/tests/copy_view/test_interp_fillna.py +++ b/pandas/tests/copy_view/test_interp_fillna.py @@ -248,7 +248,10 @@ def test_fillna_inplace_reference(using_copy_on_wr...
Another precursor to https://github.com/pandas-dev/pandas/pull/53405
https://api.github.com/repos/pandas-dev/pandas/pulls/53815
2023-06-23T11:14:24Z
2023-06-23T15:45:57Z
2023-06-23T15:45:57Z
2023-06-23T15:45:58Z
Update governance.md
diff --git a/web/pandas/about/governance.md b/web/pandas/about/governance.md index 0bb61592d7e5d..46480acc69c31 100644 --- a/web/pandas/about/governance.md +++ b/web/pandas/about/governance.md @@ -228,7 +228,7 @@ interactions with NumFOCUS. Team. - This Subcommittee shall NOT make decisions about the direction, sco...
Misspelling of Subcommittee - [ ] 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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/53814
2023-06-23T05:06:41Z
2023-06-23T14:43:56Z
2023-06-23T14:43:56Z
2023-06-23T14:43:57Z
TST: Add test for loc expansion GH13829.
diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py index b745575876212..6060f6b5e278a 100644 --- a/pandas/tests/frame/indexing/test_setitem.py +++ b/pandas/tests/frame/indexing/test_setitem.py @@ -930,6 +930,20 @@ def test_setitem_frame_keep_ea_dtype(self, any_numeric...
- [ ] closes #13829 (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/53812
2023-06-23T03:20:17Z
2023-06-23T17:20:28Z
2023-06-23T17:20:28Z
2023-06-23T23:45:37Z
REF: separate out cross-merge, make less stateful
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index d406145e62ad7..66d2bf0b8991d 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -145,10 +145,79 @@ def merge( indicator: str | bool = False, validate: str | None = None, ) -> DataFrame: - op = _Merg...
- [ ] 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/53810
2023-06-22T23:56:49Z
2023-06-23T21:20:50Z
2023-06-23T21:20:50Z
2023-06-23T21:21:50Z
DEPR: Remove literal string input for read_xml
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index ec0e7d0636b07..4d4b9e086e9e5 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2919,6 +2919,7 @@ Read an XML string: .. ipython:: python + from io import StringIO xml = """<?xml version="1.0" encodi...
- [X] closes #53767 - [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/53809
2023-06-22T23:48:53Z
2023-07-11T20:52:05Z
2023-07-11T20:52:05Z
2024-02-17T17:20:09Z
REF: simplify merge code
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 4d1f8bd6301d0..d406145e62ad7 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -717,13 +717,23 @@ def __init__( self.left_on = self.right_on = [cross_col] self._cross = cross_col - ...
- [ ] 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/53808
2023-06-22T23:40:52Z
2023-06-23T17:18:50Z
2023-06-23T17:18:50Z
2023-06-23T17:21:18Z
REF: de-duplicate Block.diff, remove axis kwd
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index c3574829f9b0e..23ed053521baf 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1441,8 +1441,8 @@ def diff(arr, n: int, axis: AxisInt = 0): arr = arr.to_numpy() dtype = arr.dtype - if not isinstance(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/53807
2023-06-22T23:35:37Z
2023-06-23T17:24:09Z
2023-06-23T17:24:09Z
2023-06-23T17:29:36Z