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/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 |
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 |
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 |
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 | |
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 |
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 |
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 |
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 | |
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 |
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 |
Drop Python 3.6 support | diff --git a/.travis.yml b/.travis.yml
index b016cf386098e..2e98cf47aea3e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,7 +45,7 @@ matrix:
- JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)"
- env:
- - JOB="3.6, lo... | - [x] closes #34472
- [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/35214 | 2020-07-10T15:04:33Z | 2020-08-11T01:17:48Z | 2020-08-11T01:17:47Z | 2020-08-11T16:10:21Z |
Add xarray copyright notice to comply with reuse under Apache License | diff --git a/LICENSES/XARRAY_LICENSE b/LICENSES/XARRAY_LICENSE
index 37ec93a14fdcd..6bafeb9d3d80e 100644
--- a/LICENSES/XARRAY_LICENSE
+++ b/LICENSES/XARRAY_LICENSE
@@ -1,3 +1,7 @@
+Copyright 2014-2019, xarray Developers
+
+--------------------------------------------------------------------------------
+
Apache Licen... | In https://github.com/xarray-contrib/pint-xarray/pull/11, @keewis and I noticed that pandas's (pandas'?...possessive forms are weird) reuse with modification of xarray code added in https://github.com/pandas-dev/pandas/commit/eee83e23ba0c5b32e27db3faca931ddb4c9619aa did not include xarray's copyright notice as required... | https://api.github.com/repos/pandas-dev/pandas/pulls/35213 | 2020-07-10T14:24:58Z | 2020-07-10T14:55:39Z | 2020-07-10T14:55:39Z | 2020-07-10T14:55:40Z |
Fix strange behavior when precision display option is zero (#20359) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5dff6d729479a..bff3e2fcdb267 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1018,6 +1018,7 @@ MultiIndex
I/O
^^^
+- Bug in print-out when ``display.precision`` is zero. (:issue:`20359`)
- Bug in... | - [x] closes #20359
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Notes:
- [x] I added a unit test for the example given in #20359
- [x] As far as the context of this code is concerned, I replacde '.' with decima... | https://api.github.com/repos/pandas-dev/pandas/pulls/35212 | 2020-07-10T13:15:20Z | 2020-07-10T19:33:14Z | 2020-07-10T19:33:13Z | 2020-07-17T09:29:04Z |
Tst return none inplace series | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 737e21af9242f..3ed25b8bca566 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -736,14 +736,16 @@ def test_append_timedelta_does_not_cast(td):
... | verify we return None for all inplace calls in /series
related: https://github.com/pandas-dev/pandas/pull/35181#event-3531612625
| https://api.github.com/repos/pandas-dev/pandas/pulls/35210 | 2020-07-10T10:13:39Z | 2020-07-10T19:32:34Z | 2020-07-10T19:32:34Z | 2020-07-10T19:32:38Z |
ROADMAP: add consistent missing values for all dtypes to the roadmap | diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst
index d331491d02883..efee21b5889ed 100644
--- a/doc/source/development/roadmap.rst
+++ b/doc/source/development/roadmap.rst
@@ -53,6 +53,32 @@ need to implement certain operations expected by pandas users (for example
the algorithm us... | The more detailed motivation is described in https://hackmd.io/@jorisvandenbossche/Sk0wMeAmB, and many aspects have already been discussed in https://github.com/pandas-dev/pandas/issues/28095 and linked issues.
(and there are probably still other details / practical aspects that can be further discussed in dedicated... | https://api.github.com/repos/pandas-dev/pandas/pulls/35208 | 2020-07-10T09:34:16Z | 2020-08-20T14:52:53Z | 2020-08-20T14:52:53Z | 2020-08-20T15:50:22Z |
CLN: tighten types to get_rule_month | diff --git a/pandas/_libs/tslibs/parsing.pxd b/pandas/_libs/tslibs/parsing.pxd
index 6e826cd4c6602..9c9262beaafad 100644
--- a/pandas/_libs/tslibs/parsing.pxd
+++ b/pandas/_libs/tslibs/parsing.pxd
@@ -1,2 +1,2 @@
-cpdef str get_rule_month(object source, str default=*)
+cpdef str get_rule_month(str source)
diff --git ... | We're a bit inconsistent about whether we are extracting freq.freqstr vs freq.rule_code; I'd like to get DateOffsets out of libparsing altogether before long. | https://api.github.com/repos/pandas-dev/pandas/pulls/35205 | 2020-07-10T04:11:10Z | 2020-07-10T12:15:22Z | 2020-07-10T12:15:22Z | 2020-07-10T14:12:09Z |
REF: re-use get_firstbday, get_lastbday in fields.pyx | diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd
index 41cc477413607..4eb5188b8a04b 100644
--- a/pandas/_libs/tslibs/ccalendar.pxd
+++ b/pandas/_libs/tslibs/ccalendar.pxd
@@ -10,6 +10,8 @@ cpdef int32_t get_days_in_month(int year, Py_ssize_t month) nogil
cpdef int32_t get_week_of_year... | https://api.github.com/repos/pandas-dev/pandas/pulls/35199 | 2020-07-09T22:27:50Z | 2020-07-09T23:40:15Z | 2020-07-09T23:40:15Z | 2020-07-09T23:46:48Z | |
REF: remove libresolution | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 6fe6fa0a13c34..0ae4cc97d07e3 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -27,11 +27,11 @@
from . import dtypes
from .conversion import localize_pydatetime
+from .dtypes import Resolution
f... | It only has one function left, and that fits fine in fields.pyx | https://api.github.com/repos/pandas-dev/pandas/pulls/35198 | 2020-07-09T22:25:16Z | 2020-07-10T12:16:28Z | 2020-07-10T12:16:28Z | 2020-07-10T14:15:20Z |
PERF: MonthOffset.apply_index | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index fb07e3fe7547e..fa5ef0e7adf59 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -598,7 +598,7 @@ cdef class BaseOffset:
def _get_offset_day(self, other: datetime) -> int:
# subclass mu... | - [x] closes #35048
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
import pandas as pd
import numpy as np
N = 10000
rng = pd.date_range(start="1/1/2000", periods=N, freq="T")
offset = pd.offsets.MonthBegi... | https://api.github.com/repos/pandas-dev/pandas/pulls/35195 | 2020-07-09T20:10:39Z | 2020-07-10T12:13:21Z | 2020-07-10T12:13:20Z | 2020-07-10T14:12:55Z |
Be specific about more indexes or values | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5f93e08d51baa..d721897da540f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1169,6 +1169,7 @@ Other
- Bug in :class:`Tick` comparisons raising ``TypeError`` when comparing against timedelta-like obj... | The generic "are not equal" really frustrated me just now when someone was conveying their issue.
This specific two errors lets me know which way around, although I believe having more indexes than data shows a place in the api for a default value (possibly per-index) which would allow this to later be reduced to th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35190 | 2020-07-09T10:04:56Z | 2020-07-14T17:05:59Z | 2020-07-14T17:05:59Z | 2020-07-14T17:21:47Z |
Add date overflow message to tz_localize (#32967) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index ce0668917f800..49b23e3c78a33 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -897,6 +897,7 @@ Datetimelike
resolution which converted to object dtype instead of coercing to ``datetime64[ns]``
dty... | - [x] closes #32967
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added an error message to tz_localize when the timestamp overflows. I got a little confused by the history in #32979 as some changes were lost on th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35187 | 2020-07-09T02:25:32Z | 2020-07-16T01:51:19Z | 2020-07-16T01:51:19Z | 2020-07-16T01:51:29Z |
CI: MacPython failing TestPandasContainer.test_to_json_large_numbers | diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py
index 10f49b9b81528..97b53a6e66575 100644
--- a/pandas/tests/io/json/test_pandas.py
+++ b/pandas/tests/io/json/test_pandas.py
@@ -1250,23 +1250,32 @@ def test_to_json_large_numbers(self, bigNum):
json = series.to_json()
... | - [x] closes #35147
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35184 | 2020-07-08T17:59:53Z | 2020-07-15T13:43:45Z | 2020-07-15T13:43:45Z | 2020-07-16T18:55:14Z |
Json Visual Clutter cleanup | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index e841f00489887..59298522d86d1 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -143,8 +143,6 @@ typedef struct __PyObjectEncoder {
enum PANDAS_FORMAT { SPLI... | Removed PRINTMARK symbols and ran `clang-format -sort-includes=0 -i -style="{IndentWidth: 4}" pandas/_libs/src/ujson/python/objToJSON.c` | https://api.github.com/repos/pandas-dev/pandas/pulls/35183 | 2020-07-08T17:50:58Z | 2020-07-09T21:57:05Z | 2020-07-09T21:57:05Z | 2020-07-22T18:56:47Z |
ENH: Add compute.use_numba configuration for automatically using numba | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 85b29a58a1f15..9dd6dceac6da3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -333,6 +333,7 @@ Other enhancements
- :meth:`read_csv` now accepts string values like "0", "0.0", "1", "1.0" as convertible... | - [x] closes #33966
- [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/35182 | 2020-07-08T17:25:12Z | 2020-07-15T12:28:04Z | 2020-07-15T12:28:04Z | 2020-07-15T16:32:26Z |
TST Verifiy that dropna returns none when called inplace (#35179) | diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py
index 7cb7115276f71..9bf5d24085697 100644
--- a/pandas/tests/frame/test_missing.py
+++ b/pandas/tests/frame/test_missing.py
@@ -24,14 +24,16 @@ def test_dropEmptyRows(self, float_frame):
smaller_frame = frame.dropna(how="all")... | Closes https://github.com/pandas-dev/pandas/issues/35179
| https://api.github.com/repos/pandas-dev/pandas/pulls/35181 | 2020-07-08T17:09:01Z | 2020-07-09T22:05:35Z | 2020-07-09T22:05:34Z | 2020-07-10T10:20:35Z |
DOC: fix code snippets for generic indexing | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index 50b946999092a..49487ac327e73 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -219,8 +219,8 @@ There are 2 explicit slicing methods, with a third general case
df.loc['bar':'kar'] # ... | The code example for generic indexing is the same as positional/label indexing above.
I think generic indexing here intended to be referred to something like `df[0:3]` and `df['bar':'kar']` | https://api.github.com/repos/pandas-dev/pandas/pulls/35175 | 2020-07-08T09:24:03Z | 2020-07-09T22:06:36Z | 2020-07-09T22:06:36Z | 2020-07-09T22:06:43Z |
PERF: periodarr_to_dt64arr | diff --git a/asv_bench/benchmarks/tslibs/period.py b/asv_bench/benchmarks/tslibs/period.py
index 9156c4aa90ea0..1a2c89b48c665 100644
--- a/asv_bench/benchmarks/tslibs/period.py
+++ b/asv_bench/benchmarks/tslibs/period.py
@@ -2,10 +2,15 @@
Period benchmarks that rely only on tslibs. See benchmarks.period for
Period b... | - [x] closes #33919
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Re-use `ensure_datetime64ns` for the subset of cases where that is applicable. I'm at a loss for why we get such a slowdown for the other cases.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35171 | 2020-07-08T02:17:05Z | 2020-07-09T22:08:17Z | 2020-07-09T22:08:17Z | 2020-07-09T23:21:34Z |
DOC: Add pint pandas ecosystem docs | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 72e24e34bc5c1..b02d4abd3ddf8 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -421,6 +421,14 @@ found in NumPy or pandas, which work well with pandas' data containers.
Cyberpandas provides an extension type for storing arrays... | - [ ] closes #xxxx (N/A)
- [ ] tests added / passed (N/A)
- [ ] passes `black pandas` (N/A)
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (N/A)
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35170 | 2020-07-07T22:41:48Z | 2020-07-10T20:33:18Z | 2020-07-10T20:33:18Z | 2020-07-10T20:33:25Z |
REF: collect get_dst_info-using functions in tslibs.vectorized | diff --git a/asv_bench/benchmarks/tslibs/resolution.py b/asv_bench/benchmarks/tslibs/resolution.py
index 274aa1ad6d4a9..280be7932d4db 100644
--- a/asv_bench/benchmarks/tslibs/resolution.py
+++ b/asv_bench/benchmarks/tslibs/resolution.py
@@ -23,7 +23,10 @@
import numpy as np
import pytz
-from pandas._libs.tslibs.res... | I'm open to better names for the new module.
With these all in the same place, we can separate out helper functions and de-duplicate a whole bunch of verbose code. | https://api.github.com/repos/pandas-dev/pandas/pulls/35168 | 2020-07-07T20:22:31Z | 2020-07-08T21:50:17Z | 2020-07-08T21:50:17Z | 2020-07-08T22:06:58Z |
CLN: remove unused freq kwarg in libparsing | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 92654f3b587e5..c4f369d0d3b3f 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -197,7 +197,6 @@ cdef inline bint does_string_look_like_time(str parse_string):
def parse_datetime_string(
str d... | https://api.github.com/repos/pandas-dev/pandas/pulls/35167 | 2020-07-07T20:02:15Z | 2020-07-10T22:20:52Z | 2020-07-10T22:20:52Z | 2020-07-10T23:37:58Z | |
Fixed Series.apply performance regression | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9c223d66b727b..d4be660939773 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -291,16 +291,14 @@ def apply_series_generator(self, partial_result=None) -> Tuple[ResType, "Index"]
res_index = res_index.take(successes)
... | Set the option once, rather than in the loop.
Closes https://github.com/pandas-dev/pandas/issues/35047
```python
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(1000, 3), columns=list("ABC"))
%timeit df.apply(lambda x: x["A"] + x["B"], axis=1)
```
```
# 1.0.4
22.5 ms ± 4.73 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35166 | 2020-07-07T19:38:58Z | 2020-07-08T12:40:46Z | 2020-07-08T12:40:46Z | 2020-07-08T12:40:56Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.