title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
BUG: Better handling of invalid na_option argument for groupby.rank | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index e9d4225c3dbd9..3dff5eed8a81a 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -653,6 +653,7 @@ Reshaping
- Bug in :meth:`Series.where` and :meth:`DataFrame.where` with ``datetime64[ns, tz]`` dtype ... | - [x] closes #22124
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff
- [x] whatsnew entry
This is also related to #19499 | https://api.github.com/repos/pandas-dev/pandas/pulls/22125 | 2018-07-30T05:34:27Z | 2018-08-01T22:10:54Z | 2018-08-01T22:10:54Z | 2018-08-02T00:58:20Z |
Lint configuration followup | diff --git a/ci/lint.sh b/ci/lint.sh
index 9fc283c04f09e..ec99e1e559d6e 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -8,6 +8,17 @@ RET=0
if [ "$LINT" ]; then
+ # We're ignoring the following codes across the board
+ #E402, # module level import not at top of file
+ #E731, # do not assign a lambda express... | Post #22075
- Ran scripts/convert_deps.py
- Documented flake8 checks we are ignoring
cc @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/22123 | 2018-07-30T01:16:34Z | 2018-07-30T10:00:24Z | 2018-07-30T10:00:24Z | 2018-07-30T15:21:44Z |
DOC: Fix spaces and brackets in ValueError message for option_context. | diff --git a/pandas/core/config.py b/pandas/core/config.py
index 369e0568346ef..abcdbfa12e4e9 100644
--- a/pandas/core/config.py
+++ b/pandas/core/config.py
@@ -391,7 +391,7 @@ class option_context(object):
def __init__(self, *args):
if not (len(args) % 2 == 0 and len(args) >= 2):
raise Value... | Add a missing space and changed a parenthesis to a bracket in the message of the ValueError raised whenever the `args` in `option_context(*args)` don't meet requirements.
'Need to invoke asoption_context(pat, val, [(pat, val), ...)).'
->
'Need to invoke as option_context(pat, val, [(pat, val), ...]).'
- [x] test... | https://api.github.com/repos/pandas-dev/pandas/pulls/22121 | 2018-07-29T22:19:10Z | 2018-07-30T10:06:32Z | 2018-07-30T10:06:32Z | 2018-07-30T10:06:36Z |
Centralize m8[ns] Arithmetic Tests | diff --git a/pandas/tests/indexes/timedeltas/test_arithmetic.py b/pandas/tests/indexes/timedeltas/test_arithmetic.py
index d47d75d2f3485..a5e75de2a267e 100644
--- a/pandas/tests/indexes/timedeltas/test_arithmetic.py
+++ b/pandas/tests/indexes/timedeltas/test_arithmetic.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-impor... | There are a bunch still left in the TDI tests, but the diff is already pretty big as it is.
A _ton_ of `DataFrame` tests are xfailed here. Most of these will be fixed by the follow-up to (#22068 + #22074).
xfails are made strict so that we get alerted when they are fixed. Several existing xfails are removed sin... | https://api.github.com/repos/pandas-dev/pandas/pulls/22118 | 2018-07-29T20:55:14Z | 2018-07-31T12:23:42Z | 2018-07-31T12:23:42Z | 2018-07-31T15:59:10Z |
CLN: Remove special handling of nans in the float64-case of isin | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 34a8d552304d1..a26c5d89bc483 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -38,6 +38,27 @@ def time_isin(self, dtypes):
self.s.isin(self.values)
+class Is... | It is no longer needed because the hash-table handles the nans correctly out of the box (see #21866)
Not having to scan the values via isna(...).any() will improve the performance.
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
There are no changes visible f... | https://api.github.com/repos/pandas-dev/pandas/pulls/22117 | 2018-07-29T20:51:53Z | 2018-08-10T10:18:59Z | 2018-08-10T10:18:59Z | 2018-08-11T19:45:22Z |
CLN: Unused varables pt2 | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 928483005786a..60464bcfda1e7 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -814,7 +814,6 @@ def _format_data(self):
summary = '[{head} ... {tail}]'.format(
head=... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
xref #21986
Remove more unused variables including ones that were marked in TODOs as unused. | https://api.github.com/repos/pandas-dev/pandas/pulls/22115 | 2018-07-29T19:24:41Z | 2018-07-30T10:11:49Z | 2018-07-30T10:11:49Z | 2018-07-30T15:21:53Z |
remove cnp usage from sas.pyx | diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx
index 3d94dc127a1d2..221c07a0631d2 100644
--- a/pandas/io/sas/sas.pyx
+++ b/pandas/io/sas/sas.pyx
@@ -2,20 +2,22 @@
# cython: boundscheck=False, initializedcheck=False
import numpy as np
-cimport numpy as cnp
-from numpy cimport uint8_t, uint16_t, int8_t, i... | Building this particular file will no longer emit the numpy 1.7 deprecation warning. | https://api.github.com/repos/pandas-dev/pandas/pulls/22111 | 2018-07-29T01:31:45Z | 2018-07-29T15:20:20Z | 2018-07-29T15:20:20Z | 2018-08-08T15:53:35Z |
BUG: _cython_table bug fix | diff --git a/pandas/conftest.py b/pandas/conftest.py
index e878b32fcad7b..c714ce2228d09 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -126,7 +126,7 @@ def all_arithmetic_operators(request):
# use sorted as dicts in py<3.6 have random order, which xdist doesn't like
_cython_table = sorted(((key, value) f... | #21224 introduced a bug, where the ``conftest._cython_table`` isn't sorted by the function's name, but by the functions class name (i.e. "function"). This can make the sorting indeterministic and make the build fail on Python 2.7 and 3.5 at times.
This PR makes the sort order follow the functions names again and the... | https://api.github.com/repos/pandas-dev/pandas/pulls/22110 | 2018-07-29T00:59:02Z | 2018-07-29T10:08:00Z | 2018-07-29T10:08:00Z | 2018-07-29T10:30:05Z |
ENH: add np.nan* funcs to cython_table | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 9a781eda0e397..38b789f697b30 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -1080,6 +1080,7 @@ Numeric
- Bug in :meth:`DataFrame.astype` to extension dtype may raise ``AttributeError`` (:issue:`2... | - [x] closes #19629
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR ensures that ``Series.agg`` can correctly take np.nan* funcs as inputs, e.g.:
```python
>>> pd.Series([1,2,3,4]).agg(np.nansum)
10
```
Previously that operation... | https://api.github.com/repos/pandas-dev/pandas/pulls/22109 | 2018-07-28T23:00:48Z | 2018-10-28T03:26:45Z | 2018-10-28T03:26:45Z | 2019-01-17T19:03:12Z |
BUG: DataFrame.replace with out of bound datetime causing RecursionError | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 42e286f487a7d..95767b4e03822 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -558,7 +558,7 @@ Reshaping
- Bug in :meth:`Series.combine_first` with ``datetime64[ns, tz]`` dtype which would return t... | - [x] closes #20380
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
By default, keyword convert=True for replace method for Block and ObjectBlock. When trying to replace dataframe, blocks are operated on separately, during which conversion happe... | https://api.github.com/repos/pandas-dev/pandas/pulls/22108 | 2018-07-28T22:47:59Z | 2018-08-01T01:09:54Z | 2018-08-01T01:09:54Z | 2018-08-01T08:33:58Z |
DOC: Clarify check_like behavior in assert_frame_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 9697c991122dd..8deb056d2bd15 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -1348,7 +1348,9 @@ def assert_frame_equal(left, right, check_dtype=True,
check_categorical : bool, default True
Whether to compare internal Ca... | - [x] closes #22052
| https://api.github.com/repos/pandas-dev/pandas/pulls/22106 | 2018-07-28T20:22:33Z | 2018-07-31T15:44:07Z | 2018-07-31T15:44:06Z | 2018-07-31T18:24:17Z |
CLN: Old helper functions | diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py
index e83bcf800e949..1c2033d90cd8a 100644
--- a/pandas/core/reshape/util.py
+++ b/pandas/core/reshape/util.py
@@ -3,16 +3,9 @@
from pandas.core.dtypes.common import is_list_like
from pandas.compat import reduce
-from pandas.core.index import Ind... | - [x] closes #21838
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
It appears that these functions were helpers at one point in the past, but they don't appear anywhere in the codebase now (and are not publicly documented).
I _think_ they are safe to blow away, although they exist the publi... | https://api.github.com/repos/pandas-dev/pandas/pulls/22104 | 2018-07-28T19:29:33Z | 2018-07-29T15:25:14Z | 2018-07-29T15:25:14Z | 2018-07-29T18:15:16Z |
TST: skip pytables test with not-updated pytables conda package | diff --git a/pandas/tests/io/test_pytables.py b/pandas/tests/io/test_pytables.py
index 865cab7a1596e..9b624ab78a406 100644
--- a/pandas/tests/io/test_pytables.py
+++ b/pandas/tests/io/test_pytables.py
@@ -14,7 +14,7 @@
from pandas import (Series, DataFrame, Panel, MultiIndex, Int64Index,
RangeInde... | xref #22098 | https://api.github.com/repos/pandas-dev/pandas/pulls/22099 | 2018-07-28T12:43:58Z | 2018-07-28T13:16:08Z | 2018-07-28T13:16:08Z | 2018-07-28T13:16:08Z |
Bug in date_range with semi-open interval and freq='B' | diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py
index 47d4d15420f1d..22fb8b2942bea 100644
--- a/pandas/tests/indexes/datetimes/test_date_range.py
+++ b/pandas/tests/indexes/datetimes/test_date_range.py
@@ -301,172 +301,6 @@ def test_construct_with_diffe... | First contribution so this PR is really light.
#6673 is resolved on master, but this PR adds some tests to confirm this behavior. | https://api.github.com/repos/pandas-dev/pandas/pulls/22095 | 2018-07-28T09:32:56Z | 2018-07-31T13:12:53Z | 2018-07-31T13:12:53Z | 2018-08-01T14:42:19Z |
[CLN] parametrize and cleanup a bunch of tests | diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py
index b48395efaf5c8..f72cf8cdaafe9 100644
--- a/pandas/tests/frame/test_analytics.py
+++ b/pandas/tests/frame/test_analytics.py
@@ -74,29 +74,29 @@ def test_corr_non_numeric(self):
tm.assert_frame_equal(result, expected)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/22093 | 2018-07-28T04:00:58Z | 2018-07-31T13:18:11Z | 2018-07-31T13:18:11Z | 2018-08-08T15:52:53Z | |
CLN: Remove vbench_to_asv.py | diff --git a/asv_bench/vbench_to_asv.py b/asv_bench/vbench_to_asv.py
deleted file mode 100644
index b1179387e65d5..0000000000000
--- a/asv_bench/vbench_to_asv.py
+++ /dev/null
@@ -1,163 +0,0 @@
-import ast
-import vbench
-import os
-import sys
-import astor
-import glob
-
-
-def vbench_to_asv_source(bench, kinds=None):... | Since pandas has been using ASV for performance benchmarking, and artifacts of vbench are gone, there doesn't appear a need for this script anymore.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22089 | 2018-07-28T00:09:26Z | 2018-07-28T13:16:48Z | 2018-07-28T13:16:48Z | 2018-07-28T18:51:07Z |
Remove unused cimports, fix #22067 | diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx
index 4489847518a1d..ff92ee306288a 100644
--- a/pandas/_libs/hashing.pyx
+++ b/pandas/_libs/hashing.pyx
@@ -3,7 +3,7 @@
# at https://github.com/veorq/SipHash
import cython
-cimport numpy as cnp
+
import numpy as np
from numpy cimport ndarray, uint8_... | Fixes #22067, but no clear way to test it.
- [x] closes #22067
| https://api.github.com/repos/pandas-dev/pandas/pulls/22087 | 2018-07-27T23:10:42Z | 2018-07-30T10:31:36Z | 2018-07-30T10:31:36Z | 2018-08-08T15:53:42Z |
BUG: maximum recursion error when replacing empty lists | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index ea0677a0edf28..7c46a1c7b7f27 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -667,6 +667,7 @@ Reshaping
- Bug in :meth:`DataFrame.replace` raises RecursionError when converting OutOfBounds ``datet... | - [x] closes #21977
- [x] closes #19266
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Internal mechanism in replace method is intertwined and can cause RecursionError (not very helpful). Discussed in #21977, there doesn't appear to be first... | https://api.github.com/repos/pandas-dev/pandas/pulls/22083 | 2018-07-27T14:01:38Z | 2018-08-07T15:55:44Z | 2018-08-07T15:55:44Z | 2018-08-07T16:00:15Z |
DOC: clarify default behavior for categories ordering | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 4584e4694cdc5..bf5b28205b57d 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -241,10 +241,14 @@ class Categorical(ExtensionArray, PandasObject):
categories will be replaced with Na... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Just a doc clarification on default categories ordering, which can be pretty confusing when handling mixed dtypes (see also #22080 ). | https://api.github.com/repos/pandas-dev/pandas/pulls/22081 | 2018-07-27T10:40:11Z | 2018-08-01T14:43:15Z | 2018-08-01T14:43:15Z | 2018-08-01T14:43:44Z |
CLN/STYLE: Lint comprehensions | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
index 797506547b773..8d516a6214f95 100644
--- a/ci/environment-dev.yaml
+++ b/ci/environment-dev.yaml
@@ -6,6 +6,7 @@ dependencies:
- Cython>=0.28.2
- NumPy
- flake8
+ - flake8-comprehensions
- moto
- pytest>=3.1
- python-dateutil>=2.5.0
... | - [x] closes #18464
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Using flake8-comprehensions (xref https://github.com/pandas-dev/pandas/issues/20588#issuecomment-405057018) to lint for unnecessary comprehensions. I just added this to the 2.7-travis build since it ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22075 | 2018-07-27T05:24:09Z | 2018-07-29T15:33:43Z | 2018-07-29T15:33:43Z | 2018-07-29T18:17:16Z |
[Bug] Fix various DatetimeIndex comparison bugs | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index d2d5d40393b62..643ecfe70d433 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -496,6 +496,9 @@ Datetimelike
- Fixed bug where two :class:`DateOffset` objects with different ``normalize`` attributes... | Will have to see which issues this closes. This is also a precursor to upcoming PR that dispatches DataFrame ops to Series (which in turn dispatches to Index).
Fixes #7830 (the OP's example is already fixed, this fixes examples in the comments to that issue)
Fixes DTI half of #19804
- [x] closes #7830
- [x] te... | https://api.github.com/repos/pandas-dev/pandas/pulls/22074 | 2018-07-27T03:17:30Z | 2018-08-01T09:19:44Z | 2018-08-01T09:19:44Z | 2018-08-08T15:52:15Z |
fix for TypeError: unorderable types" in when using set_index with multiple column names | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index f26d3d76592d0..2ddfba6d01a1b 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -626,7 +626,7 @@ MultiIndex
- Removed compatibility for :class:`MultiIndex` pickles prior to version 0.8.0; compatibi... | - closes #15457 | https://api.github.com/repos/pandas-dev/pandas/pulls/22072 | 2018-07-27T00:50:45Z | 2018-08-12T08:16:21Z | 2018-08-12T08:16:21Z | 2018-08-12T08:35:26Z |
Remove unused, avoid uses of deprecated api | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index ecfc7355dddfc..124792638e3df 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -129,7 +129,7 @@ def is_lexsorted(list list_of_arrays):
for i in range(nlevels):
arr = list_of_arrays[i]
assert arr.dtype.name == 'in... | `core.dtypes.common.is_period` is confusingly named and never used. This PR gets rid of it.
The deprecated numpy API that causes zillions of warnings includes `ndarray.data`, so this replaces the old usage with the encouraged usage.
A bunch of `tslibs.util` isn't actually used in tslibs.util, so the relevant fun... | https://api.github.com/repos/pandas-dev/pandas/pulls/22071 | 2018-07-27T00:18:38Z | 2018-07-31T13:24:33Z | 2018-07-31T13:24:33Z | 2018-07-31T16:00:22Z |
Split fastpath IntegerArray constructor and general purpose constructor | diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py
index 9132c74091410..29f258bf1b29e 100644
--- a/pandas/core/arrays/__init__.py
+++ b/pandas/core/arrays/__init__.py
@@ -7,4 +7,4 @@
from .period import PeriodArrayMixin # noqa
from .timedeltas import TimedeltaArrayMixin # noqa
from .integ... | Related to the discussion we were having on the PR: https://github.com/pandas-dev/pandas/pull/21160/#discussion_r201209246 (@jreback @shoyer).
Opening this PR for discussion, to *show* what I meant there, to hopefully make it more concrete discussion.
Briefly the changes / rationale:
- Separate the "fastpath" ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22070 | 2018-07-26T21:10:33Z | 2018-08-20T10:53:52Z | 2018-08-20T10:53:52Z | 2018-08-20T11:14:21Z |
De-duplicate dispatch code, remove unreachable branches | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 811f0d25c3838..dc631503754f5 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1545,7 +1545,7 @@ cdef class _Period(object):
See Also
--------
Period.year : Return the calenda... | There are a couple of `DataFrame` methods that operate column-wise, dispatching to `Series` implementations. This de-duplicates that code by implementing `ops.dispatch_to_series`. Importantly, this function is going to be used a few more times as we move towards getting rid of `BlockManager.eval` and `Block.eval`, so... | https://api.github.com/repos/pandas-dev/pandas/pulls/22068 | 2018-07-26T16:47:34Z | 2018-08-08T10:17:37Z | 2018-08-08T10:17:37Z | 2018-08-08T15:50:04Z |
DOC: consistent docstring for compression kwarg | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 16332738ce610..869f33c213422 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1750,9 +1750,9 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
encoding : string, optional
A string representing... | - [x] closes #17900
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://github.com/pandas-dev/pandas/pull/17900#discussion_r147927074 removed zip from docstring. But the support to write zip compression was added during March and April this year (mainly https://g... | https://api.github.com/repos/pandas-dev/pandas/pulls/22066 | 2018-07-26T13:33:29Z | 2018-07-28T13:16:25Z | 2018-07-28T13:16:25Z | 2018-07-28T14:50:31Z |
TST: suppress deprecation warnings for compress | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b84179875db1f..15a58afc66b1e 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -518,7 +518,8 @@ def compress(self, condition, *args, **kwargs):
numpy.ndarray.compress
"""
msg = ("Series.compress(condition) is dep... | xref https://github.com/pandas-dev/pandas/pull/21930#issuecomment-408068861
In case we find it OK `np.compress` with Series is also deprecated, this PR makes sure the warnings are catched in the tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/22064 | 2018-07-26T11:51:11Z | 2018-08-15T08:06:40Z | 2018-08-15T08:06:40Z | 2018-08-15T08:06:44Z |
TST: Parameterize more tests | diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py
index 6cc34770a65e0..e082629a5433d 100644
--- a/pandas/tests/arrays/categorical/test_constructors.py
+++ b/pandas/tests/arrays/categorical/test_constructors.py
@@ -256,36 +256,40 @@ def test_construc... | Title is self-explanatory.
| https://api.github.com/repos/pandas-dev/pandas/pulls/22061 | 2018-07-26T08:35:34Z | 2018-07-26T12:27:22Z | 2018-07-26T12:27:22Z | 2018-07-26T23:15:30Z |
DOC: Reword doc for filepath_or_buffer in read_csv | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 486040fa52f35..2ae7622c13548 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -60,11 +60,16 @@
Parameters
----------
-filepath_or_buffer : str, pathlib.Path, py._path.local.LocalPath or any \
-object with a read() method (such as a file h... | Shortens dtype description following colon and moves it to a more expanded parameter description.
Closes #22057.
cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/22058 | 2018-07-25T23:21:55Z | 2018-07-27T08:28:44Z | 2018-07-27T08:28:44Z | 2018-07-27T08:40:17Z |
BUG: fix raise of TypeError when subtracting timedelta array | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 66b6923ef13e4..777cb42080f98 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -642,6 +642,7 @@ Timedelta
- Bug in :class:`Series` with numeric dtype when adding or subtracting an an array or ``Seri... | closes #21980
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22054 | 2018-07-25T19:49:53Z | 2018-09-18T13:25:26Z | 2018-09-18T13:25:25Z | 2018-09-18T13:25:28Z |
BUG: Matplotlib scatter datetime | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index 61119089fdb42..ceb03ce06a0ec 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -629,8 +629,8 @@ I/O
Plotting
^^^^^^^^
-- Bug in :func:'DataFrame.plot.scatter' and :func:'DataFrame.plot.hexbin' ca... | xref https://github.com/matplotlib/matplotlib/issues/11391 | https://api.github.com/repos/pandas-dev/pandas/pulls/22039 | 2018-07-24T15:15:59Z | 2018-08-02T10:42:51Z | 2018-08-02T10:42:51Z | 2018-08-02T10:42:54Z |
Raised value error on incorrect na_option | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 38f334762fa88..104f7e0550f60 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7480,6 +7480,10 @@ def rank(self, axis=0, method='average', numeric_only=None,
msg = "rank does not make sense when ndim > 2"
rai... | - [X] closes #19499
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/22037 | 2018-07-24T06:13:29Z | 2018-07-25T19:12:54Z | 2018-07-25T19:12:54Z | 2018-07-25T19:12:58Z |
PERF/REF: improve performance of Series.searchsorted, PandasArray.searchsorted, collect functionality | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index f7d0083b86a01..3303483c50e20 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -124,6 +124,25 @@ def time_dropna(self, dtype):
self.s.dropna()
+class SearchSo... | - [x] closes #14565
- [x] ASV's added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Numpy's searchsorted doesn't like being given values to search for that aren't of the same type as the array being searched. By ensuring that the input value has the same dtype ... | https://api.github.com/repos/pandas-dev/pandas/pulls/22034 | 2018-07-24T01:15:02Z | 2019-02-24T03:40:08Z | 2019-02-24T03:40:08Z | 2019-02-24T08:14:12Z |
REF: move common arithmetic ops from Integer/FloatingArray to NumericArray | diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py
index 4aed39d7edb92..890a0cd5e4a56 100644
--- a/pandas/core/arrays/floating.py
+++ b/pandas/core/arrays/floating.py
@@ -13,9 +13,7 @@
from pandas.core.dtypes.common import (
is_bool_dtype,
is_datetime64_dtype,
- is_float,
is... | xref https://github.com/pandas-dev/pandas/issues/38110 | https://api.github.com/repos/pandas-dev/pandas/pulls/38290 | 2020-12-04T14:32:41Z | 2020-12-04T23:30:52Z | 2020-12-04T23:30:52Z | 2020-12-05T09:23:06Z |
CLN: remove internal usage of integer_array() | diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py
index e5258a6aecd30..93f679d13b33c 100644
--- a/pandas/core/arrays/__init__.py
+++ b/pandas/core/arrays/__init__.py
@@ -7,7 +7,7 @@
from pandas.core.arrays.categorical import Categorical
from pandas.core.arrays.datetimes import DatetimeArray... | The `integer_array()` function stems from a time that `pd.array(..)` didn't exist yet. But since now `pd.array` can do this, IMO we shouldn't be using that outside of the integer module (eg I didn't add a `floating_array(..)`).
Only in `tests/arrays/integer/tst_construction.py` I still left the usage of `integer_arr... | https://api.github.com/repos/pandas-dev/pandas/pulls/38289 | 2020-12-04T14:08:21Z | 2020-12-11T22:49:23Z | 2020-12-11T22:49:23Z | 2020-12-12T08:50:42Z |
REF: avoid catching all exceptions in libreduction | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 4b6b71088cb7c..25b41b020aee6 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -335,10 +335,6 @@ cdef class Slider:
self.buf.shape[0] = 0
-class InvalidApply(Exception):
- pass
-
-
def apply_frame_axis0... | Most of the libreduction edits are from #35417 | https://api.github.com/repos/pandas-dev/pandas/pulls/38285 | 2020-12-04T04:33:41Z | 2020-12-17T13:53:36Z | 2020-12-17T13:53:36Z | 2020-12-17T15:43:21Z |
TST: fixturize unfocused test | diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py
index 12e570490487d..60aae003d2956 100644
--- a/pandas/tests/groupby/test_function.py
+++ b/pandas/tests/groupby/test_function.py
@@ -145,140 +145,158 @@ def test_builtins_apply(keys, f):
tm.assert_series_equal(getattr(resul... | - [ ] 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/38284 | 2020-12-04T04:31:04Z | 2020-12-04T14:19:21Z | 2020-12-04T14:19:21Z | 2020-12-04T15:16:05Z |
REF: de-duplicate intersection methods | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 4912fe6949958..f0d4d36531e0d 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -706,10 +706,6 @@ def _intersection(self, other: Index, sort=False) -> Index:
if not isinstan... | De-duplicating the PeriodIndex, IntervalIndex, and MultiIndex methods is blocked by #38251 | https://api.github.com/repos/pandas-dev/pandas/pulls/38283 | 2020-12-04T03:42:10Z | 2020-12-04T14:19:59Z | 2020-12-04T14:19:59Z | 2020-12-04T15:14:59Z |
BUG: IntervalIndex.union with mismatched dtypes both empty | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 94eb9a0b3fc58..cb4d04d4443e7 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -831,6 +831,7 @@ Other
- Bug in :meth:`Index.difference` failing to set the correct name on the returned :class:`Index` in ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Ever so slowly ironing out the wrinkles between the setops. | https://api.github.com/repos/pandas-dev/pandas/pulls/38282 | 2020-12-04T01:44:54Z | 2020-12-05T17:14:41Z | 2020-12-05T17:14:41Z | 2020-12-05T17:31:01Z |
pandas/core/strings/accesory.py Unnecessary dict call - rewrite as a literal #38138 | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index 9d16beba669ca..2713b76189157 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -26,7 +26,7 @@
from pandas.core.base import NoNewAttributesMixin
-_shared_docs: Dict[str, str] = dict()
+_shared_do... | xref #38138
File modified: pandas/core/strings/accesory.py
Changed unnecessary dict calls for flake8 (C408) standard:
- Rewrite dict() as {}
- [ ] 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/38280 | 2020-12-04T00:52:36Z | 2020-12-04T14:21:39Z | 2020-12-04T14:21:39Z | 2020-12-04T17:57:30Z |
BUG: isin numeric vs string | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 840e79c6c9ebe..9749297efd004 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -445,6 +445,8 @@ def isin(comps: AnyArrayLike, values: AnyArrayLike) -> np.ndarray:
elif isinstance(values, ABCMultiIndex):
# Avoi... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Using the new hashtables!
```
In [3]: arr = np.arange(10**7).astype(np.int32)
In [4]: %timeit isin(arr, arr[:10])
88.8 ms ± 497 µs per loop (... | https://api.github.com/repos/pandas-dev/pandas/pulls/38279 | 2020-12-03T23:16:56Z | 2020-12-04T14:25:42Z | 2020-12-04T14:25:42Z | 2020-12-07T17:28:41Z |
BUG: Validate drop_duplicates ignore_index argument for bool | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 84ac2d0c17676..216139b13dfc5 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -793,6 +793,7 @@ Reshaping
- Bug in :func:`merge_ordered` couldn't handle list-like ``left_by`` or ``right_by`` (:issue:`35... | - [x] closes #38274
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Saw this on the tracker. I think we should validate this, some inputs could lead to weird results.
The last drop duplicates entry in whatsnew was a... | https://api.github.com/repos/pandas-dev/pandas/pulls/38277 | 2020-12-03T22:36:46Z | 2020-12-04T14:24:58Z | 2020-12-04T14:24:58Z | 2020-12-04T23:46:21Z |
Removing dict calls | diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py
index 4aed39d7edb92..fe3a7ae3c8631 100644
--- a/pandas/core/arrays/floating.py
+++ b/pandas/core/arrays/floating.py
@@ -386,9 +386,9 @@ def astype(self, dtype, copy: bool = True) -> ArrayLike:
# coerce
if is_float_dtype(dtype... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Removed the dict calls for the files:
`./pandas/core/arrays/floating.py`
`./pandas/core/arrays/numpy_.py`
`./pandas/core/arrays/interval.py` | https://api.github.com/repos/pandas-dev/pandas/pulls/38276 | 2020-12-03T22:00:40Z | 2020-12-04T14:22:38Z | 2020-12-04T14:22:38Z | 2020-12-04T14:22:42Z |
CLN: assorted cleanups | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index ad6329c588bbe..4b6b71088cb7c 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -367,9 +367,9 @@ def apply_frame_axis0(object frame, object f, object names,
try:
piece = f(chunk)
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38275 | 2020-12-03T21:20:24Z | 2020-12-03T22:59:42Z | 2020-12-03T22:59:42Z | 2020-12-04T00:02:17Z | |
BUG: DataFrame.apply with axis=1 and EA dtype | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index c5260deafc0c3..6d9e11ecb824f 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -9,7 +9,12 @@
from pandas._typing import Axis, FrameOrSeriesUnion
from pandas.util._decorators import cache_readonly
-from pandas.core.dtypes.common import is_d... | - [x] closes #36785
- [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/38272 | 2020-12-03T18:51:39Z | 2020-12-04T16:21:24Z | 2020-12-04T16:21:24Z | 2020-12-05T21:01:42Z |
BUG: name retention in Index.difference corner cases | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8dbc6728dccfe..650ee9dc4f507 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -825,6 +825,7 @@ Other
- Fixed metadata propagation when selecting columns with ``DataFrame.__getitem__`` (:issue:`28283`)
... | - [ ] 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/38268 | 2020-12-03T17:58:15Z | 2020-12-04T02:01:12Z | 2020-12-04T02:01:12Z | 2020-12-04T02:08:54Z |
BUG: Inserting array of same size with Series.loc raises ValueError | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 94eb9a0b3fc58..30a919b9c050b 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -678,6 +678,8 @@ Indexing
- Bug in :meth:`DataFrame.loc` and :meth:`DataFrame.__getitem__` raising ``KeyError`` when colum... | closes #37748
closes #37486
closes #38271
- [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/38266 | 2020-12-03T17:33:05Z | 2020-12-05T17:14:06Z | 2020-12-05T17:14:04Z | 2020-12-06T00:28:19Z |
Rewrite dict call to literals | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 12f61fc44582d..b2bd5ef587a00 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -29,7 +29,7 @@
import pandas.core.common as com
from pandas.core.indexes.base import Index, maybe_extract_name
-_num_ind... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Identify unnecessary dict call - rewrite as a literal in `pandas\core\indexes\numeric.py`
| https://api.github.com/repos/pandas-dev/pandas/pulls/38265 | 2020-12-03T16:53:39Z | 2020-12-03T21:39:58Z | 2020-12-03T21:39:58Z | 2020-12-03T21:39:58Z |
REF: implement Groupby idxmin, idxmax without fallback | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 5e78fe8fea00c..19bd13b76762c 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -50,6 +50,7 @@
)
from pandas.core.dtypes.missing import isna, notna
+from pandas.core import algorithms, nanops
from pa... | - [ ] 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/38264 | 2020-12-03T16:00:17Z | 2020-12-04T23:41:41Z | 2020-12-04T23:41:41Z | 2020-12-05T00:00:49Z |
C408 rewrite dict call to dict literals | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 757cea2c710b2..53a98fc43becc 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -57,9 +57,11 @@
_interval_shared_docs = {}
-_shared_docs_kwargs = dict(
- klass="IntervalArray", qualname="arrays.In... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Identify unnecessary dict call - rewrite as a literal in `./pandas/tests/io/pytables/test_store.py`, `./pandas/core/arrays/interval.py`
| https://api.github.com/repos/pandas-dev/pandas/pulls/38263 | 2020-12-03T15:40:40Z | 2020-12-03T22:58:33Z | 2020-12-03T22:58:33Z | 2020-12-03T22:58:47Z |
BUG: to_hdf and HDFStore for subclasses | diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst
index 0037d4a4410c3..e755ce94812bb 100644
--- a/doc/source/reference/io.rst
+++ b/doc/source/reference/io.rst
@@ -83,6 +83,11 @@ HDFStore: PyTables (HDF5)
HDFStore.groups
HDFStore.walk
+.. warning::
+
+ One can store a subclass of ``Data... | - [ ] closes #33748
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix the bug that the subclasses of a dataframe and a series cannot be saved ``to_hdf``.
The tests were added.
When testing I found that ``assert_f... | https://api.github.com/repos/pandas-dev/pandas/pulls/38262 | 2020-12-03T14:34:39Z | 2020-12-19T02:19:00Z | 2020-12-19T02:19:00Z | 2020-12-19T02:19:07Z |
C408 fix | diff --git a/pandas/tests/io/json/test_normalize.py b/pandas/tests/io/json/test_normalize.py
index 8d93fbcc063f4..244302e34337d 100644
--- a/pandas/tests/io/json/test_normalize.py
+++ b/pandas/tests/io/json/test_normalize.py
@@ -521,13 +521,13 @@ def test_meta_non_iterable(self):
class TestNestedToRecord:
def t... | - [x] xref #38138
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Rewrote dict calls to dict literals in the following files
./pandas/tests/io/json/test_ujson.py
./pandas/tests/io/json/test_normalize.py
Also ch... | https://api.github.com/repos/pandas-dev/pandas/pulls/38260 | 2020-12-03T11:45:08Z | 2020-12-04T14:23:37Z | 2020-12-04T14:23:37Z | 2020-12-04T14:23:41Z |
Backport PR #38244: REGR: unstack on 'int' dtype prevent fillna to work | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 0e2e510147603..fbb12cb38448a 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N... | Backport PR #38244 | https://api.github.com/repos/pandas-dev/pandas/pulls/38259 | 2020-12-03T11:10:30Z | 2020-12-03T12:02:28Z | 2020-12-03T12:02:28Z | 2020-12-03T12:02:33Z |
BUG: groupby.apply on the NaN group drops values with original axes return | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8dbc6728dccfe..b166f0a360d26 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -771,6 +771,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` dropped ``nan`` groups from result with ``drop... | - [x] closes #38227
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38257 | 2020-12-03T08:22:13Z | 2020-12-04T23:45:03Z | 2020-12-04T23:45:03Z | 2020-12-08T00:39:56Z |
TST: split unfocused groupby test | diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py
index 720c7f8c2324d..12e570490487d 100644
--- a/pandas/tests/groupby/test_function.py
+++ b/pandas/tests/groupby/test_function.py
@@ -281,67 +281,93 @@ def test_arg_passthru():
tm.assert_index_equal(result.columns, expected_... | https://api.github.com/repos/pandas-dev/pandas/pulls/38255 | 2020-12-03T02:57:59Z | 2020-12-03T14:30:45Z | 2020-12-03T14:30:45Z | 2020-12-03T15:48:30Z | |
REF: simplify _cython_operation return | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 00561e5441e00..5e78fe8fea00c 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1087,7 +1087,7 @@ def py_fallback(bvalues: ArrayLike) -> ArrayLike:
def blk_func(bvalues: ArrayLike) -> ArrayLike:... | https://api.github.com/repos/pandas-dev/pandas/pulls/38253 | 2020-12-03T01:24:09Z | 2020-12-03T14:29:29Z | 2020-12-03T14:29:29Z | 2020-12-03T15:51:02Z | |
CI: delete unused import in groupby/groupby.py | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 422cf78bc927d..583fc6bf8ddb7 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -50,7 +50,7 @@ class providing the base-class of operations.
from pandas.errors import AbstractMethodError
from pandas.uti... | Fixes a `flake8` bug on current master:
```
(pandas-dev) andrewwieteska@Andrews-MacBook-Pro pandas % flake8 pandas/core/groupby/groupby.py
pandas/core/groupby/groupby.py:53:1: F401 'pandas.core.dtypes.cast.maybe_cast_result' imported but unused
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/38252 | 2020-12-03T00:15:45Z | 2020-12-03T02:24:55Z | 2020-12-03T02:24:55Z | 2020-12-03T02:35:19Z |
ENH: implement _should_compare/_is_comparable_dtype for all Index subclasses | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 40fcc824992b7..874ece8742451 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4904,16 +4904,31 @@ def get_indexer_non_unique(self, target):
# Treat boolean labels passed to a numeric index as not foun... | Fixes some problems in get_indexer_non_unique that AFAICT are not actually causing any problems.
Categorical kludge is needed because of #38240. | https://api.github.com/repos/pandas-dev/pandas/pulls/38251 | 2020-12-02T22:27:22Z | 2020-12-04T14:20:41Z | 2020-12-04T14:20:41Z | 2020-12-04T15:20:27Z |
PERF: timeseries comparison ops | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 979ca70bad9b3..66906f8463336 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -936,7 +936,8 @@ def _cmp_method(self, other, op):
return result
other_vals = self._... | - [x] closes #37462
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Locally this gets me to within 3-4% of 1.1.4 on the asv mentioned in #37462 | https://api.github.com/repos/pandas-dev/pandas/pulls/38248 | 2020-12-02T19:20:27Z | 2020-12-03T14:19:36Z | 2020-12-03T14:19:35Z | 2020-12-03T15:51:22Z |
BUG: Limited available colors | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 13ddeb2a89133..0262199fd1b22 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -292,6 +292,7 @@ Other enhancements
- Improved error reporting for subsetting columns of a :class:`.DataFrameGroupBy` with ... | (GH37967)
- [x] closes #37967
- [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/38247 | 2020-12-02T19:05:31Z | 2020-12-12T23:31:27Z | 2020-12-12T23:31:26Z | 2021-03-22T20:24:55Z |
BUG: Allow numeric ExtensionDtypes in DataFrame.select_dtypes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 05d3b1c797375..020d3091929db 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -174,7 +174,7 @@ Timezones
Numeric
^^^^^^^
- Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing inc... | - [x] closes #35340
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Picking up #35341 (original PR addressed all comments - here I merged master + added whatsnew note)
cc @simonjayhawkins @jreback @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/38246 | 2020-12-02T18:57:00Z | 2020-12-14T17:58:22Z | 2020-12-14T17:58:22Z | 2022-05-11T15:24:55Z |
BUG: CategoricalDtype.__repr__ with RangeIndex categories | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 07280702cf06f..136c8032094b1 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -399,10 +399,14 @@ def __eq__(self, other: Any) -> bool:
def __repr__(self) -> str_type:
if self.categories is None:... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The problem was introduced a couple weeks ago, so shouldn't need a whatsnew. | https://api.github.com/repos/pandas-dev/pandas/pulls/38245 | 2020-12-02T18:47:11Z | 2020-12-03T15:55:03Z | 2020-12-03T15:55:03Z | 2020-12-03T16:01:44Z |
REGR: unstack on 'int' dtype prevent fillna to work | diff --git a/doc/source/whatsnew/v1.1.5.rst b/doc/source/whatsnew/v1.1.5.rst
index 0e2e510147603..fbb12cb38448a 100644
--- a/doc/source/whatsnew/v1.1.5.rst
+++ b/doc/source/whatsnew/v1.1.5.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in inplace operations on :class:`Series` with ``ExtensionDtype`` with N... | - [ ] closes #37115
- [ ] 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/38244 | 2020-12-02T18:14:43Z | 2020-12-02T23:30:04Z | 2020-12-02T23:30:04Z | 2020-12-03T11:11:12Z |
TST: string representation of IntervalIndex | diff --git a/pandas/tests/indexes/interval/test_formats.py b/pandas/tests/indexes/interval/test_formats.py
index 0e8d7d1ba5aba..fb59334b2e129 100644
--- a/pandas/tests/indexes/interval/test_formats.py
+++ b/pandas/tests/indexes/interval/test_formats.py
@@ -1,7 +1,15 @@
import numpy as np
import pytest
-from pandas ... | - [x] closes #32553
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Picking up #36628 | https://api.github.com/repos/pandas-dev/pandas/pulls/38242 | 2020-12-02T17:52:12Z | 2020-12-03T14:23:34Z | 2020-12-03T14:23:34Z | 2020-12-03T14:23:38Z |
TST: setitem in presence of duplicate cols | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index 6d4129a1a2a55..49eb570c4ffe0 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -241,6 +241,24 @@ def inc(x):
expected = DataFrame([[-1, in... | - [ ] closes #23239
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Add tests required to close the issue.
The tests are based on the example in the issue. | https://api.github.com/repos/pandas-dev/pandas/pulls/38241 | 2020-12-02T17:50:01Z | 2020-12-02T23:37:07Z | 2020-12-02T23:37:06Z | 2020-12-03T07:55:24Z |
TST: revert too-ambitious part of #38223 | diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py
index a63a98cf9858b..c20955227d05e 100644
--- a/pandas/tests/io/pytables/test_store.py
+++ b/pandas/tests/io/pytables/test_store.py
@@ -1631,7 +1631,8 @@ def check_col(key, name, size):
& (df_new.A > 0)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38238 | 2020-12-02T15:33:20Z | 2020-12-02T23:35:47Z | 2020-12-02T23:35:47Z | 2020-12-02T23:44:51Z | |
REF: consolidate result-casting in _cython_operation | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 184fa3a2b4204..b077c7889049f 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1000,9 +1000,6 @@ def _cython_transform(
except NotImplementedError:
continue
- ... | Orthogonal to #38235. After this and 38235, we'll be down to only two usages of maybe_cast_result, only one of which is sketchy. | https://api.github.com/repos/pandas-dev/pandas/pulls/38237 | 2020-12-02T15:17:11Z | 2020-12-02T23:35:19Z | 2020-12-02T23:35:19Z | 2020-12-02T23:48:48Z |
TYP: handle mypy ignore in pandas/_testing | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 964c8d4d3d61a..2d74cc89b8063 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -10,7 +10,17 @@
from shutil import rmtree
import string
import tempfile
-from typing import Any, Callable, ContextManager, List, Optional, Type, Union, cast
+from typing... | - [ ] xref #37715
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Handle mypy ignore comments in ``pandas/_testing.py``, function ``write_to_compressed``. | https://api.github.com/repos/pandas-dev/pandas/pulls/38236 | 2020-12-02T15:12:33Z | 2020-12-19T02:22:44Z | 2020-12-19T02:22:44Z | 2020-12-19T02:22:44Z |
REF: casting in _python_agg_general | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 184fa3a2b4204..efc9a6f148fc0 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -50,7 +50,7 @@ class providing the base-class of operations.
from pandas.errors import AbstractMethodError
from pandas.uti... | Consolidate two for-loops into one.
Instead of using maybe_cast_result in two places, use it only once, immediately after the function call being wrapped. Replace those two usages with the less-invasive `maybe_downcast_to_dtype` | https://api.github.com/repos/pandas-dev/pandas/pulls/38235 | 2020-12-02T14:59:53Z | 2020-12-02T23:33:28Z | 2020-12-02T23:33:28Z | 2020-12-02T23:59:59Z |
TST: Assert msg with pytest raises in pandas/tests/extension/base | diff --git a/pandas/tests/extension/base/getitem.py b/pandas/tests/extension/base/getitem.py
index 251376798efc3..bfd6da0fc864d 100644
--- a/pandas/tests/extension/base/getitem.py
+++ b/pandas/tests/extension/base/getitem.py
@@ -160,11 +160,12 @@ def test_getitem_mask(self, data):
def test_getitem_mask_raises(se... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR adds messages to the bare pytest raises in reduce.py and getitem.py in pandas/test/extension/base. This PR references #30999. | https://api.github.com/repos/pandas-dev/pandas/pulls/38232 | 2020-12-02T11:45:09Z | 2020-12-12T23:00:24Z | 2020-12-12T23:00:24Z | 2020-12-12T23:00:28Z |
Backport PR #38209 on branch 1.1.x (CI/TST: fix CI with numpy dev for changed error message / dev version) | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 3b66939d9ddd2..9d5491fe2f5fc 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -369,8 +369,7 @@ def test_2d_to_1d_assignment_raises():
m... | Backport PR #38209: CI/TST: fix CI with numpy dev for changed error message / dev version | https://api.github.com/repos/pandas-dev/pandas/pulls/38231 | 2020-12-02T10:16:10Z | 2020-12-02T11:38:41Z | 2020-12-02T11:38:41Z | 2020-12-02T11:38:41Z |
Backport PR #38228 on branch 1.1.x (CI: pin pip to 20.2 on numpy-dev build) | diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml
index 7248b1740058f..b2009e84df12e 100644
--- a/ci/deps/azure-37-numpydev.yaml
+++ b/ci/deps/azure-37-numpydev.yaml
@@ -12,7 +12,7 @@ dependencies:
# pandas dependencies
- pytz
- - pip
+ - pip=20.2
- pip:
- cython==0.29.21 # ... | Backport PR #38228: CI: pin pip to 20.2 on numpy-dev build | https://api.github.com/repos/pandas-dev/pandas/pulls/38230 | 2020-12-02T10:15:59Z | 2020-12-02T11:16:48Z | 2020-12-02T11:16:48Z | 2020-12-02T11:16:48Z |
CI: pin pip to 20.2 on numpy-dev build | diff --git a/ci/deps/azure-38-numpydev.yaml b/ci/deps/azure-38-numpydev.yaml
index 274be0361c2e5..f11a3bcb28ab2 100644
--- a/ci/deps/azure-38-numpydev.yaml
+++ b/ci/deps/azure-38-numpydev.yaml
@@ -12,7 +12,7 @@ dependencies:
# pandas dependencies
- pytz
- - pip
+ - pip=20.2
- pip:
- cython==0.29.21 # ... | See https://github.com/pandas-dev/pandas/issues/38221 | https://api.github.com/repos/pandas-dev/pandas/pulls/38228 | 2020-12-02T08:45:21Z | 2020-12-02T10:08:14Z | 2020-12-02T10:08:14Z | 2020-12-02T12:02:39Z |
ENH: context-manager for chunksize/iterator-reader | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 1bd35131622ab..2b324a74fffaf 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1577,19 +1577,21 @@ value will be an iterable object of type ``TextFileReader``:
.. ipython:: python
- reader = pd.read_csv(... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Allows (and encourages) the following use:
```py
import pandas as pd
filename = "pandas/tests/io/data/csv/iris.csv"
chunksize = 2
with pd.read... | https://api.github.com/repos/pandas-dev/pandas/pulls/38225 | 2020-12-02T02:54:26Z | 2020-12-04T18:58:48Z | 2020-12-04T18:58:48Z | 2020-12-04T20:40:23Z |
TST: tighten testing assertions | diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py
index 4aefb73bf912c..1d2208592a06d 100644
--- a/pandas/tests/groupby/test_grouping.py
+++ b/pandas/tests/groupby/test_grouping.py
@@ -307,9 +307,8 @@ def test_groupby_levels_and_columns(self):
# reset_index changes colum... | https://api.github.com/repos/pandas-dev/pandas/pulls/38223 | 2020-12-02T01:21:51Z | 2020-12-02T12:09:00Z | 2020-12-02T12:09:00Z | 2020-12-02T14:48:19Z | |
BUG: DataFrame.drop raising TypeError for string label with non-unique MultiIndex and no level provided | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d0afc24aaecac..3fe8327df8c50 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -140,7 +140,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.drop` raising ``TypeError`` when :class:`Mu... | - [x] closes #36293
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
As far as I know, isin needs a level input when only a string is given for a MultiIndex. If this should not change, we have to set level=0 in this c... | https://api.github.com/repos/pandas-dev/pandas/pulls/38220 | 2020-12-01T22:49:48Z | 2020-12-14T23:55:16Z | 2020-12-14T23:55:16Z | 2020-12-15T18:46:47Z |
Update Dockerfile to use conda-forge compilers | diff --git a/Dockerfile b/Dockerfile
index 5d7a2b9e6b743..de1c564921de9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM continuumio/miniconda3
+FROM quay.io/condaforge/miniforge3
# if you forked pandas, you can pass in your own GitHub username to use your fork
# i.e. gh_username=myname
@@ -15,10 +15,... | Additionally I switched to the miniforge3 image as this bases its installation on conda-forge
and I also have used `mamba` to install the environment as this massively saves time.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake... | https://api.github.com/repos/pandas-dev/pandas/pulls/38219 | 2020-12-01T22:29:33Z | 2020-12-02T12:09:14Z | 2020-12-02T12:09:14Z | 2021-01-24T05:32:54Z |
Corrected the grammar in Exception | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index c5260deafc0c3..ee21ff01c06fa 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -355,7 +355,7 @@ def wrap_results_for_axis(
try:
result = self.obj._constructor(data=results)
except ValueError as err:
- ... | Exception on different arrays' length corrected
- [ ] 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/38216 | 2020-12-01T19:26:51Z | 2020-12-10T00:02:47Z | 2020-12-10T00:02:47Z | 2020-12-10T00:03:45Z |
TST: add cases for nearest_workday and before_nearest_workday | diff --git a/pandas/tests/tseries/holiday/test_observance.py b/pandas/tests/tseries/holiday/test_observance.py
index 9ee63d2a36556..83038ad254b77 100644
--- a/pandas/tests/tseries/holiday/test_observance.py
+++ b/pandas/tests/tseries/holiday/test_observance.py
@@ -22,6 +22,7 @@
_SUNDAY = datetime(2014, 4, 13)
_MONDAY... | - [ ] xref #38139
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Add cases for testing observance rules ``nearest_workday`` and ``before_nearest_workday`` for their full coverage. | https://api.github.com/repos/pandas-dev/pandas/pulls/38215 | 2020-12-01T18:49:07Z | 2020-12-02T12:09:40Z | 2020-12-02T12:09:40Z | 2020-12-02T14:27:49Z |
CI: xfail test_area_lim | diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py
index 9e4004355f26c..dc7478fe6ef4a 100644
--- a/pandas/tests/plotting/frame/test_frame.py
+++ b/pandas/tests/plotting/frame/test_frame.py
@@ -456,22 +456,28 @@ def test_line_lim(self):
assert xmin <= lines[0]... | https://api.github.com/repos/pandas-dev/pandas/pulls/38212 | 2020-12-01T16:21:26Z | 2020-12-01T22:04:21Z | 2020-12-01T22:04:21Z | 2020-12-01T23:47:35Z | |
Backport PR #38057: PERF: fix regression in creation of resulting index in RollingGroupby | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index f0dd908f81043..0075b7095aa93 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -216,4 +216,18 @@ def time_rolling_offset(self, method):
getattr(self.groupby_roll_offset, method)()
+class... | Backport PR #38057 | https://api.github.com/repos/pandas-dev/pandas/pulls/38211 | 2020-12-01T11:42:22Z | 2020-12-01T12:57:49Z | 2020-12-01T12:57:49Z | 2020-12-01T12:57:53Z |
Backport PR #38099: BUG: fix wrong error message in deprecated 2D indexing of Series with datetime values | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 12806170a9f6d..709924d800ebc 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2295,6 +2295,28 @@ def quantile(self, qs, interpolation="linear", axis=0):
aware = self._holder(res_blk.values... | Backport PR #38099 on branch 1.1.x | https://api.github.com/repos/pandas-dev/pandas/pulls/38210 | 2020-12-01T09:58:27Z | 2020-12-01T12:53:01Z | 2020-12-01T12:53:01Z | 2020-12-01T12:54:04Z |
CI/TST: fix CI with numpy dev for changed error message / dev version | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 3bb87a8346c78..159b42621f970 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -309,8 +309,7 @@ def test_loc_setitem_2d_to_1d_raises():
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38209 | 2020-12-01T09:50:12Z | 2020-12-01T20:37:59Z | 2020-12-01T20:37:59Z | 2020-12-02T10:15:59Z | |
Revert "ENH: Improve performance for df.__setitem__ with list-like indexers" | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 4fd91c8aafe4b..74e0a3a434cde 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -358,14 +358,6 @@ def time_assign_with_setitem(self):
for i in range(100):
self.df[i] = np.ran... | Reverts pandas-dev/pandas#38148 xref https://github.com/pandas-dev/pandas/issues/37784#issuecomment-736200698 | https://api.github.com/repos/pandas-dev/pandas/pulls/38208 | 2020-12-01T08:55:12Z | 2020-12-01T10:53:59Z | 2020-12-01T10:53:59Z | 2020-12-01T10:54:05Z |
Rewrite dict literal for files in pandas/tests/frame | diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index e33009f4597f0..6d4129a1a2a55 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -714,7 +714,7 @@ def test_setitem_empty(self):
tm.assert_fr... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
identify unnecessary dict call - rewrite as a literal
Rewrites as dictionary literals for the following files:
modified: pandas/tests/frame/index... | https://api.github.com/repos/pandas-dev/pandas/pulls/38207 | 2020-12-01T08:19:29Z | 2020-12-02T03:12:42Z | 2020-12-02T03:12:42Z | 2020-12-02T03:13:02Z |
TST: Added dataframe constructor tests confirming order is preserved with standard Python dicts | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index a98723e9e31f8..2300a8937991e 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -1238,32 +1238,34 @@ def test_constructor_single_row(self):
)
tm.asser... | - [ ] closes #38033
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Adds additional test scenarios that confirm dataframes created with standard Python dicts preserve order as expected. | https://api.github.com/repos/pandas-dev/pandas/pulls/38206 | 2020-12-01T07:21:28Z | 2020-12-02T03:04:37Z | 2020-12-02T03:04:37Z | 2020-12-02T03:04:46Z |
Rewrite dict literal for files in tests/groupby & ./pandas/tests/dtypes | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index 27fac95a16b7a..c9ca5cb34d271 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -68,7 +68,7 @@ def coerce(request):
((1,), True, "tuple"),
(tuple(), True, "tuple-empt... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
identify unnecessary dict call - rewrite as a literal
Rewrites as dictionary literals for the following files:
./pandas/tests/dtypes/test_inference... | https://api.github.com/repos/pandas-dev/pandas/pulls/38205 | 2020-12-01T06:30:45Z | 2020-12-02T03:14:16Z | 2020-12-02T03:14:16Z | 2020-12-02T03:14:16Z |
Retain views with listlike indexers setitem | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 74e0a3a434cde..4fd91c8aafe4b 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -358,6 +358,14 @@ def time_assign_with_setitem(self):
for i in range(100):
self.df[i] = np.ran... | - [x] closes #37954
xref #38148 | https://api.github.com/repos/pandas-dev/pandas/pulls/38204 | 2020-12-01T05:03:22Z | 2020-12-02T12:10:26Z | 2020-12-02T12:10:26Z | 2020-12-02T14:47:06Z |
Rewrite dict literal for files in ./pandas/tests/tools/ and ./pandas/tests/resample/ | diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
index 7e1d7fb17c8ed..fe3ca0d0937b3 100644
--- a/pandas/tests/io/test_parquet.py
+++ b/pandas/tests/io/test_parquet.py
@@ -645,7 +645,7 @@ def test_s3_roundtrip_explicit_fs(self, df_compat, s3_resource, pa, s3so):
if LooseVersion(pya... | - [ ] xref #38138
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Rewrote dict literal for the following files:
./pandas/tests/tools/test_to_numeric.py
./pandas/tests/resample/test_time_grouper.py
./pandas/t... | https://api.github.com/repos/pandas-dev/pandas/pulls/38203 | 2020-12-01T04:53:03Z | 2020-12-02T03:14:55Z | 2020-12-02T03:14:55Z | 2020-12-02T03:15:00Z |
PERF: fix assert_frame_equal can be very slow | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 7786eeeb46797..f96645b3805f0 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1294,6 +1294,8 @@ def assert_series_equal(
rtol=1.0e-5,
atol=1.0e-8,
obj="Series",
+ *,
+ check_index=True,
):
"""
Check that left and righ... | - [ ] closes #38183
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Add kwarg ``check_index`` into ``assert_series_equal`` to allow elimination of multiple index checking (for each column) in ``assert_frame_equal``.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38202 | 2020-12-01T04:23:13Z | 2020-12-24T20:40:41Z | 2020-12-24T20:40:41Z | 2020-12-24T20:40:45Z |
TYP: @final in groupby | diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py
index 7dc0db35bf8fe..99426c55da29b 100644
--- a/pandas/core/groupby/base.py
+++ b/pandas/core/groupby/base.py
@@ -6,6 +6,8 @@
import collections
from typing import List
+from pandas._typing import final
+
from pandas.core.dtypes.common import i... | https://api.github.com/repos/pandas-dev/pandas/pulls/38200 | 2020-12-01T02:21:11Z | 2020-12-05T02:03:50Z | 2020-12-05T02:03:50Z | 2020-12-05T02:22:34Z | |
Remove duplicate entry on series.rst | diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst
index 8d74c288bf801..cc2937695e80f 100644
--- a/doc/source/reference/series.rst
+++ b/doc/source/reference/series.rst
@@ -252,7 +252,6 @@ Combining / comparing / joining / merging
Series.append
Series.compare
- Series.replace
... | - [x] closes #38198
- [ ] tests passed. Nothing new fails. Few tails already were failing on `master`
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry (Intentionally ignored as insignificant)
Removed the duplicate entry of `Series.replace` fro... | https://api.github.com/repos/pandas-dev/pandas/pulls/38199 | 2020-11-30T23:49:14Z | 2020-12-02T03:02:27Z | 2020-12-02T03:02:26Z | 2020-12-02T03:02:30Z |
BUG: name attr in RangeIndex.intersection | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 24db70481c136..3ec4a82727e9e 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -815,6 +815,7 @@ Other
- Fixed metadata propagation in the :class:`Series.dt`, :class:`Series.str` accessors, :class:`DataF... | - [ ] 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/38197 | 2020-11-30T23:44:23Z | 2020-12-02T12:03:29Z | 2020-12-02T12:03:29Z | 2020-12-02T14:40:30Z |
BUG: Avoid duplicates in DatetimeIndex.intersection | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 28ff5a8bacc71..2dc13ff2fd682 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -686,8 +686,11 @@ def intersection(self, other, sort=False):
"""
self._validate_sort_k... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
@jbrockmendel I think we should call ``_convert_can_do_setop`` here too, but https://github.com/pandas-dev/pandas/blob/56b9a80e1e47e123eb7a7c01448d1506400f8a5b/pandas/tests/indexes/datetimes/... | https://api.github.com/repos/pandas-dev/pandas/pulls/38196 | 2020-11-30T23:21:56Z | 2020-12-02T01:48:50Z | 2020-12-02T01:48:50Z | 2020-12-02T12:19:55Z |
BUG: DataFrame.idxmin/idxmax with mixed dtypes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 17cdb7538dad2..9c4de5c888299 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -619,6 +619,7 @@ Numeric
- Bug in :class:`DataFrame` allowing arithmetic operations with list of array-likes with undefined... | - [ ] 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/38195 | 2020-11-30T23:19:05Z | 2020-12-02T12:11:06Z | 2020-12-02T12:11:06Z | 2020-12-02T14:49:20Z |
DOC: Clarify development environment creation for documentation changes | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 3c5a88333be56..86d495ef2b097 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -147,8 +147,9 @@ Creating a development environment
To test out code changes, you'll ... | Changed wording on paragraph to make clear advantages/disadvantages of creating development environment.
- [x] closes #38193 | https://api.github.com/repos/pandas-dev/pandas/pulls/38194 | 2020-11-30T21:44:23Z | 2020-12-02T01:52:29Z | 2020-12-02T01:52:29Z | 2020-12-07T22:05:28Z |
DOC: Fixed to_pickle compression argument list 'gzip' > 'gz' | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 181c579e63105..4a9e020a0fe46 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2799,6 +2799,13 @@ def to_pickle(
default 'infer'
A string representing the compression to use in the output file. By
de... | Removed reference to gzip and replaced with correct extension of gz.
- [x] closes #35364
<img width="842" alt="Screenshot 2020-11-30 at 20 43 59" src="https://user-images.githubusercontent.com/74271903/100664097-17d1f200-334f-11eb-90e3-e37ef7ce7c66.png">
| https://api.github.com/repos/pandas-dev/pandas/pulls/38192 | 2020-11-30T20:59:11Z | 2020-12-02T03:00:11Z | 2020-12-02T03:00:11Z | 2020-12-07T22:04:43Z |
Backport PR #38172 on branch 1.1.x (CI: update tests for numpy 1.20 change to floordiv) | diff --git a/pandas/tests/arrays/integer/test_arithmetic.py b/pandas/tests/arrays/integer/test_arithmetic.py
index f549a7caeab1d..d8052cd8134c8 100644
--- a/pandas/tests/arrays/integer/test_arithmetic.py
+++ b/pandas/tests/arrays/integer/test_arithmetic.py
@@ -3,6 +3,8 @@
import numpy as np
import pytest
+from pand... | Backport PR #38172: CI: update tests for numpy 1.20 change to floordiv | https://api.github.com/repos/pandas-dev/pandas/pulls/38191 | 2020-11-30T18:48:37Z | 2020-11-30T21:00:00Z | 2020-11-30T21:00:00Z | 2020-11-30T21:00:01Z |
REF: IntervalIndex.intersection match pattern in other intersection methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 09fe885e47754..ad5de61cf665b 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2828,8 +2828,8 @@ def intersection(self, other, sort=False):
if not is_dtype_equal(self.dtype, other.dtype):
dt... | Looking to share the boilerplate and have subclasses just implement _intersection. | https://api.github.com/repos/pandas-dev/pandas/pulls/38190 | 2020-11-30T17:42:05Z | 2020-12-02T01:45:02Z | 2020-12-02T01:45:02Z | 2020-12-02T01:51:30Z |
DOC: fix redirects to user guide in README | diff --git a/README.md b/README.md
index 4072faffe3b3a..6d1d890c54093 100644
--- a/README.md
+++ b/README.md
@@ -63,24 +63,24 @@ Here are just a few of the things that pandas does well:
date shifting and lagging
- [missing-data]: https://pandas.pydata.org/pandas-docs/stable/missing_data.html#working-with-mis... | Documentation pages were moved so this commit updates those links to
open more directly rather than getting a "This page has been moved
to..." message.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew e... | https://api.github.com/repos/pandas-dev/pandas/pulls/38189 | 2020-11-30T17:18:53Z | 2020-12-02T01:37:35Z | 2020-12-02T01:37:35Z | 2020-12-02T01:44:25Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.