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 |
|---|---|---|---|---|---|---|---|
(wip)BUG: make sure combine doesn't alter dtype for nullable dtypes | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 13827e8fc4c33..419d9e7ec01d7 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -245,6 +245,7 @@ Other
instead of ``TypeError: Can only append a Series if ignore_index=True or if the Series has a name`... | - [ ] closes #31899
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Haven't added new tests, but have changed the expected return dtype in existing ones
EDIT
----
This is the wrong fix - for, say
```
s1.combi... | https://api.github.com/repos/pandas-dev/pandas/pulls/32012 | 2020-02-15T10:59:40Z | 2020-02-28T10:30:50Z | null | 2020-10-10T14:15:00Z |
CI: temporary fix to the CI | diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py
index 5fc991df49424..60e278f47d0f8 100644
--- a/pandas/tests/scalar/timedelta/test_arithmetic.py
+++ b/pandas/tests/scalar/timedelta/test_arithmetic.py
@@ -384,8 +384,11 @@ def test_td_div_nan(self, nan):
... | ref #31992
---
This is just a temporary fix to the CI.
Until someone smarter than me fix it :)
| https://api.github.com/repos/pandas-dev/pandas/pulls/32011 | 2020-02-15T10:56:36Z | 2020-02-15T13:14:12Z | 2020-02-15T13:14:12Z | 2020-02-29T10:30:46Z |
DOC: Fix errors in pandas.Series.argmax | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 56d3596f71813..69a4ecd03a2a6 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -929,11 +929,17 @@ def argmax(self, axis=None, skipna=True, *args, **kwargs):
"""
Return an ndarray of the maximum argument indexer.
+ If mul... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/18
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output of `python scripts/validate_docstrings.py pandas.Series.argmax`:
```
#####... | https://api.github.com/repos/pandas-dev/pandas/pulls/32010 | 2020-02-15T10:55:10Z | 2020-02-15T11:32:58Z | null | 2020-02-15T11:33:09Z |
DOC: Improve documentation for Index.where | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index c896e68f7a188..6b6753ff31e29 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3936,18 +3936,35 @@ def memory_usage(self, deep: bool = False) -> int:
def where(self, cond, other=None):
"""
- ... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/15
- [ ] 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/32009 | 2020-02-15T10:50:46Z | 2020-02-26T20:38:48Z | 2020-02-26T20:38:47Z | 2020-02-26T20:39:02Z |
DOC: Add description for tz parameter in DatetimeIndex | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e303e487b1a7d..234dc00210e87 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -93,6 +93,8 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
'infer' can be passed in order to set the frequ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32008 | 2020-02-15T10:40:58Z | 2020-03-07T20:37:12Z | null | 2020-03-07T20:37:13Z |
CLN 29574 Replace old string formating | diff --git a/pandas/tests/frame/test_to_csv.py b/pandas/tests/frame/test_to_csv.py
index aeff92971b42a..86c9a98377f3f 100644
--- a/pandas/tests/frame/test_to_csv.py
+++ b/pandas/tests/frame/test_to_csv.py
@@ -687,7 +687,7 @@ def _make_frame(names=None):
df.to_csv(path)
for i in [6, 7]:
- ... | Its my first contribution, modified the str formating to use fstrings
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] pandas/tests/frame/test_to_csv.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/32007 | 2020-02-15T10:39:50Z | 2020-02-15T19:05:03Z | 2020-02-15T19:05:03Z | 2020-02-16T06:31:37Z |
DOC: Fix pandas.index.copy summary documentation | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3d549405592d6..e8d65fbf11128 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -825,20 +825,24 @@ def repeat(self, repeats, axis=None):
def copy(self, name=None, deep=False, dtype=None, names=None):
... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/8
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.Index.copy`
###############... | https://api.github.com/repos/pandas-dev/pandas/pulls/32006 | 2020-02-15T10:35:39Z | 2020-02-26T20:35:42Z | 2020-02-26T20:35:41Z | 2020-02-26T20:36:11Z |
doc: Add period to parameter description | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 986f87ffe3734..0b85433b699a8 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -85,7 +85,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index):
copy : bool
Make a copy of input ndarray.
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
there are a few errors left:
################################################################################
##############################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32005 | 2020-02-15T10:34:47Z | 2020-02-15T19:06:26Z | 2020-02-15T19:06:26Z | 2020-02-15T19:06:35Z |
DOC: Update pandas.DataFrame.droplevel docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index bb7d8a388e6e2..e2dc543360a62 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -269,7 +269,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests generic.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/generic.py \
- ... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/23
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.droplevel`:
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32004 | 2020-02-15T10:29:42Z | 2020-02-25T01:54:46Z | 2020-02-25T01:54:46Z | 2020-02-25T01:54:52Z |
DOC: Fix SA04 errors from DataFrame.melt | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9fe1ec7b792c8..0c68b76efc66b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6268,9 +6268,10 @@ def unstack(self, level=-1, fill_value=None):
See Also
--------
%(other)s
- pivot_table
- DataFrame.pivot
- Series.explo... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/10
- [ ] 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/32003 | 2020-02-15T10:11:25Z | 2020-02-26T20:48:28Z | null | 2020-03-02T12:52:34Z |
DOC: Update the pandas.DataFrame.plot docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index d3db539084609..66941598a498f 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -608,6 +608,7 @@ class PlotAccessor(PandasObject):
- 'hexbin' : hexbin plot.
figsize : a tuple (width, height) in inches
+ Th... | Give description for 'figsize','xlim', and 'ylim'.
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/11
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/val... | https://api.github.com/repos/pandas-dev/pandas/pulls/32002 | 2020-02-15T09:46:58Z | 2020-02-26T20:47:43Z | null | 2020-02-26T20:47:44Z |
DOC PR09 Add . in the description parameter | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 01d2bfe0458c8..0b3004ce12013 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1014,7 +1014,7 @@ def assert_extension_array_equal(
Parameters
----------
left, right : ExtensionArray
- The two arrays to compare
+ The two a... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32001 | 2020-02-15T09:31:01Z | 2020-02-15T10:28:55Z | 2020-02-15T10:28:55Z | 2020-02-15T10:29:08Z |
DOC: PR09 Add missing . on Parameter con description | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 04e8b78fb1b87..1139d22d53e7d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2415,7 +2415,7 @@ def to_sql(
library. Legacy support is provided for sqlite3.Connection objects. The user
is responsible for eng... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/22
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.to_sql`:
```
##... | https://api.github.com/repos/pandas-dev/pandas/pulls/32000 | 2020-02-15T09:30:45Z | 2020-02-15T10:58:12Z | 2020-02-15T10:58:12Z | 2020-02-15T10:58:37Z |
DOC PR07: Add description to parameter skipna | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 56d3596f71813..69a4ecd03a2a6 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -929,11 +929,17 @@ def argmax(self, axis=None, skipna=True, *args, **kwargs):
"""
Return an ndarray of the maximum argument indexer.
+ If mul... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/18
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
output of `python scripts/validate_docstrings.py pandas.Series.argmax`:
```
#####... | https://api.github.com/repos/pandas-dev/pandas/pulls/31999 | 2020-02-15T09:29:50Z | 2020-02-15T11:33:43Z | null | 2020-02-15T11:33:47Z |
DOC PR09 Add missing . on freq parameter on groupby.py | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 1d7527e73079c..6b2880810dcb2 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2329,7 +2329,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None):
periods : int, default 1
... | - [ ] 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/31998 | 2020-02-15T09:07:44Z | 2020-02-15T09:55:11Z | 2020-02-15T09:55:11Z | 2020-02-15T10:07:58Z |
DOC PR09 on freq parameter | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 1d7527e73079c..6b2880810dcb2 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2329,7 +2329,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None):
periods : int, default 1
... | - [ ] 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/31997 | 2020-02-15T09:03:43Z | 2020-02-15T09:05:18Z | null | 2020-02-15T09:05:18Z |
DOC PR09 Add missing dots at con parameter on io/sql.py file | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 256586f3d36a1..d7bdc0f34f744 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1441,6 +1441,10 @@ def to_string(
| 1 | pig |
| 2 | dog |
| 3 | quetzal |
+
+ See Also
+ --------
+ ... | - [ ] 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/31996 | 2020-02-15T08:54:18Z | 2020-02-15T09:04:32Z | null | 2020-02-15T09:04:32Z |
DOC: Add See Also section on series.py | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 256586f3d36a1..d7bdc0f34f744 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1441,6 +1441,10 @@ def to_string(
| 1 | pig |
| 2 | dog |
| 3 | quetzal |
+
+ See Also
+ --------
+ ... | - [ ] 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/31995 | 2020-02-15T08:39:06Z | 2020-02-17T08:23:49Z | null | 2020-02-17T08:23:50Z |
Backport PR: CI:Testing whole doctest, and not specific module | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 83ceb11dfcbf4..30d3a3ffe5f7b 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -259,8 +259,7 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
- pytest -q --doctest-modules pandas/core/frame.py \
- ... | xref #31975
Doing as mentioned [here](https://github.com/pandas-dev/pandas/pull/31975#issuecomment-586443425) | https://api.github.com/repos/pandas-dev/pandas/pulls/31993 | 2020-02-15T08:21:19Z | 2020-02-15T09:59:33Z | 2020-02-15T09:59:33Z | 2020-02-15T10:15:40Z |
BUG: Fix wrong reading sparse matrix | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 718de09a0c3e4..0dd24bcc54933 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -572,7 +572,7 @@ Reshaping
Sparse
^^^^^^
- Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning... | - [x] closes #29814
- [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/31991 | 2020-02-15T07:29:20Z | 2020-04-16T21:22:53Z | 2020-04-16T21:22:52Z | 2020-04-16T22:16:53Z |
CLN: 29547 replace old string formatting 7 | diff --git a/pandas/tests/scalar/timestamp/test_constructors.py b/pandas/tests/scalar/timestamp/test_constructors.py
index 737a85faa4c9b..b4a7173da84d0 100644
--- a/pandas/tests/scalar/timestamp/test_constructors.py
+++ b/pandas/tests/scalar/timestamp/test_constructors.py
@@ -314,7 +314,7 @@ def test_constructor_nanose... | I splitted PR #31844 in batches, this is the seventh
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547]... | https://api.github.com/repos/pandas-dev/pandas/pulls/31986 | 2020-02-14T19:45:33Z | 2020-02-15T19:04:20Z | 2020-02-15T19:04:20Z | 2020-02-21T01:29:56Z |
REF: dont use numexpr in places where it doesnt help. | diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py
index f3c1a609d50a1..410bb3ac9f162 100644
--- a/pandas/core/ops/__init__.py
+++ b/pandas/core/ops/__init__.py
@@ -374,7 +374,6 @@ def dispatch_to_series(left, right, func, str_rep=None, axis=None):
"""
# Note: we use iloc to access columns... | DataFrame ops will still use it when dispatching to series/block ops.
Perf neutral:
```
In [3]: arr = np.arange(10**4).reshape(100, 100)
In [4]: df = pd.DataFrame(arr) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31984 | 2020-02-14T19:14:12Z | 2020-02-17T03:31:50Z | null | 2021-03-02T21:10:52Z |
CLN 29547 Replace old string formatting syntax with f-strings | diff --git a/pandas/io/sas/sas_xport.py b/pandas/io/sas/sas_xport.py
index 461d393dc4521..e67d68f7e0975 100644
--- a/pandas/io/sas/sas_xport.py
+++ b/pandas/io/sas/sas_xport.py
@@ -79,12 +79,12 @@
Return XportReader object for reading file incrementally."""
-_read_sas_doc = """Read a SAS file into a DataFrame.... | Addresses #29547 for pandas/io/sas/sas_xport.py. I searched through for instances of the `%` operator and `.format`.
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I noticed that `_read_sas_doc` doesn't seem to be used anymore. I could delete that as well, or we ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31982 | 2020-02-14T17:36:30Z | 2020-02-15T02:19:38Z | 2020-02-15T02:19:38Z | 2020-02-15T02:19:42Z |
CLN: 29547 replace old string formatting 6 | diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py
index 80a4d81b20a13..dbda3994b1c2a 100644
--- a/pandas/tests/indexing/test_floats.py
+++ b/pandas/tests/indexing/test_floats.py
@@ -53,7 +53,7 @@ def test_scalar_error(self, index_func):
s.iloc[3.0]
msg = (
... | I splitted PR #31844 in batches, this is the sixth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31980 | 2020-02-14T17:19:28Z | 2020-02-14T19:11:47Z | 2020-02-14T19:11:47Z | 2020-02-21T01:30:05Z |
Avoid importing from pandas at _libs files | diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx
index 4d17a6f883c1c..ba8a5dd3dd1d7 100644
--- a/pandas/_libs/missing.pyx
+++ b/pandas/_libs/missing.pyx
@@ -1,6 +1,7 @@
import cython
from cython import Py_ssize_t
+import platform
import numbers
import numpy as np
@@ -16,16 +17,13 @@ from pandas.... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Something that brought at to me at first [here](https://github.com/pandas-dev/pandas/pull/30395#discussion_r363101229)
---
cc @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/31977 | 2020-02-14T15:54:20Z | 2020-02-16T16:50:01Z | null | 2020-02-29T10:23:29Z |
CI: Removed pattern check for specific modules | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7eb80077c4fab..bb7d8a388e6e2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -259,8 +259,7 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
- pytest -q --doctest-modules pandas/core/frame.py \
- ... | - [ ] 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/31975 | 2020-02-14T14:47:35Z | 2020-02-14T19:23:53Z | 2020-02-14T19:23:52Z | 2020-02-15T08:23:06Z |
STY: Fixed wrong placement of whitespace | diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py
index 9186c33c12c06..0a5a2362bd290 100644
--- a/pandas/tests/arrays/test_integer.py
+++ b/pandas/tests/arrays/test_integer.py
@@ -347,10 +347,10 @@ def test_error(self, data, all_arithmetic_operators):
# TODO(extension)
... | - [x] ref #30755
- [ ] 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/31974 | 2020-02-14T13:39:16Z | 2020-02-14T18:45:36Z | 2020-02-14T18:45:36Z | 2020-02-15T08:37:15Z |
BUG: groupby-nunique modifies null values | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 0216007ea5ba8..77a8e7dc6e39d 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -19,7 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is... | - [ ] closes #31950
- [ ] 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/31973 | 2020-02-14T11:02:01Z | 2020-02-14T11:37:53Z | null | 2020-02-14T11:37:53Z |
CLN: @doc - base.py & indexing.py | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index ba4c2e168e0c4..24a2bf12fd0b5 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -15,6 +15,7 @@
Substitution,
cache_readonly,
deprecate_kwarg,
+ doc,
)
from pandas.util._val... | - [x] working on #31942
- [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/31970 | 2020-02-14T02:20:29Z | 2020-03-17T00:10:28Z | 2020-03-17T00:10:28Z | 2020-03-23T21:42:50Z |
Update doc decorator for pandas/core/base.py | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 649dd37b497b2..1c99b341f6c5a 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -937,33 +937,31 @@ classes. This helps us keep d... | - [ ] working on #31942
- [ ] 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/31969 | 2020-02-14T02:01:22Z | 2020-02-14T02:02:05Z | null | 2020-02-14T02:02:05Z |
DOC: Use use recommended library over deprecated library | diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py
index 714bebc260c06..f158ad6cd89e3 100644
--- a/pandas/io/json/_normalize.py
+++ b/pandas/io/json/_normalize.py
@@ -159,11 +159,10 @@ def _json_normalize(
Examples
--------
- >>> from pandas.io.json import json_normalize
>>> da... | Importing `pandas.io.json.json_normalize` in pandas 1.0.1 gives the following warning
```
FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead
```
This PR updates the documentation here https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html... | https://api.github.com/repos/pandas-dev/pandas/pulls/31968 | 2020-02-14T01:28:20Z | 2020-02-14T02:35:08Z | 2020-02-14T02:35:08Z | 2020-02-15T01:52:04Z |
CLN: 29547 replace old string formatting 5 | diff --git a/pandas/tests/io/parser/test_c_parser_only.py b/pandas/tests/io/parser/test_c_parser_only.py
index 1737f14e7adf9..5bbabc8e18c47 100644
--- a/pandas/tests/io/parser/test_c_parser_only.py
+++ b/pandas/tests/io/parser/test_c_parser_only.py
@@ -158,7 +158,7 @@ def test_precise_conversion(c_parser_only):
# ... | I splitted PR #31844 in batches, this is the fifth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31967 | 2020-02-14T01:22:43Z | 2020-02-14T16:54:33Z | 2020-02-14T16:54:33Z | 2020-02-21T01:29:58Z |
CLN: 29547 replace old string formatting 4 | diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py
index fe161a0da791a..0c9ddbf5473b3 100644
--- a/pandas/tests/internals/test_internals.py
+++ b/pandas/tests/internals/test_internals.py
@@ -91,9 +91,7 @@ def create_block(typestr, placement, item_shape=None, num_offset=0):
... | I splitted PR #31844 in batches, this is the fourth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](... | https://api.github.com/repos/pandas-dev/pandas/pulls/31963 | 2020-02-13T20:15:24Z | 2020-02-14T01:04:47Z | 2020-02-14T01:04:47Z | 2020-02-21T01:30:00Z |
REF: remove _convert_scalar_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ceb3f26a0526a..f2d4151edb855 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3078,48 +3078,6 @@ def _get_partial_string_timestamp_match_key(self, key):
# GH#10331
return key
- def _convert_... | This sits on top of #31867, so is partially a demonstration of how much complication is caused by our inconsistent error-raising. | https://api.github.com/repos/pandas-dev/pandas/pulls/31962 | 2020-02-13T20:11:32Z | 2020-03-03T15:27:18Z | 2020-03-03T15:27:18Z | 2020-03-03T15:53:13Z |
CLN: D414: Section has no content | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index da152b70abd2e..22b62b56a3c88 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3821,6 +3821,8 @@ def align(
@Appender(
"""
+ Examples
+ --------
>>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
... | https://api.github.com/repos/pandas-dev/pandas/pulls/31961 | 2020-02-13T18:54:56Z | 2020-02-13T20:11:14Z | 2020-02-13T20:11:14Z | 2020-02-13T20:31:15Z | |
CLN: remove blocking return | diff --git a/pandas/tests/indexes/multi/test_copy.py b/pandas/tests/indexes/multi/test_copy.py
index 1acc65aef8b8a..67b815ecba3b8 100644
--- a/pandas/tests/indexes/multi/test_copy.py
+++ b/pandas/tests/indexes/multi/test_copy.py
@@ -80,7 +80,6 @@ def test_copy_method_kwargs(deep, kwarg, value):
codes=[[0, 0, 0... | just noticed a `return` statement in the middle of a test that prevents it from being executed. This was added in ##23752 | https://api.github.com/repos/pandas-dev/pandas/pulls/31960 | 2020-02-13T18:53:29Z | 2020-02-13T19:35:30Z | 2020-02-13T19:35:30Z | 2020-02-19T10:49:57Z |
CLN: D411: Missing blank line before section | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 46ed65c87e8dd..4a6973b600409 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -2590,6 +2590,7 @@ def test_parallel(num_threads=2, kwargs_list=None):
kwargs_list : list of dicts, optional
The list of kwargs to update original
fu... | https://api.github.com/repos/pandas-dev/pandas/pulls/31959 | 2020-02-13T18:35:14Z | 2020-02-13T20:10:25Z | 2020-02-13T20:10:25Z | 2020-02-13T20:20:48Z | |
CLN: D409: Section underline should match the length of its name | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 6fa42804d2e39..3381a2f765223 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1686,7 +1686,7 @@ def _lexsort_depth(self) -> int:
MultiIndex that are sorted lexically
Returns
- ------... | https://api.github.com/repos/pandas-dev/pandas/pulls/31958 | 2020-02-13T18:14:27Z | 2020-02-13T20:07:34Z | 2020-02-13T20:07:34Z | 2020-02-13T20:19:08Z | |
CLN: D412: No blank lines allowed between a section header and its content | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index c283baeb9d412..2df940817498c 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -395,7 +395,6 @@ class option_context:
Examples
--------
-
>>> with option_context('display.max_rows', 10, 'display.max_columns', 5... | https://api.github.com/repos/pandas-dev/pandas/pulls/31956 | 2020-02-13T17:56:02Z | 2020-02-13T20:06:57Z | 2020-02-13T20:06:56Z | 2020-02-13T20:15:35Z | |
add eval examples | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 4cdf4bac61316..f6947d5ec6233 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -276,6 +276,21 @@ def eval(
See the :ref:`enhancing performance <enhancingperf.eval>` documentation for
more... | xref #31952
Screenshot for `pandas.eval`:

Screenshot for `pandas.DataFrame.eval`:

| https://api.github.com/repos/pandas-dev/pandas/pulls/31955 | 2020-02-13T17:11:26Z | 2020-02-14T01:21:42Z | 2020-02-14T01:21:42Z | 2020-02-25T17:11:43Z |
CLN: index related attributes on Series/DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index da152b70abd2e..8cad92ab2bb32 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8569,6 +8569,14 @@ def isin(self, values) -> "DataFrame":
# ----------------------------------------------------------------------
# Add index and colu... | Followup to #31126. IMO the current approach to adding the index related class attributes is too indirect and therefore unnecessary difficult to follow. Just adding the class attributes directly on the relevant class makes reading the code easier, IMO.
Notice that the types are already defined in pandas/core/generic... | https://api.github.com/repos/pandas-dev/pandas/pulls/31953 | 2020-02-13T14:47:06Z | 2020-02-14T01:07:53Z | 2020-02-14T01:07:53Z | 2020-02-14T21:50:48Z |
Backport PR #31910 on branch 1.0.x (BUG: Handle NA in assert_numpy_array_equal) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 8231471dfbde9..3f98a479bc587 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -527,6 +527,8 @@ def array_equivalent_object(left: object[:], right: object[:]) -> bool:
if PyArray_Check(x) and PyArray_Check(y):
if ... | Backport PR #31910: BUG: Handle NA in assert_numpy_array_equal | https://api.github.com/repos/pandas-dev/pandas/pulls/31947 | 2020-02-13T08:16:45Z | 2020-02-13T09:05:41Z | 2020-02-13T09:05:41Z | 2020-02-13T12:41:05Z |
API: replace() should raise an exception if invalid argument is given | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0f18a1fd81815..43c0a3cfa1b94 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -322,6 +322,7 @@ Reshaping
- Bug in :func:`crosstab` when inputs are two Series and have tuple names, the output will keep ... | - [x] closes #18634
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I used `is_scalar()` instead of `is_numeric()` to allow data structures like pd.Timestamp to be used in `replace()`. See tests in pandas/tests/frame... | https://api.github.com/repos/pandas-dev/pandas/pulls/31946 | 2020-02-13T06:13:46Z | 2020-03-03T03:24:23Z | 2020-03-03T03:24:23Z | 2020-03-03T04:32:14Z |
CLN: 29547 replace old string formatting 3 | diff --git a/pandas/tests/indexes/interval/test_setops.py b/pandas/tests/indexes/interval/test_setops.py
index 3246ac6bafde9..d9359d717de1d 100644
--- a/pandas/tests/indexes/interval/test_setops.py
+++ b/pandas/tests/indexes/interval/test_setops.py
@@ -180,8 +180,8 @@ def test_set_incompatible_types(self, closed, op_na... | I splitted PR #31844 in batches, this is the third
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31945 | 2020-02-13T03:45:56Z | 2020-02-13T20:34:48Z | 2020-02-13T20:34:48Z | 2020-02-21T01:30:01Z |
DOC: update ohlc docstring so that it reflects the real use #31919 | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 6b2880810dcb2..cc46485b4a2e8 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1447,7 +1447,7 @@ def last(x):
@Appender(_common_see_also)
def ohlc(self) -> DataFrame:
"""
- Com... | - [x] closes #31919
- [x] tests added / passed
The test python scripts/validate_docstrings.py pandas.core.groupby.GroupBy.ohlc returns errors, but that is something that happens with many functions at the moment
```################################################################################
################... | https://api.github.com/repos/pandas-dev/pandas/pulls/31941 | 2020-02-13T00:30:02Z | 2020-02-15T18:07:33Z | 2020-02-15T18:07:32Z | 2020-02-15T18:07:40Z |
REF: use iloc instead of _ixs outside of indexing code | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 70e0a129c055f..71eeb61318376 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -379,7 +379,7 @@ def apply_broadcast(self, target: "DataFrame") -> "DataFrame":
@property
def series_generator(self):
- return (self.obj._ixs(i, ... | Readers are much more likely to be familiar with iloc than _ixs.
This leaves us with exactly one usage of _ixs. | https://api.github.com/repos/pandas-dev/pandas/pulls/31940 | 2020-02-12T21:18:37Z | 2020-02-17T16:31:20Z | null | 2020-04-05T17:45:44Z |
BUG: Fix construction of Categorical from pd.NA | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index affe019d0ac86..dc47e010dacdc 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -65,6 +65,7 @@ Bug fixes
**Categorical**
- Fixed bug where :meth:`Categorical.from_codes` improperly raised a ``ValueErr... | - [x] closes #31927
- [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/31939 | 2020-02-12T21:17:04Z | 2020-02-23T14:57:08Z | 2020-02-23T14:57:08Z | 2020-02-23T15:10:32Z |
CLN: assorted cleanups | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 5888600d2fa8e..a75536e46e60d 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -283,7 +283,8 @@ def __init__(self, values, dtype=_NS_DTYPE, freq=None, copy=False):
@classmethod
def _simple_... | broken off of other local branches | https://api.github.com/repos/pandas-dev/pandas/pulls/31938 | 2020-02-12T21:09:05Z | 2020-02-13T12:42:54Z | 2020-02-13T12:42:54Z | 2020-02-13T17:35:33Z |
dont skip keyerror for IntervalIndex | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 5ae237eb7dc32..933305d9e3539 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1334,12 +1334,12 @@ def _validate_read_indexer(
not_found = list(set(key) - set(ax))
raise KeyError(f"{not_found} not... | cc @jschendel this is speculative that this is the desired behavior.
This is our only use of `Index.is_interval()` | https://api.github.com/repos/pandas-dev/pandas/pulls/31936 | 2020-02-12T20:38:17Z | 2020-02-22T17:53:45Z | 2020-02-22T17:53:45Z | 2020-02-22T17:53:56Z |
Clean Up C Warnings | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index dd1f38ce3a842..5f3d946a1e024 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1173,12 +1173,12 @@ ctypedef fused out_t:
@cython.boundscheck(False)
@cython.wraparound(False)
-def diff_2d(ndarray[diff_t, ndim=2] arr,
- n... | Getting closer to no warnings (at least with clang). Changes in this PR get rid of the following warnings:
```sh
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/w... | https://api.github.com/repos/pandas-dev/pandas/pulls/31935 | 2020-02-12T20:10:55Z | 2020-02-17T19:50:33Z | 2020-02-17T19:50:33Z | 2023-04-12T20:17:35Z |
CLN: 29547 replace old string formatting 2 | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index 162f3c114fa5d..df40c2e7e2a11 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -840,8 +840,8 @@ def test_inplace_ops_identity2(self, op):
df["a"] = [True, False, True... | I splitted PR #31844 in batches, this is the second
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](... | https://api.github.com/repos/pandas-dev/pandas/pulls/31933 | 2020-02-12T17:51:56Z | 2020-02-13T05:54:38Z | 2020-02-13T05:54:38Z | 2020-02-21T01:30:01Z |
CLN: remove unreachable in Series._reduce | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 24e794014a15f..3d43ed79c2adb 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -34,7 +34,6 @@
ensure_platform_int,
is_bool,
is_categorical_dtype,
- is_datetime64_dtype,
is_dict_like,
is_extension_array_dtype,
... | these are made unreachable now that Series._values returns DTA/TDA for datetime64/timedelta64 dtypes.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31932 | 2020-02-12T16:45:49Z | 2020-02-14T01:27:40Z | 2020-02-14T01:27:40Z | 2020-02-14T01:54:05Z |
Revert 31791 | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index 404f5a477187b..730043e6ec7d7 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -141,7 +141,24 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
pytest.importorskip(module... | supersedes #31800
we never back ported this so just cleaning up master (assuming it now works again) | https://api.github.com/repos/pandas-dev/pandas/pulls/31931 | 2020-02-12T16:15:49Z | 2020-02-15T01:44:56Z | 2020-02-15T01:44:56Z | 2023-04-12T20:16:58Z |
Backport PR #31918 on branch 1.0.x (BUG: fix parquet roundtrip with unsigned integer dtypes) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 6d99668684a3b..44125ee30911f 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -33,6 +33,8 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | Backport PR #31918: BUG: fix parquet roundtrip with unsigned integer dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/31928 | 2020-02-12T15:13:37Z | 2020-02-12T15:57:04Z | 2020-02-12T15:57:04Z | 2020-02-12T15:57:04Z |
Backport PR #31877 on branch 1.0.x (BUG: fix infer_dtype for StringDtype) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 6d99668684a3b..8c155306c6fcb 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -34,8 +34,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Backport PR #31877: BUG: fix infer_dtype for StringDtype | https://api.github.com/repos/pandas-dev/pandas/pulls/31926 | 2020-02-12T15:05:41Z | 2020-02-12T15:54:22Z | 2020-02-12T15:54:22Z | 2020-02-12T15:54:22Z |
Backport PR #31773 on branch 1.0.x (BUG: fix StringArray/PandasArray setitem with slice) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b055b44274bd8..688e073b1e419 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -30,6 +30,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Backport PR #31773: BUG: fix StringArray/PandasArray setitem with slice | https://api.github.com/repos/pandas-dev/pandas/pulls/31923 | 2020-02-12T13:14:06Z | 2020-02-12T13:49:09Z | 2020-02-12T13:49:09Z | 2020-02-12T13:49:09Z |
Backport PR #31794 on branch 1.0.x (BUG: Avoid casting Int to object in Categorical.from_codes) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b055b44274bd8..556c0cf1b55af 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -26,6 +26,10 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+**Categorical**
+
+- Fixed bug where :meth:`Categorical.from_code... | Backport PR #31794: BUG: Avoid casting Int to object in Categorical.from_codes | https://api.github.com/repos/pandas-dev/pandas/pulls/31921 | 2020-02-12T12:42:34Z | 2020-02-12T13:14:08Z | 2020-02-12T13:14:08Z | 2020-02-12T13:14:08Z |
BUG: fix parquet roundtrip with unsigned integer dtypes | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index f4bb8c580fb08..aa64f4524b877 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -31,6 +31,8 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | Closes #31896 | https://api.github.com/repos/pandas-dev/pandas/pulls/31918 | 2020-02-12T10:30:30Z | 2020-02-12T15:04:32Z | 2020-02-12T15:04:32Z | 2021-12-15T08:05:53Z |
EHN: fix unsigned int type problem of the result diff() | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 886b0a3c5fec1..189b2ca8cc8e1 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1869,6 +1869,7 @@ def diff(arr, n: int, axis: int = 0, stacklevel=3):
is_timedelta = False
is_bool = False
+ original_dtype = np... | An unexpected output type(float64) occurs to diff() when using uint
type. So fix it by restoring original dtype after storing it
Fixes #28909
- [ ] 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/31916 | 2020-02-12T08:45:37Z | 2020-02-13T01:58:27Z | null | 2020-02-19T07:05:17Z |
CLN: Some groupby internals | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 63087672d1365..7259268ac3f2b 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -169,7 +169,7 @@ def apply(self, f, data: FrameOrSeries, axis: int = 0):
and not sdata.index._has_complex_internals
):... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
1. Avoids calling `_get_sorted_data()` twice
2. Eliminates `*args, **kwargs` from an internal function | https://api.github.com/repos/pandas-dev/pandas/pulls/31915 | 2020-02-12T07:03:11Z | 2020-02-17T00:23:55Z | 2020-02-17T00:23:55Z | 2020-02-17T00:23:58Z |
CLN: 29547 replace old string formatting 1 | diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py
index bd9b77a2bc419..a78e4bb34e42a 100644
--- a/pandas/tests/extension/decimal/test_decimal.py
+++ b/pandas/tests/extension/decimal/test_decimal.py
@@ -99,7 +99,7 @@ def assert_frame_equal(cls, left, right, *arg... | I splitted PR #31844 in batches, this is the first one
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#2954... | https://api.github.com/repos/pandas-dev/pandas/pulls/31914 | 2020-02-12T04:56:23Z | 2020-02-12T17:18:50Z | 2020-02-12T17:18:50Z | 2020-02-21T01:30:03Z |
CLN: implement _getitem_tuple_same_dim | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index f498e1696ea5b..b3777e949a08c 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -718,6 +718,25 @@ def _handle_lowerdim_multi_index_axis0(self, tup: Tuple):
return None
+ def _getitem_tuple_same_dim(self, tup: Tuple):... | - [ ] 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/31911 | 2020-02-12T03:42:23Z | 2020-02-12T17:42:37Z | 2020-02-12T17:42:37Z | 2020-02-12T17:49:41Z |
BUG: Handle NA in assert_numpy_array_equal | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 9702eb4615909..eaa73c00705ea 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -571,6 +571,8 @@ def array_equivalent_object(left: object[:], right: object[:]) -> bool:
if PyArray_Check(x) and PyArray_Check(y):
if ... | - [x] closes #31881
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I think in the the case where we have NA we want to use identity rather than equality for checking when two arrays are equal. | https://api.github.com/repos/pandas-dev/pandas/pulls/31910 | 2020-02-12T03:29:38Z | 2020-02-13T08:16:34Z | 2020-02-13T08:16:33Z | 2020-02-13T14:14:33Z |
CLN: remove odious kludge | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 44b3c318366d2..f498e1696ea5b 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -755,18 +755,11 @@ def _getitem_lowerdim(self, tup: Tuple):
new_key = tup[:i] + (_NS,) + tup[i + 1 :]
else:
+ ... | This is a legacy of Panel/ix AFAICT, was introduced in 2011. | https://api.github.com/repos/pandas-dev/pandas/pulls/31907 | 2020-02-12T01:57:37Z | 2020-02-12T04:17:27Z | 2020-02-12T04:17:27Z | 2020-02-12T15:57:58Z |
REF: implement unpack_1tuple to clean up Series.__getitem__ | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index cadae9da6092f..4fb42fce29e1a 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -270,6 +270,33 @@ def deprecate_ndim_indexing(result):
)
+def unpack_1tuple(tup):
+ """
+ If we have a length-1 tuple/list that conta... | Doing this up-front instead of in two places makes for a nice cleanup. There will be a small perf penalty for the cases that wouldn't otherwise need to do these checks.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31906 | 2020-02-12T01:55:21Z | 2020-02-17T19:53:58Z | 2020-02-17T19:53:58Z | 2020-02-17T22:16:06Z |
BUG: using loc[int] with object index | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 34a67836f9675..7449c62a5ad31 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -56,6 +56,8 @@ Other API changes
- :meth:`Series.describe` will now show distribution percentiles for ``datetime`` dtypes, ... | - [x] closes #19456
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This causes us to raise KeyError instead of TypeError in a couple of places, consistent with #31867.
Also note this leaves us with only one non-p... | https://api.github.com/repos/pandas-dev/pandas/pulls/31905 | 2020-02-12T01:32:32Z | 2020-02-22T17:53:09Z | 2020-02-22T17:53:08Z | 2020-02-22T17:53:21Z |
TST: parametrize eval tests | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index 703e05998e93c..bf9eeb532b43b 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -78,45 +78,48 @@ def test_query_numexpr(self):
class TestDataFrameEval:
- def test_ops(s... | https://api.github.com/repos/pandas-dev/pandas/pulls/31901 | 2020-02-11T22:49:55Z | 2020-02-12T01:11:13Z | 2020-02-12T01:11:12Z | 2020-02-12T01:15:54Z | |
TST: parametrize generic/internals tests | diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py
index d8f4257566f84..dca65152e82db 100644
--- a/pandas/tests/generic/test_frame.py
+++ b/pandas/tests/generic/test_frame.py
@@ -32,19 +32,20 @@ def test_rename_mi(self):
)
df.rename(str.lower)
- def test_set_axis... | https://api.github.com/repos/pandas-dev/pandas/pulls/31900 | 2020-02-11T22:21:50Z | 2020-02-12T21:47:27Z | 2020-02-12T21:47:27Z | 2020-02-12T21:53:46Z | |
DOC: Update sort_index docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1101374f94b8c..46ef05ff0df41 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4989,8 +4989,9 @@ def sort_index(
and 1 identifies the columns.
level : int or level name or list of ints or list of level names
... | - [x] closes #31880 | https://api.github.com/repos/pandas-dev/pandas/pulls/31898 | 2020-02-11T21:44:43Z | 2020-02-19T01:30:09Z | 2020-02-19T01:30:09Z | 2020-02-19T01:36:21Z |
BUG: fix length_of_indexer with boolean mask | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index fe475527f4596..90a58a6308f40 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -219,7 +219,7 @@ def maybe_convert_indices(indices, n: int):
def length_of_indexer(indexer, target=None) -> int:
"""
- Return the length of a... | - [x] closes #25774
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Allows for a nice cleanup in _setitem_with_indexer. Note this will conflict with #31887; the order doesn't matter. | https://api.github.com/repos/pandas-dev/pandas/pulls/31897 | 2020-02-11T21:01:49Z | 2020-02-18T00:15:46Z | 2020-02-18T00:15:46Z | 2020-02-18T00:46:10Z |
CLN: D202 No blank lines allowed after function docstring | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 8b6116d3abd60..c283baeb9d412 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -550,7 +550,6 @@ def _select_options(pat: str) -> List[str]:
if pat=="all", returns all registered options
"""
-
# short-circuit fo... | This one could conflict which the unchecked rule blank line before comment | https://api.github.com/repos/pandas-dev/pandas/pulls/31895 | 2020-02-11T19:26:39Z | 2020-02-12T16:10:25Z | 2020-02-12T16:10:25Z | 2020-02-12T20:59:38Z |
DOC: Fix divmod return values | diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py
index e3db65f11a332..203ea3946d1b2 100644
--- a/pandas/core/ops/docstrings.py
+++ b/pandas/core/ops/docstrings.py
@@ -34,6 +34,7 @@ def _make_flex_doc(op_name, typ):
op_name=op_name,
equiv=equiv,
reverse=op... | - [x] closes #31663
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31894 | 2020-02-11T19:25:09Z | 2020-02-12T01:39:07Z | 2020-02-12T01:39:07Z | 2020-02-12T01:39:14Z |
CLN: D213: Multi-line docstring summary should start at the second line | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 2df940817498c..f1959cd70ed3a 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -82,7 +82,8 @@
class OptionError(AttributeError, KeyError):
- """Exception for pandas.options, backwards compatible with KeyError
+ """
+... | https://api.github.com/repos/pandas-dev/pandas/pulls/31893 | 2020-02-11T19:23:29Z | 2020-02-15T19:03:21Z | 2020-02-15T19:03:21Z | 2020-02-15T20:15:30Z | |
CLN: D204 1 blank line required after class docstring | diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py
index 37e3cd42f2115..6da8b0c5ccadd 100644
--- a/pandas/core/window/ewm.py
+++ b/pandas/core/window/ewm.py
@@ -116,6 +116,7 @@ class EWM(_Rolling):
3 1.615385
4 3.670213
"""
+
_attributes = ["com", "min_periods", "adjust", "ignore_n... | https://api.github.com/repos/pandas-dev/pandas/pulls/31892 | 2020-02-11T19:21:23Z | 2020-02-11T22:34:39Z | 2020-02-11T22:34:39Z | 2020-02-11T22:37:33Z | |
CLN: D209 Multi-line docstring closing quotes should be on a separate line | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 13af8703cef93..9e71524263a18 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -2150,7 +2150,8 @@ def optional_args(decorator):
@my_decorator
def function(): pass
- Calls decorator with decorator(f, *args, **kwargs)"""
+ Call... | https://api.github.com/repos/pandas-dev/pandas/pulls/31891 | 2020-02-11T19:19:42Z | 2020-02-11T23:01:16Z | 2020-02-11T23:01:16Z | 2020-02-11T23:04:14Z | |
CLN: D208 Docstring is over-indented | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 131a011c5a101..7463b2b579c0c 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -106,8 +106,8 @@ def axis(request):
@pytest.fixture(params=[0, "index"], ids=lambda x: f"axis {repr(x)}")
def axis_series(request):
"""
- Fixture for returning t... | https://api.github.com/repos/pandas-dev/pandas/pulls/31890 | 2020-02-11T19:17:35Z | 2020-02-11T21:30:25Z | 2020-02-11T21:30:25Z | 2020-02-11T21:41:08Z | |
CLN: D201 No blank lines allowed before function docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b733970dcf699..c68fa5a3caff6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4037,7 +4037,6 @@ def rename(
level: Optional[Level] = None,
errors: str = "ignore",
) -> Optional["DataFrame"]:
-
"""
Alt... | https://api.github.com/repos/pandas-dev/pandas/pulls/31889 | 2020-02-11T19:15:53Z | 2020-02-11T21:28:28Z | 2020-02-11T21:28:28Z | 2020-02-11T21:37:31Z | |
CLN: D300 Use """triple double quotes""" | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 18c7504f2c2f8..a4648186477d6 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2013,7 +2013,7 @@ def wrapper3(self, pat, na=np.nan):
def copy(source):
- "Copy a docstring from another source function (if present)"
+ """Copy... | https://api.github.com/repos/pandas-dev/pandas/pulls/31888 | 2020-02-11T19:14:28Z | 2020-02-11T21:27:49Z | 2020-02-11T21:27:49Z | 2020-02-11T21:35:57Z | |
CLN: simplify _setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index d3e75d43c6bd7..081f87078d9c9 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1564,6 +1564,17 @@ def _convert_to_indexer(self, key, axis: int, is_setter: bool = False):
# -----------------------------------------------------... | The MultiIndex check it is doing is unnecessary for positional indexing.
Other things being cleaned up here appear to be remnants from Panel | https://api.github.com/repos/pandas-dev/pandas/pulls/31887 | 2020-02-11T19:02:55Z | 2020-02-20T22:37:38Z | 2020-02-20T22:37:38Z | 2020-02-20T23:27:36Z |
CLN-29547 replace old string formatting | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 2c72cec18f096..5be35c13f5737 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -59,10 +59,10 @@ def integer_op_not_supported(obj):
# GH#30886 using an fstring raises SystemErro... | I splitted PR #31844 in batches, this is the first one
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#2954... | https://api.github.com/repos/pandas-dev/pandas/pulls/31878 | 2020-02-11T14:43:22Z | 2020-02-11T15:05:13Z | null | 2020-02-11T15:05:19Z |
BUG: fix infer_dtype for StringDtype | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b31f7c1166dc0..448779e4c3e0b 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -36,8 +36,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Closes #31731 | https://api.github.com/repos/pandas-dev/pandas/pulls/31877 | 2020-02-11T14:10:21Z | 2020-02-12T15:05:29Z | 2020-02-12T15:05:29Z | 2020-02-12T15:14:15Z |
CLN: Move info | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 4ad80273f77ba..e4f36e128059b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -14,7 +14,6 @@
import datetime
from io import StringIO
import itertools
-import sys
from textwrap import dedent
from typing import (
IO,
@@ -131,7 +130,7 ... | precursor to xref #31796. Have moved `DataFrame.info` code into `pandas/io/formats/info.py`, along with tests | https://api.github.com/repos/pandas-dev/pandas/pulls/31876 | 2020-02-11T13:50:20Z | 2020-02-19T00:45:03Z | 2020-02-19T00:45:03Z | 2020-02-25T17:11:47Z |
DOC: add redirects from Rolling to rolling.Rolling | diff --git a/doc/redirects.csv b/doc/redirects.csv
index ef93955c14fe6..3669ff4b7cc0b 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -49,7 +49,25 @@ internals,development/internals
# api moved function
reference/api/pandas.io.json.json_normalize,pandas.json_normalize
-# api rename
+# rename due to refact... | - [x] closes #31762 | https://api.github.com/repos/pandas-dev/pandas/pulls/31875 | 2020-02-11T13:48:37Z | 2020-03-10T08:35:48Z | 2020-03-10T08:35:48Z | 2020-03-10T08:35:57Z |
CLN: f-string formatting | diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index da27057a783ab..2073aa0727809 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -98,7 +98,7 @@ def test_shift(self):
# GH8083 test the base class for shift
idx = self.create_index()
- ... | Ref to [#29547](https://github.com/pandas-dev/pandas/issues/29547)
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Replacing strings interpolated with .format() with strings interpolated with f-strings | https://api.github.com/repos/pandas-dev/pandas/pulls/31868 | 2020-02-11T04:16:20Z | 2020-02-11T05:15:33Z | 2020-02-11T05:15:33Z | 2020-02-11T05:15:59Z |
API/BUG: raise only KeyError failed on geitem/loc lookups | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 7449c62a5ad31..3d478df4c0ea8 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -67,7 +67,76 @@ Backwards incompatible API changes
now raise a ``TypeError`` if a not-accepted keyword argument is passe... | - [x] closes #21567
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
ATM we raise a mix of KeyError and TypeError.
I'm in the process of going through the Indexing issues will see what else this closes. | https://api.github.com/repos/pandas-dev/pandas/pulls/31867 | 2020-02-11T03:20:07Z | 2020-02-27T23:08:52Z | 2020-02-27T23:08:52Z | 2020-02-28T00:11:25Z |
BUG: catch almost-null-slice in _convert_slice_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 14ee21ea5614c..34bdd12988282 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3163,8 +3163,7 @@ def _convert_slice_indexer(self, key: slice, kind: str_t):
def is_int(v):
return v is None or i... | its a contrived corner case, but i wanted to use com.is_null_slice rather than duplicating it in _convert_slice_indexer | https://api.github.com/repos/pandas-dev/pandas/pulls/31866 | 2020-02-11T02:26:20Z | 2020-02-23T15:54:29Z | 2020-02-23T15:54:29Z | 2020-02-23T17:11:04Z |
CLN: tests.generic | diff --git a/pandas/tests/frame/test_block_internals.py b/pandas/tests/frame/test_block_internals.py
index d301ed969789e..a5f5e6f36cd58 100644
--- a/pandas/tests/frame/test_block_internals.py
+++ b/pandas/tests/frame/test_block_internals.py
@@ -364,14 +364,14 @@ def test_pickle(self, float_string_frame, timezone_frame)... | Many of the tests here really only test either Series or DataFrame, not both. | https://api.github.com/repos/pandas-dev/pandas/pulls/31865 | 2020-02-11T01:22:55Z | 2020-02-11T09:42:02Z | 2020-02-11T09:42:02Z | 2020-02-11T15:43:47Z |
REF: organize base class Index tests | diff --git a/pandas/tests/indexes/base_class/test_reshape.py b/pandas/tests/indexes/base_class/test_reshape.py
new file mode 100644
index 0000000000000..61826f2403a4b
--- /dev/null
+++ b/pandas/tests/indexes/base_class/test_reshape.py
@@ -0,0 +1,61 @@
+"""
+Tests for ndarray-like method on the base Index class
+"""
+im... | implement test_index_new for testing `Index.__new__` inference | https://api.github.com/repos/pandas-dev/pandas/pulls/31864 | 2020-02-11T01:15:54Z | 2020-02-22T15:43:06Z | 2020-02-22T15:43:05Z | 2020-02-22T15:51:28Z |
CLN: organize MultiIndex indexing tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index d19bf85877140..f7c6a0c899642 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -956,6 +956,25 @@ def __len__(self):
return TestNonDictMapping
+def _gen_mi():
+ # a MultiIndex used to test the general functionality of this object
+
+ # S... | https://api.github.com/repos/pandas-dev/pandas/pulls/31863 | 2020-02-11T01:12:33Z | 2020-02-22T16:11:43Z | 2020-02-22T16:11:43Z | 2020-02-22T16:38:28Z | |
DOC: Specify use of google cloud storage for CSVs | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 8bc8470ae7658..4e26ceef0af26 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -89,7 +89,7 @@
----------
filepath_or_buffer : str, path object or file-like object
Any valid string path is acceptable. The string could be a URL. Valid
- ... | - [x] 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/31860 | 2020-02-10T23:18:12Z | 2020-02-11T02:01:49Z | 2020-02-11T02:01:49Z | 2020-02-11T09:59:01Z |
REF: move loc-only methods to loc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 46017377f2b9c..36140d3213ce1 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -577,18 +577,6 @@ def __call__(self, axis=None):
new_self.axis = axis
return new_self
- def _get_label(self, label, axis: int):
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/31859 | 2020-02-10T23:07:04Z | 2020-02-17T20:01:52Z | 2020-02-17T20:01:52Z | 2020-02-17T20:06:04Z | |
REF: move Loc method that belongs on Index | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 719bf13cbd313..f5d6cc19f1332 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3101,6 +3101,16 @@ def _filter_indexer_tolerance(
# --------------------------------------------------------------------
# In... | https://api.github.com/repos/pandas-dev/pandas/pulls/31857 | 2020-02-10T21:10:49Z | 2020-02-22T16:04:39Z | 2020-02-22T16:04:39Z | 2020-02-22T19:38:00Z | |
TST: parametrize tests.indexing.test_float | diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py
index 80a4d81b20a13..7c4fe286f4416 100644
--- a/pandas/tests/indexing/test_floats.py
+++ b/pandas/tests/indexing/test_floats.py
@@ -5,6 +5,16 @@
import pandas._testing as tm
+def gen_obj(klass, index):
+ if klass is Series:... | Working on making our exception-raising more consistent, getting these tests cleaned up will make that easier. | https://api.github.com/repos/pandas-dev/pandas/pulls/31855 | 2020-02-10T20:45:41Z | 2020-02-15T00:05:05Z | 2020-02-15T00:05:05Z | 2020-02-15T01:53:31Z |
REF: make Series/DataFrame _slice always positional | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 004b92176f030..dfafb1057a543 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3498,13 +3498,11 @@ def _iget_item_cache(self, item):
def _box_item_values(self, key, values):
raise AbstractMethodError(self)
- def _sl... | ATM we have a loc/iloc kwarg that NDFrame._slice (which is in effect DataFrame._slice) ignores and always slices positionally. This makes Series._slice always slice positionally too. | https://api.github.com/repos/pandas-dev/pandas/pulls/31854 | 2020-02-10T18:08:21Z | 2020-02-11T04:12:20Z | 2020-02-11T04:12:20Z | 2020-02-11T15:44:34Z |
REF: Use nonzero in place of argwhere | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index d651fe9f67773..4e93b62a96ef2 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -1671,17 +1671,13 @@ def _do_convert_missing(self, data: DataFrame, convert_missing: bool) -> DataFra
continue
if convert_missing: # Replac... | Use nonzero to preserve 1d of Series
xref #31813
| https://api.github.com/repos/pandas-dev/pandas/pulls/31853 | 2020-02-10T16:20:16Z | 2020-02-11T04:10:18Z | 2020-02-11T04:10:18Z | 2020-07-28T14:41:36Z |
add messages to tests | diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py
index a78e4bb34e42a..f4ffcb8d0f109 100644
--- a/pandas/tests/extension/decimal/test_decimal.py
+++ b/pandas/tests/extension/decimal/test_decimal.py
@@ -148,7 +148,8 @@ class Reduce:
def check_reduce(self, s... | - [ ] xref #30999
- [ ] 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/31852 | 2020-02-10T16:17:21Z | 2020-02-19T23:19:49Z | 2020-02-19T23:19:49Z | 2020-02-19T23:19:56Z |
CLN-29547 replace old string formatting | diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx
index 2c72cec18f096..5be35c13f5737 100644
--- a/pandas/_libs/tslibs/c_timestamp.pyx
+++ b/pandas/_libs/tslibs/c_timestamp.pyx
@@ -59,10 +59,10 @@ def integer_op_not_supported(obj):
# GH#30886 using an fstring raises SystemErro... | https://api.github.com/repos/pandas-dev/pandas/pulls/31844 | 2020-02-10T06:45:14Z | 2020-02-11T15:05:34Z | null | 2020-02-12T17:25:10Z | |
BUG: Fix raw parameter not being respected in groupby.rolling.apply | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b055b44274bd8..cf33b2f8de3f3 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issu... | - [x] closes #31754
- [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/31842 | 2020-02-10T05:31:20Z | 2020-02-10T12:50:32Z | 2020-02-10T12:50:32Z | 2020-02-19T17:36:05Z |
BUG: Fix rolling.corr with time frequency | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index cf33b2f8de3f3..f4bb8c580fb08 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issue:... | - [x] closes #31789
- [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/31841 | 2020-02-10T04:25:10Z | 2020-02-10T17:51:32Z | 2020-02-10T17:51:31Z | 2020-02-19T07:40:50Z |
BUG/DEPR: loc.__setitem__ incorrectly accepting positional slices | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 44deab25db695..121db0f86f7ae 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -170,7 +170,7 @@ Deprecations
~~~~~~~~~~~~
- Lookups on a :class:`Series` with a single-item list containing a slice (e.g.... | - [x] closes #26412
- [x] closes #16121
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I plan to flesh out the tests before this goes in.
cc @toobaz | https://api.github.com/repos/pandas-dev/pandas/pulls/31840 | 2020-02-10T02:42:55Z | 2020-03-08T15:45:26Z | 2020-03-08T15:45:26Z | 2020-03-08T16:08:01Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.