title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
CLN: Remove redundant tests for .duplicated and .drop_duplicates in tests/base | diff --git a/pandas/conftest.py b/pandas/conftest.py
index dcfc523315c8b..d8f96021cdb15 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -425,6 +425,15 @@ def nselect_method(request):
return request.param
+@pytest.fixture(params=["first", "last", False])
+def keep(request):
+ """
+ Valid value... | part of #23877
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
duplicated and drop_duplicates are already thoroughly tested in `tests/indexes` and `tests/series`. I added comments to highlight the redundancy and extended the existing test... | https://api.github.com/repos/pandas-dev/pandas/pulls/32487 | 2020-03-06T10:20:17Z | 2020-03-15T00:51:19Z | 2020-03-15T00:51:19Z | 2020-03-15T00:51:49Z |
CLN: Replace isinstance(foo, Class) with isinstance(foo, ABCClass) | diff --git a/pandas/__init__.py b/pandas/__init__.py
index 2b9a461e0e95d..da016e4d966bf 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -116,6 +116,7 @@
)
from pandas.core.arrays.sparse import SparseDtype
+from pandas.core.dtypes.generic import ABCSparseArray
from pandas.tseries.api import infer_freq... | - [x] ref #27353
- [ ] 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/32485 | 2020-03-06T09:59:31Z | 2020-03-11T01:56:35Z | null | 2020-03-14T14:08:14Z |
CLN: Remove redundant index test from tests/base/test_ops.py | diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py
index c368db13b9017..b99af438d05fa 100644
--- a/pandas/tests/base/test_ops.py
+++ b/pandas/tests/base/test_ops.py
@@ -826,23 +826,6 @@ def test_access_by_position(self, indices):
with pytest.raises(IndexError, match=msg):
s... | part of #23877
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Boolean indexing is already thoroughly tested in `test_series_mask_boolean` in `tests/indexes/test_na_indexing.py` - [see here](https://github.com/pandas-dev/pandas/blob/maste... | https://api.github.com/repos/pandas-dev/pandas/pulls/32484 | 2020-03-06T09:48:04Z | 2020-03-14T20:12:54Z | 2020-03-14T20:12:54Z | 2020-03-14T20:12:58Z |
CLN: Split and fixturized test_fillna in tests/base/test_ops.py | diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py
index c368db13b9017..5fb5072e5c9d9 100644
--- a/pandas/tests/base/test_ops.py
+++ b/pandas/tests/base/test_ops.py
@@ -18,6 +18,7 @@
is_object_dtype,
needs_i8_conversion,
)
+from pandas.core.dtypes.generic import ABCMultiIndex
impor... | part of #23877
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32483 | 2020-03-06T09:23:46Z | 2020-03-11T03:53:52Z | 2020-03-11T03:53:52Z | 2020-03-11T03:54:08Z |
CLN: imports in pandas/io/excel/_base.py | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index d2f9dd285582f..f98d9501f1f73 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -1,5 +1,5 @@
import abc
-from datetime import date, datetime, timedelta
+import datetime
from io import BytesIO
import os
from textwrap import f... | - [ ] 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/32481 | 2020-03-06T08:12:48Z | 2020-03-06T19:01:12Z | 2020-03-06T19:01:12Z | 2020-03-07T11:00:43Z |
BUG: Fix issue with datetime[ns, tz] input in Block.setitem GH32395 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index a3499f857d158..96cb64e1ffb0e 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -726,6 +726,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc.__setitem__` creating a new array instead of overwriting ``Categor... | - [x] closes #32395
- [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/32479 | 2020-03-06T03:08:40Z | 2020-05-25T17:39:42Z | 2020-05-25T17:39:42Z | 2020-05-25T19:29:50Z |
Made apt changes to pandas.Series.str.replace() | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 3be9c5fcdfb26..c4bdbaff1649c 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -572,7 +572,7 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True):
r"""
Replace occurrences of pattern/regex in the Series/In... | - [x] closes #31225
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/32478 | 2020-03-06T02:14:16Z | 2020-03-06T15:25:33Z | 2020-03-06T15:25:33Z | 2020-03-20T03:20:23Z |
BUG: iloc.__setitem__ with duplicate columns | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index e745bf3f5feed..6c0ad313350ed 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -262,7 +262,7 @@ Indexing
- Bug in :meth:`Series.xs` incorrectly returning ``Timestamp`` instead of ``datetime64`` in some ... | - [x] closes #15686
- [x] closes #22036
- [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/32477 | 2020-03-06T00:33:41Z | 2020-03-11T02:35:22Z | 2020-03-11T02:35:21Z | 2020-03-11T02:38:32Z |
ENH: implement ExtensionIndex.insert | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index cef8a39d75a4c..76bb8db8de531 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5197,9 +5197,11 @@ def insert(self, loc: int, item):
-------
new_index : Index
"""
- _self = np.asarr... | Sort of. | https://api.github.com/repos/pandas-dev/pandas/pulls/32476 | 2020-03-06T00:03:26Z | 2020-03-14T16:34:48Z | 2020-03-14T16:34:48Z | 2020-03-14T16:46:23Z |
CLN: assorted cleanups, annotations | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 7bd02b734beeb..457f3eb0749c2 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1167,7 +1167,7 @@ class Timedelta(_Timedelta):
Possible values:
- * 'Y', 'M', 'W', 'D',... | https://api.github.com/repos/pandas-dev/pandas/pulls/32475 | 2020-03-05T23:59:41Z | 2020-03-07T10:31:16Z | 2020-03-07T10:31:16Z | 2020-03-09T17:05:56Z | |
CLN: remove unreachable _internal_get_values in blocks | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 70fd3ecdc2098..c088b7020927b 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -3144,14 +3144,15 @@ def _safe_reshape(arr, new_shape):
return arr
-def _putmask_smart(v, mask, n):
+def _putma... | _putmask_smart is only called from Block.putmask, which ExtensionBlock overrides. | https://api.github.com/repos/pandas-dev/pandas/pulls/32472 | 2020-03-05T21:16:25Z | 2020-03-07T11:02:48Z | 2020-03-07T11:02:48Z | 2020-03-07T15:14:48Z |
CLN: use _values_for_argsort for join_non_unique, join_monotonic | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 40a169d03f39c..71a3ccfb64024 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1494,7 +1494,7 @@ def check_for_ordered(self, op):
)
def _values_for_argsort(self):
- ... | With the `.copy()` removed from `Categorical._values_for_argsort`, `ea_backed_index._data._values_for_argsort()` matches `ea_backed_index._ndarray_values` in all extant cases.
cc @jorisvandenbossche @TomAugspurger need to confirm
a) this is an intended-adjacent use of _values_for_argsort, and not just a coincide... | https://api.github.com/repos/pandas-dev/pandas/pulls/32467 | 2020-03-05T18:29:29Z | 2020-03-11T02:13:24Z | 2020-03-11T02:13:24Z | 2020-03-13T15:53:19Z |
TST: Fixed xfail for tests in pandas/tests/tseries/offsets/test_offsets_properties.py | diff --git a/pandas/tests/tseries/offsets/test_offsets_properties.py b/pandas/tests/tseries/offsets/test_offsets_properties.py
index 716d3ff3faf1c..6e01c83c725bf 100644
--- a/pandas/tests/tseries/offsets/test_offsets_properties.py
+++ b/pandas/tests/tseries/offsets/test_offsets_properties.py
@@ -85,8 +85,6 @@
# Offset... | - [x] ref https://github.com/pandas-dev/pandas/pull/32459#issuecomment-595277125
- [ ] 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/32465 | 2020-03-05T16:08:18Z | 2020-06-14T17:27:09Z | null | 2021-05-03T12:29:04Z |
Disallow .__call__() as workaround for non-named functions | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 84ad478226175..58aab96aa95eb 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -784,6 +784,7 @@ Reshaping
- Bug in :func:`concat` was not allowing for concatenation of ``DataFrame`` and ``Series`` with ... | Currently this script:
```python
import pandas as pd
funcs = [lambda: 1]
pd.eval("funcs[0]()")
```
Fails with:
TypeError: Only named functions are supported
however this can easily be worked around by adding `.__call__`:
```python
pd.eval("funcs[0].__call__()")
```
I'm assuming we don't want t... | https://api.github.com/repos/pandas-dev/pandas/pulls/32460 | 2020-03-05T12:07:04Z | 2020-05-13T15:53:45Z | 2020-05-13T15:53:44Z | 2020-05-13T15:53:48Z |
CLN: Using clearer imports | diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx
index dfe050c7bbff7..a48c3365947dc 100644
--- a/pandas/_libs/tslibs/strptime.pyx
+++ b/pandas/_libs/tslibs/strptime.pyx
@@ -4,7 +4,7 @@ import time
import locale
import calendar
import re
-from datetime import date as datetime_date
+imp... | - [ ] 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/32459 | 2020-03-05T11:39:44Z | 2020-03-19T00:09:46Z | 2020-03-19T00:09:46Z | 2020-03-24T13:58:11Z |
CLN: Removed unused variable | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 437406cbbd819..8374934ece2fe 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -367,11 +367,9 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):
cdef:
int64_t cur_blkno
Py_ssize_t i, s... | I can't see the reason for ```res_view``` to exist, the CI should tell me if I am wrong.
Also this is removing one warning when compiling ```pandas/_libs/internals.pyx```
This is the warning that is removing:
```
pandas/_libs/internals.c:8952:36: warning: ‘__pyx_t_23’ may be used uninitialized in this functio... | https://api.github.com/repos/pandas-dev/pandas/pulls/32458 | 2020-03-05T11:20:26Z | 2020-03-06T16:54:37Z | null | 2020-03-14T14:07:03Z |
Backport PR #32444 on branch 1.0.x (CI: ax.rowNum and ax.colNum attributes deprecated in Matplotlib 3.2) | diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py
index dd4034a97f58e..aa5516894c7e3 100644
--- a/pandas/plotting/_matplotlib/tools.py
+++ b/pandas/plotting/_matplotlib/tools.py
@@ -9,6 +9,8 @@
from pandas.core.dtypes.common import is_list_like
from pandas.core.dtypes.generic im... | Backport PR #32444: CI: ax.rowNum and ax.colNum attributes deprecated in Matplotlib 3.2 | https://api.github.com/repos/pandas-dev/pandas/pulls/32456 | 2020-03-05T10:11:04Z | 2020-03-05T10:45:00Z | 2020-03-05T10:45:00Z | 2020-03-05T10:45:00Z |
VIZ: Fixing Matplotlib depecation warnings for ax.rowNum and ax.colNum | diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py
index 5743288982da4..1951f7dea2de8 100644
--- a/pandas/plotting/_matplotlib/tools.py
+++ b/pandas/plotting/_matplotlib/tools.py
@@ -295,13 +295,19 @@ def _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey):
... | - [X] xref #32444
Fixing the deprecation warning in the docs (testing if we really need to be compatible with the old syntax) | https://api.github.com/repos/pandas-dev/pandas/pulls/32455 | 2020-03-05T08:20:17Z | 2020-03-05T08:37:01Z | null | 2020-03-05T08:37:01Z |
DEPS: Removing snappy from local/docs dependencies | diff --git a/environment.yml b/environment.yml
index cbdaf8e6c4217..ed381fc9d3529 100644
--- a/environment.yml
+++ b/environment.yml
@@ -94,7 +94,6 @@ dependencies:
- fastparquet>=0.3.2 # pandas.read_parquet, DataFrame.to_parquet
- pyarrow>=0.13.1 # pandas.read_parquet, DataFrame.to_parquet, pandas.read_feath... | - [X] xref #32417
The docs build should fail if snappy is required to build the docs, and should point out where it's being used. If it's not failed, I think this can be merged and we can remove snappy from the local and docs dependencies.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32454 | 2020-03-05T07:54:10Z | 2020-03-09T20:47:22Z | null | 2020-03-09T20:47:23Z |
CLN: avoid _ndarray_values, values in MultiIndex | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index c1efa512f326a..c22b289bb4017 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -18,7 +18,7 @@
from pandas._libs import algos as libalgos, index as libindex, lib
from pandas._libs.hashtable import duplicated_... | There are a couple of places in MultiIndex left after this that are a little trickier, will do in a separate pass. | https://api.github.com/repos/pandas-dev/pandas/pulls/32452 | 2020-03-05T00:36:55Z | 2020-03-08T15:40:35Z | 2020-03-08T15:40:35Z | 2020-04-05T17:45:35Z |
TST/VIZ: add test for legend colors for DataFrame with duplicate column labels #11136 | diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py
index ffbd135466709..32673b9a0a5cf 100644
--- a/pandas/tests/plotting/test_frame.py
+++ b/pandas/tests/plotting/test_frame.py
@@ -3316,6 +3316,16 @@ def test_missing_markers_legend_using_style(self):
self._check_legend_label... | - [X] closes #11136
- [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/32451 | 2020-03-04T23:16:33Z | 2020-03-12T04:52:30Z | 2020-03-12T04:52:29Z | 2020-03-12T04:52:36Z |
CI: Fix flaky test_value_counts_null | diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py
index 8f48d0a3e8378..f1cc98a1b773d 100644
--- a/pandas/tests/base/test_ops.py
+++ b/pandas/tests/base/test_ops.py
@@ -311,9 +311,10 @@ def test_value_counts(self, index_or_series_obj):
if isinstance(obj, pd.MultiIndex):
exp... | As mentioned by @simonjayhawkins in #32438
Trace of the failing test:
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=29965&view=logs&j=077026cf-93c0-54aa-45e0-9996ba75f6f7&t=e95cf409-86ae-5b4d-6c5f-79395ef75e8f | https://api.github.com/repos/pandas-dev/pandas/pulls/32449 | 2020-03-04T21:21:24Z | 2020-03-07T09:40:10Z | 2020-03-07T09:40:10Z | 2020-03-09T19:32:12Z |
Backport PR #32442 on branch 1.0.x (CI: fix test_matplotlib_scatter_datetime64) | diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py
index e7855068334f7..f2c5032112bc9 100644
--- a/pandas/plotting/_matplotlib/compat.py
+++ b/pandas/plotting/_matplotlib/compat.py
@@ -20,3 +20,4 @@ def inner():
_mpl_ge_2_2_3 = _mpl_version("2.2.3", operator.ge)
_mpl_ge_3_0_0 =... | Backport PR #32442: CI: fix test_matplotlib_scatter_datetime64 | https://api.github.com/repos/pandas-dev/pandas/pulls/32445 | 2020-03-04T19:12:19Z | 2020-03-04T20:03:13Z | 2020-03-04T20:03:13Z | 2020-03-04T20:03:13Z |
CI: ax.rowNum and ax.colNum attributes deprecated in Matplotlib 3.2 | diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py
index 5743288982da4..08d945f679810 100644
--- a/pandas/plotting/_matplotlib/tools.py
+++ b/pandas/plotting/_matplotlib/tools.py
@@ -9,6 +9,8 @@
from pandas.core.dtypes.common import is_list_like
from pandas.core.dtypes.generic im... | https://github.com/pandas-dev/pandas/pull/32442/checks?check_run_id=485569958 | https://api.github.com/repos/pandas-dev/pandas/pulls/32444 | 2020-03-04T18:21:01Z | 2020-03-05T10:10:35Z | 2020-03-05T10:10:35Z | 2020-03-05T10:12:00Z |
CI: fix test_matplotlib_scatter_datetime64 | diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py
index e7855068334f7..f2c5032112bc9 100644
--- a/pandas/plotting/_matplotlib/compat.py
+++ b/pandas/plotting/_matplotlib/compat.py
@@ -20,3 +20,4 @@ def inner():
_mpl_ge_2_2_3 = _mpl_version("2.2.3", operator.ge)
_mpl_ge_3_0_0 =... | - [ ] closes #32440
- [ ] 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/32442 | 2020-03-04T17:29:27Z | 2020-03-04T19:11:38Z | 2020-03-04T19:11:38Z | 2020-03-04T19:14:42Z |
DOC: Fix capitalization of the word pandas in the docs | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 1b223cf5f026b..fa7532a68a06d 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -21,9 +21,9 @@ Patterns
foo.__class__
-------------
-*pandas* uses 'type(foo)' instead 'foo.... | - [x] closes #32316
- [x] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
As stated in the referred issue, _pandas_ reference in the docs should be standardised to pandas, not *pandas* or Pandas.
I've only changed the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32439 | 2020-03-04T17:09:20Z | 2020-03-12T04:49:24Z | 2020-03-12T04:49:24Z | 2020-03-12T04:49:31Z |
CI: mypy fixup for #32261 | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 7320a6407b248..f6e79a0f2045d 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -122,6 +122,9 @@ class BlockManager(PandasObject):
"_blklocs",
]
+ _blknos: np.ndarray
+ _... | https://github.com/pandas-dev/pandas/runs/485121000 | https://api.github.com/repos/pandas-dev/pandas/pulls/32438 | 2020-03-04T17:07:29Z | 2020-03-04T22:24:39Z | 2020-03-04T22:24:39Z | 2020-03-05T10:13:15Z |
DOC: correct issue number for PR #32424 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5310419bfc100..44deab25db695 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -234,7 +234,7 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :class:`Series` construction from NumPy array with big-endian ``d... | xref #32424
| https://api.github.com/repos/pandas-dev/pandas/pulls/32436 | 2020-03-04T16:37:55Z | 2020-03-05T11:23:34Z | 2020-03-05T11:23:34Z | 2020-03-05T11:26:32Z |
DOC: Fix EX02 in pandas.Index.get_loc | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 173a83103b8ad..70a0e29b0494c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2844,7 +2844,7 @@ def get_loc(self, key, method=None, tolerance=None):
>>> non_monotonic_index = pd.Index(list('abcb'))
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Related to #27977.
```
################################################################################
################################## Vali... | https://api.github.com/repos/pandas-dev/pandas/pulls/32429 | 2020-03-04T09:39:27Z | 2020-03-04T16:22:05Z | 2020-03-04T16:22:05Z | 2020-03-04T16:22:17Z |
WIP: ENH: Add engine keyword argument to groupby.apply to leverage Numba | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index fb935c9065b83..c90da5c4001f2 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -223,8 +223,10 @@ def _selection_name(self):
input="series", examples=_apply_docs["series_examples"]
)... | - [x] closes #31845
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32428 | 2020-03-04T08:39:03Z | 2020-03-14T04:05:03Z | null | 2020-04-21T16:30:48Z |
CLN: avoid _internal_get_values in groupby.generic | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index fb935c9065b83..ac522fc7863b2 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -589,7 +589,7 @@ def nunique(self, dropna: bool = True) -> Series:
"""
ids, _, _ = self.grouper.group_info... | xref #27165, #27167 | https://api.github.com/repos/pandas-dev/pandas/pulls/32427 | 2020-03-04T04:19:38Z | 2020-03-05T10:49:42Z | 2020-03-05T10:49:42Z | 2020-03-05T15:00:17Z |
CLN: avoid values_from_object in Series | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index cd5d81bc70dd9..4fcefd5c32b6b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -77,6 +77,7 @@
ensure_platform_int,
infer_dtype_from_object,
is_bool_dtype,
+ is_datetime64_any_dtype,
is_dict_like,
is_dtype_equal,
... | xref #32422, #32419 | https://api.github.com/repos/pandas-dev/pandas/pulls/32426 | 2020-03-04T00:59:24Z | 2020-03-11T02:29:35Z | 2020-03-11T02:29:35Z | 2020-04-24T14:59:13Z |
BUG: Fix DataFrame.apply(..., raw=True) not calling with raw array | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 57c53f73962dc..618b244dede4d 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -328,6 +328,7 @@ Reshaping
- :meth:`DataFrame.pivot` can now take lists for ``index`` and ``columns`` arguments (:issue:`21... | - [x] closes https://github.com/pandas-dev/pandas/issues/32423
- [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/32425 | 2020-03-03T23:37:50Z | 2020-03-14T20:21:12Z | 2020-03-14T20:21:12Z | 2020-03-16T09:25:35Z |
Fix BUG: overflow on pd.Timedelta(nanoseconds=) constructor | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 57c53f73962dc..2e805e725c7b2 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -234,7 +234,7 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :class:`Series` construction from NumPy array with big-endian ``d... | Add regression test
- [x] closes #32402
- [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/32424 | 2020-03-03T22:24:14Z | 2020-03-04T14:22:36Z | 2020-03-04T14:22:36Z | 2020-03-04T15:43:52Z |
CLN: avoid values_from_object in NDFrame | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f7eb79a4f1c78..93b79627ee2e4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1327,7 +1327,7 @@ def equals(self, other):
# Unary Methods
def __neg__(self):
- values = com.values_from_object(self)
+ values = ... | xref #32419 | https://api.github.com/repos/pandas-dev/pandas/pulls/32422 | 2020-03-03T21:20:54Z | 2020-03-04T14:07:57Z | 2020-03-04T14:07:57Z | 2020-04-05T17:45:35Z |
TYP: enforce annotation on SingleBlockManager.__init__ | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 98afc5ac3a0e3..c59499e1bee5c 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -3,12 +3,12 @@
import itertools
import operator
import re
-from typing import Dict, List, Optional, Sequence,... | cc @simonjayhawkins my impression from yesterday's threads was that mypy should be catching the wrong-type being passed in `SingleBlockManager.__init__`, did I misunderstand something?
Also (and I know ive asked before) is there a nice way to annotate the return type as "same type as self"? I tried `pandas._typing.... | https://api.github.com/repos/pandas-dev/pandas/pulls/32421 | 2020-03-03T20:18:58Z | 2020-03-11T02:32:11Z | 2020-03-11T02:32:11Z | 2020-03-11T14:07:31Z |
ENH: Categorical.fillna allow Categorical/ndarray | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index f9059054ba59f..1a51101bc8db8 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -11,6 +11,7 @@
from pandas._libs import Timestamp, algos, hashtable as htable, lib
from pandas._libs.tslib import iNaT
+from pandas._typing ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #32414.
cc @TomAugspurger ATM the new test implemented in tests.arrays.categorical.test_missing is failing on the ndarray case for reasons th... | https://api.github.com/repos/pandas-dev/pandas/pulls/32420 | 2020-03-03T20:03:02Z | 2020-03-14T16:47:45Z | 2020-03-14T16:47:45Z | 2020-03-14T16:52:48Z |
CLN: move away from .values, _ndarray_values | diff --git a/pandas/_testing.py b/pandas/_testing.py
index b0f18cb6fdd39..33ec4e4886aa6 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -706,11 +706,11 @@ def _get_ilevel_values(index, level):
if isinstance(left, pd.PeriodIndex) or isinstance(right, pd.PeriodIndex):
assert_attr_equal("freq", l... | Also _values_from_object and _internal_get_values, though none of those made it into this PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/32419 | 2020-03-03T19:51:04Z | 2020-03-04T14:14:20Z | 2020-03-04T14:14:20Z | 2020-03-04T15:08:21Z |
`_ensure_type` should use `issubclass` | diff --git a/pandas/core/base.py b/pandas/core/base.py
index f55d9f905945d..40ca70ec7973a 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -93,7 +93,7 @@ def _ensure_type(self: T, obj) -> T:
Used by type checkers.
"""
- assert isinstance(obj, type(self)), type(obj)
+ asser... | Commit pandas-dev/pandas@6fd326d5a249967f9b6be60fc3c5f7366d914684 in pull request pandas-dev/pandas#30613 added `_ensure_type`, which utilizes `isinstance`. However, it is reasonable to assume that someone may want to create a DataFrame subclass. Therefore, `_ensure_type` should use `issubclass`.
- [x] closes #31925... | https://api.github.com/repos/pandas-dev/pandas/pulls/32416 | 2020-03-03T18:12:19Z | 2020-03-13T17:37:26Z | null | 2020-03-13T17:37:26Z |
BUG: fixes plotting with nullable integers (#32073) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 57c53f73962dc..75d0512547ad5 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -306,8 +306,8 @@ Plotting
^^^^^^^^
- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`).
--
- Bu... | - [x] closes #32073
- [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/32410 | 2020-03-03T13:33:42Z | 2020-05-08T16:07:38Z | null | 2020-05-08T16:07:39Z |
Properly handle missing attributes in query/eval strings | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 97a7f22df3985..15dec55bb86f8 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -500,6 +500,7 @@ Other
- Bug in :meth:`DataFrame.to_records` incorrectly losing timezone information in timezone-aware ``da... | Consider this script:
```python
import pandas as pd
pd.eval("pd.thing")
```
Currently it raises an error like this:
```
File "/home/alex/work/pandas/pandas/core/computation/expr.py", line 640, in visit_Attribute
raise ValueError(f"Invalid Attribute context {ctx.__name__}")
AttributeError: 'Load' ... | https://api.github.com/repos/pandas-dev/pandas/pulls/32408 | 2020-03-03T11:33:08Z | 2020-04-10T19:30:56Z | 2020-04-10T19:30:55Z | 2020-04-10T19:31:01Z |
CLN: remove is_period_arraylike, is_datetime_arraylike | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index df5bac1071985..1afe7edf2641b 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -7,7 +7,7 @@
import numpy as np
-from pandas._libs import algos, lib
+from pandas._libs import algos
from pandas._libs.tslibs ... | There are better alternatives | https://api.github.com/repos/pandas-dev/pandas/pulls/32406 | 2020-03-03T04:04:22Z | 2020-03-07T10:33:24Z | 2020-03-07T10:33:24Z | 2020-03-07T15:11:18Z |
CLN: remove unreachable branch in Index._union | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ceb3f26a0526a..00e662fae4991 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -32,7 +32,6 @@
is_categorical,
is_categorical_dtype,
is_datetime64_any_dtype,
- is_datetime64tz_dtype,
is_dtype_e... | https://api.github.com/repos/pandas-dev/pandas/pulls/32405 | 2020-03-03T03:20:40Z | 2020-03-03T16:11:54Z | 2020-03-03T16:11:54Z | 2020-03-03T16:12:34Z | |
Add missing newline | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ceb3f26a0526a..af6cbd0e95ec1 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4817,6 +4817,7 @@ def isin(self, values, level=None):
Int64Index([1, 2, 3], dtype='int64')
Check whether each index... | The line ">>> idx.isin([1, 4]) array([ True, False, False])" is was not rendered properly, because it was missing a newline above it.
https://pandas.pydata.org/docs/reference/api/pandas.Index.isin.html
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/mas... | https://api.github.com/repos/pandas-dev/pandas/pulls/32404 | 2020-03-03T02:19:04Z | 2020-03-03T03:49:54Z | 2020-03-03T03:49:54Z | 2020-03-03T03:51:41Z |
TYP: internals | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 34fa4c0e6544e..7592fbdc93af4 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -11,6 +11,7 @@
import pandas._libs.internals as libinternals
from pandas._libs.tslibs import Timedelta, conversion
fr... | some of these are a real bear, in particular `SingleBlockManager.__init__` | https://api.github.com/repos/pandas-dev/pandas/pulls/32403 | 2020-03-02T23:43:42Z | 2020-03-03T13:32:41Z | 2020-03-03T13:32:41Z | 2020-03-03T15:43:27Z |
HDFStore: Fix empty result of keys() method on non-pandas hdf5 file | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 21e59805fa143..c00c5ac867f38 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -340,6 +340,7 @@ I/O
- Bug in :class:`HDFStore` that caused it to set to ``int64`` the dtype of a ``datetime64`` column whe... | First try to get pandas style tables, if there are none, return the list of non-pandas (hdf5 native) tables in the file (if any)
- [x] closes #29916
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32401 | 2020-03-02T23:26:12Z | 2020-06-14T15:32:10Z | null | 2020-06-14T15:32:11Z |
CLN: remove unused values from interpolate call | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 890c0540d9851..a82708e5e7602 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6799,7 +6799,6 @@ def interpolate(
method=method,
axis=ax,
index=index,
- values=_maybe_transposed_self,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32400 | 2020-03-02T23:21:24Z | 2020-03-03T02:58:53Z | 2020-03-03T02:58:52Z | 2020-03-03T03:01:35Z | |
Backport PR #32104 on branch 1.0.x (BUG: Pickle NA objects) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1b6098e6b6ac1..808e6ae709ce9 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -74,6 +74,7 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | Backport PR #32104: BUG: Pickle NA objects | https://api.github.com/repos/pandas-dev/pandas/pulls/32399 | 2020-03-02T23:21:19Z | 2020-03-03T01:27:02Z | 2020-03-03T01:27:02Z | 2020-03-03T01:27:02Z |
CLN: Avoid unnecessary values_from_object | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 7a18429f21a18..61d6a660a0357 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -100,11 +100,9 @@ def values_from_object(obj: object):
"""
func: object
- if getattr(obj, '_typ', '') == 'dataframe':
- return obj.values
-
... | xref #27165. | https://api.github.com/repos/pandas-dev/pandas/pulls/32398 | 2020-03-02T19:57:40Z | 2020-03-03T01:36:19Z | 2020-03-03T01:36:19Z | 2020-03-03T01:51:08Z |
TST: add message check to pytest.raises (tests/arrays/test_boolean.py) | diff --git a/pandas/tests/arrays/test_boolean.py b/pandas/tests/arrays/test_boolean.py
index d14d6f3ff0c41..f4b466f4804c7 100644
--- a/pandas/tests/arrays/test_boolean.py
+++ b/pandas/tests/arrays/test_boolean.py
@@ -248,7 +248,11 @@ def test_coerce_to_numpy_array():
tm.assert_numpy_array_equal(result, expected)
... | - [x] ref #30999
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Added in an error message
| https://api.github.com/repos/pandas-dev/pandas/pulls/32397 | 2020-03-02T17:13:06Z | 2020-03-03T12:31:31Z | 2020-03-03T12:31:31Z | 2020-03-03T12:58:21Z |
Added figsize for autocorrelation_plot and lag_plot (#31650) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 21e59805fa143..5794a2a6a1cd9 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -346,9 +346,8 @@ Plotting
^^^^^^^^
- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`).
--
- Bu... | - closes #31650
- Passed pandas.tests.plotting.test_misc.py
- Now creating new axes with "fig, ax = plt.subplots(1, 1, figsize=figsize)"
- Also changed plotting.lag_plot regarding the same issue
- Figure size is only changed if no axis parameter is given
| https://api.github.com/repos/pandas-dev/pandas/pulls/32396 | 2020-03-02T17:03:21Z | 2020-07-17T11:24:05Z | null | 2023-05-11T01:19:33Z |
DOC: change link to contributing guide in README.md | diff --git a/README.md b/README.md
index 5342eda4390eb..d66a5bc4a7ef1 100644
--- a/README.md
+++ b/README.md
@@ -158,7 +158,7 @@ Most development discussion is taking place on github in this repo. Further, the
All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.
... | xref https://github.com/pandas-dev/pandas/pull/32068#issuecomment-593362224 | https://api.github.com/repos/pandas-dev/pandas/pulls/32393 | 2020-03-02T11:47:08Z | 2020-04-08T10:32:14Z | 2020-04-08T10:32:14Z | 2020-04-13T14:39:34Z |
DOC: Reorganize Getting Started documentation pages | diff --git a/doc/redirects.csv b/doc/redirects.csv
index ef93955c14fe6..a6db4dd975a35 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -7,13 +7,10 @@ release,whatsnew/index
# getting started
install,getting_started/install
-10min,getting_started/10min
-basics,getting_started/basics
comparison_with_r,getti... | - [x] closes #32308
Issue Related:
- `getting_started/index.html` removes `10 minutes to pandas`, `Essential basic functionality` and `Intro to data structures` from the toctree and moves them as links in `user_guide/index.html`
- `getting_started/tutorials.html` now only references community tutorials
- the pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/32389 | 2020-03-02T07:24:43Z | 2020-03-11T22:15:22Z | 2020-03-11T22:15:21Z | 2020-03-11T22:22:19Z |
Create CITATION.md | diff --git a/CITATION.md b/CITATION.md
new file mode 100644
index 0000000000000..46a901b392da2
--- /dev/null
+++ b/CITATION.md
@@ -0,0 +1,49 @@
+# Citing and logo
+
+## Citing pandas
+
+If you use *pandas* for a scientific publication, we would appreciate citations to the published software and one of the two given pap... | Addresses #24036 by adding a `CITATION.md` file to the repository.
I copied the citation instructions from here: https://pandas.io/about/citing.html
and added a section for the published software on Zenodo. Following [this recommendation](https://github.com/sherpa/sherpa/pull/634#issuecomment-553668211), I did this... | https://api.github.com/repos/pandas-dev/pandas/pulls/32388 | 2020-03-01T19:29:10Z | 2020-03-31T17:39:44Z | null | 2020-03-31T17:39:44Z |
Plotting Int64 columns with nulled integers (NAType) fails #32073 | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1b6098e6b6ac1..808e6ae709ce9 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -74,6 +74,7 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | - [x] closes #32073
- [ ] 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/32387 | 2020-03-01T18:08:35Z | 2020-03-03T10:48:21Z | null | 2020-03-03T10:48:21Z |
BUG: Fix rolling functions with variable windows on decreasing index | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1b6098e6b6ac1..fae41953a6371 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -83,6 +83,10 @@ Bug fixes
- Fixed bug where :meth:`GroupBy.first` and :meth:`GroupBy.last` would raise a ``TypeError`` when... | - [x] Closes https://github.com/pandas-dev/pandas/issues/32385
- [x] tests updated & 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/32386 | 2020-03-01T15:52:32Z | 2020-03-11T01:51:04Z | 2020-03-11T01:51:03Z | 2020-03-11T01:54:20Z |
DOC: Minor typo fixes for code style guide | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 17f8783f71bfb..1b223cf5f026b 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -21,7 +21,7 @@ Patterns
foo.__class__
-------------
-*pandas* uses 'type(foo)' instead 'foo.... | https://api.github.com/repos/pandas-dev/pandas/pulls/32379 | 2020-02-29T21:37:38Z | 2020-03-01T02:24:44Z | 2020-03-01T02:24:44Z | 2020-03-01T02:24:51Z | |
DOC: Minor typo fixes for code style guide | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 17f8783f71bfb..1b223cf5f026b 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -21,7 +21,7 @@ Patterns
foo.__class__
-------------
-*pandas* uses 'type(foo)' instead 'foo.... | https://api.github.com/repos/pandas-dev/pandas/pulls/32378 | 2020-02-29T21:27:25Z | 2020-02-29T21:34:29Z | null | 2020-02-29T21:34:29Z | |
ENH: infer freq in timedelta_range | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0f18a1fd81815..999dee83cf7e0 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -66,6 +66,7 @@ Other enhancements
- :class:`Styler` may now render CSS more efficiently where multiple cells have the same ... | Step in the direction of #31195. | https://api.github.com/repos/pandas-dev/pandas/pulls/32377 | 2020-02-29T21:24:08Z | 2020-03-03T01:44:14Z | 2020-03-03T01:44:14Z | 2020-03-03T12:57:33Z |
TYP: annotations for internals, set_axis | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f515b57e24cfa..61715397e8e0b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3599,7 +3599,7 @@ def align(
see_also_sub=" or columns",
)
@Appender(NDFrame.set_axis.__doc__)
- def set_axis(self, labels, axis=0, inplace=F... | https://api.github.com/repos/pandas-dev/pandas/pulls/32376 | 2020-02-29T20:40:04Z | 2020-03-02T17:27:46Z | 2020-03-02T17:27:46Z | 2020-03-02T17:32:28Z | |
REF/TST: misplaced DataFrame.join tests | diff --git a/pandas/tests/frame/test_combine_concat.py b/pandas/tests/frame/test_combine_concat.py
index 321eb5fe94daf..7eba2b873c4f4 100644
--- a/pandas/tests/frame/test_combine_concat.py
+++ b/pandas/tests/frame/test_combine_concat.py
@@ -8,7 +8,7 @@
import pandas._testing as tm
-class TestDataFrameConcatCommon:... | https://api.github.com/repos/pandas-dev/pandas/pulls/32375 | 2020-02-29T20:20:16Z | 2020-03-02T17:47:09Z | 2020-03-02T17:47:09Z | 2020-03-02T17:52:13Z | |
REF: collect+parametrize reorder_levels tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index be44e6c2b36da..d6b9576d7729f 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1057,3 +1057,17 @@ def index_or_series_obj(request):
copy to avoid mutation, e.g. setting .name
"""
return _index_or_series_objs[request.param].copy(deep=Tr... | https://api.github.com/repos/pandas-dev/pandas/pulls/32373 | 2020-02-29T18:58:41Z | 2020-03-02T11:18:37Z | 2020-03-02T11:18:36Z | 2020-03-02T15:30:15Z | |
TYP/CLN: Optional[Hashable] -> pandas._typing.Label | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 61641bfb24293..60d89b2076e92 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -890,7 +890,7 @@ def style(self) -> "Styler":
"""
@Appender(_shared_docs["items"])
- def items(self) -> Iterable[Tuple[Optional[Hashable], Series... | https://api.github.com/repos/pandas-dev/pandas/pulls/32371 | 2020-02-29T17:16:02Z | 2020-03-06T07:12:48Z | 2020-03-06T07:12:48Z | 2020-03-06T07:13:20Z | |
PR #32068 follow up - Print merged df result in doc | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index 8302b5c5dea60..49f4bbb6beb19 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -742,7 +742,7 @@ as shown in the following example.
)
ser
- result = pd.merge(df, ser.reset_index(),... | - [x] follow up to PR #32068 which closed #12550 - small fix - see https://github.com/pandas-dev/pandas/pull/32068#discussion_r386029773
| https://api.github.com/repos/pandas-dev/pandas/pulls/32370 | 2020-02-29T14:47:52Z | 2020-02-29T17:17:48Z | 2020-02-29T17:17:48Z | 2020-02-29T19:10:05Z |
CLN: Some code cleanups in pandas/_libs/parsers.pyx | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 3a42a64046abd..4f7d75e0aaad6 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1596,8 +1596,6 @@ cdef _categorical_convert(parser_t *parser, int64_t col,
cdef _to_fw_string(parser_t *parser, int64_t col, int64_t line_start,
... | There are __a lot__ of cdef unused variables in ```pandas/_libs/parsers.pyx``` this PR is covering *some* of the unused variables.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32369 | 2020-02-29T14:20:09Z | 2020-03-16T23:55:58Z | 2020-03-16T23:55:58Z | 2020-03-20T00:06:43Z |
Silence warnings when compiling pandas/_libs/parsers.pyx | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 3077f73a8d1a4..2fd227694800c 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -701,7 +701,7 @@ cdef class TextReader:
char *word
object name, old_name
int status
- uint64_t hr,... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is getting rid of this warning:
```
pandas/_libs/parsers.c: In function ‘__pyx_f_6pandas_5_libs_7parsers_10TextReader__get_header’:
pandas/_l... | https://api.github.com/repos/pandas-dev/pandas/pulls/32368 | 2020-02-29T13:59:09Z | 2020-02-29T18:04:07Z | 2020-02-29T18:04:07Z | 2020-03-05T09:42:13Z |
CLN: some code cleanups to pandas/_libs/missing.pyx | diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx
index 4d17a6f883c1c..b0a24a9b2ebfe 100644
--- a/pandas/_libs/missing.pyx
+++ b/pandas/_libs/missing.pyx
@@ -10,10 +10,13 @@ cnp.import_array()
cimport pandas._libs.util as util
-from pandas._libs.tslibs.np_datetime cimport (
- get_timedelta64_valu... | - [ ] 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/32367 | 2020-02-29T13:43:43Z | 2020-03-03T03:00:27Z | 2020-03-03T03:00:27Z | 2020-03-05T10:12:19Z |
Backport PR #32284 on branch 1.0.x (CI: nested DataFrames in npdev) | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index ea1e339f44d93..61af02090f7db 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -9,6 +9,7 @@
import pytest
from pandas.compat import is_platform_little_endian
+from... | Backport PR #32284: CI: nested DataFrames in npdev | https://api.github.com/repos/pandas-dev/pandas/pulls/32366 | 2020-02-29T13:38:41Z | 2020-02-29T14:42:25Z | 2020-02-29T14:42:25Z | 2020-02-29T14:42:26Z |
CLN: Replaced "bool_t" with "builtins.bool" | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 866b58c1ffe3d..1b9cddab0df29 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1,3 +1,4 @@
+import builtins
import collections
from datetime import timedelta
import functools
@@ -154,9 +155,6 @@ def _single_replace(self, to_replace... | - [ ] 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/32365 | 2020-02-29T12:58:10Z | 2020-03-11T15:43:50Z | null | 2020-03-14T14:08:43Z |
TST: Removed import of itertools | diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py
index c402ca194648f..83080aa98648f 100644
--- a/pandas/tests/groupby/test_function.py
+++ b/pandas/tests/groupby/test_function.py
@@ -1,7 +1,6 @@
import builtins
import datetime as dt
from io import StringIO
-from itertools im... | - [ ] 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/32364 | 2020-02-29T12:27:05Z | 2020-03-07T12:01:24Z | 2020-03-07T12:01:24Z | 2020-03-07T12:09:19Z |
TYP/cln: generic._make_*_function | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f7eb79a4f1c78..e36eace1e42e6 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9899,37 +9899,37 @@ def _add_numeric_operations(cls):
"""
Add the operations to the cls; evaluate the doc strings again
"""
- ... | Give calls to these funcs named parameters for better clarity + type up the make_stats functions.
| https://api.github.com/repos/pandas-dev/pandas/pulls/32363 | 2020-02-29T08:57:49Z | 2020-03-04T08:19:31Z | 2020-03-04T08:19:31Z | 2020-03-04T08:53:31Z |
DOC: Fixed errors in pandas.DataFrame.asfreq PR07, RT02, RT03, SA04 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e6c5ac9dbf733..1ec5391a2d00f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7485,6 +7485,7 @@ def asfreq(
Parameters
----------
freq : DateOffset or str
+ Frequency DateOffset or string.
... | - [X] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/19
- [ ] 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.asfreq`:
```
#######... | https://api.github.com/repos/pandas-dev/pandas/pulls/32362 | 2020-02-29T07:00:18Z | 2020-03-11T02:00:36Z | 2020-03-11T02:00:36Z | 2020-03-11T04:03:23Z |
Changed kind parameter from integer to int, Added example | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 542cfd334b810..549606795f528 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -255,6 +255,16 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
Methods
----... | - [x] closes [Fix PR06 error in pandas.arrays.SparseArray](https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/1)
- [ ] 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/32361 | 2020-02-29T06:52:17Z | 2020-02-29T17:43:46Z | 2020-02-29T17:43:46Z | 2020-02-29T17:43:54Z |
DOC: Update the pandas.DatetimeIndex docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index c9fefd46e55c7..46824e0be6c28 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -78,21 +78,26 @@ def _new_DatetimeIndex(cls, d):
)
class DatetimeIndex(DatetimeTimedeltaMixin):
"""
- Immu... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/7
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Output of ```python scripts/validate_docstrings.py pandas.DatetimeIndex```
```
##############################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32360 | 2020-02-29T06:43:41Z | 2020-03-07T21:01:14Z | 2020-03-07T21:01:14Z | 2020-03-09T09:22:50Z |
Fixing RT02 pandas.Index.dropna and PR08 pandas.Index.fillna | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 7e391e7a03fbb..5555b99a0ef88 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2163,7 +2163,7 @@ def dropna(self, how="any"):
Returns
-------
- valid : Index
+ Index
"""
... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/17
- [ ] 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/32359 | 2020-02-29T06:19:05Z | 2020-03-06T17:00:10Z | 2020-03-06T17:00:10Z | 2020-03-06T17:00:16Z |
DOC: Fixed PR09 error in pandas.testing.assert_series_equal | diff --git a/pandas/_testing.py b/pandas/_testing.py
index a70f75d6cfaf4..fce06e216dfd7 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1106,7 +1106,7 @@ def assert_series_equal(
check_categorical : bool, default True
Whether to compare internal Categorical exactly.
check_category_order ... | - [X] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/15
- [ ] 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.HDFStore.put`:
```
###########... | https://api.github.com/repos/pandas-dev/pandas/pulls/32358 | 2020-02-29T05:54:48Z | 2020-02-29T17:55:18Z | 2020-02-29T17:55:18Z | 2020-03-04T08:55:38Z |
DOC: Update the pandas.Index.is_ docstring | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ae2387f0fd7b4..47c759ac9614b 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -545,11 +545,17 @@ def is_(self, other) -> bool:
Parameters
----------
other : object
- other obje... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/6
- [ ] 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.Index.is_`:
```
###############... | https://api.github.com/repos/pandas-dev/pandas/pulls/32357 | 2020-02-29T05:51:37Z | 2020-03-10T14:36:28Z | null | 2020-06-20T08:24:55Z |
DOC: Fixed ES01, PR07, SA04 error in pandas.core.groupby.DataFrameGroupBy.shift | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 48c00140461b5..6362f11a3e032 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2312,11 +2312,12 @@ def _get_cythonized_result(
return self._wrap_transformed_output(output)
@Substitut... | - [x] closes: https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/14
- [ ] 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.core.groupby.DataFrameGroupBy.sh... | https://api.github.com/repos/pandas-dev/pandas/pulls/32356 | 2020-02-29T05:48:55Z | 2020-03-02T22:52:15Z | 2020-03-02T22:52:15Z | 2020-03-03T14:26:56Z |
Fix PR08, RT02, RT03, and SA01 on pandas.Index.fillna | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index aa22527d8c2d7..d2887c6652635 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2126,13 +2126,18 @@ def fillna(self, value=None, downcast=None):
Scalar value to use to fill holes (e.g. 0).
... | - [x] closes #https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/5
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32355 | 2020-02-29T05:15:36Z | 2020-03-04T15:41:32Z | 2020-03-04T15:41:32Z | 2020-03-04T15:41:38Z |
DOC : fix errors docstrings pandas.to_numeric | diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py
index 4939cbfc9cc96..8075c69a614d5 100644
--- a/pandas/core/tools/numeric.py
+++ b/pandas/core/tools/numeric.py
@@ -35,6 +35,7 @@ def to_numeric(arg, errors="raise", downcast=None):
Parameters
----------
arg : scalar, list, tuple, 1... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
added docstrings information about arg descriptions, downcast type 'int', and Return type
| https://api.github.com/repos/pandas-dev/pandas/pulls/32354 | 2020-02-29T05:14:05Z | 2020-03-06T20:48:15Z | 2020-03-06T20:48:15Z | 2020-03-08T10:55:55Z |
docs: fix SS06, PR08, RT02, RT03, SA04 in pandas.DatetimeIndex.indexe… | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index c9fefd46e55c7..e675d925e7ed2 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -702,23 +702,27 @@ def inferred_type(self) -> str:
def indexer_at_time(self, time, asof=False):
"""
... | …r_at_time
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix : https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/8
| https://api.github.com/repos/pandas-dev/pandas/pulls/32353 | 2020-02-29T05:09:41Z | 2020-03-10T14:37:20Z | null | 2020-03-10T14:37:20Z |
DOC: Update pandas.core.groupby.GroupBy.pipe docstring | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 48c00140461b5..ad6e236244830 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -190,14 +190,13 @@ class providing the base-class of operations.
)
_pipe_template = """
-Apply a function `func` with ar... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_ui2020/issues/2
- [ ] 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/32352 | 2020-02-29T05:09:34Z | 2020-03-07T21:43:46Z | null | 2020-03-07T21:47:52Z |
DOC: Fix SS06 formatting errors in merge_asof docstrings | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 49ac1b6cfa52b..faac472b3fc31 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -320,10 +320,10 @@ def merge_asof(
direction: str = "backward",
) -> "DataFrame":
"""
- Perform an asof merge. This is... | Errors fixed (from the list in #29254 ):
pandas.merge_asof
Validated the fixes with python scripts/validate_docstrings.py
Refrencing issue: #29254
Fix : pandanistas/pandanistas_sprint_ui2020#11 | https://api.github.com/repos/pandas-dev/pandas/pulls/32351 | 2020-02-29T04:58:31Z | 2020-02-29T17:27:50Z | 2020-02-29T17:27:50Z | 2020-03-04T04:54:52Z |
Implement BlockManager.iset | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 9c90b20fc0f16..bb3254446bd3b 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -8,7 +8,7 @@
import numpy as np
from pandas._libs import Timedelta, Timestamp, internals as libinternals, li... | Preliminary to the PR that fixes `setitem_with_indexer` (#22036, #15686) | https://api.github.com/repos/pandas-dev/pandas/pulls/32350 | 2020-02-29T04:04:58Z | 2020-03-03T15:29:48Z | 2020-03-03T15:29:48Z | 2020-03-03T15:55:54Z |
REF: Remove BlockManager.rename_axis | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index e6c5ac9dbf733..5a220f7de9895 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -967,7 +967,6 @@ def rename(
continue
ax = self._get_axis(axis_no)
- baxis = self._get_block_manager_axis(axis_no... | Better to do it using NDFrame methods
cc @toobaz I know you're on board for getting index/axis stuff out of BlockManager. | https://api.github.com/repos/pandas-dev/pandas/pulls/32349 | 2020-02-29T03:33:03Z | 2020-03-11T02:40:14Z | 2020-03-11T02:40:14Z | 2020-03-11T02:41:50Z |
REF: avoid using internals methods for to_timestamp, to_period | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 61715397e8e0b..8fe3a32fe3d39 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -94,10 +94,8 @@
)
from pandas.core.dtypes.generic import (
ABCDataFrame,
- ABCDatetimeIndex,
ABCIndexClass,
ABCMultiIndex,
- ABCPeriodIndex,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32347 | 2020-02-29T03:26:26Z | 2020-03-04T01:02:48Z | 2020-03-04T01:02:48Z | 2020-03-04T01:04:39Z | |
TYP: Update type naming in formatter | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index f304fadbab871..f515b57e24cfa 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -758,8 +758,8 @@ def to_string(
header: Union[bool, Sequence[str]] = True,
index: bool = True,
na_rep: str = "NaN",
- formatters: ... | - [x] part of #26792, #28480
- [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/32345 | 2020-02-29T02:33:58Z | 2020-02-29T16:16:32Z | 2020-02-29T16:16:32Z | 2020-02-29T16:16:44Z |
C Functionality for Accessing DataFrame Values in Column Order | diff --git a/pandas/_libs/ndframe_iter.c b/pandas/_libs/ndframe_iter.c
new file mode 100644
index 0000000000000..f920814782880
--- /dev/null
+++ b/pandas/_libs/ndframe_iter.c
@@ -0,0 +1,222 @@
+#include "assert.h"
+#include "ndframe_iter.h"
+
+// returns -1 on error
+// performs no bounds checking, so will likely segfa... | This is very rough and was a little hesitant to even push here, but figured worth opening up to feedback.
The main motivation for this PR is to get block management out of the JSON serializer, but it could potentially be extended beyond that for external uses
The gist of this is that we can hold a struct `PdOrder... | https://api.github.com/repos/pandas-dev/pandas/pulls/32343 | 2020-02-29T00:28:10Z | 2020-03-04T01:06:46Z | null | 2023-04-12T20:17:13Z |
CLN: setitem_with_indexer cleanups | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3ab180bafd156..35e61ab6a59c9 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1633,14 +1633,12 @@ def _setitem_with_indexer(self, indexer, value):
info_idx = [info_idx]
labels = item_labels[info_idx]... | working on fixing some significant bugs in setitem_with_indexer, this breaks off some easier cleanups | https://api.github.com/repos/pandas-dev/pandas/pulls/32341 | 2020-02-28T23:37:52Z | 2020-03-03T02:02:44Z | 2020-03-03T02:02:44Z | 2020-03-03T02:07:33Z |
BUG: None / Timedelta incorrectly returning NaT | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0f18a1fd81815..18123efe76b1d 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -213,6 +213,7 @@ Timedelta
^^^^^^^^^
- Bug in constructing a :class:`Timedelta` with a high precision integer that would... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #31869, arguable whether or not this closes that. | https://api.github.com/repos/pandas-dev/pandas/pulls/32340 | 2020-02-28T22:22:06Z | 2020-03-03T02:05:29Z | 2020-03-03T02:05:29Z | 2021-11-20T23:21:50Z |
TST/REF: move tools test files | diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/tools/test_to_datetime.py
similarity index 100%
rename from pandas/tests/indexes/datetimes/test_tools.py
rename to pandas/tests/tools/test_to_datetime.py
diff --git a/pandas/tests/tools/test_numeric.py b/pandas/tests/tools/test_to_numeric.py
simil... | These files are in the index tests, but they're not really testing the index objects. | https://api.github.com/repos/pandas-dev/pandas/pulls/32338 | 2020-02-28T17:51:35Z | 2020-02-29T19:36:31Z | 2020-02-29T19:36:31Z | 2020-02-29T20:13:52Z |
BUG: fixes unhandled NAType when plotting (#32073) | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 17f8783f71bfb..1b223cf5f026b 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -21,7 +21,7 @@ Patterns
foo.__class__
-------------
-*pandas* uses 'type(foo)' instead 'foo.... | - [x] closes #32073
- [ ] 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/32337 | 2020-02-28T17:28:14Z | 2020-03-01T17:58:51Z | null | 2020-03-01T17:58:51Z |
CLN: Don't create _join_functions | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 49ac1b6cfa52b..bb40adb69e42d 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -1312,7 +1312,12 @@ def _get_join_indexers(
kwargs = copy.copy(kwargs)
if how == "left":
kwargs["sort"] = sort
- ... | This seems more clear than defining `_join_functions` far away from where it's actually used | https://api.github.com/repos/pandas-dev/pandas/pulls/32336 | 2020-02-28T16:04:25Z | 2020-03-03T03:09:21Z | 2020-03-03T03:09:20Z | 2020-04-09T02:37:43Z |
ENH: implement fill_value for df.add(other=Series) #13488 | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 1b6098e6b6ac1..0c6c3caf11b09 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -10,6 +10,16 @@ including other versions of pandas.
.. ------------------------------------------------------------------... | - [ ] closes #13488
- [ ] 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/32335 | 2020-02-28T15:53:18Z | 2020-03-11T02:17:58Z | null | 2020-03-11T02:17:59Z |
DOC: Fixed reference to `convert_dtypes` in `to_numeric` (#32295) | diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py
index 4939cbfc9cc96..40f376724bd39 100644
--- a/pandas/core/tools/numeric.py
+++ b/pandas/core/tools/numeric.py
@@ -70,7 +70,7 @@ def to_numeric(arg, errors="raise", downcast=None):
to_datetime : Convert argument to datetime.
to_timedelt... | - closes #32295
- just changed the reference from convert_dtypes to DataFrame.convert_dtypes
| https://api.github.com/repos/pandas-dev/pandas/pulls/32333 | 2020-02-28T14:37:28Z | 2020-02-29T03:07:24Z | 2020-02-29T03:07:24Z | 2020-03-02T10:20:40Z |
BUG: Rolling groupby should not maintain the by column in the resulting DataFrame | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 720ce7af47a18..60b1805abbdb4 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -167,6 +167,35 @@ key and type of :class:`Index`. These now consistently raise ``KeyError`` (:iss
...
KeyError: T... | - [x] closes #32262
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Does this seem like the correct idea? If so, I'll expand on tests / write whatsnew / think about a cleaner patch
EDIT
----
lots of unwanted cha... | https://api.github.com/repos/pandas-dev/pandas/pulls/32332 | 2020-02-28T13:55:34Z | 2020-03-22T21:08:34Z | null | 2020-10-10T14:14:53Z |
CLN: _libs.interval looping with cdef index | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 1166768472449..50ac055dbffc9 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -502,14 +502,14 @@ def intervals_to_interval_bounds(ndarray intervals,
"""
cdef:
object closed = None, interval
- int6... | - [ ] 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/32329 | 2020-02-28T12:28:47Z | 2020-02-28T16:41:26Z | 2020-02-28T16:41:26Z | 2020-02-29T10:25:01Z |
CLN: Removed unused variables defenition | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 6141e2b78e9f4..0ba5cb7e9bc40 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -115,8 +115,6 @@ cdef class IndexEngine:
cdef _maybe_get_bool_indexer(self, object val):
cdef:
ndarray[uint8_t, ndim=1, cast=True... | I don't see ```found``` and ```count``` being used anywhere in this function. | https://api.github.com/repos/pandas-dev/pandas/pulls/32328 | 2020-02-28T11:24:56Z | 2020-02-28T15:40:29Z | 2020-02-28T15:40:29Z | 2020-02-29T10:24:23Z |
TST/CLN: Follow-up to #31867 | diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py
index c966962a7c87d..fff5ca03e80f4 100644
--- a/pandas/tests/indexing/test_floats.py
+++ b/pandas/tests/indexing/test_floats.py
@@ -95,43 +95,14 @@ def test_scalar_non_numeric(self, index_func, klass):
s = gen_obj(klass, i... | xref #31867
| https://api.github.com/repos/pandas-dev/pandas/pulls/32324 | 2020-02-28T09:50:32Z | 2020-02-29T00:56:20Z | 2020-02-29T00:56:20Z | 2020-02-29T13:31:31Z |
STY: spaces in wrong place | diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py
index f85d823cb2fac..06ba6cc34ad92 100644
--- a/pandas/tests/base/test_ops.py
+++ b/pandas/tests/base/test_ops.py
@@ -213,9 +213,9 @@ def test_value_counts_unique_nunique(self, index_or_series_obj):
if orig.duplicated().any():
... | - [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/32323 | 2020-02-28T09:33:22Z | 2020-02-28T10:15:59Z | 2020-02-28T10:15:59Z | 2020-02-28T10:28:34Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.