title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
BUG: Fixed getattr for frame with column sparse | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a9a0d89ed01aa..5b4761c3bc6c5 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1004,7 +1004,7 @@ Reshaping
Sparse
^^^^^^
- Bug in :class:`SparseDataFrame` arithmetic operations incorrectly casting in... | Closes https://github.com/pandas-dev/pandas/issues/30758 | https://api.github.com/repos/pandas-dev/pandas/pulls/30759 | 2020-01-06T21:44:39Z | 2020-01-06T23:52:02Z | 2020-01-06T23:52:02Z | 2020-01-06T23:52:05Z |
BUG: TDI.insert with empty TDI raising IndexError | diff --git a/pandas/tests/indexes/timedeltas/test_indexing.py b/pandas/tests/indexes/timedeltas/test_indexing.py
index 36105477ba9ee..e8665ee1a3555 100644
--- a/pandas/tests/indexes/timedeltas/test_indexing.py
+++ b/pandas/tests/indexes/timedeltas/test_indexing.py
@@ -173,6 +173,15 @@ def test_take_fill_value(self):
... | This started out as a cosmetic-only branch and ended up finding a broken corner case. The relevant change is in timedeltas L416 where `if self.freq is not None:` is now `if self.size and self.freq is not None:`
Using _check_compatible_with causes us to raise TypeError instead of ValueError in a couple of the Dateti... | https://api.github.com/repos/pandas-dev/pandas/pulls/30757 | 2020-01-06T21:26:35Z | 2020-01-09T13:18:27Z | 2020-01-09T13:18:27Z | 2020-01-09T16:26:05Z |
TST: Use datapath fixture | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index 42f904b47a6ee..ccd77f47b5e5e 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -381,10 +381,10 @@ def test_read(self, protocol, get_random_path):
tm.assert_frame_equal(df, df2)
-def test... | This was failing the wheel build.
https://travis-ci.org/MacPython/pandas-wheels/jobs/633451994.
I tried briefly to write a code check for this, but didn't succeed. | https://api.github.com/repos/pandas-dev/pandas/pulls/30756 | 2020-01-06T21:21:37Z | 2020-01-06T22:26:25Z | 2020-01-06T22:26:25Z | 2020-01-06T22:26:26Z |
CI: Unify code_checks whitespace checking | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e6a761b91f353..7b223a553e114 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -102,9 +102,17 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
MSG='Check for use of not concatenated strings' ; echo $MSG
if [[ "$GITHUB_ACTIONS" == "true" ]];... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Unify test cases of #30467 #30708 #30737 | https://api.github.com/repos/pandas-dev/pandas/pulls/30755 | 2020-01-06T21:20:51Z | 2020-03-23T10:31:11Z | 2020-03-23T10:31:10Z | 2020-03-23T12:06:19Z |
BUG: DTI/TDI .insert accepting incorrectly-dtyped NaT | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 40d3823c9700b..c2edfd53e1207 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -11,7 +11,7 @@
from pandas.core.dtypes.common import _NS_DTYPE, is_float, is_integer, is_scalar
from pandas.core... | Also TDI.insert trying to parse strings to Timedelta, which neither DTI nor PI do. | https://api.github.com/repos/pandas-dev/pandas/pulls/30754 | 2020-01-06T21:19:39Z | 2020-01-06T23:58:36Z | 2020-01-06T23:58:36Z | 2020-01-07T01:41:30Z |
Fix: Warning(Attempt to set value to copy of a slice) | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ea59a6a49e649..de3a5e4749538 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -962,7 +962,7 @@ def setter(item, v):
s._maybe_update_cacher(clear=True)
# reset the sliced object if unique
- ... | Getting a warning emitted from this line of code. Here is the fix I used to get rid of the warning, and here is the code that generated it on my setup (Anaconda3, Windows 10):
```
import pandas as pd
ts_columns = []
for col in df.columns:
if isinstance(df[col].dtype, Timestamp):
ts_columns.append... | https://api.github.com/repos/pandas-dev/pandas/pulls/30753 | 2020-01-06T20:27:00Z | 2020-01-06T23:36:18Z | null | 2023-05-11T01:19:25Z |
REF: share _validate_fill_value | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index b9a6daf7c630a..b0985332092ae 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -591,7 +591,17 @@ def _validate_fill_value(self, fill_value):
------
ValueError
"... | Made feasible by #30721. | https://api.github.com/repos/pandas-dev/pandas/pulls/30752 | 2020-01-06T19:09:07Z | 2020-01-06T19:49:35Z | 2020-01-06T19:49:35Z | 2020-01-06T19:51:00Z |
REF: share comparison methods for DTA/TDA/PA | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index b0985332092ae..0fadf3a05a1d3 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -11,6 +11,7 @@
from pandas._libs.tslibs.timedeltas import Timedelta, delta_to_nanoseconds
from pandas._lib... | https://api.github.com/repos/pandas-dev/pandas/pulls/30751 | 2020-01-06T18:55:08Z | 2020-01-06T23:53:41Z | 2020-01-06T23:53:41Z | 2020-01-07T01:56:31Z | |
Fix PR08 errors | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index d9e68b64f526d..1415d1e0a1226 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -2673,7 +2673,7 @@ def get_loc_level(self, key, level=0, drop_level: bool = True):
key : label or sequence of labels
... | Fixes PR08 errors. When I ran the script, a lot of them seem to be false positives, these are the ones I'm pretty sure should be fixed:
```
pandas.infer_freq: Parameter "index" description should start with a capital letter
pandas.MultiIndex.get_loc_level: Parameter "drop_level" description should start with a capit... | https://api.github.com/repos/pandas-dev/pandas/pulls/30749 | 2020-01-06T18:22:38Z | 2020-01-06T18:59:43Z | 2020-01-06T18:59:43Z | 2020-01-06T18:59:49Z |
PERF: Categorical getitem perf | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 7386c9d0ef1de..524e3fcf309cb 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -39,7 +39,7 @@
)
from pandas.core.dtypes.dtypes import CategoricalDtype
from pandas.core.dtypes.generic impor... | Convert to an array earlier on.
Closes https://github.com/pandas-dev/pandas/issues/30744 | https://api.github.com/repos/pandas-dev/pandas/pulls/30747 | 2020-01-06T17:42:48Z | 2020-01-06T19:28:11Z | 2020-01-06T19:28:11Z | 2020-01-06T19:29:39Z |
CI: Using docstring validator from numpydoc | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a90774d2e8ff1..5be34eee69a91 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -311,8 +311,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,... | - [X] xref #28822
- [x] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
We moved our script to numpydoc, and it already had some improvements there. The script does like 80% of our validation, so what I'm doing here is to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30746 | 2020-01-06T17:32:37Z | 2020-01-16T02:01:22Z | 2020-01-16T02:01:22Z | 2020-01-16T02:01:23Z |
DEPR/REGR: Fix pandas.util.testing deprecation | diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py
index bdb4e813023b6..72e2413ce87d9 100644
--- a/pandas/tests/api/test_api.py
+++ b/pandas/tests/api/test_api.py
@@ -1,3 +1,4 @@
+import sys
from typing import List
import pandas as pd
@@ -288,14 +289,20 @@ def test_testing(self):
self... | Closes https://github.com/pandas-dev/pandas/issues/30735
This avoids using _DeprecatedModule, which doesn't work for
direct imports from a module. Sorry for the importlib magic, but
I think this is the correct way to do things.
cc @jorisvandenbossche. | https://api.github.com/repos/pandas-dev/pandas/pulls/30745 | 2020-01-06T16:50:02Z | 2020-01-07T00:01:14Z | 2020-01-07T00:01:14Z | 2020-01-07T00:01:18Z |
ENH: Support multi row inserts in to_sql when using the sqlite fallback | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 8cbc95f0349cf..4c14f9735157b 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -19,6 +19,7 @@ Other enhancements
^^^^^^^^^^^^^^^^^^
- :class:`Styler` may now render CSS more efficiently where multipl... | Currently we do not support multi row inserts into sqlite databases
when `to_sql` is passed `method="multi"` - despite the documentation
suggesting that this is supported.
Adding support for this is straightforward - it only needs us
to implement a single method on the SQLiteTable class and so
this PR does just ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30743 | 2020-01-06T16:17:46Z | 2020-02-11T23:01:02Z | 2020-02-11T23:01:01Z | 2020-04-18T18:00:34Z |
DOC: Capitalize the 'p' in 'pandas code style guide' | diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst
index 2fc2f1fb6ee8d..1e9128ee75148 100644
--- a/doc/source/development/code_style.rst
+++ b/doc/source/development/code_style.rst
@@ -3,7 +3,7 @@
{{ header }}
=======================
-pandas code style guide
+Pandas code styl... | - [ ] 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/30739 | 2020-01-06T14:00:34Z | 2020-01-06T19:01:26Z | null | 2020-01-07T14:39:40Z |
CI: Disallow bare pytest raise | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a90774d2e8ff1..13d2416c61b8a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -108,6 +108,14 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
fi
RET=$(($RET + $?)) ; echo $MSG "DONE"
+ MSG='Check for use of bare pytest raise' ; echo $MS... | - [x] closes #23922
- [ ] 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/30737 | 2020-01-06T13:32:31Z | 2020-01-06T21:37:40Z | null | 2020-01-08T20:31:01Z |
TYP: _config/config.py && core/{apply,construction}.py | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 42df8a84a8c77..cacd6f5454de7 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -51,7 +51,18 @@
from collections import namedtuple
from contextlib import contextmanager
import re
-from typing import Any, Dict, Iterable, List
... | - [ ] 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/30734 | 2020-01-06T13:10:35Z | 2020-01-16T20:30:54Z | 2020-01-16T20:30:54Z | 2020-01-16T23:41:26Z |
Fix read_json category dtype | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 7f2aab569ab71..8d44a54fbd988 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -12,7 +12,12 @@
from pandas._typing import JSONSerializable
from pandas.errors import AbstractMethodError
-from pandas.core.dtypes.common import ens... | - [X] closes #21892
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] Add support for "category" dtype in read_json
| https://api.github.com/repos/pandas-dev/pandas/pulls/30728 | 2020-01-06T10:49:08Z | 2020-05-08T16:44:34Z | null | 2020-05-08T16:44:35Z |
DOC: fix see also in docstring of check_bool_array_indexer | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index 0f932f7b849e3..4d45769d2fea9 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -274,14 +274,14 @@ def check_bool_array_indexer(array: AnyArrayLike, mask: AnyArrayLike) -> np.ndar
See Also
--------
- api.extensions.is... | xref https://github.com/pandas-dev/pandas/pull/30308#pullrequestreview-338522525 | https://api.github.com/repos/pandas-dev/pandas/pulls/30725 | 2020-01-06T08:55:41Z | 2020-01-06T11:55:03Z | 2020-01-06T11:55:03Z | 2020-01-06T12:02:17Z |
annotations | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 4293108ea7ec2..1166768472449 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -326,7 +326,7 @@ cdef class Interval(IntervalMixin):
def __hash__(self):
return hash((self.left, self.right, self.closed))
- ... | grepped for `__contains__`, annotated those where possible and a few things around it | https://api.github.com/repos/pandas-dev/pandas/pulls/30724 | 2020-01-06T02:59:02Z | 2020-01-06T13:34:17Z | 2020-01-06T13:34:16Z | 2020-01-06T15:26:17Z |
REF: Create test_encoding file for CSV | diff --git a/pandas/tests/io/parser/test_common.py b/pandas/tests/io/parser/test_common.py
index 0e408df625ccd..4c02a37b66455 100644
--- a/pandas/tests/io/parser/test_common.py
+++ b/pandas/tests/io/parser/test_common.py
@@ -5,7 +5,7 @@
import codecs
import csv
from datetime import datetime
-from io import BytesIO, ... | This is 99.99% copy and paste | https://api.github.com/repos/pandas-dev/pandas/pulls/30723 | 2020-01-06T01:44:32Z | 2020-01-06T13:24:41Z | 2020-01-06T13:24:41Z | 2020-01-06T13:24:47Z |
BUG: PeriodArray comparisons inconsistent with Period comparisons | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b2b6fe393f069..a9a0d89ed01aa 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -837,6 +837,7 @@ Datetimelike
- Bug in :class:`DatetimeArray`, :class:`TimedeltaArray`, and :class:`PeriodArray` where inpl... | The second of two non-cosmetic changes mentioned in #30720. | https://api.github.com/repos/pandas-dev/pandas/pulls/30722 | 2020-01-06T01:20:48Z | 2020-01-06T17:48:37Z | 2020-01-06T17:48:37Z | 2020-01-06T17:53:25Z |
Make DTA _check_compatible_with less strict by default | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 2bdd9acaeb70f..b9a6daf7c630a 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -109,7 +109,7 @@ def _unbox_scalar(self, value: Union[Period, Timestamp, Timedelta, NaTType]) ->
ra... | One of the two non-cosmetic things mentioned in #30720.
There are a bunch of places where DTA or DTI do a compatibility check that for tz_awareness_compat, but not requiring the same tz. This check is analogous to `PeriodArray._check_compatible_with` and `TimedeltaArray._check_compatible_with`, so this adds a kwarg... | https://api.github.com/repos/pandas-dev/pandas/pulls/30721 | 2020-01-06T01:14:01Z | 2020-01-06T17:36:32Z | 2020-01-06T17:36:32Z | 2020-01-06T17:47:48Z |
REF: cosmetic differences between DTA/TDA/PA comparison methods | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index cc54fb5e5af13..6aa910c0f6ab8 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -26,12 +26,14 @@
_INT64_DTYPE,
_NS_DTYPE,
is_categorical_dtype,
+ is_datetime64_any_dtype,
is_dat... | There are 2 remaining non-cosmetic differences between these methods remaining, which will be the subjects of upcoming PRs. Once those are addressed, we'll be able to de-duplicate the methods completely. | https://api.github.com/repos/pandas-dev/pandas/pulls/30720 | 2020-01-06T01:04:23Z | 2020-01-06T13:25:32Z | 2020-01-06T13:25:32Z | 2020-01-06T15:27:19Z |
Consistent json error | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index c413a16f8d5f0..edee06117817d 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -156,24 +156,72 @@ void *initObjToJSON(void) {
(PyTypeObject *)PyObject... | This will take a few passes to do comprehensively, but trying to clean up error handling in the extension module. Right now failure points are allowed, which can lead to segfaults or surprising behaviour when debugging.
Trying to push closers towards the CPython error handling conventions:
https://docs.python.org... | https://api.github.com/repos/pandas-dev/pandas/pulls/30719 | 2020-01-06T00:47:09Z | 2020-01-13T23:16:53Z | null | 2023-04-12T20:16:01Z |
TYP: type up parts of frame.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ba0c0e7d66b1d..3b012b2ff3736 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -16,6 +16,7 @@
from textwrap import dedent
from typing import (
IO,
+ TYPE_CHECKING,
Any,
FrozenSet,
Hashable,
@@ -127,6 +128,9 @@
from pa... | Type up methods with a single return value type. | https://api.github.com/repos/pandas-dev/pandas/pulls/30718 | 2020-01-05T23:29:10Z | 2020-01-06T18:58:50Z | 2020-01-06T18:58:50Z | 2020-01-06T19:03:46Z |
REF: move sharable methods to ExtensionIndex | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 0c40900d54b53..4697f2d2e59a4 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -831,20 +831,6 @@ def slice_indexer(self, start=None, end=None, step=None, kind=None):
else:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30717 | 2020-01-05T22:47:12Z | 2020-01-09T13:17:59Z | 2020-01-09T13:17:59Z | 2020-01-15T08:26:11Z | |
IntervalArray equality follow-ups | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 9b1399b9e5aa9..9ce917b004bc1 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -51,6 +51,7 @@
maybe_extract_name,
)
from pandas.core.indexes.datetimes import DatetimeIndex, date_range
+from pa... | Follow-ups to #30640 based on @jbrockmendel's comments.
Haven't addressed all the comments yet but pushing this up now so there's a record of it.
Changes thus far:
- Created `tests/arithmetic/test_interval.py ` and moved the tests there
- Used `make_wrapped_comparison_op` to add `__eq__` and `__ne__` to `Interv... | https://api.github.com/repos/pandas-dev/pandas/pulls/30715 | 2020-01-05T21:50:47Z | 2020-01-06T00:22:12Z | 2020-01-06T00:22:12Z | 2020-01-08T15:55:24Z |
REF: share _union between DTI/TDI | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 365cfb1585f00..c78545a12f43b 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -806,6 +806,25 @@ def _fast_union(self, other, sort=None):
else:
return left
+ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30714 | 2020-01-05T20:08:33Z | 2020-01-06T13:28:09Z | 2020-01-06T13:28:09Z | 2020-01-06T15:31:16Z | |
Fix PeriodIndex._shallow_copy allowing object-dtype | diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py
index 1904456848396..4072d06b9427c 100644
--- a/pandas/core/indexes/api.py
+++ b/pandas/core/indexes/api.py
@@ -198,6 +198,7 @@ def conv(i):
result = indexes[0]
if hasattr(result, "union_many"):
+ # DatetimeIndex
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30713 | 2020-01-05T19:56:33Z | 2020-01-06T13:20:10Z | 2020-01-06T13:20:10Z | 2020-01-06T15:32:06Z | |
CLN: remove Index/Series._is_homogeneous_type | diff --git a/pandas/core/base.py b/pandas/core/base.py
index d38dbec684f35..7d499181c6ed1 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -628,24 +628,6 @@ def transpose(self, *args, **kwargs):
""",
)
- @property
- def _is_homogeneous_type(self) -> bool:
- """
- Whether... | https://api.github.com/repos/pandas-dev/pandas/pulls/30712 | 2020-01-05T19:43:26Z | 2020-01-05T20:46:28Z | 2020-01-05T20:46:28Z | 2020-01-05T20:47:52Z | |
Datetime error message (unable to continue that PR) | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 267780219c74e..d7feb194af11e 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -1952,14 +1952,21 @@ def objects_to_datetime64ns(
yearfirst=yearfirst,
require_iso8601=require... | - [ ] closes #10720
- [ ] 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/30711 | 2020-01-05T18:30:22Z | 2020-01-18T06:44:10Z | null | 2020-01-18T12:47:41Z |
CI: Fix numpydev build | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index 5181b0400d7bb..c413a16f8d5f0 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -176,9 +176,8 @@ void *initObjToJSON(void) {
Py_DECREF(mod_nattype);
... | - [x] closes #30709
hmm.. im not sure on this. But don't see any usage of this ret value.
The C extensions now build with this change
Potentially related change on the numpy side:
https://github.com/numpy/numpy/pull/15232
cc. @WillAyd @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/30710 | 2020-01-05T15:33:20Z | 2020-01-05T16:13:31Z | 2020-01-05T16:13:30Z | 2020-01-14T23:42:25Z |
CI: Test case for wrong placed space | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a90774d2e8ff1..598d687180f1b 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -108,6 +108,14 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
fi
RET=$(($RET + $?)) ; echo $MSG "DONE"
+ MSG='Check for wrong space in a string' ; echo $MSG... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Test case for:
```python
foo = (
"bar"
" baz"
)
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/30708 | 2020-01-05T11:36:22Z | 2020-01-06T21:37:12Z | null | 2020-01-08T20:32:56Z |
STY: Spaces over concat strings - batch 1 | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index e0a2b987c98d5..53e3354ca8eb6 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -120,8 +120,7 @@ def ints_to_pydatetime(const int64_t[:] arr, object tz=None, object freq=None,
elif box == "datetime":
func_create = create_d... | - [ ] 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/30707 | 2020-01-05T11:03:40Z | 2020-01-06T17:24:23Z | 2020-01-06T17:24:23Z | 2020-01-06T23:42:16Z |
CLN: replacing '.format' with f-strings in various files | diff --git a/pandas/tests/util/test_validate_args.py b/pandas/tests/util/test_validate_args.py
index dfbd8a3f9af19..746d859b3322e 100644
--- a/pandas/tests/util/test_validate_args.py
+++ b/pandas/tests/util/test_validate_args.py
@@ -20,10 +20,8 @@ def test_bad_arg_length_max_value_single():
max_length = len(compat... | - [x] contributes to #29547
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/30706 | 2020-01-05T06:17:42Z | 2020-01-06T17:45:14Z | 2020-01-06T17:45:14Z | 2020-01-06T17:45:18Z |
BUG: listlike comparisons for DTA and TDA | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index dcdde4d7fb13a..cc54fb5e5af13 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -161,11 +161,9 @@ def wrapper(self, other):
raise ValueError("Lengths must match")
else:
... | These will now match PeriodArray, and we can move to share the methods. | https://api.github.com/repos/pandas-dev/pandas/pulls/30705 | 2020-01-05T01:43:31Z | 2020-01-05T16:18:07Z | 2020-01-05T16:18:07Z | 2020-01-05T18:09:02Z |
REF: Share _fast_union between DTI/TDI | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 7001b32c66204..365cfb1585f00 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -23,6 +23,7 @@
is_period_dtype,
is_scalar,
)
+from pandas.core.dtypes.concat import concat_co... | https://api.github.com/repos/pandas-dev/pandas/pulls/30704 | 2020-01-05T00:46:51Z | 2020-01-05T16:23:01Z | 2020-01-05T16:23:01Z | 2020-01-05T18:07:26Z | |
Implement ExtensionIndex | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index c162bbb412591..f61721a0e51e6 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -10,7 +10,6 @@
from pandas._libs.hashtable import duplicated_int64
from pandas._typing import AnyArrayLike
import pan... | So far this just puts `take` in it, but there are a handful of other methods we'll be able to move from our existing EA Indexes. | https://api.github.com/repos/pandas-dev/pandas/pulls/30703 | 2020-01-04T23:22:49Z | 2020-01-05T21:30:44Z | 2020-01-05T21:30:44Z | 2020-01-05T21:35:09Z |
DEPR: CategoricalIndex.take_nd | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 014bd22aa2dab..08a04174c8399 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -568,7 +568,7 @@ Deprecations
- :func:`eval` keyword argument "truediv" is deprecated and will be removed in a future versi... | matching Categorical.take_nd deprecation | https://api.github.com/repos/pandas-dev/pandas/pulls/30702 | 2020-01-04T22:58:59Z | 2020-01-05T18:43:12Z | 2020-01-05T18:43:12Z | 2020-01-05T18:56:35Z |
BUG: TimedeltaIndex.union with sort=False | diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py
index 6fa7a7d3d4fb6..66b4101a92197 100644
--- a/pandas/core/indexes/timedeltas.py
+++ b/pandas/core/indexes/timedeltas.py
@@ -260,7 +260,7 @@ def _union(self, other, sort):
this, other = self, other
if this._can_fast_... | This matches the DTI behavior, so after this _fast_union can be shared between DTI and TDI. | https://api.github.com/repos/pandas-dev/pandas/pulls/30701 | 2020-01-04T22:33:28Z | 2020-01-04T23:15:41Z | 2020-01-04T23:15:41Z | 2020-01-04T23:23:09Z |
CLN: Replace fstring in tests/groupby/*.py files | diff --git a/pandas/tests/groupby/aggregate/test_other.py b/pandas/tests/groupby/aggregate/test_other.py
index f1dece6a1c46b..52ee3e652501c 100644
--- a/pandas/tests/groupby/aggregate/test_other.py
+++ b/pandas/tests/groupby/aggregate/test_other.py
@@ -473,8 +473,7 @@ def test_agg_timezone_round_trip():
assert res... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Ref to #29547 | https://api.github.com/repos/pandas-dev/pandas/pulls/30700 | 2020-01-04T22:14:19Z | 2020-01-04T23:27:39Z | 2020-01-04T23:27:39Z | 2020-01-05T06:50:20Z |
Fix integer check; also add column with integer name in test case. | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 21a22322daece..20fd42e44258a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -461,7 +461,7 @@ def _get_index_resolvers(self) -> Dict[str, ABCSeries]:
for axis_name in self._AXIS_ORDERS:
d.update(self._get_axis_r... | A small embarrassing mistake is corrected here that was introduced in the recently merged #28215 | https://api.github.com/repos/pandas-dev/pandas/pulls/30698 | 2020-01-04T21:14:05Z | 2020-01-04T22:06:33Z | 2020-01-04T22:06:33Z | 2020-01-04T22:06:46Z |
Implement PeriodIndex.difference without object-dtype cast | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 2ebebc5d5e10a..e9151e6df8260 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -619,7 +619,7 @@ def _get_ilevel_values(index, level):
# accept level number only
unique = index.levels[level]
level_codes = index.codes[level]
-... | Analogous to #30666. After this we'll be able to share some code between the set operations.
The edit in pd._testing is mostly unrelated. Both are motivated by tracking down the places where object-dtype ndarray is passed to PeriodIndex._shallow_copy. | https://api.github.com/repos/pandas-dev/pandas/pulls/30697 | 2020-01-04T20:52:23Z | 2020-01-05T16:22:42Z | 2020-01-05T16:22:42Z | 2020-01-05T18:08:39Z |
Make DTI/TDI _union behavior match | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 9c259dfd11793..6035131e78aa8 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -395,9 +395,7 @@ def _union(self, other: "DatetimeIndex", sort):
result = Index._union(this, other, sor... | Following this we'll be able to share the method. | https://api.github.com/repos/pandas-dev/pandas/pulls/30696 | 2020-01-04T20:49:39Z | 2020-01-05T18:42:18Z | 2020-01-05T18:42:18Z | 2020-01-05T18:57:34Z |
REF: share `delete` between DTI/TDI/PI | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index de27f0c0be850..2833f32e2712d 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -597,6 +597,27 @@ def shift(self, periods=1, freq=None):
result = self._data._time_shift(period... | Besides de-duplicating, this moves the ball down the field in getting rid of PeriodIndex._shallow_copy cases where we pass an object ndarray | https://api.github.com/repos/pandas-dev/pandas/pulls/30695 | 2020-01-04T20:33:45Z | 2020-01-04T23:08:34Z | 2020-01-04T23:08:34Z | 2020-01-04T23:12:01Z |
CLN: unreachable code in indexes | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 8b9e56b39f75f..b44b83cec7b71 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -269,14 +269,12 @@ def _create_categorical(cls, data, dtype=None):
return data
@classmethod
- def _si... | https://api.github.com/repos/pandas-dev/pandas/pulls/30694 | 2020-01-04T20:02:26Z | 2020-01-04T23:07:56Z | 2020-01-04T23:07:56Z | 2020-01-04T23:15:13Z | |
CI: Fix pytest junit_family warnings | diff --git a/setup.cfg b/setup.cfg
index f813d1296b047..d0570cee6fe10 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -66,6 +66,7 @@ xfail_strict = True
filterwarnings =
error:Sparse:FutureWarning
error:The SparseArray:FutureWarning
+junit_family=xunit2
[coverage:run]
branch = False
| - [x] closes #30433
As per https://docs.pytest.org/en/latest/deprecations.html#junit-family-default-value-change-to-xunit2
This will mean we produce xml output with xsd as per: (opposed to old legacy v1)
https://github.com/jenkinsci/xunit-plugin/blob/xunit-2.3.2/src/main/resources/org/jenkinsci/plugins/xunit/typ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30693 | 2020-01-04T19:40:42Z | 2020-01-04T22:57:37Z | 2020-01-04T22:57:37Z | 2020-01-14T23:43:05Z |
ERR: Improve error message and doc for invalid labels in cut/qcut | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 5b4761c3bc6c5..917ffba3ec0a7 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -999,7 +999,7 @@ Reshaping
- Bug in :func:`melt` where supplying mixed strings and numeric values for ``id_vars`` or ``valu... | - [x] closes #13318
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] add whats new note
| https://api.github.com/repos/pandas-dev/pandas/pulls/30691 | 2020-01-04T18:44:34Z | 2020-01-07T21:18:36Z | 2020-01-07T21:18:35Z | 2020-01-08T03:26:09Z |
TYP: NDFrame.(loc|iloc|at|iat) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f5b0ce1ae77fb..ac7c5ca935336 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -144,7 +144,7 @@ def _single_replace(self, to_replace, method, inplace, limit):
bool_t = bool # Need alias because NDFrame has def bool:
-class NDFram... | Currently, the NDFrame indexers (.loc/.iloc/.at/.iat) are too complex set up to let mypy understand them. This PR makes their implementations understandable for mypy (and humans also maybe, the old imp. was a bit indirect so took som effort to understand).
One issue is that I - for the life of me - can't programati... | https://api.github.com/repos/pandas-dev/pandas/pulls/30690 | 2020-01-04T18:25:52Z | 2020-01-04T23:21:27Z | 2020-01-04T23:21:27Z | 2020-01-04T23:22:53Z |
CI: Fix IPython Tab Completion test async warning | diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml
index 4f4c4524cb4dd..c6940f9327e0d 100644
--- a/ci/deps/azure-36-locale.yaml
+++ b/ci/deps/azure-36-locale.yaml
@@ -9,6 +9,7 @@ dependencies:
- cython>=0.29.13
- pytest>=5.0.1
- pytest-xdist>=1.21
+ - pytest-asyncio
- hypothesis>=3.58... | - [x] closes #29070
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- New PR since https://github.com/pandas-dev/pandas/pull/29087 went stale
| https://api.github.com/repos/pandas-dev/pandas/pulls/30689 | 2020-01-04T18:20:33Z | 2020-01-04T23:12:36Z | 2020-01-04T23:12:35Z | 2020-01-04T23:12:40Z |
CLN: share compatibility-check code | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 056c80717e54f..3d4f8720f3377 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -215,12 +215,7 @@ def __init__(self, values, freq=None, dtype=None, copy=False):
if isinstance(values, type(self)):
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30688 | 2020-01-04T18:13:54Z | 2020-01-04T23:16:24Z | 2020-01-04T23:16:24Z | 2020-01-04T23:20:27Z | |
PLT: Add tests for missing markers | diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py
index bdf37ac7e83a4..1c429bafa9a19 100644
--- a/pandas/tests/plotting/test_frame.py
+++ b/pandas/tests/plotting/test_frame.py
@@ -3271,6 +3271,34 @@ def test_plot_no_numeric_data(self):
with pytest.raises(TypeError):
... | closes #14563
closes #14958
- [ ] 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/30687 | 2020-01-04T17:45:46Z | 2020-01-04T21:33:41Z | 2020-01-04T21:33:41Z | 2020-01-04T21:33:47Z |
Fix PeriodIndex.get_indexer with non-PI | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 1cc37504b675f..363ff32519d27 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -564,15 +564,12 @@ def get_value(self, series, key):
def get_indexer(self, target, method=None, limit=None, tolerance=None)... | I'm _pretty_ sure that for non-comparable we should be returning an array of -1s, not raising. Can you double-check me on that @jreback?
| https://api.github.com/repos/pandas-dev/pandas/pulls/30686 | 2020-01-04T17:13:30Z | 2020-01-04T18:04:05Z | 2020-01-04T18:04:05Z | 2020-01-04T18:10:10Z |
DOC: Mention TYP as a type annotation PR prefix | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index 0c275f85b72e0..93c65ba7358c9 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -1363,6 +1363,7 @@ some common prefixes along with general guidelines for when to use th... | This seems to be quite common nowadays. | https://api.github.com/repos/pandas-dev/pandas/pulls/30684 | 2020-01-04T17:02:47Z | 2020-01-04T17:58:57Z | 2020-01-04T17:58:57Z | 2020-01-04T20:41:47Z |
TYP: Add mypy as a pre-commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 88548f6c2f678..809764a20a713 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -16,3 +16,15 @@ repos:
- id: isort
language: python_venv
exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$
+- repo: https:... | This is quite helpful in developing with typing, especially if you plan to update the mypy version.
- [ ] 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/30682 | 2020-01-04T16:54:25Z | 2020-01-04T17:39:10Z | 2020-01-04T17:39:10Z | 2020-01-04T20:42:06Z |
TYP: Fix chainmap typing for mypy 0.740+ | diff --git a/pandas/compat/chainmap.py b/pandas/compat/chainmap.py
index 479eddf0c0536..588bd24ddf797 100644
--- a/pandas/compat/chainmap.py
+++ b/pandas/compat/chainmap.py
@@ -1,15 +1,24 @@
-from collections import ChainMap
+from typing import ChainMap, MutableMapping, TypeVar, cast
+_KT = TypeVar("_KT")
+_VT = Type... | This will otherwise raise a failure during a `mypy` update. Also increase type precision of this file to 100%.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/30680 | 2020-01-04T16:32:18Z | 2020-01-05T16:22:12Z | 2020-01-05T16:22:12Z | 2020-01-06T08:02:06Z |
BUG: groupby apply raises ValueError when groupby axis has duplicates and applied identity function | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 1cd325dad9f07..40c02eb495f67 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -133,9 +133,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
--
-
+- Bug in :meth:`GroupBy.apply` rais... | This is a more of a patch than a complete solution to this groupby apply paradigm.
When there are duplicates in the groupby axis, we restore the axis to its original order, but not guaranteeing that the order of the data with the same axis values is restored.
- [x] closes #30667
- [x] tests added / passed
- [x] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30679 | 2020-01-04T15:22:01Z | 2020-01-20T16:28:01Z | 2020-01-20T16:28:00Z | 2020-01-21T11:00:06Z |
TYP: simplify NDFrame.(iloc|loc|iat|at) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f5b0ce1ae77fb..a7d360bce8cf6 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3179,12 +3179,25 @@ def to_csv(
# ----------------------------------------------------------------------
# Fancy Indexing
- @classmethod
- ... | The signature of .iloc/.loc/.iat/.at is very complex and mypy (and maybe many humans too:-)) can't work through it to see their types. This simplifies them and allows mypy to see their types. | https://api.github.com/repos/pandas-dev/pandas/pulls/30678 | 2020-01-04T10:18:09Z | 2020-01-04T11:09:53Z | null | 2020-01-04T11:09:53Z |
PERF: add shortcut to Timestamp constructor | diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py
index 8ebb2d8d2f35d..3ef9b814dd79e 100644
--- a/asv_bench/benchmarks/tslibs/timestamp.py
+++ b/asv_bench/benchmarks/tslibs/timestamp.py
@@ -1,12 +1,19 @@
import datetime
import dateutil
+import numpy as np
import pytz
... | - [X] closes #30543
- [X] tests added 1 / passed 1
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This implements a shortcut in the Timestamp constructor to cut down on processing if Timestamp is passed. We still need to check if the timezon... | https://api.github.com/repos/pandas-dev/pandas/pulls/30676 | 2020-01-04T07:19:38Z | 2020-01-26T01:03:37Z | 2020-01-26T01:03:37Z | 2020-01-27T06:55:10Z |
BUG: bug in date_range with custom business hours and given periods | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index b9cc1dad53674..98ef62b557afd 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -833,6 +833,7 @@ Datetimelike
- Bug in :meth:`Series.cummin` and :meth:`Series.cummax` with timezone-aware dtype incorrectl... | - [x] closes #30593
- [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/30675 | 2020-01-04T06:01:07Z | 2020-01-05T21:39:10Z | 2020-01-05T21:39:10Z | 2020-01-06T02:00:11Z |
TST: Add more tests for fixed issues | diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py
index 1d8883b60d4a3..0f850f2e94581 100644
--- a/pandas/tests/groupby/test_nth.py
+++ b/pandas/tests/groupby/test_nth.py
@@ -89,6 +89,25 @@ def test_first_last_nth_dtypes(df_mixed_floats):
assert f.dtype == "int64"
+def test_first_... | - [x] closes #11244
- [x] closes #11020
- [x] closes #12754
- [x] closes #12261
- [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/30674 | 2020-01-04T05:23:03Z | 2020-01-04T17:25:15Z | 2020-01-04T17:25:15Z | 2020-01-04T19:01:04Z |
REF: EA value_counts -> _value_counts | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 39e8e9008a844..cfbbb9e94628f 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -708,8 +708,9 @@ def value_counts(
if is_extension_array_dtype(values):
# handle Categorical and sparse,
- re... | Instead of returning a Series, return a tuple with the index and values to be passed to Series.
Where possible I've changed the methods to use `_values_for_factorized` in the hopes of converging on a base class implementation. This is proving elusive, suggestions welcome. cc @TomAugspurger @jorisvandenbossche
... | https://api.github.com/repos/pandas-dev/pandas/pulls/30673 | 2020-01-04T03:15:35Z | 2020-01-18T03:24:36Z | null | 2020-09-21T18:21:36Z |
CLN: Simplify rolling.py helper functions | diff --git a/pandas/core/window/common.py b/pandas/core/window/common.py
index 5b467b03c1fc2..64ec0e68e11b0 100644
--- a/pandas/core/window/common.py
+++ b/pandas/core/window/common.py
@@ -105,7 +105,7 @@ def _flex_binary_moment(arg1, arg2, f, pairwise=False):
if isinstance(arg1, (np.ndarray, ABCSeries)) and isins... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Cleans helper functions in `rolling.py` and remove dead code paths. | https://api.github.com/repos/pandas-dev/pandas/pulls/30672 | 2020-01-04T03:06:08Z | 2020-01-05T20:52:35Z | 2020-01-05T20:52:35Z | 2020-04-21T16:29:50Z |
JSON Code Cleanup | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index 2192539e24626..5181b0400d7bb 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -241,65 +241,39 @@ static int scaleNanosecToUnit(npy_int64 *value, NPY_DATETIMEU... | https://api.github.com/repos/pandas-dev/pandas/pulls/30671 | 2020-01-04T01:20:31Z | 2020-01-04T17:31:21Z | 2020-01-04T17:31:21Z | 2023-04-12T20:17:16Z | |
Fix errors='ignore' being ignored in astype #30324 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f0147859cae97..d5c3a95fa3b6a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5447,7 +5447,7 @@ def astype(
"""
if is_dict_like(dtype):
if self.ndim == 1: # i.e. Series
- if len(dtype) >... | - [x] closes #30324
- [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/30670 | 2020-01-04T00:19:24Z | 2020-05-08T16:01:37Z | null | 2020-05-08T16:01:38Z |
MAINT: Change all pandas links to use HTTPS | diff --git a/RELEASE.md b/RELEASE.md
index efd075dabcba9..7924ffaff561f 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -2,5 +2,5 @@ Release Notes
=============
The list of changes to Pandas between each release can be found
-[here](http://pandas.pydata.org/pandas-docs/stable/whatsnew.html). For full
+[here](https://pa... | Also update the link to pandas' `whatsnew` page | https://api.github.com/repos/pandas-dev/pandas/pulls/30669 | 2020-01-04T00:00:29Z | 2020-01-04T01:58:24Z | 2020-01-04T01:58:24Z | 2020-01-04T01:58:27Z |
ENH: Implement PeriodIndex.intersection without object-dtype cast | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ed5c6b450b05e..ce4715dd5bbf3 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2408,14 +2408,8 @@ def intersection(self, other, sort=False):
return this.intersection(other, sort=sort)
# TODO... | PeriodIndex._simple_new is not as simple as it should be. In order to get it to have the appropriate signature we need to implement some of the set methods correctly. This is the first of those. | https://api.github.com/repos/pandas-dev/pandas/pulls/30666 | 2020-01-03T22:04:07Z | 2020-01-04T17:36:53Z | 2020-01-04T17:36:53Z | 2020-01-04T17:40:05Z |
CI: unpin IPython | diff --git a/environment.yml b/environment.yml
index 46fb5e7a19078..404a5b97e316a 100644
--- a/environment.yml
+++ b/environment.yml
@@ -70,7 +70,7 @@ dependencies:
- blosc
- bottleneck>=1.2.1
- ipykernel
- - ipython>=5.6.0,<=7.10.1 # see gh-30527
+ - ipython>=7.11.1
- jinja2 # pandas.Styler
- matplot... | Closes https://github.com/pandas-dev/pandas/issues/30537 | https://api.github.com/repos/pandas-dev/pandas/pulls/30665 | 2020-01-03T21:52:39Z | 2020-01-04T17:37:46Z | 2020-01-04T17:37:46Z | 2020-01-04T17:38:13Z |
DOC: Update info regarding pydatastream | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index c8a60e0e40323..7bd5ba7ecdf0b 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -244,8 +244,8 @@ Pandas DataFrames with timeseries indexes.
`pydatastream <https://github.com/vfilimonov/pydatastream>`__
~~~~~~~~~~~~~~~~~~~~~~~~... | Title is self-explanatory | https://api.github.com/repos/pandas-dev/pandas/pulls/30664 | 2020-01-03T21:46:32Z | 2020-01-03T22:46:27Z | 2020-01-03T22:46:27Z | 2020-01-03T22:46:32Z |
MAINT: Change all SO links to use HTTPS | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index 37637bbdb38e6..3127dd09b3652 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -406,10 +406,10 @@ Levels
******
`Prepending a level to a multiindex
-<http://stackoverflow.com/question... | Title is self-explanatory | https://api.github.com/repos/pandas-dev/pandas/pulls/30663 | 2020-01-03T21:42:31Z | 2020-01-03T22:37:09Z | 2020-01-03T22:37:09Z | 2020-01-03T22:37:13Z |
TYP: check_untyped_defs plotting._matplotlib.timeseries | diff --git a/pandas/plotting/_matplotlib/__init__.py b/pandas/plotting/_matplotlib/__init__.py
index f9a692b0559ca..27b1d55fe1bd6 100644
--- a/pandas/plotting/_matplotlib/__init__.py
+++ b/pandas/plotting/_matplotlib/__init__.py
@@ -1,3 +1,5 @@
+from typing import TYPE_CHECKING, Dict, Type
+
from pandas.plotting._matp... | pandas\plotting\_matplotlib\timeseries.py:120: error: "type" has no attribute "_plot" | https://api.github.com/repos/pandas-dev/pandas/pulls/30662 | 2020-01-03T21:01:03Z | 2020-01-03T22:22:34Z | 2020-01-03T22:22:34Z | 2020-01-04T08:04:00Z |
TYP: check_untyped_defs pandas/io/sql.py | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 47805207862f0..e950515c54729 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -782,7 +782,8 @@ def read(self, coerce_float=True, parse_dates=None, columns=None, chunksize=None
cols = [self.table.c[n] for n in columns]
if self.inde... | pandas\io\sql.py:785: error: "insert" of "list" does not return a value
pandas\io\sql.py:1450: error: "insert" of "list" does not return a value
| https://api.github.com/repos/pandas-dev/pandas/pulls/30661 | 2020-01-03T20:45:32Z | 2020-01-04T01:28:08Z | 2020-01-04T01:28:08Z | 2020-01-04T08:02:35Z |
Fix flakey base setitem test | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index 7d50f176edd67..0bb8aede6298c 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -189,11 +189,9 @@ def test_setitem_scalar_key_sequence_raise(self, data):
def test_se... | This test makes a potentially incorrect assertion about the data provided to the test. We already require that `data[0] != data[1]`, so it can be used instead.
This failed in https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=24731&view=logs&j=a67b4c4c-cd2e-5e3c-a361-de73ac9c05f9&t=33d2fdd0-c376-5f94-e6d... | https://api.github.com/repos/pandas-dev/pandas/pulls/30660 | 2020-01-03T20:40:22Z | 2020-01-03T23:59:25Z | 2020-01-03T23:59:25Z | 2020-01-03T23:59:30Z |
TYP: check_untyped_defs io.sas.sasreader | diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py
index d47dd2c71b86f..2bfcd500ee239 100644
--- a/pandas/io/sas/sas7bdat.py
+++ b/pandas/io/sas/sas7bdat.py
@@ -26,6 +26,7 @@
from pandas.io.common import get_filepath_or_buffer
from pandas.io.sas._sas import Parser
import pandas.io.sas.sas_constants a... |
pandas\io\sas\sasreader.py:75: error: Incompatible types in assignment (expression has type "SAS7BDATReader", variable has type "XportReader") | https://api.github.com/repos/pandas-dev/pandas/pulls/30659 | 2020-01-03T20:37:01Z | 2020-04-27T08:26:16Z | 2020-04-27T08:26:16Z | 2020-04-27T08:27:24Z |
TYP: --disallow-any-generics pandas\core\reshape\concat.py | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index a3d9dbfba9e71..1414dbeb9b950 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -2,7 +2,7 @@
concat routines
"""
-from typing import List
+from typing import Hashable, List, Optional
import numpy as np... | xref #30539
pandas\core\reshape\concat.py:477: error: Missing type parameters for generic type "List"
pandas\core\reshape\concat.py:504: error: Missing type parameters for generic type "List" | https://api.github.com/repos/pandas-dev/pandas/pulls/30658 | 2020-01-03T20:21:58Z | 2020-01-04T01:27:21Z | 2020-01-04T01:27:21Z | 2020-01-04T08:03:15Z |
CLN: Deprecate pandas.SparseArray for pandas.arrays.SparseArray | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 34bc5f44eb0c0..d897889ed9eff 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -399,7 +399,7 @@ DataFrame:
* DataFrame
* pand... | - [x] closes #30642
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
- in #30644
Change all references in code from `pd.SparseArray` to `pd.arrays.SparseArray` . Add deprecation message for `pd.SparseArray`
Pe... | https://api.github.com/repos/pandas-dev/pandas/pulls/30656 | 2020-01-03T19:36:17Z | 2020-01-05T16:16:34Z | 2020-01-05T16:16:34Z | 2020-01-07T14:35:23Z |
REF: change TDI.delete behavior to match DTI.delete | diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py
index fc55e1c530272..13c4c0161aeee 100644
--- a/pandas/core/indexes/timedeltas.py
+++ b/pandas/core/indexes/timedeltas.py
@@ -494,7 +494,7 @@ def delete(self, loc):
"""
new_tds = np.delete(self.asi8, loc)
- fre... | With this change, the two methods behave the same and can be shared. | https://api.github.com/repos/pandas-dev/pandas/pulls/30655 | 2020-01-03T19:21:15Z | 2020-01-04T19:44:49Z | 2020-01-04T19:44:49Z | 2020-01-04T19:46:37Z |
REF/TST: PeriodArray comparisons with listlike | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 056c80717e54f..b7d841ab5c6a1 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -29,6 +29,7 @@
is_datetime64_dtype,
is_float_dtype,
is_list_like,
+ is_object_dtype,
is_period_dtype,
pa... | Similar edits are going to be made to the DTA and TDA ops, separating PeriodArray to its own PR for exposition. | https://api.github.com/repos/pandas-dev/pandas/pulls/30654 | 2020-01-03T19:18:06Z | 2020-01-04T23:31:36Z | 2020-01-04T23:31:36Z | 2020-01-05T01:05:30Z |
TST: Test for merge_asof groupby=multiple with categorical column | diff --git a/pandas/tests/reshape/merge/test_merge_asof.py b/pandas/tests/reshape/merge/test_merge_asof.py
index b2e764c5463fa..b461d1ec69152 100644
--- a/pandas/tests/reshape/merge/test_merge_asof.py
+++ b/pandas/tests/reshape/merge/test_merge_asof.py
@@ -1185,6 +1185,13 @@ def test_merge_datatype_categorical_error_ra... | - [x] closes #16454
- [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/30653 | 2020-01-03T18:37:31Z | 2020-01-03T22:08:08Z | 2020-01-03T22:08:07Z | 2020-01-03T22:08:21Z |
ENH: .equals for Extension Arrays | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index 4c0763e091b75..fe4113d100abf 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -45,6 +45,7 @@ objects.
api.extensions.ExtensionArray.copy
api.extensions.ExtensionArray.v... | - [x] closes #27081
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
--- Jan 3 10:00 PST
Hey team,
Looking for a bit of feedback on this API design and appropriate testing for this PR before I get too deep into ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30652 | 2020-01-03T18:01:16Z | 2020-05-09T07:57:17Z | 2020-05-09T07:57:16Z | 2020-05-09T07:57:18Z |
CLN: Clean tests for *.sort_index, *.sort_values and df.drop_duplicates | diff --git a/pandas/tests/frame/methods/test_drop_duplicates.py b/pandas/tests/frame/methods/test_drop_duplicates.py
index 29ab2e1bfd512..0856ed6885978 100644
--- a/pandas/tests/frame/methods/test_drop_duplicates.py
+++ b/pandas/tests/frame/methods/test_drop_duplicates.py
@@ -393,6 +393,7 @@ def test_drop_duplicates_in... | - [ ] xref #30578 #30405 #30402
This follow-up PR is to parametrize and deduplicate `inplace` cases brought up in the above PRs. | https://api.github.com/repos/pandas-dev/pandas/pulls/30651 | 2020-01-03T17:53:16Z | 2020-01-04T18:05:14Z | 2020-01-04T18:05:14Z | 2020-01-04T18:05:21Z |
REF: use _data.take for CI/DTI/TDI/PI.take | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 96bfff9a0a09f..eb1c45e750bc9 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -728,13 +728,13 @@ def take(self, indices, axis=0, allow_fill=True, fill_value=None, **kwargs):
nv.validate_tak... | cc @jschendel @jreback any idea why IntervalIndex doesn't use _assert_take_fillable like the others? If it can/should, then we can share this method between all of our EA-backed indexes. (Actually also need to make sure the slice behavior in the DTI/TDI/PI is OK to do for all of them) | https://api.github.com/repos/pandas-dev/pandas/pulls/30650 | 2020-01-03T17:15:56Z | 2020-01-04T18:07:25Z | 2020-01-04T18:07:25Z | 2020-01-04T18:09:16Z |
REF: move EA wrapping/unwrapping to indexes.extensions | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 96bfff9a0a09f..8fa71a60365c4 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -29,6 +29,7 @@
import pandas.core.common as com
import pandas.core.indexes.base as ibase
from pandas.core.indexes.bas... | Re-use the comparison method wrapper in CategoricalIndex. | https://api.github.com/repos/pandas-dev/pandas/pulls/30648 | 2020-01-03T16:57:43Z | 2020-01-04T18:10:21Z | 2020-01-04T18:10:21Z | 2020-01-04T18:18:04Z |
REF: restructure api import | diff --git a/pandas/__init__.py b/pandas/__init__.py
index f9de17a2e3914..0c6c1c0433fb9 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -138,6 +138,7 @@
qcut,
)
+import pandas.api
from pandas.util._print_versions import show_versions
from pandas.io.api import (
diff --git a/pandas/io/json/_table... | Previously, `pandas.api` was imported indirectly via `pandas.io.json._table_schema`. This makes things a bit more direct.
I think we'll want a code check for importing from `pandas.api` within `pandas.core` but I wasn't able to easily write one (things like docstrings may want to have `import pandas.api` for example... | https://api.github.com/repos/pandas-dev/pandas/pulls/30647 | 2020-01-03T15:59:59Z | 2020-01-03T17:35:16Z | 2020-01-03T17:35:15Z | 2020-01-04T03:48:09Z |
TST: Regression testing for fixed issues | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index 071c6bb79d30e..1687f114670f3 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -1,5 +1,5 @@
from collections import OrderedDict, abc
-from datetime import datetime, t... | - [x] closes #10863
- [x] closes #9687
- [x] closes #10078
- [x] closes #8870
- [x] closes #9790
- [x] closes #9892
- [x] closes #10586
- [x] closes #10984
- [x] closes #9149
- [x] closes #9186
- [x] closes #10326
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master... | https://api.github.com/repos/pandas-dev/pandas/pulls/30646 | 2020-01-03T15:36:25Z | 2020-01-03T23:23:45Z | 2020-01-03T23:23:43Z | 2020-01-03T23:23:50Z |
TST: Adding test to concat Sparse arrays | diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py
index 2ea7ab827732e..990669f1ae13a 100644
--- a/pandas/tests/reshape/test_concat.py
+++ b/pandas/tests/reshape/test_concat.py
@@ -28,6 +28,7 @@
read_csv,
)
import pandas._testing as tm
+from pandas.core.arrays import SparseArr... | - [ ] closes #23557
- [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/30645 | 2020-01-03T15:30:08Z | 2020-01-06T13:22:19Z | 2020-01-06T13:22:18Z | 2020-01-06T13:22:22Z |
DOC: Change refs in docs from pandas.SparseArray to pandas.arrays.SparseArray | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index 34bc5f44eb0c0..d897889ed9eff 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -399,7 +399,7 @@ DataFrame:
* DataFrame
* pand... | - [x ] closes #30642
- [ ] tests added / passed
- N/A
- [ ] passes `black pandas`
- N/A
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- N/A
- [x] whatsnew entry
Change all references in docs to use `arrays.SparseArray` rather than just `SparseArray`
| https://api.github.com/repos/pandas-dev/pandas/pulls/30644 | 2020-01-03T15:18:57Z | 2020-01-04T23:25:09Z | null | 2020-01-06T23:10:20Z |
CI: Adding build for ARM64 | diff --git a/.travis.yml b/.travis.yml
index 98826a2d9e115..7943ca370af1a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,8 @@ cache:
env:
global:
+ # Variable for test workers
+ - PYTEST_WORKERS="auto"
# create a github personal access token
# cd pandas-dev/pandas
# travis encrypt 'P... | Added arm64 test support in travis-ci .
Modified environment creation by using archiconda instead of miniconda as miniconda is not supported in arm64 currently .
- [X] closes https://github.com/pandas-dev/pandas/issues/28986
- [X] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/m... | https://api.github.com/repos/pandas-dev/pandas/pulls/30641 | 2020-01-03T11:10:46Z | 2020-05-12T16:02:40Z | 2020-05-12T16:02:40Z | 2020-05-12T16:02:40Z |
BUG: Fix IntervalArray equality comparisions | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 40690abe0c600..a5a583963f82d 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -881,6 +881,7 @@ Interval
- Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`CategoricalInd... | - [X] closes #24112
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
cc @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/30640 | 2020-01-03T09:45:37Z | 2020-01-05T21:33:12Z | 2020-01-05T21:33:11Z | 2020-01-05T21:33:16Z |
BLD: address build warnings | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 420e08a3d68d4..995fabbedcb5d 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -116,7 +116,7 @@ def take_2d_axis0_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values,
... | xref #30609 | https://api.github.com/repos/pandas-dev/pandas/pulls/30639 | 2020-01-03T04:42:21Z | 2020-01-06T00:30:21Z | 2020-01-06T00:30:21Z | 2020-01-06T01:04:48Z |
ENH: Create DockerFile and devcontainer.json files to work with Docker and VS Code in Containers | diff --git a/.devcontainer.json b/.devcontainer.json
new file mode 100644
index 0000000000000..315a1ff647012
--- /dev/null
+++ b/.devcontainer.json
@@ -0,0 +1,28 @@
+// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
+// https://github.com/microsoft/vscode-dev-containe... | - [x] closes #30614
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The instructions aren't that well written, and should probably be improved, but here's a first shot. | https://api.github.com/repos/pandas-dev/pandas/pulls/30638 | 2020-01-03T04:03:13Z | 2020-01-19T01:00:59Z | 2020-01-19T01:00:58Z | 2020-01-19T03:53:33Z |
REF/BUG: DTA/TDA/PA comparison ops inconsistencies | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index aeb953031ae89..dcdde4d7fb13a 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -140,18 +140,19 @@ def _dt_array_cmp(cls, op):
@unpack_zerodim_and_defer(opname)
def wrapper(self, other):
-... | It will take a couple of steps to get these three methods to all behave the same. Following that we can move to share code between them.
This came up when trying to make the indexes dispatch `searchsorted` and it turns out that the DTI/TDI/PI searchsorted methods are not consistent with their DTA/TDA/PA counterpart... | https://api.github.com/repos/pandas-dev/pandas/pulls/30637 | 2020-01-03T03:21:47Z | 2020-01-03T12:20:31Z | 2020-01-03T12:20:31Z | 2020-01-03T15:21:12Z |
DEPR: Deprecate numpy argument in read_json | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 82e01b62efbb9..9f99f36b6007d 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2066,6 +2066,8 @@ The Numpy parameter
+++++++++++++++++++
.. note::
+ This param has been deprecated as of version 1.0.0 and w... | Co-authored-by: Luca Ionescu <lucaionescu@users.noreply.github.com>
- Continuing https://github.com/pandas-dev/pandas/pull/28562
- [x] closes #28512
@lucaionescu - i've merged master and pushed to here (I don't have the permissions to push to your branch), I will aim to fix up the tests. Or feel free to take it ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30636 | 2020-01-03T02:41:41Z | 2020-01-09T03:25:48Z | 2020-01-09T03:25:47Z | 2020-01-09T03:26:09Z |
BUG: Index.__new__ with Interval/Period data and object dtype | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 28e144a957d1c..7324292cb7c0a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -291,11 +291,15 @@ def __new__(
return CategoricalIndex(data, dtype=dtype, copy=copy, name=name, **kwargs)
# int... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #17246, #21311
After this we now use the same pattern when calling DatetimeIndex, TimedeltaIndex, PeriodIndex, and IntervalIndex, so we can make a helper functio... | https://api.github.com/repos/pandas-dev/pandas/pulls/30635 | 2020-01-03T02:34:15Z | 2020-01-03T03:40:48Z | 2020-01-03T03:40:48Z | 2020-01-03T03:47:55Z |
CI: Remove pin google-cloud-bigquery | diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml
index c1403f8eb8409..f44bf8c14b467 100644
--- a/ci/deps/travis-36-cov.yaml
+++ b/ci/deps/travis-36-cov.yaml
@@ -30,8 +30,6 @@ dependencies:
- openpyxl<=3.0.1
# https://github.com/pandas-dev/pandas/pull/30009 openpyxl 3.0.2 broke
- pandas-gbq
... | xref: https://github.com/pydata/pandas-gbq/issues/271 is now resolved.
This can be removed since `pandas-gbq` depends on `google-cloud-bigquery` ref: https://github.com/pydata/pandas-gbq/blob/master/setup.py | https://api.github.com/repos/pandas-dev/pandas/pulls/30633 | 2020-01-03T00:40:51Z | 2020-01-03T01:16:52Z | 2020-01-03T01:16:52Z | 2020-01-04T15:16:04Z |
TPY: Add Types to gbq.py | diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py
index d9711f4f4626a..69ebc470fba6f 100644
--- a/pandas/io/gbq.py
+++ b/pandas/io/gbq.py
@@ -1,6 +1,11 @@
""" Google BigQuery support """
+from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
+
from pandas.compat._optional import import_optional_dependency... | Add Types to args for `to_gbq` and `read_gbq`. | https://api.github.com/repos/pandas-dev/pandas/pulls/30632 | 2020-01-03T00:34:03Z | 2020-01-04T23:37:18Z | 2020-01-04T23:37:18Z | 2020-01-05T00:03:54Z |
CLN: Update old string formatting to f-string | diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py
index e0ddd17335175..b84d468fff736 100644
--- a/pandas/core/ops/array_ops.py
+++ b/pandas/core/ops/array_ops.py
@@ -246,7 +246,7 @@ def comparison_op(
res_values = comp_method_OBJECT_ARRAY(op, lvalues, rvalues)
else:
- op_na... | - [x] contributes to #29547
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Updates:
pandas/core/ops/array_ops.py
pandas/core/ops/dispatch.py
pandas/core/ops/docstrings.py
pandas/core/ops/invalid.py
pandas... | https://api.github.com/repos/pandas-dev/pandas/pulls/30631 | 2020-01-02T23:28:55Z | 2020-01-03T22:21:19Z | 2020-01-03T22:21:19Z | 2020-01-03T23:17:46Z |
CI: Fix Flakey GBQ Tests | diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py
index 48c8923dab7cd..7a5eba5264421 100644
--- a/pandas/tests/io/test_gbq.py
+++ b/pandas/tests/io/test_gbq.py
@@ -68,6 +68,10 @@ def _get_client():
return bigquery.Client(project=project_id, credentials=credentials)
+def generate_rand_str(l... | -ref https://github.com/pandas-dev/pandas/pull/30478#issuecomment-570068174
We see the below in the logs:
```
google.api_core.exceptions.Conflict: 409 POST https://bigquery.googleapis.com/bigquery/v2/projects/pandas-travis/datasets: Already Exists: Dataset pandas-travis:pydata_pandas_bq_testing_py31
```
https://tr... | https://api.github.com/repos/pandas-dev/pandas/pulls/30630 | 2020-01-02T23:25:10Z | 2020-01-03T02:45:05Z | 2020-01-03T02:45:05Z | 2020-01-03T02:45:10Z |
REF: implement indexes.extension to share delegation | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 306ccf176f970..7bf1a601a0ab6 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -2,7 +2,7 @@
Base and utility classes for tseries type pandas objects.
"""
import operator
-from typi... | In following steps, I plan to
- remove the DatetimeDelegateMixin entirely and just use inherit_names
- de-duplicate the slightly-different comparison method code from CategoricalIndex vs DatetimelikeIndex
- move the remaining wrapping utilities from datetimelike to extension.py, after double-checking if we can rem... | https://api.github.com/repos/pandas-dev/pandas/pulls/30629 | 2020-01-02T21:44:35Z | 2020-01-03T02:00:15Z | 2020-01-03T02:00:15Z | 2020-01-03T02:09:43Z |
DOC: Add strings for dtypes in basic.rst | diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst
index d489d35dc1226..f47fa48eb6202 100644
--- a/doc/source/getting_started/basics.rst
+++ b/doc/source/getting_started/basics.rst
@@ -1937,21 +1937,36 @@ See :ref:`extending.extension-types` for how to write your own extension th... | - [x] closes #30590
- [ ] tests added / passed
- N/A
- [ ] passes `black pandas`
- N/A
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- N/A
- [ ] whatsnew entry
- N/A
Decided to add all valid strings for all the types in the table about dtypes. I didn't want to decide w... | https://api.github.com/repos/pandas-dev/pandas/pulls/30628 | 2020-01-02T21:33:29Z | 2020-01-03T13:18:35Z | 2020-01-03T13:18:34Z | 2020-01-03T21:39:21Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.