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
BLD: Suppressing errors while compling pandas/_libs/groupby
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 35a6963165194..e7ac3b8442c6d 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -869,7 +869,9 @@ def group_last(rank_t[:, :] out, assert min_count == -1, "'min_count' only used in add and prod" - if not len(values) =...
- [x] ref #32163 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This are the errors that this PR is getting rid of: ``` pandas/_libs/groupby.c: In function ‘__pyx_pf_6pandas_5_libs_7groupby_116group_last’: pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/32794
2020-03-17T23:52:40Z
2020-03-19T00:25:33Z
2020-03-19T00:25:33Z
2020-03-20T00:05:35Z
CLN: remove align kwarg from Block.where, Block.putmask
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f2f8b6067c415..c429a65ed3369 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -909,13 +909,7 @@ def setitem(self, indexer, value): return block def putmask( - self, - m...
https://api.github.com/repos/pandas-dev/pandas/pulls/32791
2020-03-17T22:04:40Z
2020-03-22T00:14:25Z
2020-03-22T00:14:25Z
2020-03-22T00:49:39Z
ERR: Raise on invalid na_action in Series.map
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 720ce7af47a18..346b603344e9a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -405,6 +405,7 @@ Other - Fixed :func:`pandas.testing.assert_series_equal` to correctly raise if left object is a different ...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `Series.map` treats any `na_action` other than `"ignore"` like `None`, but it should probably raise if someone provides an invalid option: ```python In [1]: import p...
https://api.github.com/repos/pandas-dev/pandas/pulls/32790
2020-03-17T21:56:43Z
2020-03-22T00:13:12Z
2020-03-22T00:13:12Z
2020-03-22T00:14:03Z
TST: Define sections in pandas/conftest.py
diff --git a/pandas/conftest.py b/pandas/conftest.py index e12acb5dd56d5..903e1a5dec132 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1,3 +1,23 @@ +""" +This file is very long and growing, but it was decided to not split it yet, as +it's still manageable (2020-03-17, ~1.1k LoC). See gh-31989 + +Instead o...
part of #31989 - [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/32789
2020-03-17T21:41:09Z
2020-03-20T07:48:07Z
2020-03-20T07:48:07Z
2020-03-20T07:48:21Z
replaced one occurrence of `Appender` by `doc` decorator
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6b0f7de11a3e7..83df09d6b2cf3 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1912,117 +1912,7 @@ def _repr_data_resource_(self): %(klass)s in Markdown-friendly format. """ - _shared_docs[ - "to_excel" - ...
- [X] xref #31942 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] replaces one use of `Appender` in pandas/core/generic.py with `doc`
https://api.github.com/repos/pandas-dev/pandas/pulls/32787
2020-03-17T21:08:17Z
2020-03-20T22:19:09Z
2020-03-20T22:19:09Z
2020-03-20T22:21:11Z
CLN: remove unnecessary alias
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 88cefd3ebfebf..da334561385d6 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -825,17 +825,15 @@ def as_array(self, transpose: bool = False) -> np.ndarray: arr = np.empty(self.s...
- [ ] 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/32786
2020-03-17T20:54:56Z
2020-03-17T22:03:25Z
2020-03-17T22:03:25Z
2020-03-17T22:13:44Z
Backport PR #32783 on branch 1.0.x (DOC: 1.0.3 release date)
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 0ca5f5f548885..26d06433bda0c 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_103: -What's new in 1.0.3 (March ??, 2020) +What's new in 1.0.3 (March 17, 2020) -----------...
Backport PR #32783: DOC: 1.0.3 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/32784
2020-03-17T19:34:00Z
2020-03-17T20:52:03Z
2020-03-17T20:52:03Z
2020-03-17T20:52:03Z
DOC: 1.0.3 release date
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 482222fbddbb8..14f982212f1e5 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_103: -What's new in 1.0.3 (March ??, 2020) +What's new in 1.0.3 (March 17, 2020) -----------...
https://api.github.com/repos/pandas-dev/pandas/pulls/32783
2020-03-17T19:33:00Z
2020-03-17T19:33:22Z
2020-03-17T19:33:22Z
2020-03-17T19:34:11Z
BUG/API: prohibit dtype-changing IntervalArray.__setitem__
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cbfc6d63e8ea3..8e5b083b7b058 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -346,7 +346,7 @@ Strings Interval ^^^^^^^^ -- +- Bug in :class:`IntervalArray` incorrectly allowing the underlying data ...
- [ ] <s>closes #27147</s> Not quite - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Still needs a dedicated test, but this is also a non-trivial API change, so I want to get the ball rolling on discussion. cc @jsch...
https://api.github.com/repos/pandas-dev/pandas/pulls/32782
2020-03-17T19:21:30Z
2020-04-10T16:17:34Z
2020-04-10T16:17:34Z
2020-04-10T17:25:46Z
CLN: .value -> ._values outside of core/
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index f011293273c5b..17cc897136aad 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -58,11 +58,8 @@ ) from pandas.core.dtypes.generic import ( ABCDatetimeIndex, - ABCIndexClass, ABCMultiIndex, ABCPeri...
pandas.plotting I left alone
https://api.github.com/repos/pandas-dev/pandas/pulls/32781
2020-03-17T18:56:15Z
2020-03-21T21:06:49Z
2020-03-21T21:06:49Z
2020-03-21T21:10:05Z
CLN: Split up Boolean array tests
diff --git a/pandas/tests/arrays/boolean/__init__.py b/pandas/tests/arrays/boolean/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py new file mode 100644 index 0000000000000..df4c218cbf9bf --- ...
Apologies for the size of this PR, but it looks like the ExtensionArray tests sometimes have their own directories by type, and other times all tests for the type are in a single file (e.g., https://github.com/pandas-dev/pandas/tree/master/pandas/tests/arrays/categorical vs. https://github.com/pandas-dev/pandas/blob/ma...
https://api.github.com/repos/pandas-dev/pandas/pulls/32780
2020-03-17T17:57:07Z
2020-03-21T21:09:27Z
2020-03-21T21:09:27Z
2020-03-21T21:14:27Z
PERF: block-wise arithmetic for frame-with-frame
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 8aa29468559b2..08a11ba2607a5 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -101,6 +101,59 @@ def time_frame_op_with_series_axis1(self, opname): getattr(operator, opname)(self...
- [ ] closes #xxxx - [ ] 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/32779
2020-03-17T17:01:08Z
2020-05-19T13:16:14Z
2020-05-19T13:16:14Z
2020-05-19T15:48:31Z
CLN: .values -> ._values
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 52423c4008399..2cae09ed08f36 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -243,8 +243,11 @@ def _simple_new(cls, values: Categorical, name: Label = None): @Appender(Index._shallow_copy.__...
https://api.github.com/repos/pandas-dev/pandas/pulls/32778
2020-03-17T16:29:33Z
2020-03-26T00:54:18Z
2020-03-26T00:54:18Z
2020-03-26T01:04:31Z
Backport PR #32734 on branch 1.0.x
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 482222fbddbb8..0ca5f5f548885 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -16,6 +16,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in ``resample.a...
https://api.github.com/repos/pandas-dev/pandas/pulls/32777
2020-03-17T16:08:20Z
2020-03-17T19:14:17Z
2020-03-17T19:14:17Z
2020-04-04T20:41:41Z
TYP: PandasObject._cache
diff --git a/pandas/core/base.py b/pandas/core/base.py index 40ff0640a5bc4..0685ce5c92815 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -4,7 +4,7 @@ import builtins import textwrap -from typing import Dict, FrozenSet, List, Optional, Union +from typing import Any, Dict, FrozenSet, List, Optional, Un...
Move ``_cache: Dict[str, Any]`` fragment to PandasObject, where it belongs + related changes.
https://api.github.com/repos/pandas-dev/pandas/pulls/32775
2020-03-17T14:19:12Z
2020-03-19T00:52:10Z
2020-03-19T00:52:10Z
2020-03-21T11:45:31Z
CLN: simplify MultiIndex._shallow_copy
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 5bffc4ec552af..cf5127757b356 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -990,15 +990,11 @@ def _constructor(self): def _shallow_copy(self, values=None, **kwargs): if values is not None: ...
Minor simplification of ``MultiIndex._shallow_copy``.
https://api.github.com/repos/pandas-dev/pandas/pulls/32772
2020-03-17T08:12:32Z
2020-03-19T21:30:21Z
2020-03-19T21:30:21Z
2020-03-21T11:45:21Z
Backport PR #32708 on branch 1.0.x (skip 32 bit linux)
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index c9a2e4eefd19d..437cc9b161e8a 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -38,11 +38,11 @@ jobs: LC_ALL: "it_IT.utf8" EXTRA_APT: "language-pack-it xsel" - py36_32bit: - ENV_FILE: ci/deps/azure-36-32bit.yaml...
Backport PR #32708: skip 32 bit linux
https://api.github.com/repos/pandas-dev/pandas/pulls/32771
2020-03-17T07:57:50Z
2020-03-17T12:45:46Z
2020-03-17T12:45:46Z
2020-03-17T12:46:24Z
CLN: Consolidate numba facilities
diff --git a/pandas/core/util/numba_.py b/pandas/core/util/numba_.py new file mode 100644 index 0000000000000..e4debab2c22ee --- /dev/null +++ b/pandas/core/util/numba_.py @@ -0,0 +1,58 @@ +"""Common utilities for Numba operations""" +import types +from typing import Callable, Dict, Optional + +import numpy as np + +fr...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Precursor to https://github.com/pandas-dev/pandas/issues/31845 and other numba engine additions, creates `pandas/core/numba_.py` (open to move elsewhere) as a shared place for common numba op...
https://api.github.com/repos/pandas-dev/pandas/pulls/32770
2020-03-17T07:35:10Z
2020-03-19T00:23:26Z
2020-03-19T00:23:26Z
2020-03-19T03:49:06Z
TYP: annotate Block/BlockManager putmask
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 63f5bd547074a..8c6a5c9d020b4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8652,12 +8652,7 @@ def _where( self._check_inplace_setting(other) new_data = self._data.putmask( - mask=cond, - ...
medium-term goal is to avoid passing Series/DataFrame objects to Block methods via BlockManager.apply
https://api.github.com/repos/pandas-dev/pandas/pulls/32769
2020-03-17T02:54:58Z
2020-03-22T20:38:48Z
2020-03-22T20:38:48Z
2020-03-22T21:01:45Z
CLN: remove _ndarray_values
diff --git a/doc/source/development/internals.rst b/doc/source/development/internals.rst index 4ad045a91b5fe..8f1c3d5d818c2 100644 --- a/doc/source/development/internals.rst +++ b/doc/source/development/internals.rst @@ -89,16 +89,10 @@ pandas extends NumPy's type system with custom types, like ``Categorical`` or date...
- [x] closes #23565 - [ ] 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/32768
2020-03-17T02:47:51Z
2020-03-19T00:24:24Z
2020-03-19T00:24:24Z
2020-03-19T01:30:09Z
REF: Implement core._algos
diff --git a/pandas/core/array_algos/__init__.py b/pandas/core/array_algos/__init__.py new file mode 100644 index 0000000000000..a7655a013c6cf --- /dev/null +++ b/pandas/core/array_algos/__init__.py @@ -0,0 +1,9 @@ +""" +core.array_algos is for algorithms that operate on ndarray and ExtensionArray. +These should: + +- ...
ATM core.algorithms and core.nanops are a mish-mash in terms of what inputs they expect. This implements core._algos directory intended for guaranteed-ndarray/EA-only implementations. For the first function to move I de-duplicated a `shift` method. Need suggestions for what to call this module.
https://api.github.com/repos/pandas-dev/pandas/pulls/32767
2020-03-17T02:06:48Z
2020-03-19T00:19:52Z
2020-03-19T00:19:52Z
2020-04-08T17:54:07Z
Backport PR #32758 on branch 1.0.x (BUG: resample.agg with read-only data)
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 17f1bdc365518..482222fbddbb8 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in ``resample...
Backport PR #32758: BUG: resample.agg with read-only data
https://api.github.com/repos/pandas-dev/pandas/pulls/32765
2020-03-17T01:34:52Z
2020-03-17T07:57:54Z
2020-03-17T07:57:54Z
2020-03-17T07:57:54Z
BUG: Allow list-like in DatetimeIndex.searchsorted
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index dcbfe6aeb9a12..d0d67e14f2cbc 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -255,6 +255,7 @@ Datetimelike - Bug in :meth:`Period.to_timestamp`, :meth:`Period.start_time` with microsecond frequency re...
- [x] closes #32762 - [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/32764
2020-03-16T23:34:20Z
2020-03-26T01:22:58Z
2020-03-26T01:22:58Z
2020-03-26T01:25:32Z
CLN: simplify MultiIndex._shallow_copy
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 5bffc4ec552af..a2d3750f8924f 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -987,18 +987,15 @@ def _constructor(self): return MultiIndex.from_tuples @Appender(Index._shallow_copy.__doc__) - ...
Minor simplification of ``MultiIndex._shallow_copy``.
https://api.github.com/repos/pandas-dev/pandas/pulls/32763
2020-03-16T23:14:10Z
2020-03-16T23:41:43Z
null
2020-03-16T23:41:43Z
BUG: resample.agg with read-only data
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 17f1bdc365518..482222fbddbb8 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in ``resample...
- [x] closes #31710 - [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/32758
2020-03-16T18:58:31Z
2020-03-17T01:34:16Z
2020-03-17T01:34:15Z
2020-03-17T16:01:08Z
BUG: Respect check_dtype in assert_series_equal
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a667d0663aa31..0d3a9a8f969a4 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -401,6 +401,7 @@ Other - Bug in :meth:`DataFrame.to_records` incorrectly losing timezone information in timezone-aware ``da...
- [x] closes #32747 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` I'm not sure if https://github.com/pandas-dev/pandas/blob/master/pandas/_testing.py#L1174 needs to change too? cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/32757
2020-03-16T18:40:33Z
2020-03-17T19:33:41Z
2020-03-17T19:33:40Z
2020-03-17T20:56:21Z
copy license text from: tidyverse/haven
diff --git a/LICENSES/HAVEN_LICENSE b/LICENSES/HAVEN_LICENSE index 2f444cb44d505..ce1b07b783e74 100644 --- a/LICENSES/HAVEN_LICENSE +++ b/LICENSES/HAVEN_LICENSE @@ -1,2 +1,21 @@ -YEAR: 2013-2016 -COPYRIGHT HOLDER: Hadley Wickham; RStudio; and Evan Miller +# MIT License + +Copyright (c) 2019 Hadley Wickham; RStudio; and...
The existing HAVEN_LICENSE file was lacking any form of actual license. After checking the pandas source, it appears that the reference to HAVEN is in relation to tidyverse/haven, copying the license from tidyverse/haven for clarity. Signed-off-by: Jamin Collins <jamin@amazon.com>
https://api.github.com/repos/pandas-dev/pandas/pulls/32756
2020-03-16T17:13:07Z
2020-03-18T00:00:58Z
2020-03-18T00:00:58Z
2020-03-18T00:01:06Z
REF: avoid _internal_get_values in json get_values
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index e2deffb46c4e6..db1feccb4d0c6 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -222,13 +222,19 @@ static PyObject *get_values(PyObject *obj) { PRINTMARK...
cc @WillAyd As mentioned in #32731, this changes the behavior for CategoricalIndex[dt64tz] and Series with that for its index. Suggestions for where tests for that should go? Note: the Categorical[dt64tz] cases still do a trip through object-dtype; I don't want to futz with that in C-space.
https://api.github.com/repos/pandas-dev/pandas/pulls/32754
2020-03-16T16:16:39Z
2020-03-17T02:06:28Z
2020-03-17T02:06:28Z
2020-03-17T02:21:49Z
DOC: Partial fix SA04 errors in docstrings #28792
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 85386923e9912..acd4a68e3fd09 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -217,8 +217,8 @@ def merge_ordered( See Also -------- - merge - merge_asof + merge : Merge with a database-styl...
- [x] xref #28792 My first PR. Tell me if I'm doing this incorrectly.
https://api.github.com/repos/pandas-dev/pandas/pulls/32753
2020-03-16T15:29:53Z
2020-03-16T22:42:15Z
2020-03-16T22:42:15Z
2020-03-17T08:12:40Z
TST: re-enable downstream geopandas test
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index b2a85b539fd86..122ef1f47968e 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -107,7 +107,6 @@ def test_pandas_datareader(): # importing from pandas, Cython import warning @pytest.mark.filterwar...
Closes https://github.com/pandas-dev/pandas/issues/32144
https://api.github.com/repos/pandas-dev/pandas/pulls/32752
2020-03-16T13:56:56Z
2020-03-16T16:55:37Z
2020-03-16T16:55:37Z
2020-03-16T16:55:59Z
Backport PR #32746: DOC: start 1.0.3
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 76d13478612ee..6764fbd736d46 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,9 +16,10 @@ Version 1.0 .. toctree:: :maxdepth: 2 - v1.0.0 - v1.0.1 + v1.0.3 v1.0.2 + v1.0.1 + v1.0.0 ...
https://github.com/pandas-dev/pandas/pull/32746
https://api.github.com/repos/pandas-dev/pandas/pulls/32750
2020-03-16T13:23:59Z
2020-03-16T14:34:52Z
2020-03-16T14:34:52Z
2020-03-16T14:34:53Z
DOC: start 1.0.3
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index cbfeb0352c283..50333b54ca903 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.0 .. toctree:: :maxdepth: 2 + v1.0.3 v1.0.2 v1.0.1 v1.0.0 diff --git a/doc/source/...
https://api.github.com/repos/pandas-dev/pandas/pulls/32746
2020-03-16T11:38:25Z
2020-03-16T13:14:59Z
2020-03-16T13:14:58Z
2020-03-16T14:37:42Z
CLN: Split pandas/tests/base/test_ops.py
diff --git a/pandas/tests/base/common.py b/pandas/tests/base/common.py new file mode 100644 index 0000000000000..b09710a974c2a --- /dev/null +++ b/pandas/tests/base/common.py @@ -0,0 +1,9 @@ +from typing import Any + +from pandas import Index + + +def allow_na_ops(obj: Any) -> bool: + """Whether to skip test cases i...
As suggested by @jreback in [this PR comment](https://github.com/pandas-dev/pandas/pull/32725#issuecomment-599299873) - [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/32744
2020-03-16T08:47:01Z
2020-03-17T11:52:36Z
2020-03-17T11:52:36Z
2020-03-17T11:52:44Z
Fix typo (add missing comma in list)
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 8e38332e67439..7414165ab5711 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -565,7 +565,7 @@ def to_datetime( Parameters ---------- - arg : int, float, str, datetime, list, tuple, 1-d a...
- [ ] 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/32743
2020-03-16T06:40:20Z
2020-03-16T17:28:23Z
2020-03-16T17:28:23Z
2020-03-16T18:13:50Z
BUG: Fix join on MultiIndex for mixed Datetimelike and string levels
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4e7bd5a2032a7..e03d2d4376e8a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -324,7 +324,7 @@ MultiIndex # Common elements are now guaranteed to be ordered by the left side left.inter...
# Problem From #26558, a minimal example is: ```python import pandas as pd import datetime i1 = pd.Index(['2019-05-31']) i2 = pd.Index([datetime.datetime(2019, 5, 31)]) mi1 = pd.MultiIndex.from_tuples([('2019-05-31',)]) mi2 = pd.MultiIndex.from_tuples([(datetime.datetime(2019, 5, 31),)]) print(i1.join(i2...
https://api.github.com/repos/pandas-dev/pandas/pulls/32739
2020-03-15T22:25:01Z
2020-06-14T15:34:59Z
null
2020-06-14T15:34:59Z
BUG: read_csv: fix wrong exception on permissions issue
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0d3a9a8f969a4..399e275bb371a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -346,6 +346,7 @@ I/O - Bug in :meth:`read_excel` where a UTF-8 string with a high surrogate would cause a segmentation viol...
Get rid of all error printf's and produce proper Python exceptions - [x] closes #23784 - [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/32737
2020-03-15T22:22:11Z
2020-03-19T01:40:41Z
2020-03-19T01:40:40Z
2020-03-19T19:07:07Z
REF: misplaced repr tests
diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index c5d4d59adbc35..48cf37a9abc8b 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -212,3 +212,8 @@ def test_repr_np_nat_with_object(self, arg, box, expected): # GH 25445 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32736
2020-03-15T21:08:40Z
2020-03-16T02:19:12Z
2020-03-16T02:19:12Z
2020-03-16T03:57:44Z
start using f-strings
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8d56311331d4d..37fe1f1ae9ebd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6,6 +6,7 @@ import operator import pickle import re +from string import Template from textwrap import dedent from typing import ( TYPE_CHECKING, ...
- [ ] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] upgrades old string formatting to f-strings in core/generic.py
https://api.github.com/repos/pandas-dev/pandas/pulls/32735
2020-03-15T20:42:58Z
2020-03-16T23:52:57Z
null
2020-03-16T23:52:57Z
BUG: arithmetic with reindex pow
diff --git a/doc/source/whatsnew/v1.0.3.rst b/doc/source/whatsnew/v1.0.3.rst index 482222fbddbb8..0ca5f5f548885 100644 --- a/doc/source/whatsnew/v1.0.3.rst +++ b/doc/source/whatsnew/v1.0.3.rst @@ -16,6 +16,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in ``resample.a...
- [x] closes #32685 - [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/32734
2020-03-15T19:52:43Z
2020-03-17T15:41:09Z
2020-03-17T15:41:09Z
2020-03-17T19:15:08Z
FIX: series.fillna doesn't shallow copy if len(series) == 0
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 21e59805fa143..fb45a9390e1d8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -303,8 +303,8 @@ Indexing Missing ^^^^^^^ -- -- +- Calling :meth:`fillna` on an empty Series now correctly returns a sha...
- [x] closes #32543 - [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/32733
2020-03-15T19:09:12Z
2020-03-16T22:34:14Z
2020-03-16T22:34:13Z
2020-03-16T22:41:33Z
REF: simplify json get_values
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 1d17cce0bc3a9..e2deffb46c4e6 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -237,21 +237,6 @@ static PyObject *get_values(PyObject *obj) { } }...
cc @WillAyd trying to get away from _internal_get_values in the json code; this is zero-logic-changing to narrow the scope of what gets passed to _internal_get_values. AFAICT replacing the _internal_get_values call with calling `__array__` doesnt break any tests, but in general the two are not always equivalent and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32731
2020-03-15T18:06:30Z
2020-03-16T01:26:32Z
2020-03-16T01:26:32Z
2020-03-16T16:09:33Z
TYP: annotate
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 6aa303dd04703..9aeaa827fe8b0 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -21,7 +21,7 @@ from pandas.core.dtypes.common import is_array_like, is_list_like from pandas.core.dtypes.dtypes import ExtensionDtype -f...
cc @simonjayhawkins had to revert some annotations because mypy couldn't tell that ArrayLike had "copy" or "view". Is a fix for that depending on numpy making annotations/stubs?
https://api.github.com/repos/pandas-dev/pandas/pulls/32730
2020-03-15T17:34:08Z
2020-03-19T11:33:30Z
2020-03-19T11:33:30Z
2020-03-19T15:43:49Z
DOC: Edit release notes
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 97260ec5e9f0e..600b189ed3ec1 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -17,7 +17,7 @@ Fixed regressions **Groupby** -- Fixed regression in :meth:`groupby(..).agg() <pandas.core.groupby.Group...
Small cosmetic changes to rendering of release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/32729
2020-03-15T17:15:04Z
2020-03-16T01:27:33Z
2020-03-16T01:27:33Z
2020-03-16T15:40:50Z
CLN: Remove unncessary lambda wrapper
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 28e0dcc5d9b13..a33226851e6fa 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -583,7 +583,7 @@ def setup(self): self.df4["jim"] = self.df4["joe"] def time_transform_lambda_max(self):...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry A lambda wrapper is unnecessary in these cases as the underlying methods are themselves callable. Moreover, the code does not add any logic in the wr...
https://api.github.com/repos/pandas-dev/pandas/pulls/32728
2020-03-15T17:06:15Z
2020-03-17T01:42:43Z
null
2020-03-21T07:46:48Z
CLN: Use keep fixture in more places
diff --git a/pandas/tests/frame/methods/test_duplicated.py b/pandas/tests/frame/methods/test_duplicated.py index 38b9d7fd049ab..34751b565a24b 100644 --- a/pandas/tests/frame/methods/test_duplicated.py +++ b/pandas/tests/frame/methods/test_duplicated.py @@ -64,7 +64,6 @@ def test_duplicated_nan_none(keep, expected): ...
Follow up of #32487 - for [this comment of jreback](https://github.com/pandas-dev/pandas/pull/32487#issuecomment-599153289) in particular - [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/32726
2020-03-15T11:08:15Z
2020-03-16T01:36:54Z
2020-03-16T01:36:53Z
2020-03-16T01:36:59Z
CLN: Remove Ops Mixin from pandas/tests/base
diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py index 5a78e5d6352a9..576206ebaacae 100644 --- a/pandas/tests/base/test_ops.py +++ b/pandas/tests/base/test_ops.py @@ -40,50 +40,6 @@ def allow_na_ops(obj: Any) -> bool: return not is_bool_index and obj._can_hold_na -class Ops: - def ...
11 PRs later, the moment has finally come: closes #23877 🎉 - [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/32725
2020-03-15T11:03:39Z
2020-03-16T01:37:45Z
2020-03-16T01:37:44Z
2020-03-16T01:38:06Z
BUG: Fix HDFStore empty keys on native HDF5 file by adding keyword include
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2a02041244362..169bf17aa5759 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -962,6 +962,7 @@ I/O - Bug in :meth:`~DataFrame.to_excel` could not handle the column name `render` and was raising an ``Ke...
- [x] closes #29916 - [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/32723
2020-03-15T10:44:05Z
2020-06-14T22:20:20Z
2020-06-14T22:20:19Z
2020-06-16T18:47:24Z
TST: Fix HDFStore leak in tests/io/pytables/test_store.py
diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py index 61ca2e7f5f19d..9a0788ea068ad 100644 --- a/pandas/tests/io/pytables/test_store.py +++ b/pandas/tests/io/pytables/test_store.py @@ -1217,14 +1217,14 @@ def test_read_missing_key_opened_store(self, setup_path): ...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32722
2020-03-15T10:37:29Z
2020-03-16T02:33:50Z
2020-03-16T02:33:50Z
2020-03-16T20:27:32Z
CLN: Switch to using `is not None` rather than `bool()`
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 71d9e8e7a577c..fbc87b1fdac04 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -446,7 +446,7 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True): stacklevel=3, ) - f = lambda ...
- [x] closes #32720 - [ ] tests added / passed - This change seemed trivial to *add* tests and should be covered by existing ones. - [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/32721
2020-03-15T09:57:10Z
2020-03-15T14:07:59Z
2020-03-15T14:07:59Z
2020-03-15T16:59:57Z
DOC: Fix PR01, PR07 in Index.min and Index.max
diff --git a/pandas/core/base.py b/pandas/core/base.py index 40ff0640a5bc4..e9ad076830899 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -885,6 +885,9 @@ def max(self, axis=None, skipna=True, *args, **kwargs): axis : int, optional For compatibility with NumPy. Only 0 or None are all...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. Output for pandas.Index.min: ``` ################################################################################ #########...
https://api.github.com/repos/pandas-dev/pandas/pulls/32718
2020-03-15T07:06:11Z
2020-03-16T22:26:32Z
2020-03-16T22:26:32Z
2020-03-16T22:26:39Z
CLN: remove SingleBlockManager._values
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 6362f11a3e032..19e51d05feb92 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1896,7 +1896,7 @@ def pre_processor(vals: np.ndarray) -> Tuple[np.ndarray, Optional[Type]]: inference = np...
https://api.github.com/repos/pandas-dev/pandas/pulls/32716
2020-03-15T05:19:02Z
2020-03-17T16:41:21Z
2020-03-17T16:41:21Z
2020-03-17T16:41:42Z
CLN: remove values_from_object
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index db1abae4d6ff3..dc2e8c097bc14 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -94,20 +94,6 @@ cdef: float64_t NaN = <float64_t>np.NaN -def values_from_object(obj: object): - """ - Return my values or the object if we are say an...
https://api.github.com/repos/pandas-dev/pandas/pulls/32715
2020-03-15T02:46:07Z
2020-03-16T02:22:32Z
2020-03-16T02:22:32Z
2020-03-16T02:48:28Z
REF: merge NonConsolidateableMixin into ExtensionArray
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 1a92a9486e9e4..07707e1b0093c 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1598,12 +1598,22 @@ def _replace_coerce( return self -class NonConsolidatableMixIn: - """ hold methods ...
without this mypy complains when we try to annotate some NonConsolidateableMixin methods
https://api.github.com/repos/pandas-dev/pandas/pulls/32714
2020-03-15T02:25:19Z
2020-03-16T02:23:32Z
2020-03-16T02:23:32Z
2020-03-16T03:58:07Z
REF: misplaced tests
diff --git a/pandas/tests/frame/methods/test_drop.py b/pandas/tests/frame/methods/test_drop.py new file mode 100644 index 0000000000000..e6d002369f758 --- /dev/null +++ b/pandas/tests/frame/methods/test_drop.py @@ -0,0 +1,54 @@ +import numpy as np +import pytest + +import pandas as pd +import pandas._testing as tm + + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32713
2020-03-15T01:19:08Z
2020-03-16T02:31:03Z
2020-03-16T02:31:03Z
2020-03-16T03:57:17Z
CLN: Prelims for stronger typing in Block methods
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b0909e23b44c5..eb8e6a70bb54e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6464,7 +6464,7 @@ def melt( # ---------------------------------------------------------------------- # Time series-related - def diff(self, periods=...
https://api.github.com/repos/pandas-dev/pandas/pulls/32712
2020-03-15T01:13:09Z
2020-03-16T02:28:56Z
2020-03-16T02:28:56Z
2020-03-16T14:59:39Z
Requested follow-up whatsnews
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9be994ee7104f..11757e1bf14e0 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -238,7 +238,7 @@ Categorical - Bug where :func:`merge` was unable to join on non-unique categorical indices (:issue:`28189`...
https://api.github.com/repos/pandas-dev/pandas/pulls/32711
2020-03-15T01:06:58Z
2020-03-16T16:40:54Z
2020-03-16T16:40:54Z
2020-03-16T16:41:13Z
REF: avoid runtime import of Index
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 1a51101bc8db8..5b324bc5753ec 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -2025,9 +2025,7 @@ def sort_mixed(values): ) codes = ensure_platform_int(np.asarray(codes)) - from pandas import Index - - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32710
2020-03-15T00:00:24Z
2020-03-15T00:31:44Z
2020-03-15T00:31:44Z
2020-03-15T01:27:43Z
skip 32 bit linux
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index c9a2e4eefd19d..437cc9b161e8a 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -38,11 +38,11 @@ jobs: LC_ALL: "it_IT.utf8" EXTRA_APT: "language-pack-it xsel" - py36_32bit: - ENV_FILE: ci/deps/azure-36-32bit.yaml...
follow up to #32706
https://api.github.com/repos/pandas-dev/pandas/pulls/32708
2020-03-14T19:32:57Z
2020-03-14T19:39:09Z
2020-03-14T19:39:09Z
2020-08-26T13:19:15Z
CLN: unnecessary usages of Block.get_values
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 83980e9028e9a..1a92a9486e9e4 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -605,7 +605,9 @@ def astype(self, dtype, copy: bool = False, errors: str = "raise"): # astype formatt...
https://api.github.com/repos/pandas-dev/pandas/pulls/32707
2020-03-14T18:29:17Z
2020-03-14T21:31:18Z
2020-03-14T21:31:18Z
2020-03-14T21:41:11Z
CI: Update pipelines config to trigger on PRs
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 42a039af46e94..d042bda77d4e8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,10 @@ # Adapted from https://github.com/numba/numba/blob/master/azure-pipelines.yml +trigger: +- master + +pr: +- master + jobs: # Mac and Linux use the same...
- [X] closes #32705
https://api.github.com/repos/pandas-dev/pandas/pulls/32706
2020-03-14T18:26:00Z
2020-03-14T19:30:03Z
2020-03-14T19:30:02Z
2020-06-15T15:57:58Z
DOC: Add examples to Series operators (#24589)
diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py index 203ea3946d1b2..7b03b4b449ea5 100644 --- a/pandas/core/ops/docstrings.py +++ b/pandas/core/ops/docstrings.py @@ -53,7 +53,7 @@ def _make_flex_doc(op_name, typ): return doc -_add_example_SERIES = """ +_common_examples_algebra_SERIES...
Further work on #24589. PR #25524 added examples for many operations but not `pandas.Series.eq`, `pandas.Series.ne`, `pandas.Series.gt`, `pandas.Series.ge`, `pandas.series.le`, and `pandas.series.lt`. This adds examples for those. `pandas.Series.divmod` is still missing an example as discussed in #25524.
https://api.github.com/repos/pandas-dev/pandas/pulls/32704
2020-03-14T16:33:25Z
2020-03-24T21:31:21Z
2020-03-24T21:31:21Z
2020-03-28T20:12:11Z
BUG: Add errors argument to to_csv() call to enable error handling for encoders
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2243790a663df..5fd90e8726264 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -288,6 +288,7 @@ Other enhancements - :meth:`HDFStore.put` now accepts `track_times` parameter. Parameter is passed to ``cr...
- [x] closes #22610 - [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/32702
2020-03-14T15:59:58Z
2020-06-08T23:36:05Z
2020-06-08T23:36:05Z
2020-06-09T19:13:07Z
BUG: Fix segfault on dir of a DataFrame with a unicode surrogate character in the column name
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0d3a9a8f969a4..b97dd580e2d8a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -402,6 +402,7 @@ Other - Fixed :func:`pandas.testing.assert_series_equal` to correctly raise if left object is a different ...
Return a `repr()` version if the column name string is not printable. This also means the the column name is not present in the output of `dir()` - [x] closes #25509 - [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/32701
2020-03-14T15:13:37Z
2020-03-19T19:50:40Z
2020-03-19T19:50:39Z
2020-03-19T22:02:36Z
Track times
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c74965bffdd7..1437006ee3fb8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -234,6 +234,7 @@ Other enhancements compression library. Compression was also added to the low-level Stata-file writers ...
I implement feature request https://github.com/pandas-dev/pandas/issues/32682 but if someone has more experience with pytables consider these changes. The h5 files generated with track_times=False has the same md5 hashes, that is covered in the unit test as well as the fact that the hashes are not the same with trac...
https://api.github.com/repos/pandas-dev/pandas/pulls/32700
2020-03-14T14:24:32Z
2020-05-14T12:38:24Z
2020-05-14T12:38:24Z
2020-07-30T14:01:59Z
DOC: Clarify output of diff (returned type and possible overflow)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2d181e826c2a9..483d7746b3e2d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7019,40 +7019,14 @@ def melt( # ---------------------------------------------------------------------- # Time series-related - def diff(self, period...
- [x] closes #28909 - [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] note about dtype in `diff` in Dataframa and Series
https://api.github.com/repos/pandas-dev/pandas/pulls/32699
2020-03-14T12:56:25Z
2020-06-01T10:32:23Z
2020-06-01T10:32:23Z
2020-06-01T10:33:00Z
DOC: Fix EX01 in pandas.DataFrame.idxmin
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e153fdaac16e2..b0909e23b44c5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8020,6 +8020,35 @@ def idxmin(self, axis=0, skipna=True) -> Series: Notes ----- This method is the DataFrame version of ``ndarray.argmin...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. ``` ################################################################################ ################################## Vali...
https://api.github.com/repos/pandas-dev/pandas/pulls/32697
2020-03-14T05:30:19Z
2020-03-14T16:50:22Z
2020-03-14T16:50:22Z
2020-03-14T17:36:07Z
CLN: remove unused int_block
diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index a569726e9a22a..0bbea671bae19 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -207,7 +207,6 @@ def setup_method(self, method): self.cblock = create_block...
https://api.github.com/repos/pandas-dev/pandas/pulls/32695
2020-03-14T01:53:08Z
2020-03-14T02:55:31Z
2020-03-14T02:55:31Z
2020-03-14T03:01:13Z
REF: de-duplicate calls in arithmetic functions
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index ed779c5da6d14..e603eb6e90445 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -600,6 +600,7 @@ def _combine_series_frame(left, right, func, axis: int, str_rep: str): Returns ------- + new_data : Data...
comp_method_FRAME in particular cleans up nicely
https://api.github.com/repos/pandas-dev/pandas/pulls/32694
2020-03-13T23:35:50Z
2020-03-14T15:55:19Z
null
2021-03-02T17:34:04Z
CLN: avoid _ndarray_values in reshape.merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index aeec2a43f39bf..85386923e9912 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -1657,10 +1657,13 @@ def _get_merge_keys(self): def _get_join_indexers(self): """ return the join indexers """ - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32693
2020-03-13T23:33:43Z
2020-03-14T02:58:00Z
2020-03-14T02:58:00Z
2020-03-14T16:47:23Z
CLN: remove unused kwargs from BlockManager.downcast
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 6d4ee6222933c..ea1f394aacd5f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -403,7 +403,9 @@ def _split_op_result(self, result) -> List["Block"]: return [result] - def fillna(self,...
add some annotations
https://api.github.com/repos/pandas-dev/pandas/pulls/32691
2020-03-13T21:28:42Z
2020-03-14T03:06:14Z
2020-03-14T03:06:14Z
2020-03-14T03:12:53Z
DOC: filter method example is more clear
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6f743d7388574..f6853a1bbb748 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4558,6 +4558,10 @@ def filter( >>> df = pd.DataFrame(np.array(([1, 2, 3], [4, 5, 6])), ... index=['mouse', 'rabbit'], ...
Added the print of the original example DataFrame. I was struggling to understand the example without looking at the starting point of it. I took the chance to do my first contribution to the project. Hopefully it is only the beginning!
https://api.github.com/repos/pandas-dev/pandas/pulls/32690
2020-03-13T19:59:42Z
2020-03-13T22:03:30Z
2020-03-13T22:03:30Z
2020-03-14T14:28:05Z
Accept dateutil frequency constants in date_range
diff --git a/pandas/tests/tseries/frequencies/test_to_offset.py b/pandas/tests/tseries/frequencies/test_to_offset.py index beaefe9109e91..d37244e713d91 100644 --- a/pandas/tests/tseries/frequencies/test_to_offset.py +++ b/pandas/tests/tseries/frequencies/test_to_offset.py @@ -30,6 +30,13 @@ ("2SM-16", offsets....
- [x] closes #9314 - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/32688
2020-03-13T19:29:48Z
2020-05-23T04:31:18Z
null
2020-05-23T04:31:19Z
TST: Parametrize in pandas/tests/internals/test_internals.py
diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 1a7d5839d9a11..deffeb0a1800c 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -333,13 +333,9 @@ def test_pickle(self, mgr): assert not mgr2._is_consolida...
- [ ] 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/32687
2020-03-13T19:27:07Z
2020-03-19T17:40:37Z
2020-03-19T17:40:37Z
2020-03-19T17:54:09Z
BUG: Series.__getitem__ with downstream scalars
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0d3a9a8f969a4..441c6cee32b2a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -303,6 +303,7 @@ Indexing - Bug in :meth:`Series.loc` and :meth:`DataFrame.loc` when indexing with an integer key on a obje...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @spencerclark I think this fixes a subset of the issues reported in https://github.com/pydata/xarray/issues/3751, can you confirm? @jorisvanden...
https://api.github.com/repos/pandas-dev/pandas/pulls/32684
2020-03-13T17:02:56Z
2020-03-19T00:02:07Z
2020-03-19T00:02:07Z
2020-03-19T01:38:15Z
pd.Timestamp constructor ignores missing arguments
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 64b79200028b6..af450c4a4b6fc 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -347,7 +347,6 @@ class Timestamp(_Timestamp): cls, object ts_input=_no_input, obj...
Hello. The PR fixes https://github.com/pandas-dev/pandas/issues/31930 Please review and merge if you think it is good enough :) Regards, Artyom.
https://api.github.com/repos/pandas-dev/pandas/pulls/32683
2020-03-13T15:33:15Z
2020-07-17T11:21:59Z
null
2023-05-11T01:19:34Z
PERF: Using Numpy C-API arange
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 437406cbbd819..7f861e587e637 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -7,7 +7,9 @@ cdef extern from "Python.h": Py_ssize_t PY_SSIZE_T_MAX import numpy as np -from numpy cimport int64_t +cimport numpy as...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- This PR was opened as @jbrockmendel suggested (ref https://github.com/pandas-dev/pandas/pull/32177#discussion_r382923663) --- ### Benchm...
https://api.github.com/repos/pandas-dev/pandas/pulls/32681
2020-03-13T14:39:29Z
2020-03-14T15:54:56Z
2020-03-14T15:54:56Z
2020-03-18T12:47:08Z
Fix wrong docstring in qcut
diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py index 86417faf6cd11..b9eb89b4d14c6 100644 --- a/pandas/core/reshape/tile.py +++ b/pandas/core/reshape/tile.py @@ -286,7 +286,7 @@ def qcut( Parameters ---------- x : 1d ndarray or Series - q : int or list-like of int + q : int o...
- [ ] 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/32679
2020-03-13T13:38:18Z
2020-03-13T22:20:27Z
2020-03-13T22:20:27Z
2020-03-13T22:20:32Z
CLN: Remove PY2 compat code
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index 359e5b956f8a5..145cf43112be3 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -985,12 +985,7 @@ def get_empty_frame(data) -> DataFrame: if prefix is None: dummy_cols = levels else: - ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- Benchmarks: #### Master: ``` In [1]: import pandas as pd ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32677
2020-03-13T11:00:16Z
2020-03-13T12:14:14Z
2020-03-13T12:14:14Z
2020-03-14T14:07:29Z
Avoid bare pytest.raises in dtypes/test_dtypes.py
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 181f0c8906853..d29102cbd4604 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -558,7 +558,7 @@ def validate_categories(categories, fastpath: bool = False): if not fastpath: if categories...
* [x] ref #30999 * [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/32672
2020-03-13T02:10:55Z
2020-03-18T09:12:01Z
2020-03-18T09:12:01Z
2020-03-21T00:41:31Z
REF: put all post-processing at end of DataFrame._reduce
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5e8db3acc7ff3..e153fdaac16e2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7808,6 +7808,8 @@ def _reduce( self, op, name, axis=0, skipna=True, numeric_only=None, filter_type=None, **kwds ): + assert filter_type is N...
there's some nasty try/except logic in DataFrame._reduce. This is simplifying the code _around_ that.
https://api.github.com/repos/pandas-dev/pandas/pulls/32671
2020-03-13T02:00:15Z
2020-03-14T03:03:17Z
2020-03-14T03:03:17Z
2020-03-14T03:04:51Z
TST: reintroduce check_series_type in assert_series_equal
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 11757e1bf14e0..0630823f0de35 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -396,6 +396,7 @@ Other - Set operations on an object-dtype :class:`Index` now always return object-dtype results (:issue:`3...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Re-introduced `check_series_type` in `assert_series_equal` which was recently removed in #32513. It was a part of public API which is not used internally, but it is used elsewhere (like geopandas). Discussion in #32513 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32670
2020-03-12T22:52:49Z
2020-03-16T22:43:07Z
2020-03-16T22:43:07Z
2020-03-16T22:43:08Z
PERF: MultiIndex._shallow_copy
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5b6f70be478c2..48eff0543ad4d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -190,7 +190,7 @@ Performance improvements - Performance improvement in flex arithmetic ops between :class:`DataFrame` and :...
- [x] xref #28584, #32568, #32640 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Improves performance of ``MultiIndex._shallow_copy``. Example: ```python >>> n = 100_000 >>> df = pd.DataFrame({'a': range(n), 'b...
https://api.github.com/repos/pandas-dev/pandas/pulls/32669
2020-03-12T22:48:47Z
2020-03-14T16:29:24Z
2020-03-14T16:29:24Z
2020-03-29T17:48:22Z
BUG: DatetimeArray._from_sequence accepting bool dtype
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 48eff0543ad4d..d2038f7dc7468 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -216,6 +216,7 @@ Datetimelike - Bug in :class:`Timestamp` where constructing :class:`Timestamp` with dateutil timezone less...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Identified when making the change this makes in Series.
https://api.github.com/repos/pandas-dev/pandas/pulls/32668
2020-03-12T21:04:08Z
2020-03-15T00:34:01Z
2020-03-15T00:34:01Z
2020-03-15T21:00:00Z
implemented additionally functionality of formatters_col in to_latex
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index a269580bc4453..3b33eba2b3f89 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -1,3 +1,4 @@ + .. _whatsnew_120: What's new in 1.2.0 (??) @@ -435,6 +436,18 @@ ExtensionArray - Fixed bug where ``astyp...
Not sure what I should do for the whatsnew entry, bit confused about versioning. - [ x ] closes #26278 - [ 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/32666
2020-03-12T18:11:02Z
2020-11-01T04:37:40Z
null
2020-11-01T04:37:40Z
BUG: Fix to_json when converting Period column
diff --git a/.gitignore b/.gitignore index 6c3c275c48fb7..f236f897637a3 100644 --- a/.gitignore +++ b/.gitignore @@ -118,3 +118,4 @@ doc/build/html/index.html doc/tmp.sv env/ doc/source/savefig/ +venv/ diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index bd47bef397aa7..fafb9abdade8c 100...
AttributeError when trying to access frequency string ``freqstr`` directly on Series of ``Period`` type. Modified to get it through ``dtype`` of Series, which is known to be ``Period``. - [X] closes #31917 - [X] fix #31917 - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstrea...
https://api.github.com/repos/pandas-dev/pandas/pulls/32665
2020-03-12T18:10:32Z
2020-08-06T11:19:32Z
null
2020-08-06T11:19:32Z
REF: values-> _values
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 6388f2007cb12..52423c4008399 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -396,7 +396,7 @@ def _engine(self): def unique(self, level=None): if level is not None: self....
For the affected Index subclasses .values and ._values are the same
https://api.github.com/repos/pandas-dev/pandas/pulls/32662
2020-03-12T14:55:52Z
2020-03-14T03:12:13Z
2020-03-14T03:12:13Z
2020-03-14T03:14:32Z
Backport PR #32658 on branch 1.0.x (DOC: Organize regressions)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 6eac25c661689..d3921271264c2 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_102: -What's new in 1.0.2 (March 11, 2020) +What's new in 1.0.2 (March 12, 2020) -------------...
Backport PR #32658: DOC: Organize regressions
https://api.github.com/repos/pandas-dev/pandas/pulls/32661
2020-03-12T14:11:16Z
2020-03-12T14:39:01Z
2020-03-12T14:39:01Z
2020-03-12T14:39:01Z
Backport PR #32490: BUG: Fix bug, where BooleanDtype columns are conv…
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index e42402b307f28..b19bd2240ca9e 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -589,6 +589,8 @@ def astype(self, dtype, copy=True): if getattr(self.dtype, "tz", None) is None: ...
…erted to Int64 https://github.com/pandas-dev/pandas/pull/32490
https://api.github.com/repos/pandas-dev/pandas/pulls/32660
2020-03-12T13:30:27Z
2020-03-12T14:11:32Z
2020-03-12T14:11:31Z
2020-03-12T14:11:36Z
Backport PR #32656 on branch 1.0.x (DOC: fix announce formtting)
diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py index 9bc353b115852..839970febda2c 100755 --- a/doc/sphinxext/announce.py +++ b/doc/sphinxext/announce.py @@ -122,14 +122,15 @@ def build_string(revision_range, heading="Contributors"): components["uline"] = "=" * len(components["heading"]) co...
Backport PR #32656: DOC: fix announce formtting
https://api.github.com/repos/pandas-dev/pandas/pulls/32659
2020-03-12T13:16:12Z
2020-03-12T14:07:37Z
2020-03-12T14:07:37Z
2020-03-12T14:07:37Z
DOC: Organize regressions
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 0bfcb95b25ffd..97260ec5e9f0e 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -1,6 +1,6 @@ .. _whatsnew_102: -What's new in 1.0.2 (March 11, 2020) +What's new in 1.0.2 (March 12, 2020) -------------...
https://api.github.com/repos/pandas-dev/pandas/pulls/32658
2020-03-12T12:23:09Z
2020-03-12T14:11:02Z
2020-03-12T14:11:02Z
2020-03-12T14:11:05Z
Backport PR #32544 on branch 1.0.x (BUG: pd.ExcelFile closes stream on destruction)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 211d0ec95f7ee..6eac25c661689 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed regression in the repr of an object-dtype :class:`Index` with bools and missing va...
Backport PR #32544: BUG: pd.ExcelFile closes stream on destruction
https://api.github.com/repos/pandas-dev/pandas/pulls/32657
2020-03-12T12:18:53Z
2020-03-12T13:15:43Z
2020-03-12T13:15:43Z
2020-03-12T13:15:43Z
DOC: fix announce formtting
diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py index e4859157f73de..0084036f1e75c 100755 --- a/doc/sphinxext/announce.py +++ b/doc/sphinxext/announce.py @@ -122,14 +122,15 @@ def build_string(revision_range, heading="Contributors"): components["uline"] = "=" * len(components["heading"]) co...
Master: ``` Contributors ============ A total of 143 people contributed patches to this release. People with a "+" by their names contributed a patch for the first time. * 3vts + * A Brooks + * Abbie Popa + * Achmad Syarif Hidayatullah + ``` PR ``` Contributors ============ A...
https://api.github.com/repos/pandas-dev/pandas/pulls/32656
2020-03-12T12:04:27Z
2020-03-12T13:16:00Z
2020-03-12T13:16:00Z
2020-03-12T13:16:04Z
DOC: Fix EX02 in pandas.Series.memory_usage
diff --git a/pandas/core/series.py b/pandas/core/series.py index 2d8eb9b29498a..c52df33e3721d 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4195,7 +4195,7 @@ def memory_usage(self, index=True, deep=False): >>> s.memory_usage() 144 >>> s.memory_usage(deep=True) - 26...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. ``` ################################################################################ ################################## Vali...
https://api.github.com/repos/pandas-dev/pandas/pulls/32653
2020-03-12T09:11:33Z
2020-03-16T23:59:43Z
null
2020-03-16T23:59:44Z
BUG: process Int64 as ints for preservable ops, not as float64
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 720ce7af47a18..d6b73b0de801a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -406,6 +406,7 @@ Other - :meth:`IntegerArray.astype` now supports ``datetime64`` dtype (:issue:32538`) - Fixed bug in :fun...
Calling `.min()` or `.max()` on `pd.Int64` data returns integers, but uses `float64` as an intermediate representation, leading to data corruption. This PR attempts to whitelist them to be processed entirely as `Int64`s. Also add a test that verifies this behavior, as existing tests failed to detect the bug. - [x...
https://api.github.com/repos/pandas-dev/pandas/pulls/32652
2020-03-12T08:35:13Z
2020-04-18T02:46:09Z
null
2020-04-18T02:46:09Z
BUG: DTI/TDI/PI get_indexer_non_unique with incompatible dtype
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 1663d4c44c362..cdef6c65863fa 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -301,6 +301,7 @@ Indexing - Bug in :meth:`DataFrame.iat` incorrectly returning ``Timestamp`` instead of ``datetime`` in som...
I'm pretty sure we can share more code here, but PeriodEngine needs some work first.
https://api.github.com/repos/pandas-dev/pandas/pulls/32650
2020-03-12T03:17:52Z
2020-03-17T01:41:27Z
2020-03-17T01:41:27Z
2020-03-23T16:12:20Z
Backport PR #32223: BUG: Fix DateFrameGroupBy.mean error for Int64 dtype
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d00a418af3ddb..c9521cd7fb75c 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -92,6 +92,7 @@ Bug fixes - Fixed bug in setting values using a slice indexer with string dtype (:issue:`31772`) - Fixed bu...
cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/32649
2020-03-12T02:46:56Z
2020-03-12T04:28:27Z
2020-03-12T04:28:26Z
2020-03-12T15:04:33Z
Backport PR #32040 on branch 1.0.x (BUG: GroupBy aggregation of DataFrame with MultiIndex columns breaks with custom function)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d00a418af3ddb..5ffde693da9c2 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issu...
Backport PR #32040: BUG: GroupBy aggregation of DataFrame with MultiIndex columns breaks with custom function
https://api.github.com/repos/pandas-dev/pandas/pulls/32648
2020-03-12T02:33:39Z
2020-03-12T04:26:39Z
2020-03-12T04:26:39Z
2020-03-12T04:26:40Z
Backport PR #32591 on branch 1.0.x (REG: dt64 shift with integer fill_value)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d00a418af3ddb..69eca8d8c175d 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -29,6 +29,7 @@ Fixed regressions - Fixed regression in :meth:`read_csv` in which the ``encoding`` option was not recognized...
Backport PR #32591: REG: dt64 shift with integer fill_value
https://api.github.com/repos/pandas-dev/pandas/pulls/32647
2020-03-12T02:26:57Z
2020-03-12T04:26:18Z
2020-03-12T04:26:18Z
2020-03-12T04:26:18Z
MultiIndex union/intersection with non-object other
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 5bffc4ec552af..d30765217390f 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3243,9 +3243,13 @@ def union(self, other, sort=None): # TODO: Index.union returns other when `len(self)` is 0. - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ATM if we call MultiIndex.union with e.g. a Float64Index, we get `ValueError: Buffer dtype mismatch, expected 'Python object' but got 'double'` from ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32646
2020-03-12T01:38:42Z
2020-03-17T01:37:11Z
2020-03-17T01:37:11Z
2020-03-17T01:39:37Z
Simplified get_blkno_indexers
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 7f861e587e637..5545302fcbfc4 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -1,4 +1,5 @@ import cython +from collections import defaultdict from cython import Py_ssize_t from cpython.slice cimport PySlice_GetInd...
This function is the last that appears to be throwing warnings in #32163 This PR doesn't solve that, but simplifies the logic to make it easier to grok
https://api.github.com/repos/pandas-dev/pandas/pulls/32645
2020-03-12T00:26:31Z
2020-03-15T00:35:24Z
2020-03-15T00:35:24Z
2023-04-12T20:15:53Z