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 |
|---|---|---|---|---|---|---|---|
DEPR: box arg in to_datetime | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a646c4aa03687..29139a0a14991 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -538,6 +538,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more.
- Removed the previously deprecated ... | xref #24486 | https://api.github.com/repos/pandas-dev/pandas/pulls/30111 | 2019-12-06T16:14:54Z | 2019-12-06T17:18:33Z | 2019-12-06T17:18:32Z | 2019-12-06T18:37:21Z |
CLN: Refactor test_base - part1 | diff --git a/pandas/tests/indexes/test_frozen.py b/pandas/tests/indexes/test_frozen.py
index 9f6b0325b7b33..40f69ee868a90 100644
--- a/pandas/tests/indexes/test_frozen.py
+++ b/pandas/tests/indexes/test_frozen.py
@@ -1,10 +1,69 @@
+import re
+
import pytest
from pandas.core.indexes.frozen import FrozenList
-from pa... | 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/30110 | 2019-12-06T16:12:57Z | 2019-12-06T18:47:58Z | 2019-12-06T18:47:57Z | 2019-12-06T18:47:58Z |
Fixing 'names' doc for 'read_csv' | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 7403e6d254d03..aeade1d5ed2c2 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -119,9 +119,9 @@
``skip_blank_lines=True``, so ``header=0`` denotes the first line of
data rather than the first line of the file.
names : array-like, op... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I think there is a bug in the docs. This Jupyter notebook shows that the code does not work as expected from the docs https://gist.github.com/bessara... | https://api.github.com/repos/pandas-dev/pandas/pulls/30109 | 2019-12-06T15:52:58Z | 2019-12-08T17:29:44Z | 2019-12-08T17:29:43Z | 2019-12-08T17:30:52Z |
%s changed to fstring, single quotes in f string changed to double qu… | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index a6503c00a41bb..ca1d096e75c12 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1209,8 +1209,7 @@ def period_format(int64_t value, int freq, object fmt=None):
elif freq_group == 4000: # WK
... | ERROR: type should be string, got "https://github.com/pandas-dev/pandas/issues/29547#issuecomment-562164065\r\nhttps://github.com/pandas-dev/pandas/issues/29547\r\n\r\n- [x] pandas/_libs/tslibs/frequencies.pyx\r\n- [x] pandas/_libs/tslibs/period.pyx\r\n- [x] pandas/_libs/tslibs/strptime.pyx\r\n\r\nchanged %s to f strings and f ' ' to f \" \".\r\nstr.format() remained unchanged due to:\r\nhttps://github.com/pandas-dev/pandas/issues/29547#issuecomment-562227987 " | https://api.github.com/repos/pandas-dev/pandas/pulls/30108 | 2019-12-06T11:33:11Z | 2019-12-24T22:25:37Z | 2019-12-24T22:25:37Z | 2019-12-24T22:25:48Z |
DEPR: ufunc.outer for Series | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 5e2eaa6ca4a94..b93856db6ba8d 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -604,6 +604,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more.
- Removed the previously deprecated ... | xref #27198 | https://api.github.com/repos/pandas-dev/pandas/pulls/30104 | 2019-12-06T05:25:45Z | 2019-12-06T13:03:31Z | 2019-12-06T13:03:31Z | 2019-12-06T15:26:50Z |
DEPR: Index.contains, DatetimeIndex.offset | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 1471bfb82c07c..e0ec3bcaa340d 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -618,7 +618,6 @@ generated/pandas.Index.asi8,../reference/api/pandas.Index.asi8
generated/pandas.Index.asof,../reference/api/pandas.Index.asof
generated/pandas.Index.asof_loc... | DatetimeIndex.offset I thought was removed in #29801, but apparently slipped through the cracks. | https://api.github.com/repos/pandas-dev/pandas/pulls/30103 | 2019-12-06T01:44:13Z | 2019-12-08T17:30:41Z | 2019-12-08T17:30:41Z | 2019-12-08T19:07:59Z |
REF: implement io.pytables.DataCol._get_atom | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 66b8089537e8d..347d60f8a7354 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -34,10 +34,12 @@
from pandas.core.dtypes.common import (
ensure_object,
is_categorical_dtype,
+ is_complex_dtype,
is_datetime64_dtype,
i... | companion to #30101 with promised payoff (logically orthgonal, but will have merge conflict when the time comes)
This implements _get_atom and makes only one call to it on 3949. By making all the relevant methods into classmethods, we can call it before we've instantiated an instance. Then following #30100, we'll ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30102 | 2019-12-06T01:37:17Z | 2019-12-06T03:21:37Z | 2019-12-06T03:21:36Z | 2019-12-06T04:11:47Z |
REF: collect pytables DataCol.set_data calls in one place | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 347d60f8a7354..04e0255bb6d42 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2334,7 +2334,7 @@ def set_kind(self):
if self.typ is None:
self.typ = getattr(self.description, self.cname, None)
- def set_... | This is part 1 of 2 of the payoff promised from #30074. | https://api.github.com/repos/pandas-dev/pandas/pulls/30101 | 2019-12-06T00:51:33Z | 2019-12-06T13:05:26Z | 2019-12-06T13:05:26Z | 2019-12-06T15:26:02Z |
REF: implement io.pytables._maybe_adjust_name | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 04e0255bb6d42..a95d7f39ab82c 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2222,26 +2222,12 @@ class DataCol(IndexCol):
_info_fields = ["tz", "ordered"]
@classmethod
- def create_for_block(
- cls, i: int, name=No... | Besides being a well-scoped utility function, this makes it easy to use the klass constructor directly instead of `klass.create_for_block` on L3905. Note that now we are passing `values` to the constructor instead of pinning them afterwards. Most of what we've been doing in this file has been building up towards bein... | https://api.github.com/repos/pandas-dev/pandas/pulls/30100 | 2019-12-06T00:00:10Z | 2019-12-06T23:24:40Z | 2019-12-06T23:24:40Z | 2019-12-06T23:39:08Z |
CI: Checking in f-strings we use {repr(...)} instead of {...!r} | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 0ac15327494e6..46ace2dd9d70e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -200,6 +200,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' .
RET=$(($RET + $?)) ; e... | - [x] ref #29886
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
---
Can merge only after merging:
- [x] #29948
- [x] #29950
- [x] #29953
- [x] #29959
- [x] #29963
| https://api.github.com/repos/pandas-dev/pandas/pulls/30099 | 2019-12-05T23:21:51Z | 2019-12-25T22:10:45Z | 2019-12-25T22:10:44Z | 2019-12-25T22:33:01Z |
API: Handle pow & rpow special cases | diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst
index 1cc485a229123..1bfe196cb2f89 100644
--- a/doc/source/user_guide/missing_data.rst
+++ b/doc/source/user_guide/missing_data.rst
@@ -822,6 +822,18 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to
... | Closes https://github.com/pandas-dev/pandas/issues/29997
@jorisvandenbossche do you have thoughts on where to document this behavior? I added a bit to `reference/arrays.rst` for now, but perhaps we'll eventually have a `user_guide/scalar_na.rst`?
| https://api.github.com/repos/pandas-dev/pandas/pulls/30097 | 2019-12-05T22:16:06Z | 2019-12-08T17:35:45Z | 2019-12-08T17:35:44Z | 2019-12-08T17:35:48Z |
BUG: file leak in read_excel | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 44254f54cbc7a..d4570498e3fc6 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -892,6 +892,12 @@ def sheet_names(self):
def close(self):
"""close io if necessary"""
+ if self.engine == "openpyxl":
+ ... | I _think_ this
closes #30031
closes #29514
we'll probably want to wait a few days to make it official.
To make the new test decorator useful in the CI we'll need to add psutil to the environment (unless someone knows of a stdlib way of doing the same check?)
One more note, the check in check_no_file_leaks d... | https://api.github.com/repos/pandas-dev/pandas/pulls/30096 | 2019-12-05T22:08:50Z | 2019-12-06T03:11:12Z | 2019-12-06T03:11:12Z | 2022-08-22T16:09:00Z |
PERF: improve conversion to BooleanArray from int/float array | diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py
new file mode 100644
index 0000000000000..8cbf8c8592661
--- /dev/null
+++ b/asv_bench/benchmarks/array.py
@@ -0,0 +1,23 @@
+import numpy as np
+
+import pandas as pd
+
+
+class BooleanArray:
+ def setup(self):
+ self.values_bool = np.a... | - [x] closes pandas-dev#29838
- [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/30095 | 2019-12-05T21:43:27Z | 2019-12-09T09:41:33Z | 2019-12-09T09:41:32Z | 2019-12-09T16:24:11Z |
STY: fstrings, repr pandas/io/html.py | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 82c4e17a77535..cc93bba4603bf 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
elif skiprows is None:
return 0
raise TypeError(
- "%r is not a valid type for skipping rows" % type(ski... | - [x] ref #29547 #29886
- [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/30093 | 2019-12-05T20:58:57Z | 2019-12-08T17:37:06Z | 2019-12-08T17:37:06Z | 2019-12-08T21:09:27Z |
BUG: preserve EA dtype in transpose | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 4671170fa79ae..cc8e6f50cba2b 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -863,6 +863,7 @@ Reshaping
- Bug where :meth:`DataFrame.equals` returned True incorrectly in some cases when two DataFrames... | https://api.github.com/repos/pandas-dev/pandas/pulls/30091 | 2019-12-05T20:21:21Z | 2019-12-27T15:05:05Z | 2019-12-27T15:05:05Z | 2020-02-28T23:53:51Z | |
DEPR: join_axes kwarg to pd.concat | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 4ce4c12483b36..085f11f63aea2 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -523,6 +523,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more.
- Removed the previously deprecated ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30090 | 2019-12-05T20:05:28Z | 2019-12-05T23:11:57Z | 2019-12-05T23:11:57Z | 2019-12-05T23:48:32Z | |
DEPR: enforce deprecation of old set_axis signature | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 5e2eaa6ca4a94..75d28f7cca1c5 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -613,6 +613,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more.
- Changed :meth:`Timedelta.resolutio... | https://api.github.com/repos/pandas-dev/pandas/pulls/30089 | 2019-12-05T19:48:25Z | 2019-12-06T14:40:36Z | 2019-12-06T14:40:35Z | 2019-12-06T15:24:28Z | |
DEPR: remove compound | diff --git a/doc/redirects.csv b/doc/redirects.csv
index 33ba94e2baa01..1471bfb82c07c 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -319,7 +319,6 @@ generated/pandas.DataFrame.clip_upper,../reference/api/pandas.DataFrame.clip_upp
generated/pandas.DataFrame.columns,../reference/api/pandas.DataFrame.columns
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30088 | 2019-12-05T19:42:49Z | 2019-12-05T23:02:59Z | 2019-12-05T23:02:58Z | 2019-12-05T23:47:22Z | |
REF: do string itemsize casting earlier | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 8a75e0f56f8c9..878bd64fb5571 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2326,7 +2326,7 @@ def set_kind(self):
if self.typ is None:
self.typ = getattr(self.description, self.cname, None)
- def set_... | This is the other PR mentioned in #30084. By doing this casting earlier, we'll be able to 7 calls to set_data into one place. | https://api.github.com/repos/pandas-dev/pandas/pulls/30085 | 2019-12-05T17:15:19Z | 2019-12-05T23:13:50Z | 2019-12-05T23:13:50Z | 2019-12-05T23:51:17Z |
REF: Standardize coercion in set_data | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 1d24e15c504f2..d1d06d821e4f4 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -2270,15 +2270,25 @@ def __eq__(self, other: Any) -> bool:
for a in ["name", "cname", "dtype", "pos"]
)
- def set_data(self, data, dt... | See that after this, the way we are calling `self.set_data` is always with just `block.values` within the `set_atom_foo` methods (except for `set_atom_string`, which needs a small edit coming up in another PR). Once set_atom_string joins the others, we can move these 7 calls to set_data up to just one place. | https://api.github.com/repos/pandas-dev/pandas/pulls/30084 | 2019-12-05T17:12:24Z | 2019-12-05T19:26:42Z | 2019-12-05T19:26:42Z | 2019-12-05T20:10:26Z |
Fixes Error thrown when None is passed to pd.to_datetime() with format as %Y%m%d | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 4ce4c12483b36..8caba5cf9d53f 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -652,6 +652,7 @@ Datetimelike
- Bug in :meth:`Series.var` failing to raise ``TypeError`` when called with ``timedelta64[ns]... | - [ ] closes #30011
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry `bug fix of to_datetime for pandas versions >0.24. Now the change will avoid error even when value passed None to to_datetime`
| https://api.github.com/repos/pandas-dev/pandas/pulls/30083 | 2019-12-05T16:42:54Z | 2019-12-12T14:53:49Z | 2019-12-12T14:53:49Z | 2019-12-12T15:08:53Z |
REF: make pytables.IndexCol.itemsize a property | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 1d24e15c504f2..8b04fab6587da 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -1882,7 +1882,6 @@ def __init__(
kind=None,
typ=None,
cname: Optional[str] = None,
- itemsize=None,
axis=None,
... | Along with #30074 this is a bite-sized-pieces part of a series of PRs that ends with IndexCol attributes being set in the constructor and not mutated elsewhere | https://api.github.com/repos/pandas-dev/pandas/pulls/30082 | 2019-12-05T16:42:14Z | 2019-12-05T19:22:33Z | 2019-12-05T19:22:33Z | 2019-12-05T20:10:46Z |
STY: fstrings doc/source/conf.py #2 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 5f6a6af60e9bf..096f1a63eddf8 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -568,7 +568,7 @@ def _add_deprecation_prefixes(self, items):
for item in items:
display_name, sig, summary, real_name = item
if self._is_... | - [x] ref #29547
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Somehow missed it on #30071 | https://api.github.com/repos/pandas-dev/pandas/pulls/30080 | 2019-12-05T13:50:51Z | 2019-12-05T14:45:10Z | 2019-12-05T14:45:10Z | 2019-12-05T14:56:13Z |
TYP: Annotations in pandas/core/{accessor, sorting}.py | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index 96b7cf8f97c3f..963c9c65cb30c 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -58,7 +58,9 @@ def _delegate_method(self, name, *args, **kwargs):
raise TypeError("You cannot call method {name}".format(name=name))
@cl... | - [ ] 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/30079 | 2019-12-05T10:49:19Z | 2019-12-06T20:47:38Z | 2019-12-06T20:47:38Z | 2019-12-07T09:08:42Z |
BUG/TST: fix arrow roundtrip / parquet tests for recent pyarrow | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 743d45e1fa400..a8fcd6d03847c 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -103,6 +103,24 @@ def __repr__(self) -> str:
def _is_boolean(self) -> bool:
return True
+ def __from_arrow__(... | Closes https://github.com/pandas-dev/pandas/issues/29976 | https://api.github.com/repos/pandas-dev/pandas/pulls/30077 | 2019-12-05T08:07:23Z | 2019-12-18T16:56:42Z | 2019-12-18T16:56:42Z | 2019-12-18T16:56:43Z |
Fix PR06 docstring errors in sql.py and gbq.py | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index b120de1b3011a..19aed15f46491 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -50,10 +50,10 @@ def read_gbq(
col_order : list(str), optional
List of BigQuery column names in the desired order for results
DataFrame.
- reauth : boolea... | - [x] xref #28724
- [ ] 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/30075 | 2019-12-05T04:37:42Z | 2019-12-05T06:35:59Z | 2019-12-05T06:35:59Z | 2019-12-05T06:36:06Z |
REF: make pytables get_atom_data non-stateful | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 8a75e0f56f8c9..7581bec68d44b 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -65,7 +65,7 @@
from pandas.io.formats.printing import adjoin, pprint_thing
if TYPE_CHECKING:
- from tables import File, Node # noqa:F401
+ from table... | cc @WillAyd how do we annotate "this returns a subclass of Col"? Here i've used `Type["Col"]` but afaik that doesnt include subclasses | https://api.github.com/repos/pandas-dev/pandas/pulls/30074 | 2019-12-05T01:27:17Z | 2019-12-06T00:46:06Z | 2019-12-06T00:46:06Z | 2019-12-06T00:47:28Z |
#29886 - Replace !r for repr() on pandas/io/parses.py | diff --git a/pandas/io/html.py b/pandas/io/html.py
index cc93bba4603bf..3521bad375aa6 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -102,9 +102,7 @@ def _get_skiprows(skiprows):
return skiprows
elif skiprows is None:
return 0
- raise TypeError(
- f"'{type(skiprows).__name__}... | - [ ] 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/30073 | 2019-12-05T01:03:37Z | 2019-12-10T13:06:20Z | 2019-12-10T13:06:20Z | 2019-12-10T13:06:22Z |
Remove legacy scipy compat | diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py
index a2a40bbf93604..9e436ec4c6c13 100644
--- a/pandas/core/nanops.py
+++ b/pandas/core/nanops.py
@@ -1248,10 +1248,9 @@ def _pearson(a, b):
return np.corrcoef(a, b)[0, 1]
def _kendall(a, b):
+ # kendallttau returns a tuple of the tau sta... | AFAICT from the scipy blame, it has been at least 16 years since scipy.stats.kendalltau returned anything but a tuple | https://api.github.com/repos/pandas-dev/pandas/pulls/30072 | 2019-12-05T00:29:46Z | 2019-12-05T05:55:35Z | 2019-12-05T05:55:35Z | 2019-12-05T16:15:06Z |
STY: fstrings doc/source/conf.py | diff --git a/doc/source/conf.py b/doc/source/conf.py
index b4f719b6e64b2..5f6a6af60e9bf 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -296,12 +296,7 @@
for method in methods:
# ... and each of its public methods
- moved_api_pages.append(
- (
- "{old}.{metho... | - [x] ref #29547
- [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/30071 | 2019-12-04T22:57:45Z | 2019-12-05T12:57:46Z | 2019-12-05T12:57:46Z | 2019-12-05T13:30:46Z |
CI: troubleshoot codecov | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index b91cfb3bed8cc..4c5dbabc81950 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -37,7 +37,8 @@ echo $PYTEST_CMD
sh -c "$PYTEST_CMD"
if [[ "$COVERAGE" && $? == 0 && "$TRAVIS_BRANCH" == "master" ]]; then
+ SHA=`git rev-parse HEAD`
echo "uploading coverag... | The results here https://codecov.io/gh/pandas-dev/pandas/tree/master/pandas are 17 days old, the last attempt to re-enable codecov apparently didn't take. Trying again. | https://api.github.com/repos/pandas-dev/pandas/pulls/30070 | 2019-12-04T22:57:36Z | 2019-12-20T05:39:05Z | 2019-12-20T05:39:05Z | 2019-12-20T17:34:43Z |
CI: temp skip BooleanArray pyarrow test | diff --git a/pandas/tests/arrays/test_boolean.py b/pandas/tests/arrays/test_boolean.py
index d9cbf3f5b4172..a13bb8edc8e48 100644
--- a/pandas/tests/arrays/test_boolean.py
+++ b/pandas/tests/arrays/test_boolean.py
@@ -546,6 +546,7 @@ def test_reductions_return_types(dropna, data, all_numeric_reductions):
# resu... | This is a failure from https://github.com/pandas-dev/pandas/pull/29961, sorry. In hindsight I should have updated that PR with master after the CI changes were merged, since I added pyarrow 0.15 to one of the CI builds earlier today exactly to catch those errors .. Sorry about that.
Will merge this quickly to not ha... | https://api.github.com/repos/pandas-dev/pandas/pulls/30069 | 2019-12-04T22:03:30Z | 2019-12-04T22:04:02Z | 2019-12-04T22:04:02Z | 2019-12-04T22:04:27Z |
CLN: simplify pytables create_axes | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index c56445d6c2b6e..5a3f488ddb544 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -3832,6 +3832,7 @@ def create_axes(
else:
existing_table = None
+ assert self.ndim == 2 # with next check, we must have len(axes... | As mentioned in #30019, with Panel cases gone we can now deduce that `len(axes) == 1` in all cases in `create_axes`. From there we can simplify this method a lot. This PR does most of that; some of it is held back to avoid creating merge conflicts with #30067 (orthogonal) | https://api.github.com/repos/pandas-dev/pandas/pulls/30068 | 2019-12-04T21:43:21Z | 2019-12-05T15:36:05Z | 2019-12-05T15:36:05Z | 2019-12-05T16:04:08Z |
REF: set non_index_axes at the end of create_axes | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 1d24e15c504f2..36cf5592546b8 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -3662,15 +3662,15 @@ def get_object(self, obj, transposed: bool):
""" return the data for this obj """
return obj
- def validate_data_col... | Follow-up to #30029 that handles the remaining attribute self.non_index_axes.
cc @WillAyd | https://api.github.com/repos/pandas-dev/pandas/pulls/30067 | 2019-12-04T21:37:23Z | 2019-12-05T19:45:28Z | 2019-12-05T19:45:28Z | 2019-12-05T19:51:57Z |
CI: upload coverage report to Codecov | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index f3ccd78266ba6..b34373b82af1a 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -170,3 +170,11 @@ jobs:
- name: Print skipped tests
run: python ci/print_skipped.py
+
+ - name: Upload cove... | After moving the coverage build from Travis to GitHub Actions #38344, coverage upload was stopped.
Trying to add it back using action provided by codecov. https://github.com/codecov/codecov-action
| https://api.github.com/repos/pandas-dev/pandas/pulls/39822 | 2021-02-15T17:38:42Z | 2021-02-15T23:02:44Z | 2021-02-15T23:02:44Z | 2021-03-18T16:40:49Z |
ENH: Styler builtins: `highlight_between` | diff --git a/doc/source/_static/style/hbetw_axNone.png b/doc/source/_static/style/hbetw_axNone.png
new file mode 100644
index 0000000000000..2918131b40bde
Binary files /dev/null and b/doc/source/_static/style/hbetw_axNone.png differ
diff --git a/doc/source/_static/style/hbetw_basic.png b/doc/source/_static/style/hbetw_... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
- [x] update docs for existing highlight functions for consistency
- [x] add a new `props` argument to existin... | https://api.github.com/repos/pandas-dev/pandas/pulls/39821 | 2021-02-15T16:56:49Z | 2021-04-13T14:16:42Z | 2021-04-13T14:16:42Z | 2021-04-13T14:32:38Z |
REF: call ensure_wrapped_if_datetimelike before the array arithmetic_op | diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py
index c9db995319cdf..6e4aa1a5efacf 100644
--- a/pandas/core/arrays/numpy_.py
+++ b/pandas/core/arrays/numpy_.py
@@ -23,6 +23,7 @@
)
from pandas.core.arraylike import OpsMixin
from pandas.core.arrays._mixins import NDArrayBackedExtensionArray
+f... | ~This is on top of https://github.com/pandas-dev/pandas/pull/39772, so only the last commit needs to be looked at for now: https://github.com/pandas-dev/pandas/pull/39820/commits/bd50388e019c61559c310638186aeea57d2d2d3e~
The actual goal here is to have a version of [`array_ops.py::arithmetic_op`](https://github.com/... | https://api.github.com/repos/pandas-dev/pandas/pulls/39820 | 2021-02-15T15:21:36Z | 2021-04-22T22:16:51Z | 2021-04-22T22:16:51Z | 2021-04-22T22:34:09Z |
REF: share DTBlock/TDBlock _maybe_coerce_values | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 8ba6018e743bb..4ecd47496f109 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -32,8 +32,6 @@
soft_convert_objects,
)
from pandas.core.dtypes.common import (
- DT64NS_DTYPE,
- TD64NS_DTY... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39815 | 2021-02-15T02:48:00Z | 2021-02-15T22:46:23Z | 2021-02-15T22:46:23Z | 2021-02-15T22:50:11Z |
REF: implement HybridBlock | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 06bf2e5d7b18e..b3dce41514ed9 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1935,64 +1935,59 @@ def to_native_types(
return self.make_block(res)
-class DatetimeLikeBlockMixin(HybridM... | Methods that would work with any NDArrayBackedExtensionArray, not just DTA/TDA. Written to facilitate experimenting with Blocks backed by 2D EAs. | https://api.github.com/repos/pandas-dev/pandas/pulls/39814 | 2021-02-14T23:39:53Z | 2021-02-16T16:59:12Z | 2021-02-16T16:59:12Z | 2021-02-16T17:45:41Z |
TYP: typing refactor mypy fix | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 735fb345363c7..54dacd2d639a6 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -158,13 +158,12 @@ def __init__(
uuid_len: int = 5,
):
# validate ordered args
- if not isinstance(data, (pd.S... | `pandas/io/formats/style.py:168: error: Incompatible types in assignment (expression has type "Union[DataFrame, Series]", variable has type "DataFrame") [assignment]`
refactor to remove the `assert` statement otherwise needed to solve the above `mypy` error. | https://api.github.com/repos/pandas-dev/pandas/pulls/39812 | 2021-02-14T21:57:39Z | 2021-02-15T17:17:44Z | 2021-02-15T17:17:44Z | 2021-02-16T18:24:35Z |
REF: Dispatch TimedeltaBlock.fillna to TimedeltaArray | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 8ba6018e743bb..ff0c5380468f5 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -39,7 +39,6 @@
is_datetime64tz_dtype,
is_dtype_equal,
is_extension_array_dtype,
- is_integer,
is_... | https://api.github.com/repos/pandas-dev/pandas/pulls/39811 | 2021-02-14T19:39:04Z | 2021-02-15T22:15:23Z | 2021-02-15T22:15:23Z | 2021-02-15T22:38:42Z | |
REF: put Block replace methods together | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 8ba6018e743bb..66d7fcb13e234 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -722,6 +722,9 @@ def copy(self, deep: bool = True):
values = values.copy()
return self.make_block_... | pure cut/paste | https://api.github.com/repos/pandas-dev/pandas/pulls/39810 | 2021-02-14T16:42:28Z | 2021-02-15T22:17:55Z | 2021-02-15T22:17:55Z | 2021-02-15T22:37:47Z |
BUG: add `col<k>` class identifier to blank index name row cells | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 799bc88ffff4e..bbc36ad58773c 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -460,6 +460,7 @@ Other
- Bug in :func:`pandas.testing.assert_series_equal`, :func:`pandas.testing.assert_frame_equal`, :fun... | - [x] closes #39716
- [x] tests passed
- [x] linting and typing checks | https://api.github.com/repos/pandas-dev/pandas/pulls/39807 | 2021-02-14T13:09:25Z | 2021-02-17T00:16:18Z | 2021-02-17T00:16:18Z | 2021-02-17T07:04:44Z |
DOC: update cheatsheet | diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
index fb71f869ba22f..3582e0c0dabf9 100644
Binary files a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf and b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf differ
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pptx b/doc/cheatsheet/Pandas_Cheat_S... | - [x] closes #39724
- [x] tests added / passed (not required)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them (not required)
- [x] whatsnew entry (not required)
#### Major changes
1) **Replaced Hea... | https://api.github.com/repos/pandas-dev/pandas/pulls/39806 | 2021-02-14T11:56:43Z | 2021-03-29T15:24:01Z | 2021-03-29T15:24:00Z | 2021-08-31T21:46:02Z |
TST: fixturize indexing intervalindex tests | diff --git a/pandas/conftest.py b/pandas/conftest.py
index bc455092ebe86..79204c8896854 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1565,6 +1565,14 @@ def indexer_si(request):
return request.param
+@pytest.fixture(params=[tm.setitem, tm.loc])
+def indexer_sl(request):
+ """
+ Parametrize... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39803 | 2021-02-14T02:43:01Z | 2021-02-15T22:37:28Z | 2021-02-15T22:37:28Z | 2021-02-15T22:38:21Z |
DOC: skip evaluation of code in v0.8.0 release notes | diff --git a/doc/source/whatsnew/v0.8.0.rst b/doc/source/whatsnew/v0.8.0.rst
index 781054fc4de7c..490175914cef1 100644
--- a/doc/source/whatsnew/v0.8.0.rst
+++ b/doc/source/whatsnew/v0.8.0.rst
@@ -176,7 +176,7 @@ New plotting methods
Vytautas Jancauskas, the 2012 GSOC participant, has added many new plot
types. For e... | As noted in https://github.com/pandas-dev/pandas/pull/39364#issuecomment-778678278. A little unclear to me why it's not failing in other pull requests, as I can reproduce the issue locally.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/p... | https://api.github.com/repos/pandas-dev/pandas/pulls/39801 | 2021-02-13T21:24:56Z | 2021-02-15T22:37:46Z | 2021-02-15T22:37:46Z | 2021-02-15T22:37:49Z |
Regression in to_excel when setting duplicate column names | diff --git a/doc/source/whatsnew/v1.2.3.rst b/doc/source/whatsnew/v1.2.3.rst
index e675b3ea921d1..4231b6d94b1b9 100644
--- a/doc/source/whatsnew/v1.2.3.rst
+++ b/doc/source/whatsnew/v1.2.3.rst
@@ -15,7 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :func:`... | - [x] closes #39695
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39800 | 2021-02-13T21:07:24Z | 2021-02-15T22:42:17Z | 2021-02-15T22:42:17Z | 2021-02-18T19:46:12Z |
TYP: assorted annotations | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 61568717ace68..4d0bd4744be5d 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -109,9 +109,8 @@ cdef class SeriesBinGrouper(_BaseGrouper):
ndarray arr, index, dummy_arr, dummy_index
object values, f, b... | Also avoid passing unnecesary arg to libreduction, and use a lower-level sanitize function in sanitize_index | https://api.github.com/repos/pandas-dev/pandas/pulls/39798 | 2021-02-13T19:25:47Z | 2021-02-21T17:18:15Z | 2021-02-21T17:18:15Z | 2021-02-22T15:34:09Z |
CLN: Styler simplify existing builtin methods | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 735fb345363c7..fa55d163376ee 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1296,33 +1296,6 @@ def hide_columns(self, subset) -> Styler:
# A collection of "builtin" styles
# -------------------------------... | Now that `Styler.apply` can accept `ndarray` in all cases we can reorganise the module and wrap all the UI facing functions into one:
- highlight null
- highlight max
- highlight min | https://api.github.com/repos/pandas-dev/pandas/pulls/39797 | 2021-02-13T18:49:31Z | 2021-02-16T17:34:01Z | 2021-02-16T17:34:01Z | 2021-02-16T20:30:47Z |
DEP: Remove xlrd as being the default reader for xlsx | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index d6934a3ca2a6c..67c74f9a04618 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2853,14 +2853,12 @@ See the :ref:`cookbook<cookbook.excel>` for some advanced strategies.
The `xlrd <https://xlrd.readthedocs.i... | - [x] closes #38884
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
One thing I noticed while working on this is that xlrd is in requirements-dev but not environment.yml; not sure if it ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39796 | 2021-02-13T16:41:32Z | 2021-02-16T23:08:53Z | 2021-02-16T23:08:52Z | 2021-02-16T23:21:23Z |
fix benchmark failure with numpy 1.20+ | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index b457bce8fe138..b8f6cb53987b8 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -2,6 +2,8 @@
import numpy as np
+from pandas.compat.numpy import np_version_under1p20
+... | xref https://github.com/pandas-dev/pandas/pull/38379#pullrequestreview-580260176
This will be blocking using numpy 1.20 on Github actions Checks, xref https://github.com/pandas-dev/pandas/pull/36092#issuecomment-771112784 | https://api.github.com/repos/pandas-dev/pandas/pulls/39795 | 2021-02-13T15:09:21Z | 2021-02-16T13:52:26Z | 2021-02-16T13:52:25Z | 2021-02-16T15:35:58Z |
TYP: tidy comments for # type: ignore | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 0b2be53131af6..97a152d9ade1e 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -559,7 +559,7 @@ def makeCustomIndex(
"p": makePeriodIndex,
}.get(idx_type)
if idx_func:
- # pandas\_testing.p... | follow-up to #37556 | https://api.github.com/repos/pandas-dev/pandas/pulls/39794 | 2021-02-13T14:59:28Z | 2021-02-15T15:42:46Z | 2021-02-15T15:42:46Z | 2021-02-16T09:58:29Z |
CLN: Better method of determining read-only status of openpyxl worksheet | diff --git a/pandas/io/excel/_openpyxl.py b/pandas/io/excel/_openpyxl.py
index 3a753a707166e..d0fe64a82d187 100644
--- a/pandas/io/excel/_openpyxl.py
+++ b/pandas/io/excel/_openpyxl.py
@@ -538,11 +538,7 @@ def get_sheet_data(self, sheet, convert_float: bool) -> List[List[Scalar]]:
version = LooseVersion(get_... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them | https://api.github.com/repos/pandas-dev/pandas/pulls/39793 | 2021-02-13T14:13:35Z | 2021-02-15T07:16:02Z | 2021-02-15T07:16:02Z | 2021-02-15T09:43:35Z |
TYP: np.ndarray does not yet accept type parameters | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 6088837550ecd..337c1910102a7 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -2208,7 +2208,7 @@ def _sort_mixed(values):
return np.concatenate([nums, np.asarray(strs, dtype=object)])
-def _sort_tuples(values: np.... | xref https://github.com/pandas-dev/pandas/pull/36092/files#r519455981 | https://api.github.com/repos/pandas-dev/pandas/pulls/39792 | 2021-02-13T12:49:51Z | 2021-02-15T15:44:50Z | 2021-02-15T15:44:50Z | 2021-02-16T09:55:33Z |
TST/REF: split/collect large tests | diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py
index 4282db6933371..7c48c412fd694 100644
--- a/pandas/tests/frame/indexing/test_getitem.py
+++ b/pandas/tests/frame/indexing/test_getitem.py
@@ -10,6 +10,7 @@
MultiIndex,
Series,
Timestamp,
+ concat... | https://api.github.com/repos/pandas-dev/pandas/pulls/39789 | 2021-02-13T06:01:58Z | 2021-02-15T23:49:21Z | 2021-02-15T23:49:21Z | 2021-02-16T00:06:29Z | |
BUG: DTA/TDA/PA/Series/Index.view with datetimelike | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 388c5dbf6a7ee..2175a18a88e73 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -326,6 +326,7 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :meth:`Series.to_dict` with ``orient='records'`` now returns pyth... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This makes it feasible to share some of the SetitemCastingEquivalents tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/39788 | 2021-02-13T04:43:45Z | 2021-02-21T17:22:50Z | 2021-02-21T17:22:50Z | 2021-02-21T17:26:15Z |
CLN: Remove "how" return from agg | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 828b460f84ec6..6e48d4b699977 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -147,18 +147,14 @@ def index(self) -> Index:
def apply(self) -> FrameOrSeriesUnion:
pass
- def agg(self) -> Tuple[Optional[FrameOrSeriesUnion], O... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/39786 | 2021-02-13T03:08:40Z | 2021-02-15T23:50:11Z | 2021-02-15T23:50:11Z | 2021-02-15T23:55:29Z |
TST: use more context managers | diff --git a/pandas/tests/io/excel/test_writers.py b/pandas/tests/io/excel/test_writers.py
index 14ad97c058a55..0c61a8a18e153 100644
--- a/pandas/tests/io/excel/test_writers.py
+++ b/pandas/tests/io/excel/test_writers.py
@@ -342,8 +342,8 @@ def test_excel_sheet_by_name_raise(self, path, engine):
gt = DataFrame... | spin off from #39047: use a few more context managers | https://api.github.com/repos/pandas-dev/pandas/pulls/39785 | 2021-02-13T01:44:36Z | 2021-02-13T02:33:12Z | 2021-02-13T02:33:12Z | 2021-02-13T03:08:03Z |
DOC: Add reference to Text Extensions for Pandas project | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index bb89b91954518..4b69d5b0c8c77 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -476,6 +476,14 @@ storing numeric arrays with units. These arrays can be stored inside pandas'
Series and DataFrame. Operations between Series and ... | This PR adds a reference to our Text Extensions for Pandas library, which adds extension types for representing natural language processing data in Pandas DataFrames, to the "Pandas ecosystem" section of the documentation.
Main web page for our project: https://ibm.biz/text-extensions-for-pandas
Source code: https:... | https://api.github.com/repos/pandas-dev/pandas/pulls/39783 | 2021-02-13T00:07:59Z | 2021-02-15T22:43:18Z | 2021-02-15T22:43:18Z | 2021-02-15T22:43:49Z |
CLN: remove redundant openpyxl type conversions | diff --git a/pandas/io/excel/_openpyxl.py b/pandas/io/excel/_openpyxl.py
index 3a753a707166e..6ebb04eb19534 100644
--- a/pandas/io/excel/_openpyxl.py
+++ b/pandas/io/excel/_openpyxl.py
@@ -509,24 +509,14 @@ def get_sheet_by_index(self, index: int):
def _convert_cell(self, cell, convert_float: bool) -> Scalar:
... | openpyxl already converts cell values to Python types, preferring
integers where possible. For backwards-compatibility, we have to convert
integers back to float if not `convert_float`
- [ ] closes #xxxx
- [x] tests passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/... | https://api.github.com/repos/pandas-dev/pandas/pulls/39782 | 2021-02-12T21:34:44Z | 2021-02-15T23:32:25Z | 2021-02-15T23:32:25Z | 2021-04-23T18:51:49Z |
REF: dispatch maybe_promote to infer_dtype_from_scalar for td64 dtype | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 74d750288bdeb..e176c13f4874b 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -590,24 +590,10 @@ def maybe_promote(dtype: np.dtype, fill_value=np.nan):
return np.dtype(object), fill_value
elif issubclas... | sits on top of #39767 | https://api.github.com/repos/pandas-dev/pandas/pulls/39781 | 2021-02-12T19:50:50Z | 2021-02-16T22:55:18Z | 2021-02-16T22:55:18Z | 2021-02-16T23:04:38Z |
STYLE use force-grid-wrap in isort | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 7478efbf22609..a696f0e180e86 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -4,7 +4,13 @@
import numpy as np
import pandas as pd
-from pandas import DataFrame, Series, Timestamp, d... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
As discussed in the monthly dev meeting - motivation here is to reduce the number of merge conflicts, which single-line imports seem to be a major source of.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/39780 | 2021-02-12T18:42:19Z | 2021-02-16T15:41:51Z | 2021-02-16T15:41:51Z | 2021-02-16T15:43:26Z |
STYLE, CI move validate_rst_title_capitalization check to pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e0df3434b2906..3a371c8249eba 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -180,6 +180,12 @@ repos:
language: pygrep
types: [python]
files: ^pandas/tests/
+ - id: title-capitalization
+ na... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
xref #39624 in which it took ~15 minutes for @rhshadrach to be told
```
Heading capitalization formatted incorrectly. Please correctly capitalize "pytest.xfa... | https://api.github.com/repos/pandas-dev/pandas/pulls/39779 | 2021-02-12T17:48:32Z | 2021-02-15T22:31:47Z | 2021-02-15T22:31:46Z | 2021-02-16T09:55:16Z |
REF: de-duplicate dt64/td64 putmask/setitem shims | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index ca83692ad7ca4..917aace233ee5 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -1,7 +1,7 @@
"""
EA-compatible analogue to to np.putmask
"""
-from typing import Any
+from typing import ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39778 | 2021-02-12T16:01:10Z | 2021-02-12T17:40:26Z | 2021-02-12T17:40:26Z | 2021-02-12T17:43:34Z | |
ENH: 'encoding_errors' argument for read_csv/json | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 370ea28832758..b240dad32f0e1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -141,6 +141,7 @@ Other enhancements
- Add support for parsing ``ISO 8601``-like timestamps with negative signs to :meth:`pa... | - [x] closes #39450
- [x] closes #39017
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Should `encoding_errors` be added to `to_csv` and should `errors` in... | https://api.github.com/repos/pandas-dev/pandas/pulls/39777 | 2021-02-12T14:06:32Z | 2021-03-09T22:03:54Z | 2021-03-09T22:03:54Z | 2021-03-09T22:55:44Z |
DOC: Remove repeated column assignment in visualization doc | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index 7911c58b9867e..8b41cc24829c5 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -665,7 +665,7 @@ given by column ``z``. The bins are aggregated with NumPy's ``max`` fun... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
The visualization doc had an example where a column in a DataFrame is repeatedly assigned.
```p... | https://api.github.com/repos/pandas-dev/pandas/pulls/39770 | 2021-02-12T06:12:32Z | 2021-02-12T12:04:21Z | 2021-02-12T12:04:21Z | 2021-02-12T12:04:30Z |
BUG: incorrectly accepting datetime64(nat) for dt64tz | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 99ae60859b68c..4fe033b2c4344 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -346,7 +346,9 @@ Indexing
- Bug in setting ``timedelta64`` or ``datetime64`` values into numeric :class:`Series` failing to... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39769 | 2021-02-12T04:01:33Z | 2021-02-16T00:19:50Z | 2021-02-16T00:19:50Z | 2021-02-16T01:23:59Z |
TST: split large tests | diff --git a/pandas/tests/indexing/test_categorical.py b/pandas/tests/indexing/test_categorical.py
index 1b9b6452b2e33..3b6bc42544c51 100644
--- a/pandas/tests/indexing/test_categorical.py
+++ b/pandas/tests/indexing/test_categorical.py
@@ -322,6 +322,7 @@ def test_loc_listlike_dtypes(self):
with pytest.raises... | https://api.github.com/repos/pandas-dev/pandas/pulls/39768 | 2021-02-12T02:17:37Z | 2021-02-15T23:53:51Z | 2021-02-15T23:53:51Z | 2021-02-16T00:05:54Z | |
DEPR: casting date to dt64 in maybe_promote | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 99ae60859b68c..1a092d930029e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -239,7 +239,7 @@ Deprecations
- Deprecated :attr:`Rolling.is_datetimelike` (:issue:`38963`)
- Deprecated :meth:`core.windo... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Once enforced, maybe_promote behavior will match DatetimeArray._validate_setitem_value and ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39767 | 2021-02-12T02:07:52Z | 2021-02-15T23:52:40Z | 2021-02-15T23:52:40Z | 2021-02-16T00:20:08Z |
BUG: pd.show_versions: json.decoder.JSONDecodeError | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 388c5dbf6a7ee..11ee3e2717612 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -478,6 +478,7 @@ Other
- :class:`Styler` rendered HTML output minor alterations to support w3 good code standard (:issue:`3... | - [ x] closes #39701
- [ x] tests added / passed
- [ x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39766 | 2021-02-12T01:18:28Z | 2021-02-22T18:18:09Z | 2021-02-22T18:18:09Z | 2021-02-22T18:31:59Z |
BUG/REF: Refactor BaseWindowIndex so groupby.apply has a consistent index output | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 535bc5f3bd7bf..1be72c44d1a55 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -443,6 +443,7 @@ Groupby/resample/rolling
- Bug in :meth:`.GroupBy.mean`, :meth:`.GroupBy.median` and :meth:`DataFrame.pivo... | - [x] closes #39732
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39765 | 2021-02-12T01:09:55Z | 2021-02-25T06:05:05Z | 2021-02-25T06:05:05Z | 2021-02-25T06:05:35Z |
DOC: Ban mutation in UDF methods | diff --git a/doc/source/user_guide/gotchas.rst b/doc/source/user_guide/gotchas.rst
index 07c856c96426d..4089f9523724f 100644
--- a/doc/source/user_guide/gotchas.rst
+++ b/doc/source/user_guide/gotchas.rst
@@ -178,6 +178,75 @@ To test for membership in the values, use the method :meth:`~pandas.Series.isin`
For ``DataFr... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Ref: #12653. I added the message to apply, aggregate, transform, and groupby's filter. Not sure if this needs a whatsnew.
cc @jbrockmend... | https://api.github.com/repos/pandas-dev/pandas/pulls/39762 | 2021-02-12T00:18:55Z | 2021-02-15T23:20:47Z | 2021-02-15T23:20:47Z | 2021-02-23T19:37:16Z |
BUG: Series.where not casting None to nan | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 09e1853429d9f..86548d2d59f1b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -450,6 +450,7 @@ Other
- Bug in constructing a :class:`Series` from a list and a :class:`PandasDtype` (:issue:`39357`)
- B... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
started off just moving more tests to use SetitemCastingEquivalents, found this in TestSeri... | https://api.github.com/repos/pandas-dev/pandas/pulls/39761 | 2021-02-11T23:09:03Z | 2021-02-12T01:27:36Z | 2021-02-12T01:27:36Z | 2021-02-12T15:24:22Z |
CLN: maybe_promote doesnt need to support EA dtypes | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 98069e73dfd0c..a61ef62959b14 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1662,7 +1662,12 @@ def take(arr, indices, axis: int = 0, allow_fill: bool = False, fill_value=None)
def _take_preprocess_indexer_and_fill_... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39760 | 2021-02-11T23:06:21Z | 2021-02-12T01:22:32Z | 2021-02-12T01:22:32Z | 2021-02-12T01:39:54Z |
BUG: casting dt64/td64 in DataFrame.reindex | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 09e1853429d9f..0d28177fa30e4 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -335,6 +335,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` raising ``ValueError`` when setting multiple values to dup... | - [x] closes #39755
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39759 | 2021-02-11T21:43:11Z | 2021-02-12T01:21:37Z | 2021-02-12T01:21:36Z | 2021-02-12T01:43:43Z |
[ArrayManager] TST: arithmetic test | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index aec19e27a33e2..ec67b15c8ed00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -153,6 +153,7 @@ jobs:
run: |
source activate pandas-dev
pytest pandas/tests/frame/methods --array-manager
+ pytest ... | xref https://github.com/pandas-dev/pandas/issues/39146/ | https://api.github.com/repos/pandas-dev/pandas/pulls/39753 | 2021-02-11T12:28:59Z | 2021-02-17T09:37:19Z | 2021-02-17T09:37:19Z | 2021-02-17T09:38:14Z |
ENH: Implement rounding for floating dtype array #38844 | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index e99963c6ad56b..7d16288ecdd4c 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -139,6 +139,7 @@ Other enhancements
- :meth:`pandas.read_stata` and :class:`StataReader` support reading data from compress... | Code proposed in the staled PR #38866
- [x] closes #38844
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39751 | 2021-02-11T11:04:08Z | 2021-03-08T14:32:32Z | 2021-03-08T14:32:31Z | 2021-03-08T19:54:24Z |
DOC: added more and updated links in cheat sheet | diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
index 48da05d053b96..fb71f869ba22f 100644
Binary files a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf and b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf differ
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pptx b/doc/cheatsheet/Pandas_Cheat_S... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39748 | 2021-02-11T07:52:03Z | 2021-02-11T15:30:45Z | 2021-02-11T15:30:45Z | 2021-02-11T15:37:04Z |
DOC: remove mention of MultiIndex from rolling docs | diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py
index bec6cfb375716..b5714dbcd9e91 100644
--- a/pandas/core/window/rolling.py
+++ b/pandas/core/window/rolling.py
@@ -732,7 +732,7 @@ class Window(BaseWindow):
Provide a window type. If ``None``, all points are evenly weighted.
... | - [x] closes #39686
Remove mention of MultiIndex from rolling docs. | https://api.github.com/repos/pandas-dev/pandas/pulls/39747 | 2021-02-11T07:24:38Z | 2021-02-11T13:46:32Z | 2021-02-11T13:46:32Z | 2021-02-18T04:55:03Z |
CI: share pandas setup steps | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
new file mode 100644
index 0000000000000..d4777bcd1d079
--- /dev/null
+++ b/.github/actions/build_pandas/action.yml
@@ -0,0 +1,17 @@
+name: Build pandas
+description: Rebuilds the C extensions and installs pandas
+runs:
+ us... | Split out from https://github.com/pandas-dev/pandas/pull/39392. Just a refactor; puts redundant setup steps in a shared place.
To be honest, I don't actually understand why different GitHub Actions set up pandas in different ways, so didn't change that here.
The `uses` calls can be moved into the composite action... | https://api.github.com/repos/pandas-dev/pandas/pulls/39745 | 2021-02-11T04:47:39Z | 2021-02-11T13:42:45Z | 2021-02-11T13:42:45Z | 2021-02-11T13:42:49Z |
CI: fix reference to take_1d() | diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py
index 5d9070de92ec7..47523005a877f 100644
--- a/asv_bench/benchmarks/gil.py
+++ b/asv_bench/benchmarks/gil.py
@@ -1,7 +1,7 @@
import numpy as np
from pandas import DataFrame, Series, date_range, factorize, read_csv
-from pandas.core.algorithms i... | Fix for issue noted by @lithomas1 in https://github.com/pandas-dev/pandas/pull/39731#issuecomment-777179836, which is causing the Benchmarks to fail.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.... | https://api.github.com/repos/pandas-dev/pandas/pulls/39744 | 2021-02-11T04:12:38Z | 2021-02-11T07:43:30Z | 2021-02-11T07:43:30Z | 2021-02-11T17:27:05Z |
BUG: maybe_promote with dt64tz and mismatched NA | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 18f1bba6ebfb8..e27c519304e2e 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -24,7 +24,7 @@
import numpy as np
-from pandas._libs import lib, missing as libmissing, tslib
+from pandas._libs import lib, tslib
fro... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39743 | 2021-02-11T03:13:43Z | 2021-02-12T17:52:03Z | 2021-02-12T17:52:03Z | 2021-02-12T17:54:31Z |
BUG: Timedelta input string with only symbols and no digits raises an error (GH39710) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a3a9a4c5eda08..0ef4361c5fb53 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -292,7 +292,7 @@ Timedelta
^^^^^^^^^
- Bug in constructing :class:`Timedelta` from ``np.timedelta64`` objects with non-nan... | - [x] closes #39710
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39737 | 2021-02-10T21:52:55Z | 2021-02-10T23:47:34Z | 2021-02-10T23:47:33Z | 2021-02-10T23:47:37Z |
CLN: remove ndarray cases from maybe_promote | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 77c7db6a07698..5d9b51238c255 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -520,28 +520,15 @@ def maybe_promote(dtype: DtypeObj, fill_value=np.nan):
ValueError
If fill_value is a non-scalar and dtype i... | AFAICT this is a relic of using maybe_promote where we should use infer_dtype_from + find_common_type | https://api.github.com/repos/pandas-dev/pandas/pulls/39736 | 2021-02-10T21:49:58Z | 2021-02-10T23:09:51Z | 2021-02-10T23:09:51Z | 2021-02-10T23:10:49Z |
[ArrayManager] Indexing - implement iset | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2d8f6468aca83..aec19e27a33e2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -153,3 +153,9 @@ jobs:
run: |
source activate pandas-dev
pytest pandas/tests/frame/methods --array-manager
+
+ # ind... | xref https://github.com/pandas-dev/pandas/issues/39146/, follow-up on https://github.com/pandas-dev/pandas/pull/39722 | https://api.github.com/repos/pandas-dev/pandas/pulls/39734 | 2021-02-10T20:58:42Z | 2021-02-15T19:06:52Z | 2021-02-15T19:06:52Z | 2021-02-15T19:06:55Z |
REF: remove take_1d alias of take_nd | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 024bfb02fe09d..6b67459c47c38 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -29,7 +29,7 @@
Series,
TimedeltaIndex,
)
-from pandas.core.algorithms import safe_sort, take_1d
+from pandas.core.algorit... | @jreback as discussed in https://github.com/pandas-dev/pandas/pull/39692
Since this is just an alias, this is certainly fine in theory. Although now doing it, I think there is still *some* value of the alias to signal that it is taking a 1D array which can provide useful context when *reading* code that uses this. | https://api.github.com/repos/pandas-dev/pandas/pulls/39731 | 2021-02-10T19:16:06Z | 2021-02-10T23:48:46Z | 2021-02-10T23:48:46Z | 2021-02-11T07:43:02Z |
TYP: MultiIndex | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1d633aec79e93..63d238da12101 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4821,7 +4821,10 @@ def set_index(
names.extend(col.names)
elif isinstance(col, (Index, Series)):
# if Index then not... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39729 | 2021-02-10T17:22:48Z | 2021-02-10T18:43:28Z | 2021-02-10T18:43:28Z | 2021-02-10T18:51:15Z |
REF: separate out indexer/mask preprocessing code in algorithms.take_nd | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index cdbef673643e8..98243431e42df 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1661,6 +1661,40 @@ def take(arr, indices, axis: int = 0, allow_fill: bool = False, fill_value=None)
return result
+def _take_preproces... | Precursor for https://github.com/pandas-dev/pandas/pull/39692 (just moving code into a separate helper function) | https://api.github.com/repos/pandas-dev/pandas/pulls/39728 | 2021-02-10T16:35:07Z | 2021-02-10T17:58:47Z | 2021-02-10T17:58:47Z | 2021-02-10T18:02:18Z |
SAS validate null dates | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 99ae60859b68c..11f8a5b6c2499 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -390,6 +390,7 @@ I/O
- Bug in :func:`read_json` when ``orient="split"`` does not maintain numeric string index (:issue:`285... | - [x] closes #39725
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39726 | 2021-02-10T15:42:23Z | 2021-02-12T20:12:13Z | 2021-02-12T20:12:12Z | 2021-02-12T20:23:02Z |
REF: move reshaping of array for setitem from DataFrame into BlockManager internals | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9e54a5ee0210d..1d633aec79e93 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3272,7 +3272,6 @@ def _set_item_frame_value(self, key, value: DataFrame) -> None:
# now align rows
value = _reindex_for_setitem(value, self.ind... | I think ideally the DataFrame does not need to be aware of how the underlying manager stores the data (as 2D, transposed or not), so moving the logic of ensuring 2D/transposed values from the DataFrame set_item-related method into `BlockManager.iset`.
This will help for the ArrayManager, so we don't have to re-resha... | https://api.github.com/repos/pandas-dev/pandas/pulls/39722 | 2021-02-10T13:14:51Z | 2021-02-10T14:40:30Z | 2021-02-10T14:40:30Z | 2021-02-10T20:19:15Z |
[ArrayManager] Implement .equals method | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index 0f677ff3180be..a8493e647f39a 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -20,7 +20,7 @@
)
from pandas.core.dtypes.dtypes import ExtensionDtype, PandasDtype
from p... | xref #39146
Moved the common part (checking of dimension and indices) to the base class `equals` method so this can be shared, and the actual BlockManager/AraryManager then only need to check the column values. | https://api.github.com/repos/pandas-dev/pandas/pulls/39721 | 2021-02-10T10:22:20Z | 2021-02-10T13:51:47Z | 2021-02-10T13:51:47Z | 2021-02-10T13:54:05Z |
DOC: Rewrite for `Styler` user guide with new features and other high-level changes. | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index e72a9d86daeaf..3b1a3c5e380d3 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -98,7 +98,8 @@ which can be used for a wide variety of time series data mining tasks.
Visualization
-------------
-While :ref:`pandas has built-... | - [x] closes #39593
- [x] closes #40645
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This renames `Styling` with `Table Visualization` and aligns it more with `Chart Visualization`.... | https://api.github.com/repos/pandas-dev/pandas/pulls/39720 | 2021-02-10T10:14:09Z | 2021-03-29T15:55:19Z | 2021-03-29T15:55:19Z | 2021-03-29T17:00:08Z |
[ArrayManager] Test DataFrame reductions + implement ignore_failures | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 461363d295f6a..a2162f2e66b36 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -153,6 +153,9 @@ jobs:
run: |
source activate pandas-dev
pytest pandas/tests/frame/methods --array-manager
+ pytest ... | xref https://github.com/pandas-dev/pandas/issues/39146
This adds support for ignoring failures in `ArrayManager.reduce`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39719 | 2021-02-10T09:53:00Z | 2021-02-25T00:39:26Z | 2021-02-25T00:39:26Z | 2021-02-25T08:08:18Z |
DOC: Group optional dependencies by category | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 1ee8e3401e7f4..291799cfe521d 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -255,47 +255,52 @@ For example, :func:`pandas.read_hdf` requires the ``pytables`` package, w... | - [x] closes #39594
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This PR splits the Optional Dependencies table into multiple tables one for each category... | https://api.github.com/repos/pandas-dev/pandas/pulls/39715 | 2021-02-10T06:39:20Z | 2021-02-22T23:20:50Z | 2021-02-22T23:20:50Z | 2021-02-22T23:50:10Z |
REF: implement ensure_can_hold_na | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 67e9aaa99debd..77c7db6a07698 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -475,7 +475,8 @@ def maybe_upcast_putmask(result: np.ndarray, mask: np.ndarray) -> np.ndarray:
# upcast (possibly), otherwise we DO... | Much simpler than maybe_promote, which for the most part id like to replace with something like
```
def maybe_promote(dtype, fill_value):
inferred, fv = infer_dtype_from(fill_value)
new_dtype = find_common_type([dtype, inferred])
return inferred, fv
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/39714 | 2021-02-10T05:33:06Z | 2021-02-10T18:41:25Z | 2021-02-10T18:41:25Z | 2021-02-10T18:51:57Z |
Backport PR #39709 on branch 1.2.x (CI: pin numpydoc) | diff --git a/environment.yml b/environment.yml
index a5b61220f88f3..ac696b95f6ba9 100644
--- a/environment.yml
+++ b/environment.yml
@@ -114,4 +114,4 @@ dependencies:
- natsort # DataFrame.sort_values
- pip:
- git+https://github.com/pandas-dev/pydata-sphinx-theme.git@2488b7defbd3d753dd5fcfc890fc4a7e79d25103... | Backport PR #39709: CI: pin numpydoc | https://api.github.com/repos/pandas-dev/pandas/pulls/39712 | 2021-02-10T00:32:25Z | 2021-02-10T10:26:20Z | 2021-02-10T10:26:20Z | 2021-02-10T10:26:20Z |
REF: Rename is_valid_nat_for_dtype -> is_valid_na_for_dtype | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 13da3df93af14..99777bc2f169e 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -54,7 +54,7 @@
)
from pandas.core.dtypes.dtypes import CategoricalDtype
from pandas.core.dtypes.generic impor... | https://api.github.com/repos/pandas-dev/pandas/pulls/39711 | 2021-02-09T23:36:14Z | 2021-02-10T09:57:07Z | 2021-02-10T09:57:07Z | 2021-02-10T16:24:03Z | |
CI: pin numpydoc | diff --git a/environment.yml b/environment.yml
index 6376da76bd580..113780ed0264a 100644
--- a/environment.yml
+++ b/environment.yml
@@ -114,4 +114,4 @@ dependencies:
- natsort # DataFrame.sort_values
- pip:
- git+https://github.com/pandas-dev/pydata-sphinx-theme.git@2488b7defbd3d753dd5fcfc890fc4a7e79d25103... | xref #39688
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39709 | 2021-02-09T22:12:35Z | 2021-02-10T00:32:07Z | 2021-02-10T00:32:07Z | 2021-02-10T02:30:19Z |
DOCS: Added links to official docs in cheat sheets | - [x] closes #39706
- [x] tests added / passed (not necessary, only edited ppt and pdf)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them (not necessary, only edited ppt and pdf)
- [x] whatsnew entry (not necesa... | https://api.github.com/repos/pandas-dev/pandas/pulls/39707 | 2021-02-09T20:15:35Z | 2021-02-10T23:10:01Z | 2021-02-10T23:10:00Z | 2021-02-10T23:42:38Z | |
DEP: bump min version of openpyxl to 3.0.0 #39603 | diff --git a/ci/deps/azure-37-locale_slow.yaml b/ci/deps/azure-37-locale_slow.yaml
index 7f658fe62d268..0c47b1a72774f 100644
--- a/ci/deps/azure-37-locale_slow.yaml
+++ b/ci/deps/azure-37-locale_slow.yaml
@@ -18,7 +18,7 @@ dependencies:
- lxml
- matplotlib=3.0.0
- numpy=1.16.*
- - openpyxl=2.6.0
+ - openpyxl... | - [x] closes #39603
| https://api.github.com/repos/pandas-dev/pandas/pulls/39702 | 2021-02-09T17:23:18Z | 2021-02-15T22:14:02Z | 2021-02-15T22:14:02Z | 2021-03-18T16:36:39Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.