title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
BUG: 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: 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 | |
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: 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 | |
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 |
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 |
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 |
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 |
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 |
CLN: Deduplicate show_versions | diff --git a/doc/source/install.rst b/doc/source/install.rst
index 1c1f0c1d4cf8e..ee4b36f898e31 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -286,6 +286,7 @@ psycopg2 PostgreSQL engine for sqlalchemy
pyarrow 0.9.0 Parquet and fea... | Closes #26814
The old version had special cases for numpy, scipy, and pytz. All those now provide a standard `__version__`. xlrd and xlwt are the only special ones now (`__version__`)
I messed up the minimum xlwt version in the last PR. I copied openpyxl's rather than xlwt's. That's now fixed.
I prettied up... | https://api.github.com/repos/pandas-dev/pandas/pulls/26816 | 2019-06-12T19:00:35Z | 2019-06-21T01:48:37Z | 2019-06-21T01:48:37Z | 2019-06-21T01:48:48Z |
CLN: compat.to_str -> core.dtypes.common.ensure_str | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 7036d0e1428fe..4459e66540dac 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -24,17 +24,6 @@
# found at https://bitbucket.org/gutworth/six
-def to_str(s):
- """
- Convert bytes and non-string into Python 3 str
... | ``compat.to_str`` is useful to have in cases where an object might be a ``bytes`` object, so it's moved to ``core.dtypes.common`` and renamed to ``ensure_str``.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26811 | 2019-06-12T13:50:30Z | 2019-06-12T14:56:56Z | 2019-06-12T14:56:56Z | 2019-06-12T14:57:01Z |
DOC: Fixing some more warnings | diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst
index 0e68cddde8bc7..3235e3c2a8b2e 100644
--- a/doc/source/user_guide/advanced.rst
+++ b/doc/source/user_guide/advanced.rst
@@ -703,6 +703,8 @@ faster than fancy indexing.
%timeit arr[indexer]
%timeit arr.take(indexer, axis=0)
... | - [X] closes #26788, xref #24173
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixing some more warnings in the doc build, and small improvements to the interpolation doc.
CC: @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/26810 | 2019-06-12T13:13:20Z | 2019-06-14T06:45:13Z | 2019-06-14T06:45:13Z | 2019-06-14T06:48:32Z |
REF: Consistent optional dependency handling | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index ba0558cff07eb..135fb55cfce50 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -499,6 +499,21 @@ as possible to avoid mass breakages.
Additional standards are outline... | Standardizes how we do our optional dependency checking.
1. Adds a new `import_optional_dependency` helper that handles optional importing, raising with a nice message, and warning / raising if the version is not correct.
2. Changes inline `try / except ImportError` to use `import_optional_dependency`
3. Documents... | https://api.github.com/repos/pandas-dev/pandas/pulls/26802 | 2019-06-12T03:16:04Z | 2019-06-12T17:56:54Z | 2019-06-12T17:56:54Z | 2019-06-12T18:59:01Z |
REF: remove unreachable code in core.internals | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index f86ef40a97299..f9178959d8272 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -417,17 +417,14 @@ def split_and_operate(self, mask, f, inplace):
new_values = self.values
def make_... | @TomAugspurger it looks like _sparse_blockify is never hit. Is that no longer reachable? | https://api.github.com/repos/pandas-dev/pandas/pulls/26800 | 2019-06-12T02:27:29Z | 2019-06-12T11:13:53Z | 2019-06-12T11:13:53Z | 2019-06-12T14:08:25Z |
TST/REF: parametrize arithmetic tests, simplify parts of core.ops | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index 86a255321f827..0b9e56fd19556 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -1077,7 +1077,7 @@ def fill_binop(left, right, fill_value):
return left, right
-def mask_cmp_op(x, y, op, allowed_types):
+def mask_cmp_op(x, y, op):
"""
... | Parametrization is straightforward.
Fixing xfailed test in test_properties is straightforward
In core.ops: ATM we have a nested closure that wraps all of na_op in a try/except, but there is really only one line we want to catch. This simplifies the closure and catches only the relevant line. | https://api.github.com/repos/pandas-dev/pandas/pulls/26799 | 2019-06-12T00:29:02Z | 2019-06-25T16:11:51Z | 2019-06-25T16:11:51Z | 2019-06-25T18:00:19Z |
DOC: Document existing functionality of pandas.DataFrame.to_sql() #11886 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6ade69fb4ca9d..1a5b36b07e93c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2594,13 +2594,14 @@ def to_sql(
`index` is True, then the index names are used.
A sequence should be given if the DataFrame uses ... | - [x] Adds documentation for #11886
- [ ] doc build fails (may be related to #26723)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] **What's new?** Adds documentation to an existing functionality. In fact, the functionality is documented at `pandas.io.sql.to_sql` but it's not visible [he... | https://api.github.com/repos/pandas-dev/pandas/pulls/26795 | 2019-06-11T20:36:35Z | 2019-08-30T17:09:04Z | 2019-08-30T17:09:04Z | 2019-08-31T19:15:42Z |
DOC: Fix rolling doc with win_type triang (#22268) | diff --git a/pandas/core/window.py b/pandas/core/window.py
index f332075380c79..ab1f49aec2ad1 100644
--- a/pandas/core/window.py
+++ b/pandas/core/window.py
@@ -530,8 +530,8 @@ class Window(_Window):
>>> df.rolling(2, win_type='triang').sum()
B
0 NaN
- 1 1.0
- 2 2.5
+ 1 0.5
+ 2 1.5
... | - [x] closes #22268
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26794 | 2019-06-11T19:38:13Z | 2019-06-12T01:42:51Z | 2019-06-12T01:42:50Z | 2019-07-11T15:47:51Z |
TST/CLN: use float_frame fixture to remove use of tm.getSeriesData() | diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py
index 172c29b951001..256ee930b4cda 100644
--- a/pandas/tests/arithmetic/test_numeric.py
+++ b/pandas/tests/arithmetic/test_numeric.py
@@ -712,10 +712,9 @@ def test_datetime64_with_index(self):
tm.assert_series_equal(... | this PR removes 2 unnecessary fixtures from `pandas\tests\groupby\conftest.py`
and a few small changes to remove use of `tm.getSeriesData()` with a couple of exceptions:
- conftest files: `pandas\conftest.py` and `pandas\tests\frame\conftest.py` (needed for fixtures)
- `pandas\tests\frame\common.py` (this modul... | https://api.github.com/repos/pandas-dev/pandas/pulls/26787 | 2019-06-11T15:42:21Z | 2019-06-11T18:31:24Z | 2019-06-11T18:31:24Z | 2019-06-12T13:59:30Z |
DOC: Fixing some doc warnings | diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst
index 79beeb0022307..92f62a812d23b 100644
--- a/doc/source/reference/series.rst
+++ b/doc/source/reference/series.rst
@@ -472,6 +472,7 @@ strings and apply several methods to it. These can be accessed like
Series.str
Series.c... | - [x] xref #24173
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixing some docs warnings, still many more, but will open few PRs with fixes, try to get a clean build and start failing the CI for doc warnings. | https://api.github.com/repos/pandas-dev/pandas/pulls/26786 | 2019-06-11T14:39:57Z | 2019-06-12T09:02:14Z | 2019-06-12T09:02:14Z | 2019-06-12T09:02:14Z |
DOC: clean-up numpydoc patches now numpydoc 0.9 is released | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 971aa04ba866a..2484a9d592e09 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -18,7 +18,7 @@
import jinja2
from sphinx.ext.autosummary import _import_by_name
from numpydoc.docscrape import NumpyDocString
-from numpydoc.docscrape_sphinx import Sphi... | Since numpydoc is released, we can do some cleanup of what was introduced in https://github.com/pandas-dev/pandas/pull/24098
cc @FHaase | https://api.github.com/repos/pandas-dev/pandas/pulls/26785 | 2019-06-11T14:38:21Z | 2019-06-11T19:23:24Z | 2019-06-11T19:23:24Z | 2019-06-11T19:23:30Z |
DOC: pin sphinx to 1.8.5 | diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml
index a3c9f27f72d7e..9419543e601e2 100644
--- a/ci/deps/travis-36-doc.yaml
+++ b/ci/deps/travis-36-doc.yaml
@@ -33,8 +33,8 @@ dependencies:
- pytz
- scipy
- seaborn
- # recursion error with sphinx 2.1.0. https://github.com/pandas-dev/pandas/... | xref https://github.com/pandas-dev/pandas/issues/26058 | https://api.github.com/repos/pandas-dev/pandas/pulls/26781 | 2019-06-11T12:10:08Z | 2019-06-12T15:12:14Z | 2019-06-12T15:12:13Z | 2019-10-06T07:37:26Z |
DOC: fix old whatsnew examples + few sphinx warnings | diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst
index c919698d15689..0dfcfca9a7464 100644
--- a/doc/source/whatsnew/v0.11.0.rst
+++ b/doc/source/whatsnew/v0.11.0.rst
@@ -105,27 +105,54 @@ Conversion
Mixed Conversion
-.. ipython:: python
- :okwarning:
+.. code-block:: ipython
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26780 | 2019-06-11T11:52:04Z | 2019-06-11T15:47:40Z | 2019-06-11T15:47:39Z | 2019-06-11T15:55:32Z | |
PERF: avoid printing object in Dtype.construct_from_string message | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index 0a0ba69659570..d1d48f9810419 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -214,6 +214,8 @@ def construct_from_string(cls, string: str):
... raise TypeError("Cannot construct a '{}' from "
... | xref https://github.com/pandas-dev/pandas/pull/26562#issuecomment-500120556 | https://api.github.com/repos/pandas-dev/pandas/pulls/26776 | 2019-06-11T07:34:05Z | 2019-06-12T14:44:22Z | 2019-06-12T14:44:22Z | 2019-06-12T14:44:29Z |
fix typo | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c4e08f50958f7..dd6a680ab1a4e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7476,7 +7476,7 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
aligned; see ``.align()`` method). If an ndarray is... | - [N/A] closes #xxxx
- [none] tests added / passed
- [no (online Github minor change)] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [probably not necessary either?] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26775 | 2019-06-10T22:39:04Z | 2019-06-10T23:32:39Z | 2019-06-10T23:32:39Z | 2019-06-10T23:32:45Z |
PERF: 5x speedup for read_json() with orient='index' by avoiding transpose | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 68ecb4c487a1e..23c56f8b78043 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -939,6 +939,7 @@ Performance improvements
- Improved performance by removing the need for a garbage collect when checki... | The `.T` operator can be quite slow on mixed-type `DataFrame`s due to the creation of `object` dtype columns. In comparison to direct construction with `DataFrame.from_dict()` can generally be much more efficient.
Making that swap inside `pd.read_json()` yields a `~5-6x` speedup for the `orient='index'` case:
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/26773 | 2019-06-10T19:11:37Z | 2019-07-17T11:49:29Z | 2019-07-17T11:49:29Z | 2019-07-17T11:49:32Z |
BENCH: fix noisy asv benchmarks that were running on exhausted generators | diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py
index 1c6841a296377..42adede631a01 100644
--- a/asv_bench/benchmarks/ctors.py
+++ b/asv_bench/benchmarks/ctors.py
@@ -55,7 +55,14 @@ class SeriesConstructors:
[False, True],
['float', 'int']]
+ # Generators get... | Generators get consumed on first use, yielding abnormally fast benchmark times on the `n>1` iterations. Fortunately we can instruct `asv` to call `setup()` prior to every sample by setting `number = 1` and `repeat` appropriately. My local runs suggest the typical number of samples is `~150-250`, so an upper limit of `2... | https://api.github.com/repos/pandas-dev/pandas/pulls/26772 | 2019-06-10T19:01:43Z | 2019-06-21T02:03:03Z | 2019-06-21T02:03:03Z | 2019-08-14T07:00:54Z |
Fix matplotlib converter registering warning | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 81f5b5cb0f74c..78c7082c69b6b 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -5,19 +5,16 @@
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
-im... | Closes #26760
Tests were being skipped, because the module name changed in https://github.com/pandas-dev/pandas/pull/18307/files. | https://api.github.com/repos/pandas-dev/pandas/pulls/26770 | 2019-06-10T17:11:09Z | 2019-06-21T02:06:35Z | 2019-06-21T02:06:35Z | 2019-06-21T02:06:57Z |
BLD: fix py37 build warnings | diff --git a/pandas/io/msgpack/_unpacker.pyx b/pandas/io/msgpack/_unpacker.pyx
index 8734990c44da0..c2e2dfc521a51 100644
--- a/pandas/io/msgpack/_unpacker.pyx
+++ b/pandas/io/msgpack/_unpacker.pyx
@@ -5,15 +5,13 @@ from cython cimport Py_ssize_t
from cpython cimport (
PyCallable_Check,
- PyBUF_SIMPLE, PyObje... | Not at all sure this is the optimal way to do this, cc @WillAyd for suggestions | https://api.github.com/repos/pandas-dev/pandas/pulls/26769 | 2019-06-10T17:02:38Z | 2019-06-27T21:59:49Z | 2019-06-27T21:59:49Z | 2019-06-27T22:05:10Z |
[26660] compare int with double by subtracting during describe percen… | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 844e062b20ca3..21e75d5d1ad07 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -97,7 +97,7 @@ Other Enhancements
- :func:`merge_asof` now gives a more clear error message when merge keys are categor... | - [x] closes #26660
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I am not sure whether I had put my issue in whatsnew entry in appropriate place. | https://api.github.com/repos/pandas-dev/pandas/pulls/26768 | 2019-06-10T14:33:19Z | 2019-06-11T00:16:58Z | 2019-06-11T00:16:58Z | 2019-06-11T05:35:28Z |
BUG: fix IntervalIndex for pivot table raise type error | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 76ee21b4c9a50..0ea022e83ea08 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -720,6 +720,7 @@ Reshaping
- Bug in :func:`pandas.cut` where large bins could incorrectly raise an error due to an inte... | Close (#25814). When use IntervalIndex for pivot table, raise
TypeError: cannot determine next label for type <class 'str'>
- [x] closes #25814
- [x] tets added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26765 | 2019-06-10T10:55:26Z | 2019-06-13T20:41:45Z | 2019-06-13T20:41:44Z | 2019-06-14T02:06:04Z |
TST/CLN: declass smaller test files in tests\io\excel | diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py
index 8be96a771f3aa..6815d2aa079f8 100644
--- a/pandas/tests/io/excel/test_openpyxl.py
+++ b/pandas/tests/io/excel/test_openpyxl.py
@@ -1,124 +1,123 @@
import pytest
-import pandas.util._test_decorators as td
-
from pandas ... | xref https://github.com/pandas-dev/pandas/pull/26755#pullrequestreview-247416090
the larger files `pandas/tests/io/excel/test_readers.py` and `pandas/tests/io/excel/test_writers.py` have been left for separate PRs
any idiom changes other than required to declass are also omitted to make the diff easier to check. | https://api.github.com/repos/pandas-dev/pandas/pulls/26764 | 2019-06-10T10:15:53Z | 2019-06-10T17:32:01Z | 2019-06-10T17:32:01Z | 2019-06-11T14:49:29Z |
TST/CLN: reuse float_frame fixture in tests\reshape\test_concat.py | diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py
index ecd62380d8c65..1420d4420e430 100644
--- a/pandas/tests/reshape/test_concat.py
+++ b/pandas/tests/reshape/test_concat.py
@@ -39,15 +39,7 @@ def sort_with_none(request):
return request.param
-class ConcatenateBase:
-
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26763 | 2019-06-10T08:26:17Z | 2019-06-10T21:52:41Z | 2019-06-10T21:52:41Z | 2019-06-11T14:50:52Z | |
BLD: use unsigned instead of signed for lengths, avoid build warnings | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 88b918e9cc515..b73b70caf1597 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -119,24 +119,24 @@ cdef extern from "parser/tokenizer.h":
# where to write out tokenized data
char *stream
- int64_t stre... | I'm much more confident about the other two BLD PRs (#26757, #26758) than this, largely because:
- [ ] in a couple of comments here I wrote that a certain term should always be non-negative. I haven't actually confirmed that this is always the case
- [ ] This changed things from int64_t to uint64_t, but could also... | https://api.github.com/repos/pandas-dev/pandas/pulls/26759 | 2019-06-10T03:30:26Z | 2019-06-22T17:19:03Z | 2019-06-22T17:19:03Z | 2019-06-22T18:07:48Z |
BLD: fix build warnings in tslib by casting explicitly to object | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 3ea70541382de..0eb3e3c79aa47 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -127,7 +127,7 @@ def ints_to_pydatetime(int64_t[:] arr, object tz=None, object freq=None,
for i in range(n):
value = arr[i]
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26758 | 2019-06-10T03:20:47Z | 2019-06-10T12:30:42Z | 2019-06-10T12:30:42Z | 2019-06-10T13:56:20Z |
BLD: fix build warnings | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index faa7ab95fd28b..f9e1ebb11116b 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -119,7 +119,8 @@ def left_outer_join(const int64_t[:] left, const int64_t[:] right,
right_indexer = _get_result_indexer(right_sorter, right_indexer)
... | xref #25995, #17936
AFAICT these warnings are caused by cython casting `len(some_ndarray)` to `int` or `Py_ssize_t` but casting `len(some_memoryview)` to `size_t`. Easiest fix is to declare the affected len variables as `size_t` since we know they'll never be negative. | https://api.github.com/repos/pandas-dev/pandas/pulls/26757 | 2019-06-10T01:58:04Z | 2019-06-12T15:44:56Z | 2019-06-12T15:44:56Z | 2019-06-12T16:52:48Z |
TST/CLN: reuse float_frame fixture in tests\io\formats\test_format.py | diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py
index 2779e3f56f923..bae2470459f62 100644
--- a/pandas/tests/io/formats/test_format.py
+++ b/pandas/tests/io/formats/test_format.py
@@ -11,7 +11,6 @@
from shutil import get_terminal_size
import sys
import textwrap
-import wa... | follow-on from #26603
| https://api.github.com/repos/pandas-dev/pandas/pulls/26756 | 2019-06-09T21:17:33Z | 2019-06-09T21:58:23Z | 2019-06-09T21:58:23Z | 2019-06-10T07:59:54Z |
Split test_excel into submodule | diff --git a/pandas/tests/io/excel/__init__.py b/pandas/tests/io/excel/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/io/excel/conftest.py b/pandas/tests/io/excel/conftest.py
new file mode 100644
index 0000000000000..935db254bd2e5
--- /dev/null
+++ b/pandas/tests/io/excel/... | - [X] closes #24472
@simonjayhawkins
Just moved everything as is. Some of the class structures are unnecessary now but leaving for follow ups | https://api.github.com/repos/pandas-dev/pandas/pulls/26755 | 2019-06-09T15:18:50Z | 2019-06-09T21:51:12Z | 2019-06-09T21:51:12Z | 2019-06-10T02:27:44Z |
DOC: warning on look-ahead bias with resampling | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index f559b0d073320..f27e9c677d925 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -761,34 +761,6 @@ regularity will result in a ``DatetimeIndex``, although frequency is lost:
t... | - [x] closes #11123
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26754 | 2019-06-09T14:03:32Z | 2019-06-12T18:52:30Z | 2019-06-12T18:52:30Z | 2019-06-12T18:52:34Z |
PLOT: Add option to specify the plotting backend | diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst
index 4b466c2c44d49..4d0def435cb1e 100644
--- a/doc/source/user_guide/options.rst
+++ b/doc/source/user_guide/options.rst
@@ -431,6 +431,12 @@ compute.use_bottleneck True Use the bottleneck library
... | - [x] closes #14130
- [x] tets added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adding option to specify the plotting backend. This does not change the plotting API, so for now backends are expected to implement the existing methods in the matplotlib API. Th... | https://api.github.com/repos/pandas-dev/pandas/pulls/26753 | 2019-06-09T11:33:34Z | 2019-06-21T09:37:18Z | 2019-06-21T09:37:18Z | 2019-06-21T09:37:18Z |
DOC: Skip creating redirects if docs build fails | diff --git a/doc/make.py b/doc/make.py
index 6ffbd3ef86e68..496b3cfd4ee45 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -220,10 +220,11 @@ def html(self):
if os.path.exists(zip_fname):
os.remove(zip_fname)
- if self.single_doc_html is not None:
- self._open_browser(self.single_... | When the doc build fails, we still try to create the redirected pages, which fails, and adds to the log a misleading error (it looks in the logs like the problem is not the original error but that something is failing in the redirects).
See for example https://travis-ci.org/pandas-dev/pandas/jobs/542714631:
```
Re... | https://api.github.com/repos/pandas-dev/pandas/pulls/26752 | 2019-06-09T10:00:01Z | 2019-06-09T21:51:39Z | 2019-06-09T21:51:39Z | 2019-06-09T21:51:58Z |
move late imports to top | diff --git a/pandas/plotting/_matplotlib/boxplot.py b/pandas/plotting/_matplotlib/boxplot.py
index c1a48ad5ca08b..b8a7da5270fc0 100644
--- a/pandas/plotting/_matplotlib/boxplot.py
+++ b/pandas/plotting/_matplotlib/boxplot.py
@@ -2,11 +2,14 @@
import warnings
from matplotlib import pyplot as plt
+from matplotlib.art... | - [x] closes #26748
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26750 | 2019-06-09T01:09:33Z | 2019-06-11T18:46:38Z | 2019-06-11T18:46:38Z | 2019-06-11T18:46:45Z |
STYLE: Isort __init__ files | diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py
index 1f6042389416e..fcf5ffbfcad92 100644
--- a/pandas/_libs/__init__.py
+++ b/pandas/_libs/__init__.py
@@ -1,4 +1,4 @@
# flake8: noqa
from .tslibs import (
- iNaT, NaT, NaTType, Timestamp, Timedelta, OutOfBoundsDatetime, Period)
+ NaT, NaTType,... | - [x] related to #23334
- [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff | https://api.github.com/repos/pandas-dev/pandas/pulls/26749 | 2019-06-09T00:33:27Z | 2019-06-28T15:37:40Z | 2019-06-28T15:37:40Z | 2019-12-25T20:35:28Z |
Read from HDF with empty `where` throws an error | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 7c7112bae0ff3..0f716dad9a2f2 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -666,6 +666,7 @@ I/O
- Added ``cache_dates=True`` parameter to :meth:`read_csv`, which allows to cache unique dates whe... | - [x] closes #26610
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26746 | 2019-06-09T00:05:52Z | 2019-06-11T00:14:59Z | 2019-06-11T00:14:59Z | 2019-06-11T12:20:37Z |
Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index a21e9773243da..8a8f0594f0d3e 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -478,6 +478,8 @@ Other Deprecations
- The :meth:`DataFrame.compound` and :meth:`Series.compound` methods are deprecated... | Deprecation of `Series.ftype`, `Series.ftypes` and `DataFrame.ftypes`
closes #26705
- [x] Updated the docstrings for the sphinx documentation
- [x] Updated the unit tests for testing deprecation warnings | https://api.github.com/repos/pandas-dev/pandas/pulls/26744 | 2019-06-08T22:21:44Z | 2019-06-11T00:18:58Z | 2019-06-11T00:18:58Z | 2019-06-11T00:19:03Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.