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
CLN: clean setup.py
diff --git a/setup.py b/setup.py index 9a9d12ce4d2ba..78a789c808efb 100755 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ """ import argparse +from distutils.command.build import build from distutils.sysconfig import get_config_vars from distutils.version import LooseVersion import multiprocessing @@ -16,10 +17,1...
an attempt to clean setup.py
https://api.github.com/repos/pandas-dev/pandas/pulls/37732
2020-11-10T04:04:44Z
2020-11-14T16:53:31Z
2020-11-14T16:53:30Z
2021-01-09T17:10:58Z
REF: use extract_array in DataFrame.combine_first
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 80743f8cc924b..4fa0b59808a52 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -114,7 +114,6 @@ is_object_dtype, is_scalar, is_sequence, - needs_i8_conversion, pandas_dtype, ) from pandas.core.dtypes.missing import isn...
- [ ] closes #xxxx - [ ] 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/37731
2020-11-10T03:03:16Z
2020-11-11T00:58:34Z
2020-11-11T00:58:34Z
2020-11-11T00:58:38Z
TST/REF: collect/parametrize tests from tests.generic
diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py index 4bd1d5fa56468..862f5b87785f5 100644 --- a/pandas/tests/frame/test_alter_axes.py +++ b/pandas/tests/frame/test_alter_axes.py @@ -1,6 +1,8 @@ from datetime import datetime import numpy as np +import pytest +import pytz ...
For some of these its just breaking up big tests and giving them meaningful names.
https://api.github.com/repos/pandas-dev/pandas/pulls/37730
2020-11-10T01:16:38Z
2020-11-13T05:10:22Z
2020-11-13T05:10:22Z
2020-11-13T05:14:00Z
TST/REF: collect indexing tests by method
diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py index 079cc12389835..2e65770d7afad 100644 --- a/pandas/tests/frame/indexing/test_getitem.py +++ b/pandas/tests/frame/indexing/test_getitem.py @@ -7,11 +7,13 @@ CategoricalIndex, DataFrame, MultiIndex, +...
https://api.github.com/repos/pandas-dev/pandas/pulls/37729
2020-11-10T01:08:07Z
2020-11-10T03:17:42Z
2020-11-10T03:17:42Z
2020-11-10T03:33:24Z
Bug in iloc aligned objects
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 62da3c0c5cddc..1f05c35097b22 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -589,6 +589,7 @@ Indexing - Bug in :meth:`DataFrame.xs` ignored ``droplevel=False`` for columns (:issue:`19056`) - Bug in ...
- [x] closes #22046 - [x] closes #37593 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry If iloc should be purely position based, this PR fixes the bug described in the issue. One test depends on the wrong behavior, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37728
2020-11-10T00:27:19Z
2020-11-19T00:22:07Z
2020-11-19T00:22:06Z
2020-11-19T20:00:27Z
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
Addressed comments for doc update
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfb633ae55095..7543ea177d58c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -360,8 +360,8 @@ class DataFrame(NDFrame, OpsMixin): Parameters ---------- - data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame...
-Arranged alignment, and addressed comments for the document enhancement.
https://api.github.com/repos/pandas-dev/pandas/pulls/37699
2020-11-08T08:44:47Z
2020-12-06T23:48:51Z
null
2020-12-06T23:48:52Z
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
Dataframe.sum() returns an error with MultiIndex columns and skipna=False
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bea650c1b50fd..b78293622c0a2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10402,7 +10402,7 @@ def _agg_by_level(self, name, axis=0, level=0, skipna=True, **kwargs): return getattr(grouped, name)(**kwargs) ax...
- [ ] closes #37622 - [ ] 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/37695
2020-11-08T04:02:54Z
2020-11-08T14:55:08Z
null
2020-11-08T14:55:31Z
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
BUG: DataFrame.groupby(., dropna=True, axis=0) incorrectly throws ShapeError [RESUBMIT]
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 690e6b8f725ad..c6b4353d7bb91 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -470,7 +470,7 @@ Missing ^^^^^^^ - Bug in :meth:`SeriesGroupBy.transform` now correctly handles missing values for ``dro...
- [x] closes #35612 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Resubmitting #35751 to see if I can get to green here
https://api.github.com/repos/pandas-dev/pandas/pulls/37685
2020-11-07T15:59:45Z
2020-11-07T16:26:05Z
null
2020-11-07T16:26:09Z
TYP: @final for NDFrame methods
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 36ce2c4776bd0..6d82d3ebfd90b 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...
Makes it a little easier to reason about the code on sight.
https://api.github.com/repos/pandas-dev/pandas/pulls/37684
2020-11-07T05:31:58Z
2020-11-07T15:38:31Z
null
2021-11-20T23:21:16Z
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
BUG: Dtype was not changed when float was assignt to int column
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 393866b92771b..beccc1e6dfe21 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -239,6 +239,7 @@ Indexing - Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` when non-uni...
- [x] closes #26395 - [x] closes #20643 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry We have to keep the get_loc statement to check, if the series._set_value function does the trick. I added the dtype conversion ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37680
2020-11-07T00:31:20Z
2021-06-16T13:46:26Z
null
2023-04-27T19:52:19Z
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: no need to call _wrap_results in nanvar
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 8e917bb770247..a839765e27acd 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -878,7 +878,7 @@ def nanvar(values, *, axis=None, skipna=True, ddof=1, mask=None): # precision as the original values array. if is_float_dtype(dtype):...
https://api.github.com/repos/pandas-dev/pandas/pulls/37674
2020-11-06T21:21:47Z
2020-11-09T21:02:21Z
null
2020-11-09T21:02:33Z
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
Start testing pypy3
diff --git a/.travis.yml b/.travis.yml index 2bf72bd159fc2..5df698a0a3fe4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,11 @@ matrix: env: - JOB="3.9-dev" PATTERN="(not slow and not network and not clipboard)" + - dist: focal + python: pypy3 + env: + - JOB="pypy3" ENV_FIL...
- [ ] 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/37665
2020-11-06T14:16:58Z
2020-11-11T00:14:41Z
null
2021-10-31T16:32:35Z
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
ENH: option to plot data points on top of boxplot
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index e0e35e31d22ac..39da1a8574ca1 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -265,6 +265,7 @@ def hist_frame( layout : tuple (rows, columns), optional For example, (3, 5) will display the subplots using 3 columns a...
- [x ] tests added / passed - [x ] passes `black pandas` - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry - not sure how to do this. I guess I have to wait until pull request is complete. This change is a a feature I often want, which is the ability to add raw data on to...
https://api.github.com/repos/pandas-dev/pandas/pulls/37656
2020-11-05T22:41:55Z
2021-02-07T15:31:39Z
null
2021-02-07T15:31:39Z
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
Merge pull request #1 from pandas-dev/master
Merge original repo to update forked repository - [ ] 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/37651
2020-11-05T15:30:12Z
2020-11-05T15:30:43Z
null
2020-11-05T15:30:43Z
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
Addressed dataclass comment
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 049d2c4888a69..c3fbd871672dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -360,8 +360,8 @@ class DataFrame(NDFrame, OpsMixin): Parameters ---------- - data : ndarray (structured or homogeneous), Iterable, dict, or DataFrame...
Addressed comments for adding dataclass into pandas dataframe reference API
https://api.github.com/repos/pandas-dev/pandas/pulls/37649
2020-11-05T15:10:19Z
2020-11-05T15:26:32Z
null
2020-11-05T15:26:32Z
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
Backport PR #37613 on branch 1.1.x: BUG: read-only values in cython funcs
diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst index 4770ab37e08d2..0f9c23331b249 100644 --- a/doc/source/whatsnew/v1.1.5.rst +++ b/doc/source/whatsnew/v1.1.5.rst @@ -33,6 +33,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in pytables methods in python 3.9 (:issue:`38041`) +- Bug in :...
Backport PR #37613 will update milestones on PR and associated issues once this is green-ish. Will also need to update release notes on master. (move from 1.2 to 1.1.5)
https://api.github.com/repos/pandas-dev/pandas/pulls/37633
2020-11-04T16:46:33Z
2020-12-05T17:18:21Z
null
2023-02-22T11:40:56Z
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
ENH: named agg with multiple columns
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index bb39e18caeaa2..968244b581826 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -538,8 +538,21 @@ def normalize_dictlike_arg( raise SpecificationError("nested renamer is not supported") if obj.ndim != 1: + + #...
- [ ] closes #29268 - [ ] 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/37627
2020-11-04T11:30:52Z
2021-11-28T21:06:17Z
null
2021-11-28T21:06:18Z
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
TST: Remove stacklevel checks for deprecated resample kwargs
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index d814a7cee436e..d253bc39e15cc 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -234,42 +234,7 @@ def __new__(cls, *args, **kwargs): if kwargs.get("freq") is not None: from pandas.co...
- [N/A] closes #xxxx (see https://github.com/pandas-dev/pandas/pull/36629#issuecomment-720757082) - [x] tests added / passed (tests are failing locally but on unrelated things, think it's a problem somewhere in master) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37603
2020-11-03T15:27:15Z
2020-12-18T09:09:39Z
null
2020-12-18T09:09:39Z
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
CI: Use conda deactivate instead of source deactivate
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 247f809c5fe63..e1a27d4d02006 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -91,8 +91,8 @@ else echo "Not using ccache" fi -echo "source deactivate" -source deactivate +echo "conda deactivate" +conda deactivate echo "conda list (root environment)" ...
Seen in the logs when running `setup_env.sh` ``` DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'. ```
https://api.github.com/repos/pandas-dev/pandas/pulls/37599
2020-11-03T04:31:07Z
2020-11-03T04:36:42Z
null
2020-11-03T04:37:03Z
WIP: Debug high memory failure window tests
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 9b553fbc81a03..01548e2309d83 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -25,7 +25,7 @@ PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile -s if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then # GH#37455 windows py38...
- [ ] 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/37598
2020-11-03T04:18:05Z
2020-11-03T04:25:34Z
null
2020-11-03T04:25:38Z
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