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 |
|---|---|---|---|---|---|---|---|
REF: use cached inferred_type when calling lib.infer_dtype(index) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index a312fdc6cda22..5256bdc988995 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1173,15 +1173,15 @@ cdef class Seen:
or self.nat_)
-cdef object _try_infer_map(object v):
+cdef object _try_infer_map(object dtype):
... | Among other things, this will let us avoid a couple of ugly calls in Series
```
if isinstance(key, Index):
key_type = key.inferred_type
else:
key_type = lib.infer_dtype(key, skipna=False)
```
Cleanup of nearby EA-handling code | https://api.github.com/repos/pandas-dev/pandas/pulls/33537 | 2020-04-14T01:30:47Z | 2020-04-25T22:22:08Z | 2020-04-25T22:22:08Z | 2020-04-25T22:27:38Z |
CI: pin cython==0.29.16 in npdev build | diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml
index 29ebfe2639e32..17c3d318ce54d 100644
--- a/ci/deps/azure-37-numpydev.yaml
+++ b/ci/deps/azure-37-numpydev.yaml
@@ -14,7 +14,8 @@ dependencies:
- pytz
- pip
- pip:
- - cython>=0.29.16
+ - cython==0.29.16
+ # GH#33507 cyth... | xref #33507 | https://api.github.com/repos/pandas-dev/pandas/pulls/33534 | 2020-04-13T22:07:32Z | 2020-04-13T22:41:36Z | 2020-04-13T22:41:36Z | 2020-04-13T22:42:28Z |
CLN: Change isocalendar to be a method | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index a09a5576ca378..6ba58310000cb 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -772,7 +772,6 @@ There are several time/date properties that one can access from ``Timestamp`` or
... | For consistency with `Timestamp.isocalendar`, `Series.dt.isocalendar` and
`DatetimeIndex.isocalendar` should rather be methods and not attributes.
Followup of #33220, see the discussions following the merge of that PR | https://api.github.com/repos/pandas-dev/pandas/pulls/33533 | 2020-04-13T19:58:13Z | 2020-04-14T16:22:53Z | 2020-04-14T16:22:53Z | 2020-05-27T08:23:27Z |
CLN: General cleanup in `_libs/lib.pyx` | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 6147d6d9c1658..bbb4d562b8971 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1,9 +1,6 @@
from collections import abc
from decimal import Decimal
-from fractions import Fraction
-from numbers import Number
-import sys
import warnings
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/33532 | 2020-04-13T18:43:09Z | 2020-04-14T00:07:12Z | 2020-04-14T00:07:11Z | 2021-05-03T12:28:31Z |
REF: matching-dtype case first in concat_compat | diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py
index 301c9bb7b3f5c..0255c6507313a 100644
--- a/pandas/core/dtypes/concat.py
+++ b/pandas/core/dtypes/concat.py
@@ -105,7 +105,15 @@ def is_nonempty(x) -> bool:
_contains_datetime = any(typ.startswith("datetime") for typ in typs)
_contai... | Moving towards clarifying the EA._concat_same_type behavior with unique vs non-unique dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/33530 | 2020-04-13T17:16:03Z | 2020-04-17T02:41:56Z | 2020-04-17T02:41:56Z | 2020-04-17T02:55:53Z |
CLN: .values->._values in hashing | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index d9c8611c94cdb..ebfba5a1e1ff6 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -90,13 +90,13 @@ def hash_pandas_object(
return Series(hash_tuples(obj, encoding, hash_key), dtype="uint64", copy=False)
... | This sits on top of #33511 (at first thought it could be orthogonal, but this breaks a couple of hash_scalar tests if we dont rip those out first) | https://api.github.com/repos/pandas-dev/pandas/pulls/33529 | 2020-04-13T16:59:51Z | 2020-04-15T01:28:13Z | 2020-04-15T01:28:13Z | 2020-04-15T01:35:22Z |
REF: simplify concat_datetime | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 30a34282889f8..ece92acae6461 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -723,7 +723,7 @@ def take(self, indices, allow_fill=False, fill_value=None):
return type(self)(new_... | By wrapping dt64/td64 ndarrays in DTA/TDA, we can get rid of a bunch of .astype(object) logic | https://api.github.com/repos/pandas-dev/pandas/pulls/33526 | 2020-04-13T14:27:46Z | 2020-04-15T01:32:20Z | 2020-04-15T01:32:20Z | 2020-04-15T01:36:43Z |
TST: Add Categorical Series test | diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py
index 635b1a1cd1326..235aa8e4aa922 100644
--- a/pandas/tests/reductions/test_reductions.py
+++ b/pandas/tests/reductions/test_reductions.py
@@ -1098,6 +1098,14 @@ def test_min_max_ordered(self, values, categories, funct... | Follow up to https://github.com/pandas-dev/pandas/pull/33513
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/33525 | 2020-04-13T14:20:13Z | 2020-04-21T14:49:08Z | 2020-04-21T14:49:08Z | 2020-04-21T18:32:12Z |
CLN: redundant code in IntegerArray._reduce | diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py
index 37620edfd9a95..5605b3fbc5dfa 100644
--- a/pandas/core/arrays/integer.py
+++ b/pandas/core/arrays/integer.py
@@ -571,10 +571,6 @@ def _reduce(self, name: str, skipna: bool = True, **kwargs):
if np.isnan(result):
return... | https://api.github.com/repos/pandas-dev/pandas/pulls/33523 | 2020-04-13T13:03:07Z | 2020-04-13T14:55:20Z | 2020-04-13T14:55:20Z | 2020-04-13T15:08:39Z | |
BUG: Fixed concat with reindex and extension types | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 567b6853bd633..0476c34db3773 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1073,6 +1073,7 @@ ExtensionArray
^^^^^^^^^^^^^^
- Fixed bug where :meth:`Series.value_counts` would raise on empty inpu... | Closes https://github.com/pandas-dev/pandas/issues/27692
Closes https://github.com/pandas-dev/pandas/issues/33027
I have a larger cleanup planned, but this fixes the linked issues for now. | https://api.github.com/repos/pandas-dev/pandas/pulls/33522 | 2020-04-13T11:35:47Z | 2020-07-01T01:43:27Z | 2020-07-01T01:43:26Z | 2020-07-02T08:12:21Z |
TYP: disallow decorator preserves function signature | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f8cb99e2b2e75..06b6d4242e622 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8522,6 +8522,12 @@ def idxmin(self, axis=0, skipna=True) -> Series:
"""
axis = self._get_axis_number(axis)
indices = nanops.nanargmin(se... | xref #33455 | https://api.github.com/repos/pandas-dev/pandas/pulls/33521 | 2020-04-13T11:19:21Z | 2020-05-02T16:30:23Z | 2020-05-02T16:30:23Z | 2020-05-02T18:00:27Z |
TYP: remove assert mask is not None for mypy | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index 9494248a423a8..b9ff0a5959c01 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -300,11 +300,8 @@ def _get_values(
dtype, fill_value=fill_value, fill_value_typ=fill_value_typ
)
- copy = (mask is not None) and (fill_value ... | https://api.github.com/repos/pandas-dev/pandas/pulls/33520 | 2020-04-13T11:16:19Z | 2020-04-14T17:28:46Z | 2020-04-14T17:28:46Z | 2020-04-14T19:31:22Z | |
BUG: Fix Categorical.min / max bug | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5fe7d12188860..2f4e961ff433f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -397,6 +397,7 @@ Categorical
- Bug where :class:`Categorical` comparison operator ``__ne__`` would incorrectly evaluate to ... | - [ ] closes #33450
- [ ] 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/33513 | 2020-04-13T03:40:56Z | 2020-04-13T08:16:59Z | 2020-04-13T08:16:59Z | 2020-05-05T09:07:23Z |
TST/CLN: Clean categorical min / max tests | diff --git a/pandas/tests/arrays/categorical/test_analytics.py b/pandas/tests/arrays/categorical/test_analytics.py
index 67b491165b8cc..83ecebafbea07 100644
--- a/pandas/tests/arrays/categorical/test_analytics.py
+++ b/pandas/tests/arrays/categorical/test_analytics.py
@@ -53,40 +53,28 @@ def test_min_max_ordered(self):... | Fixes one small error in a test, and otherwise tries to remove some code duplication | https://api.github.com/repos/pandas-dev/pandas/pulls/33512 | 2020-04-13T03:21:12Z | 2020-04-14T17:26:28Z | 2020-04-14T17:26:28Z | 2020-04-14T17:58:58Z |
CLN: remove unused util.hashing functions | diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py
index d9c8611c94cdb..3406753a3b5ba 100644
--- a/pandas/core/util/hashing.py
+++ b/pandas/core/util/hashing.py
@@ -6,10 +6,8 @@
import numpy as np
-from pandas._libs import Timestamp
import pandas._libs.hashing as hashing
-from pandas.core.dt... | The only place where _any_ of util.hashing is used internally is in `CategoricalDtype.__hash__`. It's pretty ugly dependency-tree wise. This just prunes a couple of entirely unused functions. | https://api.github.com/repos/pandas-dev/pandas/pulls/33511 | 2020-04-13T03:06:31Z | 2020-04-15T01:29:42Z | 2020-04-15T01:29:41Z | 2020-04-15T01:35:56Z |
ENH: clearer error message if read_hdf loads upsupported HDF file (GH9539) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0682e179a7640..8c745d01aba71 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -576,6 +576,8 @@ I/O
- Bug in :meth:`read_excel` did not correctly handle multiple embedded spaces in OpenDocument text cel... | - [x] closes #9539
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The error message changed since the original bug report but still could be made more clear. | https://api.github.com/repos/pandas-dev/pandas/pulls/33509 | 2020-04-13T00:37:04Z | 2020-04-17T18:08:36Z | 2020-04-17T18:08:36Z | 2020-04-20T04:18:38Z |
Added two tests for issue #29697 | diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py
index 29d3bf302545e..a92e628960456 100644
--- a/pandas/tests/reshape/merge/test_merge.py
+++ b/pandas/tests/reshape/merge/test_merge.py
@@ -2024,6 +2024,36 @@ def test_merge_suffix(col1, col2, kwargs, expected_cols):
t... | I added two basic tests for `merge` as requested in #29697, one for `how="outer"` and one for `how="right"`.
I'm not sure if the way I'm creating duplicate columns for the `expected` dataframe is the recommended way but I could not find anything on this. Please let me know if there's a better way to do this.
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/33508 | 2020-04-13T00:28:11Z | 2020-04-26T20:24:18Z | 2020-04-26T20:24:17Z | 2020-04-26T20:24:21Z |
Removed xfail for issue #31883 | diff --git a/pandas/tests/indexes/multi/test_indexing.py b/pandas/tests/indexes/multi/test_indexing.py
index 39049006edb7c..563a82395c7f3 100644
--- a/pandas/tests/indexes/multi/test_indexing.py
+++ b/pandas/tests/indexes/multi/test_indexing.py
@@ -408,10 +408,6 @@ def test_get_loc_nan(self, level, nulls_fixture):
... | I removed the xfail in lines 412-414 as discussed in https://github.com/pandas-dev/pandas/issues/31883.
- [x] closes #31883
- [x] 0 tests added / 0 passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/33506 | 2020-04-12T23:05:53Z | 2020-04-14T15:00:53Z | 2020-04-14T15:00:51Z | 2020-04-14T15:01:00Z |
CI: Setup 3.9 Travis Build | diff --git a/.travis.yml b/.travis.yml
index 2c8533d02ddc1..98826a2d9e115 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,6 +27,11 @@ matrix:
fast_finish: true
include:
+ # In allowed failures
+ - dist: bionic
+ python: 3.9-dev
+ env:
+ - JOB="3.9-dev" PATTERN="(not slow and not network... | - [x] closes https://github.com/pandas-dev/pandas/issues/33395
- In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395.
This is using currently using `... | https://api.github.com/repos/pandas-dev/pandas/pulls/33505 | 2020-04-12T22:57:21Z | 2020-05-09T23:26:57Z | 2020-05-09T23:26:57Z | 2020-05-10T01:01:13Z |
ENH: Make Series.update() use objects coercible to Series | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 845f7773c263c..430c0913ee6ad 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -98,6 +98,8 @@ Other enhancements
This can be used to set a custom compression level, e.g.,
``df.to_csv(path, compress... | - [x] closes #33215
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Allows `Series.update()` to accept objects that can be coerced into a `Series`, like a `dict`. This mirrors the existing behavior of `DataFrame.upd... | https://api.github.com/repos/pandas-dev/pandas/pulls/33502 | 2020-04-12T19:48:56Z | 2020-04-26T19:49:37Z | 2020-04-26T19:49:37Z | 2020-04-27T04:32:35Z |
CLN: use _values_for_argsort in fewer places | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 62a3808d36ba2..9db9805e09b50 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -616,7 +616,7 @@ def factorize(
values = _ensure_arraylike(values)
original = values
- if is_extension_array_dtype(values):
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/33501 | 2020-04-12T19:22:19Z | 2020-04-17T18:06:20Z | 2020-04-17T18:06:20Z | 2020-04-17T18:10:38Z | |
BUG: Fix a bug in 'timedelta_range' that produced an extra point on a edge case (fix #30353) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 95cb4ccbbb796..79f78471922bc 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -574,6 +574,9 @@ Timedelta
- Timedeltas now understand ``µs`` as identifier for microsecond (:issue:`32899`)
- :class:`Tim... | The issue from #30353 came actually from `timedelta_range`.
```python
import pandas as pd
def mock_timedelta_range(start=None, end=None, periods=None, freq=None, name=None, closed=None):
epoch = pd.Timestamp(0)
if start is not None:
start = epoch + pd.Timedelta(start)
if end is not None:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/33498 | 2020-04-12T16:44:54Z | 2020-05-09T19:23:30Z | 2020-05-09T19:23:29Z | 2020-05-09T20:41:27Z |
CLN: assorted cleanups, annotations, de-privatizing | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 306636278bcbe..4c7d03d51e909 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -157,8 +157,8 @@ cdef _wrap_timedelta_result(result):
"""
if PyDelta_Check(result):
# convert Timedel... | https://api.github.com/repos/pandas-dev/pandas/pulls/33497 | 2020-04-12T16:33:55Z | 2020-04-17T02:47:40Z | 2020-04-17T02:47:40Z | 2020-04-17T02:53:56Z | |
CLN: remove ensure_categorical | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index b2301ab0190c7..cf00535385c24 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -111,27 +111,6 @@ def ensure_str(value: Union[bytes, Any]) -> str:
return value
-def ensure_categorical(arr):
- """
- ... | only used in two places, its a misnomer because it really only ensures categorical dtype, and it complicates the dependency structure | https://api.github.com/repos/pandas-dev/pandas/pulls/33495 | 2020-04-12T15:56:39Z | 2020-04-17T02:48:49Z | 2020-04-17T02:48:49Z | 2020-04-17T02:55:17Z |
BUG: groupby.hist legend should use group keys | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 567b6853bd633..22b83425b58c2 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -292,6 +292,7 @@ Other enhancements
- :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` now accept an ``errors`` argument ... | - [x] closes #6279
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
cc @TomAugspurger
Added argument "legend" to histogram backend. This adds the ability to display a legend even when not using a groupby.
````... | https://api.github.com/repos/pandas-dev/pandas/pulls/33493 | 2020-04-12T13:55:43Z | 2020-06-22T15:30:56Z | 2020-06-22T15:30:55Z | 2020-07-11T16:02:04Z |
REF: de-duplicate code in libperiod | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index dd745f840d0ab..c4a7df0017619 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -806,24 +806,22 @@ cdef int64_t get_period_ordinal(npy_datetimestruct *dts, int freq) nogil:
return unix_date_to_we... | discussed a few months ago, this gets rid of `date_info_from_days_and_time` and instead re-uses `pandas_datetime_to_datetimestruct` | https://api.github.com/repos/pandas-dev/pandas/pulls/33491 | 2020-04-12T04:16:46Z | 2020-04-15T19:20:55Z | 2020-04-15T19:20:55Z | 2020-04-15T19:38:19Z |
API: dont infer freq in DTA/TDA arithmetic ops | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 30a34282889f8..0b50f18e0e290 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1176,10 +1176,7 @@ def _add_timedeltalike_scalar(self, other):
# adding a scalar preserves fre... | - [x] closes #23216
freq inference is pure overhead for the Series/DataFrame op because freq gets discarded. | https://api.github.com/repos/pandas-dev/pandas/pulls/33487 | 2020-04-11T21:20:39Z | 2020-04-17T21:42:53Z | 2020-04-17T21:42:53Z | 2020-04-17T22:03:53Z |
REF: remove Block.concat_same_type | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 185b0f4da2627..ebdc331a673ab 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -48,7 +48,6 @@
is_timedelta64_dtype,
pandas_dtype,
)
-from pandas.core.dtypes.concat import concat_categorica... | All the relevant logic lives in concat_compat already. | https://api.github.com/repos/pandas-dev/pandas/pulls/33486 | 2020-04-11T20:56:32Z | 2020-04-15T19:22:47Z | 2020-04-15T19:22:46Z | 2020-04-15T19:34:21Z |
TST: Don't use deprecated version of read_html | diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py
index 3d73e983402a7..2c93dbb5b6b83 100644
--- a/pandas/tests/io/test_html.py
+++ b/pandas/tests/io/test_html.py
@@ -321,7 +321,7 @@ def test_invalid_table_attrs(self):
url = self.banklist_data
with pytest.raises(ValueError, match... | Usage of function read_html is marked as deprecated when used with
positional arguments. In case when we do not explicitly check the
warning message with assert_produces_warning we should use non-deprecated
version.
This will resolve #33397
To identify candidates to change I modified decorator to raise an `Exc... | https://api.github.com/repos/pandas-dev/pandas/pulls/33482 | 2020-04-11T14:33:30Z | 2020-04-12T21:48:32Z | 2020-04-12T21:48:32Z | 2020-04-12T21:48:37Z |
BUG: Add unordered option to pandas.cut (#33141) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 597a0c5386cf0..8650eb24f615d 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -139,6 +139,7 @@ Other enhancements
- The :meth:`DataFrame.to_feather` method now supports additional keyword
arguments ... | Added tests and error message when there are no labels and `ordered=False`.
Issue: Pandas cut raises error if labels are non-unique (Closes #33141)
- [x] closes #33141
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew en... | https://api.github.com/repos/pandas-dev/pandas/pulls/33480 | 2020-04-11T14:07:04Z | 2020-05-01T00:31:48Z | 2020-05-01T00:31:47Z | 2020-05-01T00:31:53Z |
Send None parameter to pandas-gbq to set no progress bar | diff --git a/ci/deps/travis-36-locale.yaml b/ci/deps/travis-36-locale.yaml
index 3fc19f1bca084..2c8403acf6971 100644
--- a/ci/deps/travis-36-locale.yaml
+++ b/ci/deps/travis-36-locale.yaml
@@ -27,7 +27,7 @@ dependencies:
- numexpr
- numpy
- openpyxl
- - pandas-gbq=0.8.0
+ - pandas-gbq=0.12.0
- psycopg2=2.... | - [x] closes #33360
- [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/33477 | 2020-04-11T11:12:16Z | 2020-06-04T17:41:35Z | 2020-06-04T17:41:34Z | 2020-06-04T18:10:02Z |
REF: unstack | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index d8875b38ed738..185b0f4da2627 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1384,15 +1384,13 @@ def equals(self, other) -> bool:
return False
return array_equivalent(self.va... | cc @jreback this moves a small amount of the unstack logic up the call stack, which is worthwhile, but the big wins available are if you can help me figure out the questions in inline comments. | https://api.github.com/repos/pandas-dev/pandas/pulls/33474 | 2020-04-11T03:00:36Z | 2020-04-12T20:33:38Z | 2020-04-12T20:33:38Z | 2020-12-02T17:58:46Z |
BUG: Series.__setitem__[listlike_of_integers] with IntervalIndex | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 67dba3fab23e1..bccfce4f7e077 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -525,6 +525,7 @@ Indexing
- Bug in `Series.__getitem__` with an integer key and a :class:`MultiIndex` with leading integer ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/33473 | 2020-04-11T01:54:00Z | 2020-04-17T18:09:59Z | 2020-04-17T18:09:59Z | 2020-04-17T19:44:12Z |
REF: Simplify __getitem__ by doing positional-int check first | diff --git a/pandas/core/series.py b/pandas/core/series.py
index a73ef08b606e3..3f5927828e541 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -881,32 +881,35 @@ def __getitem__(self, key):
if isinstance(key, (list, tuple)):
key = unpack_1tuple(key)
- if key_is_scalar or ... | This gets rid of the last non-test usage of `Index.get_value`, so that can be deprecated, xref #19728
This focuses only on `__getitem__`; `__setitem__` is tougher for a few reasons, including #33469.
| https://api.github.com/repos/pandas-dev/pandas/pulls/33471 | 2020-04-10T23:22:34Z | 2020-04-12T20:29:57Z | 2020-04-12T20:29:57Z | 2020-04-12T20:31:02Z |
DOC: timezone conversion example added to pandas.Series.astype doc #33399 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index eb6554bf2260c..f5ebd6bc08bfb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5538,6 +5538,24 @@ def astype(
0 10
1 2
dtype: int64
+
+ Create a series of dates:
+
+ >>> ser_date = pd.Se... | …3399
- [x] closes #33399
Have added an example in the documentation page of pandas.Series.astype for datetime type with timezone. | https://api.github.com/repos/pandas-dev/pandas/pulls/33470 | 2020-04-10T23:00:35Z | 2020-04-12T21:47:12Z | 2020-04-12T21:47:12Z | 2020-04-13T01:58:00Z |
Groupby test_apply_mutate | diff --git a/pandas/tests/groupby/test_apply_mutate.py b/pandas/tests/groupby/test_apply_mutate.py
new file mode 100644
index 0000000000000..529f76bf692ce
--- /dev/null
+++ b/pandas/tests/groupby/test_apply_mutate.py
@@ -0,0 +1,70 @@
+import numpy as np
+
+import pandas as pd
+import pandas._testing as tm
+
+
+def test... | @jreback comment in https://github.com/pandas-dev/pandas/pull/33072#pullrequestreview-391657128 | https://api.github.com/repos/pandas-dev/pandas/pulls/33468 | 2020-04-10T21:03:01Z | 2020-04-10T22:24:01Z | 2020-04-10T22:24:00Z | 2023-04-12T20:17:00Z |
API: more permissive conversion to StringDtype | diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst
index bea0f42f6849c..3408b98b3179d 100644
--- a/doc/source/user_guide/text.rst
+++ b/doc/source/user_guide/text.rst
@@ -63,6 +63,29 @@ Or ``astype`` after the ``Series`` or ``DataFrame`` is created
s
s.astype("string")
+
+.. versionc... | - [x] closes #31204
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a proposal to make using ``StringDtype`` more permissive and be usable inplace of ``dtype=str``.
ATM converting to StringDtype will only ... | https://api.github.com/repos/pandas-dev/pandas/pulls/33465 | 2020-04-10T19:50:25Z | 2020-05-26T22:20:21Z | 2020-05-26T22:20:20Z | 2020-05-27T05:56:38Z |
CLN: Nitpicks | diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx
index e74b5919a4590..aed5e1d612088 100644
--- a/pandas/_libs/reshape.pyx
+++ b/pandas/_libs/reshape.pyx
@@ -36,7 +36,7 @@ ctypedef fused reshape_t:
@cython.wraparound(False)
@cython.boundscheck(False)
-def unstack(reshape_t[:, :] values, uint8_t[:] ma... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/33464 | 2020-04-10T19:33:41Z | 2020-04-11T18:41:33Z | 2020-04-11T18:41:33Z | 2020-04-11T18:54:14Z |
BUG: None converted to NaN after groupby first and last | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 718de09a0c3e4..f789b74e1b795 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -546,6 +546,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupBy.agg` with dictionary input losing ``ExtensionArr... | - [x] closes #32800
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR solves #32800. In #32124 `not checknull()` was introduced to `groupfirst()` and `grouplast()`. `None` is not caught in this conditional and ... | https://api.github.com/repos/pandas-dev/pandas/pulls/33462 | 2020-04-10T17:48:02Z | 2020-04-17T02:53:39Z | 2020-04-17T02:53:39Z | 2020-05-26T09:36:35Z |
CI: fix lint issue | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 75c935cdf2e60..80573f32b936e 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -8,7 +8,7 @@
from pandas._libs import NaT, algos as libalgos, lib, writers
import pandas._libs.internals as libinter... | https://github.com/pandas-dev/pandas/runs/577244968
Linting .py code
##[error]./pandas/core/internals/blocks.py:11:1:F401:'pandas._libs.tslibs.Timedelta' imported but unused
Linting .py code DONE | https://api.github.com/repos/pandas-dev/pandas/pulls/33461 | 2020-04-10T17:45:51Z | 2020-04-10T19:16:14Z | 2020-04-10T19:16:14Z | 2020-04-11T08:36:45Z |
TST: concat(..., copy=False) with datetime tz-aware data raises ValueError: cannot create a DatetimeTZBlock without a tz | diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py
index 1fbbd3356ae13..5a9ad732792ea 100644
--- a/pandas/tests/dtypes/test_concat.py
+++ b/pandas/tests/dtypes/test_concat.py
@@ -88,3 +88,14 @@ def test_concat_mismatched_categoricals_with_empty():
result = _concat.concat_compat([s... | …n version 0.24.1 but passes on current version
- [x] closes #25257
- [x] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/33458 | 2020-04-10T15:30:26Z | 2020-07-13T12:55:12Z | 2020-07-13T12:55:12Z | 2020-07-13T12:55:29Z |
TYP: F used in decorators to _typing | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index df706bf25097e..8955a06187109 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -51,20 +51,11 @@
from collections import namedtuple
from contextlib import contextmanager
import re
-from typing import (
- Any,
- Callable... | xref #27404 | https://api.github.com/repos/pandas-dev/pandas/pulls/33456 | 2020-04-10T14:14:39Z | 2020-04-10T17:02:33Z | 2020-04-10T17:02:33Z | 2020-04-10T17:10:57Z |
Bump cython asv | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 7886b63e9983e..7c10a2d17775a 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -39,7 +39,7 @@
// followed by the pip installed packages).
"matrix": {
"numpy": [],
- "Cython": [],
+ "Cython": ["0.29.... | We were pulling in an older version, possibly from defaults.
I think we should plan a major update of all these (notably python 3.6 -> 3.8) but that'll require some care to not invalidate the results at pandas.pydata.org/speed/pandas. | https://api.github.com/repos/pandas-dev/pandas/pulls/33454 | 2020-04-10T13:07:26Z | 2020-04-10T13:53:34Z | 2020-04-10T13:53:34Z | 2020-04-10T13:53:37Z |
CLN/TYP: redundant casts and unused ignores | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index df58593bc930c..54e49eaf60021 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3838,7 +3838,7 @@ def values(self) -> np.ndarray:
return self._data.view(np.ndarray)
@cache_readonly
- @doc(IndexOps... | https://api.github.com/repos/pandas-dev/pandas/pulls/33453 | 2020-04-10T12:26:20Z | 2020-04-10T15:38:42Z | 2020-04-10T15:38:42Z | 2020-04-10T15:50:55Z | |
Whitelist std and var for use with custom rolling windows | diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst
index af2f02a09428b..d7d025981f2f4 100644
--- a/doc/source/user_guide/computation.rst
+++ b/doc/source/user_guide/computation.rst
@@ -312,8 +312,8 @@ We provide a number of common statistical functions:
:meth:`~Rolling.media... | - [X] xref #32865
- [X] 0 tests added / 0 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
### The problem
While researching what funcitons are broken for #32865 , I added `std` and `var` to the list since their output didn't match numpy... | https://api.github.com/repos/pandas-dev/pandas/pulls/33448 | 2020-04-10T07:21:48Z | 2020-04-17T02:54:51Z | 2020-04-17T02:54:51Z | 2020-04-17T06:27:03Z |
BUG: Fix ValueError when grouping by read-only category (#33410) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5c39377899a20..38f850422d7ae 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -517,6 +517,7 @@ Groupby/resample/rolling
- Bug in :meth:`SeriesGroupBy.first`, :meth:`SeriesGroupBy.last`, :meth:`SeriesGr... | - [x] closes #33410
- [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/33446 | 2020-04-10T02:12:31Z | 2020-04-10T16:57:10Z | 2020-04-10T16:57:09Z | 2020-04-10T17:10:43Z |
REF: remove replace_list kludge | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 75c935cdf2e60..80573f32b936e 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -8,7 +8,7 @@
from pandas._libs import NaT, algos as libalgos, lib, writers
import pandas._libs.internals as libinter... | This sits on top of #33441 | https://api.github.com/repos/pandas-dev/pandas/pulls/33445 | 2020-04-10T01:43:16Z | 2020-04-10T20:55:01Z | 2020-04-10T20:55:01Z | 2020-04-10T20:57:33Z |
DOC: Fix heading capitalization in doc/source/whatsnew - part4 (#32550) | diff --git a/doc/source/whatsnew/v0.14.0.rst b/doc/source/whatsnew/v0.14.0.rst
index 0041f6f03afef..847a42b3a7643 100644
--- a/doc/source/whatsnew/v0.14.0.rst
+++ b/doc/source/whatsnew/v0.14.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_0140:
-v0.14.0 (May 31 , 2014)
------------------------
+Version 0.14.0 (May 31 , 2014)
+--... | Add exceptions to the list in 'scripts/validate_rst_title_capitalization.py'
- [ ] Modify files in doc/source/whatsnew: v0.14.0.rst, v0.14.1.rst, v0.15.0.rst, v0.15.1.rst, v0.15.2.rst, v0.16.0.rst, v0.16.1.rst, v0.16.2.rst, v0.17.0.rst, v0.17.1.rst
- [ ] Modify files in scripts: validate_rst_title_capitalization.py | https://api.github.com/repos/pandas-dev/pandas/pulls/33444 | 2020-04-09T22:21:38Z | 2020-04-17T02:55:35Z | 2020-04-17T02:55:35Z | 2020-04-17T02:55:52Z |
ENH: Add prod to masked_reductions | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 718de09a0c3e4..b31041886cf15 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -377,7 +377,7 @@ Performance improvements
sparse values from ``scipy.sparse`` matrices using the
:meth:`DataFrame.spar... | Adding prod to /core/array_algos/masked_reductions.py and using them for IntegerArray and BooleanArray. This also seems to offer a decent speedup over nanops like the other reductions:
```python
# Branch
[ins] In [3]: %timeit arr.prod() # arr = pd.Series([None, 0, 1, 2] * 10_000, dtype="Int64")
102 µs ± 379 ns... | https://api.github.com/repos/pandas-dev/pandas/pulls/33442 | 2020-04-09T20:14:40Z | 2020-04-12T22:59:02Z | 2020-04-12T22:59:02Z | 2020-04-12T23:21:57Z |
BUG: Timedelta == ndarray[td64] | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5c39377899a20..1161ac2d19049 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -395,6 +395,7 @@ Timedelta
- Bug in dividing ``np.nan`` or ``None`` by :class:`Timedelta`` incorrectly returning ``NaT`` (:... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #33346
Between the two of these, we should be able to get rid of this kludge: https://github.com/pandas-dev/pandas/blob/master/pandas/core/in... | https://api.github.com/repos/pandas-dev/pandas/pulls/33441 | 2020-04-09T19:49:45Z | 2020-04-10T15:58:10Z | 2020-04-10T15:58:10Z | 2020-04-10T18:06:09Z |
BUG: `weights` is not working for multiple columns in df.plot.hist | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 584e21e87390d..c5be188f5c9b7 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -504,7 +504,7 @@ Plotting
^^^^^^^^
- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`).
--
+- Bu... | - [x] closes #33173
- [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/33440 | 2020-04-09T19:41:52Z | 2020-04-10T16:59:56Z | 2020-04-10T16:59:56Z | 2020-04-10T17:00:00Z |
BUG: Fix bug when concatenating Index of strings | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5c39377899a20..13b0d6ee66eb8 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -421,7 +421,7 @@ Strings
^^^^^^^
- Bug in the :meth:`~Series.astype` method when converting "string" dtype data to nulla... | - [ ] closes #33425
- [ ] 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/33436 | 2020-04-09T18:07:20Z | 2020-04-10T17:47:26Z | 2020-04-10T17:47:25Z | 2020-04-10T18:10:06Z |
Temporary fix for Py38 build issues on macOS | diff --git a/setup.py b/setup.py
index 089baae123d2a..338686bddd146 100755
--- a/setup.py
+++ b/setup.py
@@ -454,6 +454,9 @@ def run(self):
):
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
+ if sys.version_info[:2] == (3, 8): # GH 33239
+ extra_compile_args.append("-Wno-error=deprec... | ref #33239
works around issues confirmed by @jbrockmendel and @TomAugspurger
Ideally could fix upstream, but may not be worth the effort given the level of nuance
| https://api.github.com/repos/pandas-dev/pandas/pulls/33431 | 2020-04-09T16:52:58Z | 2020-04-09T18:26:58Z | 2020-04-09T18:26:58Z | 2023-04-12T20:17:37Z |
DOC: Fix heading capitalization in doc/source/whatsnew - part3 (#32550) | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index 2e0442364b2f3..443250592a4a7 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_0100:
-v0.10.0 (December 17, 2012)
----------------------------
+Version 0.10.0 (December 1... | - [ ] Modify files v0.8.0.rst, v0.8.1.rst, v0.9.0.rst, v0.9.1.rst, v010.0.rst, v0.10.1.rst, v0.11.0.rst, v0.12.0.rst, v0.13.0.rst, v0.13.1.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/33429 | 2020-04-09T16:29:36Z | 2020-04-10T17:48:06Z | 2020-04-10T17:48:06Z | 2020-04-10T17:48:10Z |
CLN: avoid accessing private functions | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 6cb597ba75852..7447d593a7ff0 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -1206,7 +1206,7 @@ def _maybe_convert(arr):
return _maybe_convert(res)
- op_name = ops._get_op_name(op, True)
+ ... | xref #33394
@simonjayhawkins thoughts on how to handle the mypy complaint? | https://api.github.com/repos/pandas-dev/pandas/pulls/33427 | 2020-04-09T16:13:57Z | 2020-04-10T16:08:54Z | 2020-04-10T16:08:54Z | 2020-04-10T18:02:12Z |
CLN: remove unnecessary branches in Series.__setitem__ | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 6e41ff189592c..a47303ddc93cf 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -194,7 +194,7 @@ cdef class IntervalMixin:
f"expected {repr(self.closed)}.")
-cdef _interval_like(other):
+cde... | Eventually I'd like to get the structure of `__setitem__` to parallel the structure of `__getitem__`. Some big improvements to both will be available following #33404. | https://api.github.com/repos/pandas-dev/pandas/pulls/33424 | 2020-04-09T15:04:59Z | 2020-04-09T18:28:32Z | 2020-04-09T18:28:32Z | 2021-11-20T23:23:12Z |
Unpin Python 37 in environment.yml | diff --git a/environment.yml b/environment.yml
index 935f8e97d4bf6..c874c5a8f68da 100644
--- a/environment.yml
+++ b/environment.yml
@@ -4,7 +4,7 @@ channels:
dependencies:
# required
- numpy>=1.15
- - python=3.7
+ - python=3
- python-dateutil>=2.6.1
- pytz
| I believe this was supposed to be temporary, so quick follow up to #29431 @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/33423 | 2020-04-09T14:48:36Z | 2020-04-09T15:38:05Z | 2020-04-09T15:38:05Z | 2023-04-12T20:17:03Z |
ENH: update feather IO for pyarrow 0.17 / Feather V2 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index d24483abd28e1..d2404b757ca11 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -416,6 +416,7 @@
"python": ("https://docs.python.org/3/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
"statsmodels": (... | Upcoming pyarrow 0.17 release will include an upgraded feather format.
This PRs updates pandas for that, more specifically ensures the new keywords can be passed through (the basics should keep working out of the box, since the public API did not change), and small update to the tests | https://api.github.com/repos/pandas-dev/pandas/pulls/33422 | 2020-04-09T14:19:31Z | 2020-04-10T08:37:48Z | 2020-04-10T08:37:48Z | 2020-06-21T17:26:14Z |
lreshape and wide_to_long documentation (Closes #33417) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1587dd8798ec3..a4408d1f5d23d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6609,6 +6609,8 @@ def groupby(
duplicate values for one index/column pair.
DataFrame.unstack : Pivot based on the index values instead of a
... | - [ ] closes #33417
- [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/33418 | 2020-04-09T06:39:07Z | 2020-08-19T13:05:41Z | 2020-08-19T13:05:41Z | 2020-08-19T13:05:48Z |
DOC: Fix EX01 in DataFrame.duplicated | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d2da52ba7bdd0..e14325759e509 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4740,6 +4740,73 @@ def duplicated(
Returns
-------
Series
+ Boolean series for each duplicated rows.
+
+ See Also
+ ... | - [ ] 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/33416 | 2020-04-09T03:24:13Z | 2020-04-09T17:53:33Z | 2020-04-09T17:53:33Z | 2020-04-09T17:53:40Z |
use https link for Anaconda | diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst
index 9ac8c58e1d8f2..3f15c91f83c6a 100644
--- a/doc/source/getting_started/index.rst
+++ b/doc/source/getting_started/index.rst
@@ -21,7 +21,7 @@ Installation
<div class="card-body">
<p class="... | - [ ] 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/33413 | 2020-04-09T01:35:50Z | 2020-04-09T02:22:07Z | 2020-04-09T02:22:07Z | 2020-04-09T02:22:12Z |
REF: collect DataFrame.__setitem__ tests | diff --git a/pandas/tests/frame/indexing/test_categorical.py b/pandas/tests/frame/indexing/test_categorical.py
index 0ae2f81108be9..d94dc8d2ffe00 100644
--- a/pandas/tests/frame/indexing/test_categorical.py
+++ b/pandas/tests/frame/indexing/test_categorical.py
@@ -391,11 +391,3 @@ def test_loc_indexing_preserves_index_... | https://api.github.com/repos/pandas-dev/pandas/pulls/33408 | 2020-04-08T21:44:12Z | 2020-04-08T23:22:32Z | 2020-04-08T23:22:31Z | 2020-04-08T23:23:50Z | |
REF: call pandas_dtype up-front in Index.__new__ | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1c5cdd1617cbd..530aaee24c7fb 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -48,6 +48,7 @@
is_signed_integer_dtype,
is_timedelta64_dtype,
is_unsigned_integer_dtype,
+ pandas_dtype,
)
from pand... | This leaves us in position to drop in dtype-only is_foo_dtype checks | https://api.github.com/repos/pandas-dev/pandas/pulls/33407 | 2020-04-08T20:59:44Z | 2020-04-10T20:52:11Z | 2020-04-10T20:52:11Z | 2020-04-10T20:58:58Z |
BUG: to_period() freq was not infered | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 718de09a0c3e4..f3b301a29b8c3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -409,6 +409,8 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.searchsorted` not accepting a ``list`` or :class:`Series` as it... | - [x] closes #33358
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
---
When running ```pytest -q --cache-clear pandas/tests/ -k "period"``` some tests in ```pandas/tests/indexing/``` are failing, but when running... | https://api.github.com/repos/pandas-dev/pandas/pulls/33406 | 2020-04-08T19:56:23Z | 2020-04-12T23:00:01Z | 2020-04-12T23:00:01Z | 2020-06-10T15:15:38Z |
CLN: follow-ups to #33340 | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index d69b417f6e056..d3d8bead88d08 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -106,13 +106,8 @@ cdef class BlockPlacement:
else:
return self._as_array
- def isin(self, arr):
- from pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/33405 | 2020-04-08T19:49:03Z | 2020-04-08T20:41:07Z | 2020-04-08T20:41:07Z | 2020-04-08T20:49:52Z | |
BUG: Series.__getitem__ with MultiIndex and leading integer level | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5c39377899a20..0e68c3799efa7 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -447,6 +447,7 @@ Indexing
- Bug in :meth:`DataFrame.lookup` incorrectly raising an ``AttributeError`` when ``frame.index`` ... | - [x] closes #33355
- [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/33404 | 2020-04-08T19:14:26Z | 2020-04-10T16:00:57Z | 2020-04-10T16:00:57Z | 2020-04-10T18:18:56Z |
DOC: Fix heading capitalization in doc/source/whatsnew - part2 (#32550) | diff --git a/doc/source/whatsnew/v0.6.1.rst b/doc/source/whatsnew/v0.6.1.rst
index d01757775d694..8eea0a07f1f79 100644
--- a/doc/source/whatsnew/v0.6.1.rst
+++ b/doc/source/whatsnew/v0.6.1.rst
@@ -1,8 +1,8 @@
.. _whatsnew_061:
-v.0.6.1 (December 13, 2011)
----------------------------
+Version 0.6.1 (December 13, 2... | - [ ] Modify files v0.6.1.rst, v0.7.0.rst, v0.7.1.rst, v0.7.2.rst, v0.7.3.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/33403 | 2020-04-08T18:24:09Z | 2020-04-10T17:54:24Z | 2020-04-10T17:54:24Z | 2020-04-10T17:54:28Z |
PERF: fastpaths in is_foo_dtype checks | diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py
index 141ca0645b906..f119e280f5867 100644
--- a/pandas/_libs/__init__.py
+++ b/pandas/_libs/__init__.py
@@ -6,9 +6,11 @@
"Timedelta",
"Timestamp",
"iNaT",
+ "Interval",
]
+from pandas._libs.interval import Interval
from pandas._lib... | xref #33364, partially addresses #33368
For exposition I used the new type checking functions in parsers.pyx.
For the implementation I chose `.type` and `.kind` checks in order to avoid needing the imports from `dtypes.dtypes`, which has dependencies on a bunch of other parts of the code.
```
In [1]: import p... | https://api.github.com/repos/pandas-dev/pandas/pulls/33400 | 2020-04-08T16:39:15Z | 2020-04-17T02:33:46Z | 2020-04-17T02:33:46Z | 2020-04-17T03:01:07Z |
ENH: Support passing compression args to gzip and bz2 | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index f2152c43ceaba..df6b44ac654ce 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -285,14 +285,18 @@ chunksize : int, default ``None``
Quoting, compression, and file format
+++++++++++++++++++++++++++++++++++++
... | This commit closes #33196 but takes a more generic approach than the suggested
solution. Instead of providing a 'fast' kwarg or global compression level
setting, this commit extends the ability to pass compression settings as a
dict to the gzip and bz2 compression methods. In this way, if the user
wants faster comp... | https://api.github.com/repos/pandas-dev/pandas/pulls/33398 | 2020-04-08T15:28:40Z | 2020-04-10T22:21:10Z | 2020-04-10T22:21:10Z | 2020-04-10T22:21:44Z |
BUG/PLT: Multiple plots with different cmap, colorbars legends use first cmap | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 33c65a146dbb5..7059e7e30c73f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -441,6 +441,7 @@ Plotting
- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`).
-
- Bug in :meth:`... | - [x] closes #33389
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Since this is a plot PR, just post what it looks like after the change
:
self.grouper.transform(function, engine="cython")
+class AggEngine:... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In the same spirit of #31845 and #32854, adding `engine` and `engine_kwargs` arguments to `groupby.aggreate`.
This PR has some functionality that is waiting to be mer... | https://api.github.com/repos/pandas-dev/pandas/pulls/33388 | 2020-04-08T05:48:14Z | 2020-04-26T00:02:57Z | 2020-04-26T00:02:57Z | 2020-04-26T04:21:57Z |
REF: numeric index test_indexing | diff --git a/pandas/tests/indexes/numeric/test_indexing.py b/pandas/tests/indexes/numeric/test_indexing.py
new file mode 100644
index 0000000000000..473e370c76f8b
--- /dev/null
+++ b/pandas/tests/indexes/numeric/test_indexing.py
@@ -0,0 +1,237 @@
+import numpy as np
+import pytest
+
+from pandas import Float64Index, In... | - [ ] 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/33387 | 2020-04-08T03:13:05Z | 2020-04-08T13:39:40Z | 2020-04-08T13:39:40Z | 2020-04-08T15:09:18Z |
DOC: Update roadmap for completions | diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst
index efee21b5889ed..8223edcf6f63a 100644
--- a/doc/source/development/roadmap.rst
+++ b/doc/source/development/roadmap.rst
@@ -141,20 +141,6 @@ ways for users to apply their own Numba-jitted functions where pandas accepts us
and in g... | Moves "Improved documentation" to completed section.
I don't think any others can be marked as done yet, though "Numba-accelerated operations" may be getting close (is that right @mroeschke?). | https://api.github.com/repos/pandas-dev/pandas/pulls/36728 | 2020-09-29T20:58:53Z | 2020-09-30T12:37:42Z | 2020-09-30T12:37:42Z | 2020-09-30T12:37:44Z |
CLN: private funcs in concat.py | diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py
index f5d0c921e1006..7ad058cfeb83c 100644
--- a/pandas/core/internals/concat.py
+++ b/pandas/core/internals/concat.py
@@ -1,6 +1,6 @@
from collections import defaultdict
import copy
-from typing import Dict, List
+from typing import TYPE_C... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Refactor/cleanup ``_get_empty_dtype_and_na`` in ``pandas/core/internals/concat.py``
Extract functions, add typing.
| https://api.github.com/repos/pandas-dev/pandas/pulls/36726 | 2020-09-29T15:51:03Z | 2020-10-04T04:39:42Z | 2020-10-04T04:39:42Z | 2020-10-04T13:22:33Z |
TYP: update setup.cfg | diff --git a/setup.cfg b/setup.cfg
index d938d2ef3972a..494c7ad328648 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -182,9 +182,6 @@ check_untyped_defs=False
[mypy-pandas.core.groupby.base]
check_untyped_defs=False
-[mypy-pandas.core.groupby.generic]
-check_untyped_defs=False
-
[mypy-pandas.core.groupby.grouper]
chec... | https://api.github.com/repos/pandas-dev/pandas/pulls/36725 | 2020-09-29T15:39:55Z | 2020-09-29T17:07:02Z | 2020-09-29T17:07:02Z | 2020-09-29T17:17:43Z | |
TYP: Ignore remaining mypy errors for pandas\tests\* | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 604815d496f80..5fb333acd718d 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -298,7 +298,9 @@ def unique_nulls_fixture(request):
# ----------------------------------------------------------------
# Classes
# --------------------------------------... | - [ ] closes #28926
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
These are the only 3 errors outstanding in pandas\tests\* that are stopping us closing #28926
```
pandas\conftest.py:301: error: List item 0 h... | https://api.github.com/repos/pandas-dev/pandas/pulls/36724 | 2020-09-29T15:23:46Z | 2020-09-29T20:30:56Z | 2020-09-29T20:30:55Z | 2020-09-30T11:06:32Z |
DOC: Fix typo in docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bd720151fb15e..18a9c78912ba5 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3970,7 +3970,7 @@ def reindex_like(
Maximum number of consecutive labels to fill for inexact matches.
tolerance : optional
... | https://api.github.com/repos/pandas-dev/pandas/pulls/36723 | 2020-09-29T13:54:43Z | 2020-09-29T15:41:03Z | 2020-09-29T15:41:03Z | 2020-09-29T16:39:28Z | |
CI unpin flake8, only run flake8-rst in pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 39fe509c6cd29..092515f1e450a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -46,6 +46,14 @@ repos:
files: ^(environment.yml|requirements-dev.txt)$
pass_filenames: false
additional_dependencies: [pyyaml... | - [ ] closes #34150 (maybe?)
- [ ] 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/36722 | 2020-09-29T11:33:21Z | 2020-10-10T22:29:29Z | 2020-10-10T22:29:29Z | 2020-10-11T08:36:20Z |
CLN: Remove unnecessary rolling subclass | diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py
index 34d9d9d8c00ef..25938b57d9720 100644
--- a/pandas/core/window/ewm.py
+++ b/pandas/core/window/ewm.py
@@ -15,7 +15,7 @@
import pandas.core.common as common
from pandas.core.window.common import _doc_template, _shared_docs, zsqrt
-from pandas.cor... | - [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/36721 | 2020-09-29T05:56:37Z | 2020-09-29T19:53:00Z | 2020-09-29T19:53:00Z | 2020-09-29T20:19:48Z |
EA: Tighten signature on DatetimeArray._from_sequence | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 6b051f1f73467..3e9a06a0faa17 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -296,7 +296,11 @@ def _simple_new(cls, values, freq=None, dtype=DT64NS_DTYPE):
return result
@classmetho... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #33254
There are a few more steps to get DatetimeArray._from_sequence down to the ideal behavior, this is just trimming the signature down to... | https://api.github.com/repos/pandas-dev/pandas/pulls/36718 | 2020-09-29T01:22:42Z | 2020-10-02T23:14:20Z | 2020-10-02T23:14:20Z | 2020-10-03T00:26:03Z |
CI: remove duplicated code check #36642 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 46de8d466dd11..b391871b18245 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,12 +37,6 @@ jobs:
ci/code_checks.sh lint
if: always()
- - name: Dependencies consistency
- run: |
- source acti... | - [x] closes #36642
| https://api.github.com/repos/pandas-dev/pandas/pulls/36716 | 2020-09-28T20:07:54Z | 2020-10-20T23:08:47Z | 2020-10-20T23:08:47Z | 2020-10-21T00:28:58Z |
TST: implement test to_string_empty_col for Series (GH13653) | diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py
index cce0783a3c867..68f5386fff7be 100644
--- a/pandas/tests/io/formats/test_format.py
+++ b/pandas/tests/io/formats/test_format.py
@@ -2846,6 +2846,13 @@ def test_to_string_multindex_header(self):
exp = " r1 r2\na ... | - [x] closes #13653
- [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/36715 | 2020-09-28T19:40:21Z | 2020-09-30T02:04:41Z | 2020-09-30T02:04:41Z | 2020-09-30T07:10:04Z |
REF: rearrange test_to_latex.py | diff --git a/pandas/tests/io/formats/test_to_latex.py b/pandas/tests/io/formats/test_to_latex.py
index 7a0d305758802..d3d865158309c 100644
--- a/pandas/tests/io/formats/test_to_latex.py
+++ b/pandas/tests/io/formats/test_to_latex.py
@@ -27,65 +27,13 @@ def _dedent(string):
return dedent(string).lstrip()
-class... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Rearranged tests in ``test_to_latex.py`` to the corresponding classes.
Sorry for the messy diffs.
All I did (except to small commits cd92db9 and 2b... | https://api.github.com/repos/pandas-dev/pandas/pulls/36714 | 2020-09-28T19:18:21Z | 2020-09-30T12:38:18Z | 2020-09-30T12:38:18Z | 2020-10-04T13:25:48Z |
CLN: pandas/core/indexing.py | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index fc1b9bee9ba03..ac4ff25081bb5 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1,4 +1,5 @@
-from typing import TYPE_CHECKING, Hashable, List, Tuple, Union
+from contextlib import suppress
+from typing import TYPE_CHECKING, Any, Ha... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Slight clean-up of ``pandas/core/indexing.py``.
- Use ``suppress`` instead of ``try/except/pass`` (starting from Python 3.7)
- Slight rearrangeme... | https://api.github.com/repos/pandas-dev/pandas/pulls/36713 | 2020-09-28T18:27:50Z | 2020-10-07T03:23:20Z | 2020-10-07T03:23:20Z | 2020-10-07T09:46:13Z |
Fix small typo in timedeltas error message | diff --git a/pandas/core/tools/timedeltas.py b/pandas/core/tools/timedeltas.py
index 791d5095283ba..372eac29bad9e 100644
--- a/pandas/core/tools/timedeltas.py
+++ b/pandas/core/tools/timedeltas.py
@@ -93,7 +93,7 @@ def to_timedelta(arg, unit=None, errors="raise"):
unit = parse_timedelta_unit(unit)
if er... | Small typo fix
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/36711 | 2020-09-28T18:10:00Z | 2020-09-28T23:07:51Z | 2020-09-28T23:07:51Z | 2020-09-28T23:07:59Z |
BUG: df.diff axis=1 mixed dtypes | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9b2540a1ce043..79a5d6cb458e0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -100,6 +100,7 @@
is_dict_like,
is_dtype_equal,
is_extension_array_dtype,
+ is_float,
is_float_dtype,
is_hashable,
is_integer,
@@ -4... | - [ ] 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/36710 | 2020-09-28T18:00:46Z | 2020-10-07T03:29:17Z | 2020-10-07T03:29:17Z | 2020-10-07T03:31:26Z |
Fix delim_whitespace behavior in read_table, read_csv | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index afc0046ec6822..ae4d5ea692066 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -416,6 +416,7 @@ I/O
- Bug in :meth:`read_csv` with ``engine='python'`` truncating data if multiple items present in first ... | - [x] closes #36583
- [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/36709 | 2020-09-28T17:22:46Z | 2020-10-08T00:46:51Z | 2020-10-08T00:46:50Z | 2020-10-08T00:46:57Z |
CI, CLN remove unnecessary noqa statements, add CI check | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7f669ee77c3eb..d0c9f12614d0d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -43,3 +43,7 @@ repos:
entry: python -m scripts.generate_pip_deps_from_conda
files: ^(environment.yml|requirements-dev.txt)$
p... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This changes loads of files, but most changes are quite trivial | https://api.github.com/repos/pandas-dev/pandas/pulls/36707 | 2020-09-28T17:00:05Z | 2020-10-02T23:06:54Z | 2020-10-02T23:06:54Z | 2020-10-03T06:20:20Z |
CI: npdev new exception message | diff --git a/pandas/tests/arithmetic/common.py b/pandas/tests/arithmetic/common.py
index 755fbd0d9036c..cd8dd102dc27c 100644
--- a/pandas/tests/arithmetic/common.py
+++ b/pandas/tests/arithmetic/common.py
@@ -76,6 +76,13 @@ def assert_invalid_comparison(left, right, box):
"Cannot compare type",
... | - [ ] 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/36706 | 2020-09-28T16:08:56Z | 2020-09-28T21:36:32Z | 2020-09-28T21:36:32Z | 2020-09-30T21:13:54Z |
CLN: remove unnecessary CategoricalIndex._convert_arr_indexer | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index c798ae0bd4e4d..d3167189dbcc6 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -24,7 +24,6 @@
from pandas.core import accessor
from pandas.core.arrays.categorical import Categorical, contains
-im... | - [ ] 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/36705 | 2020-09-28T15:58:40Z | 2020-09-30T01:56:35Z | 2020-09-30T01:56:35Z | 2020-09-30T02:46:40Z |
CLN: Format doc code blocks | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 11d0c35f92ff5..387f65ea583a0 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -172,5 +172,6 @@ Reading from a url
.. code-block:: python
from pandas.io.common import ... | Trying to make code blocks in documentation black compliant. Also a small update to the flake8-rst config making max-line-length equal to 88. | https://api.github.com/repos/pandas-dev/pandas/pulls/36700 | 2020-09-28T03:43:03Z | 2020-09-29T20:29:25Z | 2020-09-29T20:29:25Z | 2020-10-01T08:08:54Z |
CLN: Remove unused fixtures | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 604815d496f80..889bd2bed3504 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -174,14 +174,6 @@ def axis(request):
axis_frame = axis
-@pytest.fixture(params=[0, "index"], ids=lambda x: f"axis {repr(x)}")
-def axis_series(request):
- """
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/36699 | 2020-09-28T02:30:15Z | 2020-09-30T00:13:03Z | 2020-09-30T00:13:03Z | 2020-09-30T00:20:19Z | |
DEPR: is_all_dates | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 88ad1dde5c9b0..290983659f93b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -214,6 +214,8 @@ Deprecations
- :meth:`DataFrame.lookup` is deprecated and will be removed in a future version, use :meth:`... | - [x] closes #23598
- [x] closes #27744
- [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/36697 | 2020-09-28T01:30:00Z | 2020-09-30T02:17:40Z | 2020-09-30T02:17:40Z | 2020-11-30T09:59:37Z |
TYP: mostly datetimelike | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 41c4de51fc2e1..9db22df20e66d 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -288,6 +288,7 @@ class Categorical(NDArrayBackedExtensionArray, PandasObject, ObjectStringArrayMi
# tolist ... | - [ ] 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/36696 | 2020-09-28T01:25:33Z | 2020-10-01T09:05:44Z | 2020-10-01T09:05:44Z | 2020-10-01T14:50:56Z |
API: Deprecate regex=True default in Series.str.replace | diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst
index 2b27d37904599..9dd4fb68ae26a 100644
--- a/doc/source/user_guide/text.rst
+++ b/doc/source/user_guide/text.rst
@@ -255,7 +255,7 @@ i.e., from the end of the string to the beginning of the string:
s2.str.rsplit("_", expand=True, n=1)... | From some old discussion it looks like there was interest in changing the default value of regex from True to False within Series.str.replace. I think this makes sense since it would align this method with others within pandas along with the standard library, and would also make fixing https://github.com/pandas-dev/pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/36695 | 2020-09-28T00:58:54Z | 2020-10-10T23:01:24Z | 2020-10-10T23:01:24Z | 2020-10-10T23:01:27Z |
ENH: DatetimeArray/PeriodArray median | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 83a9c0ba61c2d..1f11ca6d4cc8b 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1556,6 +1556,28 @@ def mean(self, skipna=True):
# Don't have to worry about NA `result`, since no ... | - [x] closes #33760
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
nanops.nanmedian needs to be re-worked, and there's a lot more we can do to share reduction tests. saving for separate branches. | https://api.github.com/repos/pandas-dev/pandas/pulls/36694 | 2020-09-28T00:42:32Z | 2020-10-07T03:28:11Z | 2020-10-07T03:28:11Z | 2020-10-07T15:00:51Z |
CLN: OrderedDict->dict | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index 5f627aeade47c..938f57f504b04 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -17,7 +17,6 @@
and methods that are spread throughout the codebase. This module will make it
easier to adjust to futur... | - [x] closes #30469
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Grepping for OrderedDict in *.py files I see 84 more usages, but AFAICT these are all explicitly checking for the class, so I'm considering this as... | https://api.github.com/repos/pandas-dev/pandas/pulls/36693 | 2020-09-27T22:28:56Z | 2020-09-29T22:48:23Z | 2020-09-29T22:48:23Z | 2020-09-29T22:48:29Z |
BUG: DatetimeIndex.shift(1) with empty index | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 031c74b1cc367..3111277bed634 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -252,7 +252,8 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.slice_locs` where ``datetime.date`` objects were not accepted (... | - [x] closes #14811
- [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/36691 | 2020-09-27T22:13:20Z | 2020-09-30T02:12:04Z | 2020-09-30T02:12:04Z | 2020-09-30T02:42:51Z |
BUG: Don't ignore na_rep in DataFrame.to_html | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index cdd8e50d98077..0d83abc0d81cc 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -414,7 +414,6 @@ Strings
- Bug in :func:`to_numeric` raising a ``TypeError`` when attempting to convert a string dtype :cla... | - [x] closes #13828
- [x] closes #9046
- [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/36690 | 2020-09-27T21:58:25Z | 2020-10-24T02:49:09Z | 2020-10-24T02:49:08Z | 2020-10-24T02:51:30Z |
DOC: Start v1.1.4 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 933ed3cb8babf..848121f822383 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.1
.. toctree::
:maxdepth: 2
+ v1.1.4
v1.1.3
v1.1.2
v1.1.1
diff --git a/doc/source/... | I think this requires the v1.1.3 tag in order to pass | https://api.github.com/repos/pandas-dev/pandas/pulls/36689 | 2020-09-27T21:55:44Z | 2020-10-05T20:05:44Z | 2020-10-05T20:05:44Z | 2020-10-05T20:16:33Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.