title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
CLN: annotations and docstrings in pd.io | diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index 63dd40a229dfc..40452b41998df 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -95,8 +95,8 @@ def _stringifyText(text):
acceptedTypes = (str, int, float, bool)
if not isinstance(text, accep... | https://api.github.com/repos/pandas-dev/pandas/pulls/29605 | 2019-11-13T22:14:09Z | 2019-11-14T13:00:17Z | 2019-11-14T13:00:17Z | 2019-11-14T15:52:30Z | |
CLN: remove kwargs from Index._simple_new | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 68736935ed36d..20ca176f4a456 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -506,7 +506,7 @@ def asi8(self):
return None
@classmethod
- def _simple_new(cls, values, name=None, dtype=None, **kwa... | Removes kwargs from ``Index._simple_new``.
The kwargs are actually ony used by ``DateTimeIndex.difference`` and ``TimeDeltaIndex.difference``. | https://api.github.com/repos/pandas-dev/pandas/pulls/29604 | 2019-11-13T21:54:21Z | 2019-11-14T15:16:36Z | 2019-11-14T15:16:36Z | 2019-11-14T15:16:41Z |
CLN: Remove references to user branch (follow up) | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index 8c3b9a07641f7..70a86c2233513 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -499,13 +499,9 @@ def test_bad_engine_raises(self, read_ext):
@tm.network
def test_r... | Follow ups from
https://github.com/pandas-dev/pandas/pull/29513
and
https://github.com/pandas-dev/pandas/pull/25427
(needed for network tests)
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/29603 | 2019-11-13T21:52:16Z | 2019-11-14T12:50:23Z | 2019-11-14T12:50:23Z | 2019-12-25T20:35:22Z |
Update FUNDING.yml | diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index 944ce9b4fb1f6..27dfded808b95 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,2 +1,3 @@
custom: https://pandas.pydata.org/donate.html
+github: [numfocus]
tidelift: pypi/pandas
| add NumFOCUS github sponsors button (recurring donations only)
This feature is launching today at GitHub Universe!
| https://api.github.com/repos/pandas-dev/pandas/pulls/29601 | 2019-11-13T16:29:58Z | 2019-11-13T16:44:18Z | 2019-11-13T16:44:18Z | 2019-11-13T16:44:23Z |
CLN: follow-ups | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 11dc2d04bb74e..eadb8003beba3 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -82,11 +82,9 @@ cdef class Reducer:
else:
# we passed a series-like
- if hasattr(dummy, 'values'):
-
- ... | includes requested followups for reshape.merge cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/29600 | 2019-11-13T16:04:37Z | 2019-11-14T12:54:42Z | 2019-11-14T12:54:41Z | 2019-11-14T16:05:31Z |
ENH: add NA scalar for missing value indicator, use in StringArray. | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 6c36a6470f841..11957cfa265f5 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -12,10 +12,10 @@ pandas.
.. note::
The choice of using ``NaN`` internally to denote ... | xref https://github.com/pandas-dev/pandas/issues/28095, https://github.com/pandas-dev/pandas/issues/28778
This PR adds a `pd.NA` singleton with the behaviour as discussed in above issues. For now, it's only used in StringArray in this PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/29597 | 2019-11-13T14:12:26Z | 2019-12-01T23:41:27Z | 2019-12-01T23:41:27Z | 2019-12-02T07:09:58Z |
CLN: f-string at pandas/_libs/tslib.pyx | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 01d90900cd604..598def4e1d9fa 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -266,20 +266,16 @@ def format_array_from_datetime(ndarray[int64_t] values, object tz=None,
elif basic_format:
dt64_to_dtstruct(val, ... | Continuation of previous [PR](https://github.com/pandas-dev/pandas/pull/29554)
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
ref to issue #29547 | https://api.github.com/repos/pandas-dev/pandas/pulls/29593 | 2019-11-13T11:51:21Z | 2019-11-14T14:28:53Z | 2019-11-14T14:28:53Z | 2019-11-14T21:01:05Z |
CLN: Removing commented code at pandas/_libs/parsers.pyx | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index a2c7d0da5b4a8..bbea66542a953 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -843,11 +843,6 @@ cdef class TextReader:
passed_count = len(header[0])
- # if passed_count > field_count:
- #... | Did as @jbrockmendel suggeted [here](https://github.com/pandas-dev/pandas/pull/29554#discussion_r344942442)
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/29592 | 2019-11-13T11:03:07Z | 2019-11-13T12:28:33Z | 2019-11-13T12:28:33Z | 2019-11-13T12:47:13Z |
CLN: no longer need to catch AttributeError, IndexError | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 11dc2d04bb74e..b95fe6c7bd13d 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -224,6 +224,7 @@ cdef class SeriesBinGrouper(_BaseGrouper):
def __init__(self, object series, object f, object bins, object dummy):
... | cc @jreback @WillAyd
As of today, we don't call `agg_series` unless `ngroups > 0`, which has the side-benefit that we don't call unless `len(self.bins) > 0`, which means we no longer risk hitting an `IndexError` in libreduction L262.
No longer needing to catch AttributeError is [mumble mumble...] I'll figure out... | https://api.github.com/repos/pandas-dev/pandas/pulls/29591 | 2019-11-13T05:17:09Z | 2019-11-14T13:26:31Z | 2019-11-14T13:26:31Z | 2019-11-14T21:21:50Z |
REF: check instead of catching TypeError | diff --git a/pandas/core/base.py b/pandas/core/base.py
index e070005c56d7a..1c74c977e39bc 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -602,9 +602,9 @@ def _aggregate_multiple_funcs(self, arg, _level, _axis):
if not len(results):
raise ValueError("no results")
- try:
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29587 | 2019-11-13T03:18:10Z | 2019-11-14T12:55:25Z | 2019-11-14T12:55:25Z | 2021-11-20T23:21:57Z | |
REF: make FrameApply less stateful, no self.results | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9c5806a3fe945..6302499b6d153 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1,6 +1,6 @@
import abc
import inspect
-from typing import TYPE_CHECKING, Iterator, Type
+from typing import TYPE_CHECKING, Any, Dict, Iterator, Optional, Type, U... | Passing `results` through the call chain instead of accessing it in each place as `self.results` makes this code much easier to reason about. | https://api.github.com/repos/pandas-dev/pandas/pulls/29585 | 2019-11-13T02:16:59Z | 2019-11-14T13:27:44Z | 2019-11-14T13:27:44Z | 2019-11-14T15:44:57Z |
Fix small typos | diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst
index 97b9c2f95dc50..db6869a3804bd 100644
--- a/doc/source/user_guide/integer_na.rst
+++ b/doc/source/user_guide/integer_na.rst
@@ -63,7 +63,7 @@ up with a ``float64`` dtype Series:
pd.Series([1, 2, np.nan])
Operations invol... | https://api.github.com/repos/pandas-dev/pandas/pulls/29584 | 2019-11-13T00:36:05Z | 2019-11-13T03:36:46Z | 2019-11-13T03:36:46Z | 2019-11-13T03:36:46Z | |
BUG: Fix DatetimeIndex.strftime with NaT present | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index cd012fe755337..df21fdbde9b89 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -314,7 +314,7 @@ Datetimelike
- Bug in :func:`pandas.core.groupby.generic.SeriesGroupBy.apply` raising ``ValueError`` when ... | - [X] closes #29578
- [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/29583 | 2019-11-13T00:05:38Z | 2019-11-13T16:46:59Z | 2019-11-13T16:46:58Z | 2019-11-13T17:17:47Z |
CLN: pre-empt NotImplementedError in _aggregate_multiple_funcs | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 56a8a7d15077b..569f57346be4e 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -888,6 +888,11 @@ def aggregate(self, func=None, *args, **kwargs):
return self._python_agg_general(func, *a... | https://api.github.com/repos/pandas-dev/pandas/pulls/29582 | 2019-11-12T21:49:20Z | 2019-11-12T23:12:09Z | 2019-11-12T23:12:09Z | 2019-11-12T23:14:34Z | |
CLN: raise early instead of try/except | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e8d64c7a22bb7..f9f20d13f9585 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -636,24 +636,14 @@ def curried(x):
# TODO: is the above comment accurate?
raise
... | cc @jreback @WillAyd. The failure mode was identified in an earlier PR, making this pretty straightforward. | https://api.github.com/repos/pandas-dev/pandas/pulls/29581 | 2019-11-12T21:39:01Z | 2019-11-12T23:11:06Z | 2019-11-12T23:11:06Z | 2019-11-12T23:15:54Z |
TYP: annotate _data | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 9748342c86f31..68736935ed36d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -230,7 +230,7 @@ def _outer_indexer(self, left, right):
return libjoin.outer_join_indexer(left, right)
_typ = "index"
- ... | NB: this does induce a small behavior change in that `Index` will not have a `_data` attribute until `__init__/__new__`.
I found in #29561 that getting `_data` annotated is necessary before we can annotate most of `core.indexes`.
I'm also not sure what to do about MultiIndex, suggestions welcome. | https://api.github.com/repos/pandas-dev/pandas/pulls/29580 | 2019-11-12T21:24:35Z | 2019-11-13T16:47:29Z | 2019-11-13T16:47:29Z | 2019-11-13T16:49:40Z |
CLN: F-string formatting in pandas/tests/indexes/*.py (#29547) | diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py
index e43d340a46d9f..800e83841c0e7 100644
--- a/pandas/tests/indexes/test_base.py
+++ b/pandas/tests/indexes/test_base.py
@@ -1837,7 +1837,7 @@ def test_drop_tuple(self, values, to_drop):
tm.assert_index_equal(result, expect... | - [ ] 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/29579 | 2019-11-12T21:13:10Z | 2019-11-14T12:56:27Z | 2019-11-14T12:56:27Z | 2019-11-15T01:34:42Z |
DOC: remove okwarnings for io | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index f8e174abfd193..6e45d6748c2a5 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4671,7 +4671,6 @@ See the `Full Documentation <https://github.com/wesm/feather>`__.
Write to a feather file.
.. ipython:: pytho... | Closes https://github.com/pandas-dev/pandas/issues/26843 | https://api.github.com/repos/pandas-dev/pandas/pulls/29577 | 2019-11-12T20:43:25Z | 2019-11-12T21:25:43Z | 2019-11-12T21:25:42Z | 2019-11-12T21:25:47Z |
CLN: noqa removal | diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py
index d57492dd37268..43c8594b8c8df 100644
--- a/asv_bench/benchmarks/gil.py
+++ b/asv_bench/benchmarks/gil.py
@@ -37,7 +37,7 @@ def wrapper(fname):
return wrapper
-from .pandas_vb_common import BaseIO # noqa: E402 isort:skip
+from .pan... | xref #29216 | https://api.github.com/repos/pandas-dev/pandas/pulls/29574 | 2019-11-12T18:34:43Z | 2019-11-14T07:30:14Z | 2019-11-14T07:30:14Z | 2019-11-14T07:30:27Z |
CI: Bump s3fs | diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml
index e4e917d13990c..b2a74fceaf0fa 100644
--- a/ci/deps/travis-36-cov.yaml
+++ b/ci/deps/travis-36-cov.yaml
@@ -29,7 +29,7 @@ dependencies:
- python-snappy
- python=3.6.*
- pytz
- - s3fs<0.3
+ - s3fs
- scikit-learn
- scipy
- sqlalc... | Closes https://github.com/pandas-dev/pandas/issues/28616 | https://api.github.com/repos/pandas-dev/pandas/pulls/29573 | 2019-11-12T15:20:27Z | 2019-11-15T15:25:57Z | 2019-11-15T15:25:57Z | 2019-11-15T15:26:00Z |
DOC: Update MultiIndex.names whatsnew | diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst
index c6eadd2adadce..31bb71064d735 100644
--- a/doc/source/user_guide/advanced.rst
+++ b/doc/source/user_guide/advanced.rst
@@ -554,6 +554,31 @@ index.
Both ``rename`` and ``rename_axis`` support specifying a dictionary,
``Series`` o... | xref https://github.com/pandas-dev/pandas/issues/29032
Doesn't quite close it, in case someone has time to implement a deprecation. But that doesn't seem likely for 1.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/29572 | 2019-11-12T15:10:06Z | 2019-11-17T01:34:14Z | 2019-11-17T01:34:14Z | 2019-11-17T01:34:19Z |
CLN: Update .format(...) strings to f-expressions | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 4384ccb7fa8b3..e21d859d18c8c 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -84,7 +84,7 @@ class ValueCounts:
def setup(self, dropna):
n = 5 * 10 ** 5
- ... | - [x] xref #29547
- [ ] 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/29571 | 2019-11-12T10:38:34Z | 2019-11-15T15:13:02Z | 2019-11-15T15:13:02Z | 2019-11-15T15:31:49Z |
BUG: `RollingGroupBy.quantile` ignores `interpolation` keyword argument | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index c91ced1014dd1..8e671f524dcd6 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -436,6 +436,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` not offering selection by column name when ``a... | - [X] closes #28779
- [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/29567 | 2019-11-12T07:50:48Z | 2019-11-18T00:33:35Z | 2019-11-18T00:33:34Z | 2019-11-18T00:54:55Z |
BUG: GH29595 fix read_json() to use utf-8 for a default encoding | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index cd012fe755337..e5831812619a9 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -400,6 +400,8 @@ I/O
- Bug in :meth:`DataFrame.to_html` when using ``formatters=<list>`` and ``max_cols`` together. (:issue... | - [x] closes #29565
- [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/29566 | 2019-11-12T07:20:38Z | 2019-11-12T23:17:47Z | 2019-11-12T23:17:47Z | 2019-11-12T23:17:50Z |
CLN: annotate ndim, is_monotonic_decreasing, has_duplicates, is_, nlevels | diff --git a/pandas/_libs/indexing.pyx b/pandas/_libs/indexing.pyx
index 308e914b7b5b7..7a25a52c7e608 100644
--- a/pandas/_libs/indexing.pyx
+++ b/pandas/_libs/indexing.pyx
@@ -11,7 +11,7 @@ cdef class _NDFrameIndexerBase:
self._ndim = None
@property
- def ndim(self):
+ def ndim(self) -> int:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29561 | 2019-11-12T03:47:17Z | 2019-11-12T23:13:45Z | 2019-11-12T23:13:45Z | 2019-11-12T23:15:24Z | |
TST: cln runtime imports in some tests | diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py
index 3bdf91cbf838b..73371c48f9370 100644
--- a/pandas/tests/scalar/period/test_period.py
+++ b/pandas/tests/scalar/period/test_period.py
@@ -1044,6 +1044,7 @@ def test_add_sub_nat(self):
assert NaT - p is NaT
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29560 | 2019-11-12T03:29:17Z | 2019-11-12T19:29:30Z | 2019-11-12T19:29:30Z | 2019-11-12T19:46:24Z | |
TST: parametrize/de-duplicate test_datetime64 | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index d239687a37757..4d3d6e2df35db 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -26,7 +26,9 @@
Timestamp,
date_range,
)
+import pandas.core.array... | Plenty more to do, just getting back in the saddle. | https://api.github.com/repos/pandas-dev/pandas/pulls/29559 | 2019-11-12T02:23:55Z | 2019-11-12T14:02:41Z | 2019-11-12T14:02:41Z | 2019-11-12T15:31:35Z |
BUG: np.datetime64 - TimedeltaArray | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index cd012fe755337..5a5584f89d3a1 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -318,7 +318,7 @@ Datetimelike
Timedelta
^^^^^^^^^
-
+- Bug in subtracting a :class:`TimedeltaIndex` or :class:`Timedelta... | - [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/29558 | 2019-11-12T00:45:16Z | 2019-11-12T23:14:40Z | 2019-11-12T23:14:40Z | 2019-11-12T23:17:00Z |
ENH: add BooleanArray extension array | diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst
index 125990f7cadcd..6301fee7775cf 100644
--- a/doc/source/getting_started/basics.rst
+++ b/doc/source/getting_started/basics.rst
@@ -1950,6 +1950,7 @@ sparse :class:`SparseDtype` (none) :class:`arra... | Closes https://github.com/pandas-dev/pandas/issues/21778
xref closed PRs https://github.com/pandas-dev/pandas/pull/22226 and https://github.com/pandas-dev/pandas/pull/25415, and xref the discussions on missing values in https://github.com/pandas-dev/pandas/issues/28095 and https://github.com/pandas-dev/pandas/issues/... | https://api.github.com/repos/pandas-dev/pandas/pulls/29555 | 2019-11-11T21:38:53Z | 2019-11-25T15:49:50Z | 2019-11-25T15:49:49Z | 2019-11-25T17:46:30Z |
CLN:F-string formatting | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 601b81556be0e..a2c7d0da5b4a8 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -589,8 +589,7 @@ cdef class TextReader:
if not isinstance(quote_char, (str, bytes)) and quote_char is not None:
dtype = type... | Ref to #29547
- [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/29554 | 2019-11-11T21:13:44Z | 2019-11-12T23:16:21Z | 2019-11-12T23:16:21Z | 2019-11-12T23:16:38Z |
Revert "CI: workaround numpydev bug (#29433)" | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 66960ca2c6c10..a10fd402b6733 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -44,16 +44,13 @@ jobs:
PATTERN: "not slow and not network"
LOCALE_OVERRIDE: "zh_CN.UTF-8"
- # https://github.com/pandas-dev/pandas/issues/294... | This reverts commit b4adb71aee21fcbda3fed32471c60817a8bd5c9f.
Closes #29432 | https://api.github.com/repos/pandas-dev/pandas/pulls/29553 | 2019-11-11T21:13:24Z | 2019-11-25T23:00:28Z | 2019-11-25T23:00:28Z | 2019-11-25T23:00:50Z |
REF: rename 'labels' to 'codes' in algorithms.safe_sort and ._factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 23675752a4593..b49a9d7957d51 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -448,9 +448,11 @@ def isin(comps, values) -> np.ndarray:
return f(comps, values)
-def _factorize_array(values, na_sentinel: int = -1, s... | Finishes up the renaming started by #29509 in ``core.algorithms`` of 'labels' to 'codes.' Also renames in related tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/29552 | 2019-11-11T20:49:14Z | 2019-11-12T23:19:39Z | 2019-11-12T23:19:39Z | 2019-11-12T23:19:58Z |
Add pandarallel to ecosystem documentation | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 48c722bc16a86..c8a60e0e40323 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -327,6 +327,21 @@ PyTables, h5py, and pymongo to move data between non pandas formats. Its graph
based approach is also extensible by end users for... | As proposed by datapythonista here: https://github.com/nalepae/pandarallel/issues/28
| https://api.github.com/repos/pandas-dev/pandas/pulls/29551 | 2019-11-11T20:13:02Z | 2020-01-03T02:24:17Z | 2020-01-03T02:24:16Z | 2020-01-03T02:24:24Z |
REF: pre-allocate results in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index fa9c12777eb5b..a150138f904ef 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -18,15 +18,13 @@ cimport pandas._libs.util as util
from pandas._libs.lib import maybe_convert_objects
-cdef _get_result_array(object ob... | https://api.github.com/repos/pandas-dev/pandas/pulls/29550 | 2019-11-11T19:39:00Z | 2019-11-13T01:29:22Z | 2019-11-13T01:29:22Z | 2019-11-13T01:35:13Z | |
TST: filter warnings for is_extension_type deprecation | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 5180f513dfed0..4f9481eccb836 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -1508,6 +1508,7 @@ def is_extension_type(arr):
Check whether an array-like is of a pandas extension class instance.
.. d... | Follow up on https://github.com/pandas-dev/pandas/pull/29457 | https://api.github.com/repos/pandas-dev/pandas/pulls/29549 | 2019-11-11T18:42:36Z | 2019-11-11T22:51:45Z | 2019-11-11T22:51:45Z | 2019-11-12T07:20:25Z |
REF: de-duplicate _update_cached_objs | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index e6e658c0c6979..07b95c81cc9a4 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -194,6 +194,23 @@ cdef class _BaseGrouper:
return values, index
+ cdef inline _update_cached_objs(self, object cached_typ, o... | Still working on a way to pre-compute cached_typ, but this de-duplicates a nice chunk of code. | https://api.github.com/repos/pandas-dev/pandas/pulls/29548 | 2019-11-11T18:21:28Z | 2019-11-12T23:23:00Z | 2019-11-12T23:23:00Z | 2019-11-12T23:28:34Z |
CI: GitHub action for checks (linting, docstrings...) | diff --git a/.github/workflows/activate.yml b/.github/workflows/activate.yml
deleted file mode 100644
index 83838ea3d3941..0000000000000
--- a/.github/workflows/activate.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-# Simple first task to activate GitHub actions.
-# This won't run until it is merged, but future actions will
-# r... | xref #29472 | https://api.github.com/repos/pandas-dev/pandas/pulls/29546 | 2019-11-11T18:04:49Z | 2019-11-18T00:37:05Z | 2019-11-18T00:37:05Z | 2019-11-20T15:42:32Z |
[BUG] Validate dtype when Int64Index, UInt64Index, or Float64Index are cons… | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index cb68bd0e762c4..30a828064f812 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -343,6 +343,7 @@ Numeric
- Bug in :class:`DataFrame` logical operations (`&`, `|`, `^`) not matching :class:`Series` behavi... | …tructed
- [x] closes #29539
- [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/29545 | 2019-11-11T14:44:22Z | 2019-11-18T13:44:05Z | 2019-11-18T13:44:04Z | 2019-11-18T13:48:52Z |
Fixed more SS03 errors | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index c9554016630cd..0519f056eace6 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -121,7 +121,7 @@ def _get_interval_closed_bounds(interval):
def _new_IntervalIndex(cls, d):
"""
This is calle... | Fixed SS03 errors in the docstrings for `pandas.tseries.frequencies.to_offset`; `pandas.Int64Index`; `pandas.UInt64Index`; `pandas.Float64Index`; `pandas.IntervalIndex`; `pandas.plotting.plot_params`; `pandas.io.formats.style.Styler.loader`.
- [x] xref #29315
- [ ] tests added / passed
- [x] passes `black pandas`
... | https://api.github.com/repos/pandas-dev/pandas/pulls/29540 | 2019-11-11T07:37:25Z | 2019-11-11T13:55:06Z | 2019-11-11T13:55:06Z | 2019-11-13T00:08:05Z |
REF: remove unnecessary exception in groupby | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 3ef726e569970..56a8a7d15077b 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1227,61 +1227,52 @@ def first_not_none(values):
# GH 8467
return self._co... | in a previous pass we made this unnecessary be pre-checking for the condition under which a ValueError was raised. This removes the try/except.
cc @jreback orthonal to other groupby PRs | https://api.github.com/repos/pandas-dev/pandas/pulls/29538 | 2019-11-11T02:58:16Z | 2019-11-11T13:53:00Z | 2019-11-11T13:53:00Z | 2019-11-11T15:24:08Z |
REF: separate out _get_cython_func_and_vals | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index e438db6c620ec..bbf717cb3d26b 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -393,6 +393,40 @@ def get_func(fname):
return func
+ def _get_cython_func_and_vals(
+ self, kind: str, how: str, valu... | Refactor this out of an overgrown method. I think there may be a small speedup available by using a check that will short-circuit infer_dtype, will look at this in an upcoming pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/29537 | 2019-11-11T01:34:41Z | 2019-11-11T13:53:34Z | 2019-11-11T13:53:34Z | 2019-11-11T15:24:43Z |
REF: consolidate ndim checks in _cython_operation | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index e438db6c620ec..b59c7b4cb1cea 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -343,7 +343,7 @@ def get_group_levels(self):
_cython_arity = {"ohlc": 4} # OHLC
- _name_functions = {"ohlc": lambda *args: ["op... | Orthogonal to other extant groupby PRs. | https://api.github.com/repos/pandas-dev/pandas/pulls/29536 | 2019-11-10T23:04:20Z | 2019-11-11T13:54:15Z | 2019-11-11T13:54:15Z | 2019-11-11T15:23:36Z |
TST: add test for df comparing strings to numbers raises ValueError | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index 19d91241d6a6b..ac60f04248da5 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -530,6 +530,16 @@ def test_comp(func):
test_comp(operator.ge)
test_comp(operator.l... | - [x] closes #11565
- [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/29535 | 2019-11-10T20:15:58Z | 2019-11-12T23:29:28Z | 2019-11-12T23:29:27Z | 2019-11-12T23:29:31Z |
Clean Up Case Insensitive Comps in Tokenizer | diff --git a/pandas/_libs/src/parse_helper.h b/pandas/_libs/src/parse_helper.h
index 0a767dd27b658..7fbe7a04d5b22 100644
--- a/pandas/_libs/src/parse_helper.h
+++ b/pandas/_libs/src/parse_helper.h
@@ -11,8 +11,6 @@ The full license is in the LICENSE file, distributed with this software.
#define PANDAS__LIBS_SRC_PARSE_... | Some of this is unused; other aspects were reinventing the wheel
to_boolean was doing a lot of extra work to have a case insensitive comparison. This PR removes that code (and heap memory management) while using a cross-platform "strcasecmp" function as defined in `portable.h` already
| https://api.github.com/repos/pandas-dev/pandas/pulls/29534 | 2019-11-10T19:50:46Z | 2019-11-12T19:28:56Z | 2019-11-12T19:28:56Z | 2020-01-16T00:33:36Z |
TST: add test for .loc indexing Index type preservation | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index e215c90d2eb04..61bf91d3018eb 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -3856,3 +3856,28 @@ def test_functions_no_warnings(self):
df["group"] = pd.cut(
... | - [x] closes #15166
- [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/29533 | 2019-11-10T16:39:31Z | 2019-11-13T01:48:02Z | 2019-11-13T01:48:02Z | 2019-11-13T01:48:06Z |
TST: add tests for Series/DF logical operations nan propagation | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index 19d91241d6a6b..39f738657ddd5 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -218,6 +218,42 @@ def test_logical_with_nas(self):
expected = Series([True, True])
... | - [x] closes #13896
- [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/29531 | 2019-11-10T15:58:52Z | 2019-11-12T23:32:46Z | 2019-11-12T23:32:46Z | 2019-11-12T23:32:49Z |
Makes NumericIndex constructor dtype aware | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 664fcc91bacc4..b26e2704d08db 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -336,6 +336,7 @@ Numeric
- Bug in :class:`DataFrame` logical operations (`&`, `|`, `^`) not matching :class:`Series` behavi... | - [x] closes #29526
- [x] enables #29420
- [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/29529 | 2019-11-10T11:26:47Z | 2019-11-17T22:53:31Z | 2019-11-17T22:53:31Z | 2019-11-18T00:48:06Z |
CLN: F-string formatting in pandas/_libs/*.pyx | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 0e5eaa3b7dca6..49fb1ca50a1aa 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -753,8 +753,7 @@ def group_quantile(ndarray[float64_t] out,
assert values.shape[0] == N
if not (0 <= q <= 1):
- raise ValueError(... | - [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/29527 | 2019-11-10T09:14:48Z | 2019-11-11T14:06:42Z | 2019-11-11T14:06:42Z | 2019-11-11T14:07:15Z |
TST: Check error raised when inserting wrong length categorical column | diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py
index 61bf91d3018eb..e37f734c6235e 100644
--- a/pandas/tests/frame/test_indexing.py
+++ b/pandas/tests/frame/test_indexing.py
@@ -3881,3 +3881,11 @@ def test_loc_indexing_preserves_index_category_dtype(self):
result = df.l... | - [x] closes #9374
- [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/29523 | 2019-11-10T04:43:29Z | 2019-11-16T22:00:33Z | 2019-11-16T22:00:33Z | 2019-11-16T23:34:34Z |
TST: Merge multiple cols with mixed columns/index | diff --git a/pandas/tests/reshape/merge/test_multi.py b/pandas/tests/reshape/merge/test_multi.py
index 1d8d2add3840c..bce62571d55ec 100644
--- a/pandas/tests/reshape/merge/test_multi.py
+++ b/pandas/tests/reshape/merge/test_multi.py
@@ -195,6 +195,27 @@ def test_merge_right_vs_left(self, left, right, sort):
... | - [x] closes #11354
- [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/29522 | 2019-11-10T04:08:05Z | 2019-11-16T22:04:45Z | 2019-11-16T22:04:45Z | 2019-11-16T23:34:09Z |
TST:Add test to check single category col returns series with single row slice | diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py
index f7b197a518643..89fd7ccd91f81 100644
--- a/pandas/tests/frame/test_dtypes.py
+++ b/pandas/tests/frame/test_dtypes.py
@@ -762,6 +762,15 @@ def test_astype_categoricaldtype_class_raises(self, cls):
with pytest.raises(TypeErro... | - [x] closes #14011
- [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/29521 | 2019-11-10T02:42:24Z | 2019-11-10T19:11:28Z | 2019-11-10T19:11:28Z | 2019-11-10T19:11:39Z |
REF: de-duplicate _check_dummy | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 60c65a22603cd..9e362fa721737 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -180,7 +180,26 @@ cdef class Reducer:
return result
-cdef class SeriesBinGrouper:
+cdef class _BaseGrouper:
+ cdef _check_du... | independent of #29502. After both this and that there will be another de-duplication pr. | https://api.github.com/repos/pandas-dev/pandas/pulls/29520 | 2019-11-10T02:25:50Z | 2019-11-11T14:08:02Z | 2019-11-11T14:08:02Z | 2019-11-11T15:23:03Z |
TST: Add tests for single level indexing with loc(axis=1) | diff --git a/pandas/tests/indexing/multiindex/test_slice.py b/pandas/tests/indexing/multiindex/test_slice.py
index f1f11285696f9..f279b5517c3f6 100644
--- a/pandas/tests/indexing/multiindex/test_slice.py
+++ b/pandas/tests/indexing/multiindex/test_slice.py
@@ -492,6 +492,44 @@ def test_loc_axis_arguments(self):
... | - [x] closes #13655
- [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/29519 | 2019-11-10T01:47:16Z | 2019-11-13T01:27:54Z | 2019-11-13T01:27:53Z | 2019-11-13T01:27:57Z |
CLN: String formatting % -> f-strings | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index fdf4059fad569..f3d51b28ad399 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -596,7 +596,7 @@ def _format_native_types(self, na_rep="NaT", date_format=None, **kwargs):
if date_format:
for... | - Follow up from https://github.com/pandas-dev/pandas/pull/29212
- Towards https://github.com/pandas-dev/pandas/issues/29547
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Old style % formatting to f-strings | https://api.github.com/repos/pandas-dev/pandas/pulls/29518 | 2019-11-10T00:31:39Z | 2019-11-18T00:39:29Z | 2019-11-18T00:39:29Z | 2019-12-25T20:35:55Z |
CLN: remove unnecessary type checks | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index aaac70755cbac..5180f513dfed0 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -1285,124 +1285,6 @@ def _is_unorderable_exception(e: TypeError) -> bool:
return "unorderable" in str(e)
-def is_numeric_v_... | https://api.github.com/repos/pandas-dev/pandas/pulls/29517 | 2019-11-09T23:49:35Z | 2019-11-11T14:08:44Z | 2019-11-11T14:08:44Z | 2019-11-11T15:22:37Z | |
DOC: update bottleneck repo and documentation urls | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index f5bb152d6c1b9..1ca1640f9a7c6 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -218,7 +218,7 @@ Recommended dependencies
``numexpr`` uses multiple cores as well as smar... | As part of my taking over maintainership of bottleneck, the repo url has changed (old one redirects correctly) and documentation is now hosted on ReadTheDocs (old url has been down for some time). | https://api.github.com/repos/pandas-dev/pandas/pulls/29516 | 2019-11-09T23:42:04Z | 2019-11-10T00:17:48Z | 2019-11-10T00:17:48Z | 2019-11-13T07:41:41Z |
TST: add test for .unique() dtype preserving | diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index 9dd88fd5dd25b..da06b5440c38c 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -10,6 +10,13 @@
from pandas.compat.numpy import np_array_datetime64_compat
import pandas.util._test_decorators as td
+from pandas.core.d... | - [x] closes #15442
- [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/29515 | 2019-11-09T20:19:56Z | 2019-11-14T14:47:49Z | 2019-11-14T14:47:49Z | 2019-11-14T14:47:53Z |
Make subdirs in tests/io/data | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index 2f9c7e109f0c0..213ca77466b8f 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -364,7 +364,7 @@ def parallel_coordinates(
--------
>>> from matplotlib import pyplot as plt
>>> df = pd.read_csv('https://raw.github... | - [x] closes https://github.com/pandas-dev/pandas/issues/29439
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
A few of the "network" tests are failing locally as they require the data on master:
e.g
```
@tm.network
def test_spam_url(self):
url = ... | https://api.github.com/repos/pandas-dev/pandas/pulls/29513 | 2019-11-09T16:03:36Z | 2019-11-13T16:58:08Z | 2019-11-13T16:58:08Z | 2019-12-25T20:36:12Z |
API: Remove kwargs from GroupBy | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2468c43337d0d..bcfd624bd8354 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7830,7 +7830,6 @@ def groupby(
group_keys=True,
squeeze=False,
observed=False,
- **kwargs
):
"""
G... | Remove kwargs from ``_GroupBy`.__init__`` and adds an explicit ``mutated`` parameter name instead. Also makes related changes.
Avoiding kwargs when possible is better for typing ergonomics. | https://api.github.com/repos/pandas-dev/pandas/pulls/29511 | 2019-11-09T14:47:26Z | 2019-11-12T23:35:53Z | 2019-11-12T23:35:53Z | 2019-12-01T21:44:48Z |
TST: add test for pd.melt category preservation | diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py
index b1d790644bbfb..4521f1bbf1a08 100644
--- a/pandas/tests/reshape/test_melt.py
+++ b/pandas/tests/reshape/test_melt.py
@@ -270,6 +270,16 @@ def test_pandas_dtypes(self, col):
expected.columns = ["klass", "col", "attribute", "... | - [x] closes #15853
- [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/29510 | 2019-11-09T14:27:41Z | 2019-11-09T19:43:42Z | 2019-11-09T19:43:42Z | 2019-11-09T19:43:49Z |
REF: rename 'labels' in pd.factorize to 'codes' | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 26099a94834e8..23675752a4593 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -3,7 +3,7 @@
intended for public consumption
"""
from textwrap import dedent
-from typing import Dict
+from typing import Dict, Optional, Tup... | In ``factorize`` and related stuff, rename ``labels`` to ``codes``. Also add type hints to ``factorize``.
This is an internal name change, so is ok from an API stability perspective
| https://api.github.com/repos/pandas-dev/pandas/pulls/29509 | 2019-11-09T12:37:15Z | 2019-11-11T14:32:46Z | 2019-11-11T14:32:46Z | 2019-11-11T20:45:26Z |
Use black 19.10b0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3bed68fd8d2fc..b34f5dfdd1a83 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/python/black
- rev: stable
+ rev: 19.10b0
hooks:
- id: black
language_vers... | - [x] closes #29341
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Main differences can be found on the 19.10 changelog:
https://black.readthedocs.io/en/stable/change_log.html | https://api.github.com/repos/pandas-dev/pandas/pulls/29508 | 2019-11-09T12:31:33Z | 2019-11-17T15:42:12Z | 2019-11-17T15:42:12Z | 2019-12-25T20:24:36Z |
DOC: Improved pandas/compact/__init__.py | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 81431db5b867c..c2cd656bfc651 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -29,7 +29,7 @@
def set_function_name(f, name, cls):
"""
- Bind the name/qualname attributes of the function
+ Bind the name/qualna... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/29507 | 2019-11-09T12:06:13Z | 2019-11-09T16:14:35Z | 2019-11-09T16:14:35Z | 2019-11-09T16:46:02Z |
CLN: Added annotations. | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 02347aa60c174..890d0aca0019d 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -37,7 +37,7 @@ def set_function_name(f, name, cls):
# https://github.com/pandas-dev/pandas/pull/9123
-def is_platform_little_endian():
+def... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/29506 | 2019-11-09T11:57:22Z | 2019-11-09T18:35:07Z | 2019-11-09T18:35:07Z | 2019-11-11T08:49:32Z |
TST: Add tests for MultiIndex columns cases in aggregate relabelling | diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py
index c03ffe317083c..4313b52798c6e 100644
--- a/pandas/tests/groupby/aggregate/test_aggregate.py
+++ b/pandas/tests/groupby/aggregate/test_aggregate.py
@@ -495,6 +495,80 @@ def test_mangled(self):
t... | - [x] closes #29422
- [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/29504 | 2019-11-09T08:39:08Z | 2019-11-13T02:13:06Z | 2019-11-13T02:13:06Z | 2019-11-13T02:13:11Z |
CLN: annotations in core.dtypes | diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py
index 2cc7c44cc05af..d9d3b0d45e218 100644
--- a/pandas/core/dtypes/base.py
+++ b/pandas/core/dtypes/base.py
@@ -87,7 +87,8 @@ def __str__(self) -> str:
return self.name
def __eq__(self, other):
- """Check whether 'other' is equa... | Some docstring cleanup. | https://api.github.com/repos/pandas-dev/pandas/pulls/29503 | 2019-11-09T05:21:34Z | 2019-11-12T23:38:27Z | 2019-11-12T23:38:27Z | 2019-11-12T23:55:49Z |
stronger typing in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 60c65a22603cd..5068fae2e5f9e 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -43,10 +43,11 @@ cdef class Reducer:
"""
cdef:
Py_ssize_t increment, chunksize, nresults
- object arr, dummy, f, l... | At least 2 more passes in libreduction; there's a lot of code that can be de-duplicated | https://api.github.com/repos/pandas-dev/pandas/pulls/29502 | 2019-11-09T03:01:33Z | 2019-11-11T14:34:04Z | 2019-11-11T14:34:04Z | 2019-11-11T15:21:56Z |
REF: Pre-empt ValueError in _aggregate_series_fast | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index e6e658c0c6979..a19226670ec0a 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -323,6 +323,10 @@ cdef class SeriesGrouper(_BaseGrouper):
# safer obj._get_values(slice(None, 0))
assert dummy is not Non... | cc @WillAyd @jreback orthogonal to other groupby PRs (including #29499) but will have merge conflicts. No preference on what order they should go in. | https://api.github.com/repos/pandas-dev/pandas/pulls/29500 | 2019-11-09T01:58:13Z | 2019-11-12T23:08:47Z | 2019-11-12T23:08:46Z | 2019-11-12T23:18:36Z |
REF: avoid result=None case in _python_agg_general | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e73be29d5b104..25ba35a1cc752 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -898,6 +898,10 @@ def _python_agg_general(self, func, *args, **kwargs):
# iterate through "columns" ex exclusions t... | cc @WillAyd @jreback, orthogonal to other groupby PRs. | https://api.github.com/repos/pandas-dev/pandas/pulls/29499 | 2019-11-09T01:56:11Z | 2019-11-12T19:28:22Z | 2019-11-12T19:28:22Z | 2019-11-12T19:48:31Z |
TST: add test for df.where() with int dtype | diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py
index 68844aeeb081e..93db7094d7e75 100644
--- a/pandas/tests/frame/test_dtypes.py
+++ b/pandas/tests/frame/test_dtypes.py
@@ -825,6 +825,31 @@ def test_astype_column_metadata(self, dtype):
df = df.astype(dtype)
tm.asser... | - [x] closes #16979
- [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/29498 | 2019-11-09T01:10:23Z | 2019-11-12T23:39:10Z | 2019-11-12T23:39:09Z | 2019-11-12T23:39:13Z |
TST: add test for df construction from dict with tuples | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index aa00cf234d9ee..1d030bbc75521 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -1424,6 +1424,23 @@ def test_from_dict_columns_parameter(self):
dict([(... | - [x] closes #16769
- [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/29497 | 2019-11-09T00:30:54Z | 2019-11-09T21:09:56Z | 2019-11-09T21:09:56Z | 2019-11-09T21:10:09Z |
updated DataFrame.equals docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c3788baec030a..49df374670577 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1472,10 +1472,11 @@ def equals(self, other):
DataFrame.eq : Compare two DataFrame objects of the same shape and
return a DataFrame wh... | - [x] closes #29408
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Note: I tested the documentation locally and the links to assert_*_equals are working now. | https://api.github.com/repos/pandas-dev/pandas/pulls/29496 | 2019-11-08T23:49:22Z | 2019-11-09T19:18:31Z | 2019-11-09T19:18:31Z | 2019-11-09T19:18:37Z |
REF: de-privatize indexes.api names | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 002d8640f109d..9073a1e31dfb0 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -63,7 +63,7 @@
_transform_template,
get_groupby,
)
-from pandas.core.index import Index, MultiIndex, _all_indexes... | update imports where appropriate | https://api.github.com/repos/pandas-dev/pandas/pulls/29495 | 2019-11-08T23:31:47Z | 2019-11-15T15:00:00Z | 2019-11-15T15:00:00Z | 2019-11-15T16:11:20Z |
Update MultiIndex checks | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index fa9c12777eb5b..ab99771385962 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -493,8 +493,8 @@ def apply_frame_axis0(object frame, object f, object names,
object piece
dict item_cache
- if frame.... | cc @WillAyd I'm holding off on most non-trivial groupby stuff, LMK if this is a problem. | https://api.github.com/repos/pandas-dev/pandas/pulls/29494 | 2019-11-08T21:33:02Z | 2019-11-13T03:35:35Z | 2019-11-13T03:35:35Z | 2019-11-13T03:52:29Z |
TYPING: Enable --check-untyped-defs for MyPy | diff --git a/setup.cfg b/setup.cfg
index 62d9f2e6056bb..c7d3394568f9c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -122,6 +122,10 @@ skip = pandas/__init__.py,pandas/core/api.py
[mypy]
ignore_missing_imports=True
no_implicit_optional=True
+check_untyped_defs=True
+
+[mypy-pandas.tests.*]
+check_untyped_defs=False
[m... | - [ ] closes #27568
I'll open a new issue for resolution of mypy errors per module, see https://gitter.im/pydata/pandas?at=5dc5cdf2091dd14a0e86103a and #28926 for process used for test modules.
cc @WillAyd @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/29493 | 2019-11-08T20:40:00Z | 2019-12-19T13:37:08Z | 2019-12-19T13:37:07Z | 2020-10-04T08:09:58Z |
CLN: Removing Python 3.6 or higher references that are always true | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 317dc769636fb..03ed26337d539 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -36,7 +36,6 @@ from pandas._libs.tslibs.tzconversion import (
# Constants
_zero_time = datetime_time(0, 0)... | Follow up of #29212. After removing Python 3.5 compatibility, checks for >=py36 are always true and can be removed.
CC: @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/29492 | 2019-11-08T19:48:41Z | 2019-11-13T17:45:29Z | 2019-11-13T17:45:29Z | 2019-11-13T17:45:33Z |
DEPR: read_gbq, DataFrame.to_gbq | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 414ce92552c70..b22f8cb34c814 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -39,9 +39,6 @@ dependencies:
- odfpy>=1.4.1
- qtpy>=2.3.0
- openpyxl>=3.1.0
- # Doesn't install well with pyarrow
- # https://github.com/... | - [x] closes #55525 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/55868 | 2023-11-07T18:34:42Z | 2023-11-14T15:41:03Z | 2023-11-14T15:41:03Z | 2023-11-14T15:41:10Z |
Backport PR #55227 on branch 2.1.x (BUG: Interchange object data buffer has the wrong dtype / from_dataframe incorrect ) | diff --git a/pandas/core/interchange/from_dataframe.py b/pandas/core/interchange/from_dataframe.py
index 214fbf9f36435..d45ae37890ba7 100644
--- a/pandas/core/interchange/from_dataframe.py
+++ b/pandas/core/interchange/from_dataframe.py
@@ -266,10 +266,9 @@ def string_column_to_ndarray(col: Column) -> tuple[np.ndarray,... | Backport PR #55227: BUG: Interchange object data buffer has the wrong dtype / from_dataframe incorrect | https://api.github.com/repos/pandas-dev/pandas/pulls/55863 | 2023-11-07T12:08:00Z | 2023-11-08T00:08:46Z | 2023-11-08T00:08:46Z | 2023-11-08T00:08:46Z |
DOC: fix spelling of deque | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index ae9868e6a828f..94a8ee7cd1a5d 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1079,7 +1079,7 @@ Datetimelike
- Bug in masking datetime-like arrays with a boolean mask of an incorrect length not raisin... | Tiny follow-up on https://github.com/pandas-dev/pandas/pull/55846, correcting the spelling of `deque`
Python consistently uses "deque" and not "dequeue" (also the actual object is `deque`, and since we are putting it in code formatting, we should use the correct name) | https://api.github.com/repos/pandas-dev/pandas/pulls/55862 | 2023-11-07T10:37:55Z | 2023-11-07T11:38:05Z | 2023-11-07T11:38:05Z | 2023-11-07T16:26:28Z |
TST: clean-up various tests avoiding CoW issues | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index 58581941509e8..4bad0838f7af8 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -747,11 +747,11 @@ def test_getitem_setitem_float_labels(self, using... | A few smaller and independent test changes broken off from https://github.com/pandas-dev/pandas/pull/55838 | https://api.github.com/repos/pandas-dev/pandas/pulls/55861 | 2023-11-07T09:56:07Z | 2023-11-07T15:43:43Z | 2023-11-07T15:43:43Z | 2023-11-07T16:24:52Z |
TST: avoid usage of unnecessary xfail in test_datetime64 | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index 72c97f4fab46d..15381afbd3c6d 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -1079,21 +1079,17 @@ def test_dt64arr_add_dtlike_raises(self, tz_naive_fixtu... | I noticed those xfails when running the tests in this file locally, because those are for some reason very slow.
First, what we mark as "xfail" is not actually an expected test failure like not-yet-implemented or not-yet-fixed-bug (i.e. something that could be fixed at some point). It's simply that DataFrame broadca... | https://api.github.com/repos/pandas-dev/pandas/pulls/55860 | 2023-11-07T09:32:08Z | 2023-11-07T15:34:30Z | 2023-11-07T15:34:30Z | 2023-11-07T16:25:00Z |
Backport PR #55853: DEPS: Use ipython run_cell instead of run_code; remove pytest-asyncio | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 8ff7d290ea9d1..14abcdbfdb310 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -236,7 +236,7 @@ jobs:
. ~/virtualenvs/pandas-dev/bin/activate
python -m pip install --no-cach... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/55858 | 2023-11-07T01:29:11Z | 2023-11-07T15:46:12Z | 2023-11-07T15:46:12Z | 2023-11-07T15:46:15Z |
Added str to index_col attribute in the read_excel function description | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index d5dc5eac8422e..6d66830ab1dfd 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -391,7 +391,7 @@ def read_excel(
*,
header: int | Sequence[int] | None = ...,
names: SequenceNotStr[Hashable] | range | None = ...,
-... | - [ ] closes #55843
- [ ] All [code checks passed]
- [ ] Added [type annotations] to new arguments/methods/functions.
| https://api.github.com/repos/pandas-dev/pandas/pulls/55857 | 2023-11-07T01:17:56Z | 2023-11-07T15:41:56Z | 2023-11-07T15:41:56Z | 2023-11-07T18:18:06Z |
DEPR: unit keyword in TimedeltaIndex | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index fbff38aeefc51..196fbffa11e5a 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -398,6 +398,7 @@ Other Deprecations
- Deprecated the ``errors="ignore"`` option in :func:`to_datetime`, :func:`to_timedelta... | xref #55499 | https://api.github.com/repos/pandas-dev/pandas/pulls/55856 | 2023-11-06T23:24:17Z | 2023-12-01T18:31:40Z | 2023-12-01T18:31:40Z | 2023-12-01T20:54:57Z |
TST: Make read_csv tests pyarrow 13 compatable on 2.1.x | diff --git a/pandas/tests/interchange/test_impl.py b/pandas/tests/interchange/test_impl.py
index 8a25a2c1889f3..61d3edcbb2964 100644
--- a/pandas/tests/interchange/test_impl.py
+++ b/pandas/tests/interchange/test_impl.py
@@ -4,6 +4,10 @@
import pytest
from pandas._libs.tslibs import iNaT
+from pandas.compat import ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/55855 | 2023-11-06T23:21:47Z | 2023-11-07T20:07:46Z | 2023-11-07T20:07:46Z | 2023-11-07T20:07:49Z |
DEPS: Use ipython run_cell instead of run_code; remove pytest-asyncio | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 0b6843c5a7033..9785b81ae9e0b 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -240,7 +240,7 @@ jobs:
. ~/virtualenvs/pandas-dev/bin/activate
python -m pip install --no-cach... | pytest-asyncio is used for a unit test that uses an ipython API `run_code` that is async. I think the equivalent functionality is tested via `run_cell` which is not async and therefore allows us to remove the dependency.
Additionally, it appears this plugin is causing our CI failures
https://github.com/pytest-dev... | https://api.github.com/repos/pandas-dev/pandas/pulls/55853 | 2023-11-06T22:04:37Z | 2023-11-07T01:21:28Z | 2023-11-07T01:21:28Z | 2023-11-07T01:29:42Z |
Backport PR #55817 on branch 2.1.x (COMPAT: Numpy int64 Windows default for Numpy 2.0) | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index 51c9892b64a08..0552301b59400 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -11,6 +11,7 @@
np_version_gte1p24 = _nlv >= Version("1.24")
np_version_gte1p24p3 = _nlv >= Version("1.24.3")
np_versi... | Backport PR #55817: COMPAT: Numpy int64 Windows default for Numpy 2.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/55851 | 2023-11-06T19:36:09Z | 2023-11-06T22:05:52Z | 2023-11-06T22:05:52Z | 2023-11-06T22:05:52Z |
REF: make plotting less stateful (2) | diff --git a/pandas/plotting/_matplotlib/boxplot.py b/pandas/plotting/_matplotlib/boxplot.py
index 8027cc76a9a40..8e2b6377a0fb2 100644
--- a/pandas/plotting/_matplotlib/boxplot.py
+++ b/pandas/plotting/_matplotlib/boxplot.py
@@ -81,7 +81,6 @@ def __init__(self, data, return_type: str = "axes", **kwargs) -> None:
... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/55850 | 2023-11-06T18:36:20Z | 2023-11-07T01:18:41Z | 2023-11-07T01:18:41Z | 2023-11-07T15:14:18Z |
Add classifier for 3.12 | diff --git a/pyproject.toml b/pyproject.toml
index 85bb937fe431f..1fb620b4c1de2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,6 +50,7 @@ classifiers = [
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
+ 'Programming... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/55847 | 2023-11-06T16:56:50Z | 2023-11-07T01:19:29Z | 2023-11-07T01:19:29Z | 2023-11-07T01:19:37Z |
[pre-commit.ci] pre-commit autoupdate | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a9a9baac6069a..753aefcc00527 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,11 +20,11 @@ ci:
repos:
- repo: https://github.com/hauntsaninja/black-pre-commit-mirror
# black compiled with mypyc
- rev: 23.9.1
+ r... | <!--pre-commit.ci start-->
updates:
- [github.com/hauntsaninja/black-pre-commit-mirror: 23.9.1 → 23.10.1](https://github.com/hauntsaninja/black-pre-commit-mirror/compare/23.9.1...23.10.1)
- [github.com/astral-sh/ruff-pre-commit: v0.0.291 → v0.1.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.291...v0.1.4)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/55846 | 2023-11-06T16:29:26Z | 2023-11-07T09:28:02Z | 2023-11-07T09:28:02Z | 2023-11-07T10:38:04Z |
ENH: Raise TypeError for offsets which are not supported as period frequency | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 2bc031e4b5f61..38f39270d12c7 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -103,6 +103,7 @@ Other enhancements
- :meth:`ExtensionArray.duplicated` added to allow extension type implementations of th... | - [x] closes #55785
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Add... | https://api.github.com/repos/pandas-dev/pandas/pulls/55844 | 2023-11-06T15:23:28Z | 2023-11-07T15:47:34Z | 2023-11-07T15:47:34Z | 2023-11-18T22:59:05Z |
BUG: Fix rounding of percentile 99.999% to 100% | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b1eb1760b94f..c591ea4f24dba 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -423,7 +423,6 @@ I/O
- Bug in :meth:`pandas.read_excel` with ``engine="odf"`` (``ods`` files) when string contains annotati... | - [x] closes #55765
- [x] [Tests added and passed]
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/... | https://api.github.com/repos/pandas-dev/pandas/pulls/55841 | 2023-11-06T07:22:36Z | 2023-11-07T20:11:41Z | 2023-11-07T20:11:41Z | 2023-11-07T20:11:57Z |
REF/PERF: MultiIndex.get_indexer with method | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0b1eb1760b94f..a7acde2ecb700 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -324,6 +324,7 @@ Performance improvements
- Performance improvement in :meth:`DataFrame.groupby` when aggregating pyarrow t... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/55839 | 2023-11-05T23:13:14Z | 2023-11-06T17:37:33Z | 2023-11-06T17:37:33Z | 2023-11-16T12:57:07Z |
CoW warning mode: add warning for single block setitem | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f37be37f37693..328065f5bbd84 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -42,6 +42,7 @@
from pandas._config import (
get_option,
using_copy_on_write,
+ warn_copy_on_write,
)
from pandas._config.config import _get_option
... | Follow-up on https://github.com/pandas-dev/pandas/pull/55428 | https://api.github.com/repos/pandas-dev/pandas/pulls/55838 | 2023-11-05T22:33:32Z | 2023-11-10T14:53:33Z | 2023-11-10T14:53:33Z | 2023-11-10T15:46:01Z |
REF: make plotting less stateful | diff --git a/pandas/plotting/_matplotlib/boxplot.py b/pandas/plotting/_matplotlib/boxplot.py
index 5fcea796a9c6e..8027cc76a9a40 100644
--- a/pandas/plotting/_matplotlib/boxplot.py
+++ b/pandas/plotting/_matplotlib/boxplot.py
@@ -35,6 +35,7 @@
from collections.abc import Collection
from matplotlib.axes impor... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/55837 | 2023-11-05T20:53:19Z | 2023-11-06T17:32:01Z | 2023-11-06T17:32:01Z | 2023-11-06T17:33:31Z |
BUG: Index.getitem returning wrong result with negative step for arrow | diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst
index 2a04adf2ac7f7..543a9864ced26 100644
--- a/doc/source/whatsnew/v2.1.4.rst
+++ b/doc/source/whatsnew/v2.1.4.rst
@@ -22,6 +22,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
- Bug in :class:`Series` constructor raising DeprecationWarning when... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/55832 | 2023-11-05T02:49:04Z | 2023-11-22T18:23:10Z | 2023-11-22T18:23:10Z | 2023-11-22T23:19:41Z |
DOC: replace deprecated freqs in user_guide Period | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index df3d0d2643949..4800c29d6b630 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -2013,7 +2013,7 @@ frequency. Arithmetic is not allowed between ``Period`` with different ``freq``
... | xref #54061
replaced deprecated frequencies in user_guide Period with new frequencies. | https://api.github.com/repos/pandas-dev/pandas/pulls/55831 | 2023-11-04T22:59:14Z | 2023-11-05T15:00:38Z | 2023-11-05T15:00:38Z | 2023-11-09T22:40:03Z |
TST: Parameterize & make tests more performant | diff --git a/pandas/tests/apply/conftest.py b/pandas/tests/apply/conftest.py
index 7ed9fc88c3aea..acccdd845b53c 100644
--- a/pandas/tests/apply/conftest.py
+++ b/pandas/tests/apply/conftest.py
@@ -18,7 +18,7 @@ def int_frame_const_col():
return df
-@pytest.fixture(params=["python", "numba"])
+@pytest.fixture(p... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/55830 | 2023-11-04T22:55:22Z | 2023-11-07T01:16:58Z | 2023-11-07T01:16:58Z | 2023-11-07T01:17:02Z |
TYP: plotting | diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py
index fa5b7c906355c..d28920b8201a6 100644
--- a/pandas/plotting/_matplotlib/core.py
+++ b/pandas/plotting/_matplotlib/core.py
@@ -12,6 +12,7 @@
from typing import (
TYPE_CHECKING,
Literal,
+ final,
)
import warnings
... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/55829 | 2023-11-04T21:57:28Z | 2023-11-06T22:37:55Z | 2023-11-06T22:37:55Z | 2023-11-06T22:38:42Z |
Reorder tests in maybe_downcast_numeric | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 0ad652bd5aa64..792fa4fdc24a5 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -361,15 +361,11 @@ def trans(x):
# if we don't have any elements, just astype it
return trans(result).astype(dtype... | The comment `# if we have any nulls, then we are done` is not consistent with the test `if isna(arr).any()` because `arr` is constructed only from the first element (`r[0]`) not the full ravel'd list of values. Moreover, calling `np.array()` on some random type can have surprising consequences.
So instead, do the e... | https://api.github.com/repos/pandas-dev/pandas/pulls/55825 | 2023-11-04T02:40:35Z | 2023-11-22T18:21:32Z | 2023-11-22T18:21:32Z | 2023-12-20T17:58:23Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.