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
ENH: implement _typing.DtypeObj
diff --git a/pandas/_typing.py b/pandas/_typing.py index 171b76b4d2c4b..e2858441605f7 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -45,6 +45,7 @@ # other Dtype = Union[str, np.dtype, "ExtensionDtype"] +DtypeObj = Union[np.dtype, "ExtensionDtype"] FilePathOrBuffer = Union[str, Path, IO[AnyStr]] # Fr...
like Dtype, but doesnt include strings.
https://api.github.com/repos/pandas-dev/pandas/pulls/31426
2020-01-29T19:20:35Z
2020-01-31T04:16:29Z
2020-01-31T04:16:29Z
2020-01-31T04:17:40Z
REF: do all convert_tolerance casting inside Index.get_loc
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e07a8fa0469f4..cf2f507dc019c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -150,6 +150,7 @@ Indexing - Bug in :meth:`PeriodIndex.get_loc` treating higher-resolution strings differently from :meth:`P...
As a bonus we get better exception messages in the affected tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/31425
2020-01-29T18:13:40Z
2020-02-01T22:30:05Z
2020-02-01T22:30:05Z
2020-02-01T22:40:47Z
Backport PR #31423 on branch 1.0.x (PERF: postpone imports in Index constructor)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 512e52add9807..4fcddb5cade4a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -278,10 +278,6 @@ def __new__( ) -> "Index": from pandas.core.indexes.range import RangeIndex - from pandas impor...
Backport PR #31423: PERF: postpone imports in Index constructor
https://api.github.com/repos/pandas-dev/pandas/pulls/31424
2020-01-29T17:25:43Z
2020-01-29T18:10:44Z
2020-01-29T18:10:44Z
2020-01-29T18:23:37Z
PERF: postpone imports in Index constructor
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1738c03e754b2..5274213f114e3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -277,10 +277,6 @@ def __new__( ) -> "Index": from pandas.core.indexes.range import RangeIndex - from pandas impor...
xref https://github.com/pandas-dev/pandas/issues/30790, it's for improving this one mentioned in that issue: ``` arr_str = np.array(["foo", "bar", "baz"], dtype=object) %timeit pd.Index(arr_str) ``` Only importing the index classes when we actually need them gives a 15-20% speedup. Last week when profiling ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31423
2020-01-29T15:54:19Z
2020-01-29T17:25:29Z
2020-01-29T17:25:29Z
2020-01-29T18:38:46Z
Backport PR #31411 on branch 1.0.x (COMPAT: dont pass dtype to datetime64)
diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py index 3764d9b7548fc..6a9ef86c11292 100644 --- a/pandas/tests/scalar/timedelta/test_arithmetic.py +++ b/pandas/tests/scalar/timedelta/test_arithmetic.py @@ -498,7 +498,7 @@ def test_td_rfloordiv_invalid_scala...
Backport PR #31411: COMPAT: dont pass dtype to datetime64
https://api.github.com/repos/pandas-dev/pandas/pulls/31421
2020-01-29T15:13:02Z
2020-01-29T16:13:05Z
2020-01-29T16:13:04Z
2020-01-29T16:13:05Z
Backport PR #31150: API: generalized check_array_indexer for validating array-like getitem indexers
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index c072237850d82..78fdfbfd28144 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -66,7 +66,7 @@ behaves correctly. .. autosummary:: :toctree: api/ - api.indexers.check_bool_array...
Backport https://github.com/pandas-dev/pandas/pull/31150
https://api.github.com/repos/pandas-dev/pandas/pulls/31419
2020-01-29T14:44:14Z
2020-01-29T15:13:08Z
2020-01-29T15:13:08Z
2020-01-29T16:30:33Z
Fix bug in calculation of holidays
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index dc7edd8db662e..dc17cddd32df9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -223,6 +223,8 @@ Other - Appending a dictionary to a :class:`DataFrame` without passing ``ignore_index=True`` will raise ``...
Closes #31415 - [x] closes #xxxx - [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/31416
2020-01-29T12:19:32Z
2020-02-09T20:54:38Z
2020-02-09T20:54:38Z
2020-02-09T23:25:28Z
CLN: Replace '.format' with f-strings in some test files #29547
diff --git a/pandas/tests/reshape/test_reshape.py b/pandas/tests/reshape/test_reshape.py index f25291f4aef12..6113cfec48df9 100644 --- a/pandas/tests/reshape/test_reshape.py +++ b/pandas/tests/reshape/test_reshape.py @@ -86,9 +86,7 @@ def test_basic_types(self, sparse, dtype): result = get_dummies(s_df, colu...
Updates the below 2 test files to use f-strings (fast and preferred) instead of '.format' (old and slow) 1) pandas/tests/reshape/test_reshape.py 2) pandas/tests/scalar/period/test_period.py For more details on the issue, refer: https://github.com/pandas-dev/pandas/issues/29547 - [x] tests passed - [x] passe...
https://api.github.com/repos/pandas-dev/pandas/pulls/31412
2020-01-29T05:07:38Z
2020-01-31T04:02:40Z
2020-01-31T04:02:40Z
2020-02-02T03:06:03Z
COMPAT: dont pass dtype to datetime64
diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py index ce08a47f824ee..5fc991df49424 100644 --- a/pandas/tests/scalar/timedelta/test_arithmetic.py +++ b/pandas/tests/scalar/timedelta/test_arithmetic.py @@ -498,7 +498,7 @@ def test_td_rfloordiv_invalid_scala...
Hopefully fixes npdev build
https://api.github.com/repos/pandas-dev/pandas/pulls/31411
2020-01-29T03:34:46Z
2020-01-29T15:12:06Z
2020-01-29T15:12:06Z
2020-01-29T15:51:10Z
PERF/CLN: float-to-int casting
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 48ad659b771f6..4bfd5f5770b69 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -25,6 +25,7 @@ from pandas.core.dtypes.missing import isna from pandas.core import nanops, ops +import pandas.core.common as...
using float.is_integer is apparently much faster than casting and checking equality, especially for values between int32max and int64max (anecdotal based on small sample size) ``` cast1 = com.cast_scalar_indexer_master cast2 = com.cast_scalar_indexer_PR def cast3(key): # Effectively what we have in _maybe_...
https://api.github.com/repos/pandas-dev/pandas/pulls/31409
2020-01-29T02:13:52Z
2020-02-02T22:50:48Z
2020-02-02T22:50:48Z
2020-02-02T23:16:45Z
REF: docstrings that dont need to go into shared_docs
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f5f793c507480..22ba317e78e63 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -505,9 +505,8 @@ def _get_attributes_dict(self): """ return {k: getattr(self, k, None) for k in self._attributes} - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31408
2020-01-28T23:54:55Z
2020-01-31T14:47:28Z
2020-01-31T14:47:27Z
2020-01-31T15:50:08Z
REF: consolidate DTI/TDI/PI get_value in ExtensionIndex, associated cleanups
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5e6018d85bd2d..32d09ef8c8c9b 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1,7 +1,7 @@ from datetime import datetime import operator from textwrap import dedent -from typing import Any, FrozenSet, Hashable, ...
@jschendel does the holds_integer change for IntervalIndex make sense? @jreback is this a correct usage of self.holds_integer() as meaning "we only fall back to positional indexing if not self.holds_integer()"
https://api.github.com/repos/pandas-dev/pandas/pulls/31406
2020-01-28T21:50:47Z
2020-02-02T22:52:06Z
2020-02-02T22:52:06Z
2020-02-02T23:12:40Z
Backport PR #31136 on branch 1.0.x (COMPAT: Return NotImplemented for subclassing)
diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py index 6a10b3650293c..830f7c14a5493 100644 --- a/pandas/core/indexes/extension.py +++ b/pandas/core/indexes/extension.py @@ -8,7 +8,11 @@ from pandas.compat.numpy import function as nv from pandas.util._decorators import Appender, cache_r...
Backport PR #31136: COMPAT: Return NotImplemented for subclassing
https://api.github.com/repos/pandas-dev/pandas/pulls/31405
2020-01-28T21:14:23Z
2020-01-28T22:17:03Z
2020-01-28T22:17:03Z
2020-01-28T22:17:03Z
Add pandas blog to feed
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index d041d6dd2ac95..ef0b2a0270a0b 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -59,6 +59,7 @@ navbar: blog: num_posts: 8 feed: + - https://dev.pandas.io/pandas-blog/feeds/all.atom.xml - https://wesmckinney.com/feeds/pandas.atom....
I don't think this needs to be backported.
https://api.github.com/repos/pandas-dev/pandas/pulls/31404
2020-01-28T21:10:39Z
2020-01-29T17:34:35Z
2020-01-29T17:34:35Z
2020-01-29T17:34:38Z
Backport PR #31361 on branch 1.0.x (Avoid Index DeprecationWarning in Series getitem)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6f9c865db673b..c3839c9e09743 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5563,6 +5563,8 @@ def deprecate_ndim_indexing(result): # GH#27125 indexer like idx[:, None] expands dim, but we # ca...
Backport PR #31361: Avoid Index DeprecationWarning in Series getitem
https://api.github.com/repos/pandas-dev/pandas/pulls/31403
2020-01-28T20:55:53Z
2020-01-28T22:17:23Z
2020-01-28T22:17:23Z
2020-01-28T22:17:23Z
CLN: remove maybe_box
diff --git a/pandas/core/common.py b/pandas/core/common.py index c883ec9fa49b7..9f307b68360f7 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -72,16 +72,6 @@ def consensus_name_attr(objs): return name -def maybe_box(indexer, values, obj, key): - - # if we have multiples coming back, box em...
Recently removed the last usaged from TDI/DTI.
https://api.github.com/repos/pandas-dev/pandas/pulls/31402
2020-01-28T20:06:28Z
2020-01-31T03:33:46Z
2020-01-31T03:33:46Z
2020-01-31T04:13:19Z
BUG: preserve object dtype for Index set ops
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e07a8fa0469f4..283345d554a51 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -210,7 +210,7 @@ Other ^^^^^ - Appending a dictionary to a :class:`DataFrame` without passing ``ignore_index=True`` will r...
I'd be fine with coercing if we did it consistently, but ATM we behave differently for monotonic-increasing vs otherwise.
https://api.github.com/repos/pandas-dev/pandas/pulls/31401
2020-01-28T19:30:54Z
2020-02-02T22:56:52Z
2020-02-02T22:56:52Z
2020-02-02T23:09:41Z
PERF: avoid is_bool_indexer check where possible
diff --git a/pandas/core/series.py b/pandas/core/series.py index 040fcf392733b..2ffb22d2d272f 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -851,31 +851,36 @@ def __getitem__(self, key): if key is Ellipsis: return self - try: - result = self.index.get_value(...
xref #30349, not a lot of ground to pick up here, but we can avoid a few calls
https://api.github.com/repos/pandas-dev/pandas/pulls/31399
2020-01-28T19:27:47Z
2020-02-04T08:05:27Z
2020-02-04T08:05:27Z
2020-02-04T16:16:12Z
TYP: Annotate
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5274213f114e3..6f3c1561ff5db 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -12,6 +12,7 @@ from pandas._libs.tslibs import OutOfBoundsDatetime, Timestamp from pandas._libs.tslibs.period import IncompatibleFrequ...
AFAICT having the more specific annotations for the Index subclasses _data attribute is a blocker for a bunch of other annotations.
https://api.github.com/repos/pandas-dev/pandas/pulls/31397
2020-01-28T17:53:50Z
2020-01-31T03:34:57Z
2020-01-31T03:34:56Z
2020-01-31T04:10:15Z
GH31391 - Fixed typos and fixed inexistant path in a SAS class comment
diff --git a/asv_bench/benchmarks/io/sas.py b/asv_bench/benchmarks/io/sas.py index 5eaeb231b031b..369b79641dbc4 100644 --- a/asv_bench/benchmarks/io/sas.py +++ b/asv_bench/benchmarks/io/sas.py @@ -9,7 +9,7 @@ class SAS: param_names = ["format"] def setup(self, format): - # Read files that are located...
Simple change: just fixed some typos and incorrect path as reported in #31391
https://api.github.com/repos/pandas-dev/pandas/pulls/31395
2020-01-28T17:15:03Z
2020-01-29T01:48:26Z
2020-01-29T01:48:25Z
2020-01-29T01:48:35Z
Backport PR #31392 on branch 1.0.x (DOC: Fix image alignment)
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 84dbba823afa0..43cd631890330 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -12,10 +12,6 @@ /*min-height: 150px; */ } -.intro-card .card-img-top { - margin: 10px; -} - .custom-butt...
Backport PR #31392: DOC: Fix image alignment
https://api.github.com/repos/pandas-dev/pandas/pulls/31394
2020-01-28T16:18:32Z
2020-01-28T17:56:57Z
2020-01-28T17:56:57Z
2020-01-28T17:56:58Z
Backport PR #29393 on branch 1.0.x (BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 81d8f3c1a1e0b..14a46e7e9b909 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1091,6 +1091,7 @@ Indexing - Bug when indexing with ``.loc`` where the index was a :class:`CategoricalIndex` with non-stri...
Backport PR #29393: BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame
https://api.github.com/repos/pandas-dev/pandas/pulls/31393
2020-01-28T15:29:56Z
2020-01-28T16:00:40Z
2020-01-28T16:00:40Z
2020-01-28T16:00:40Z
DOC: Fix image alignment
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 84dbba823afa0..43cd631890330 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -12,10 +12,6 @@ /*min-height: 150px; */ } -.intro-card .card-img-top { - margin: 10px; -} - .custom-butt...
Closes #31369 ![Screen Shot 2020-01-28 at 9 02 54 AM](https://user-images.githubusercontent.com/1312546/73275908-74073b00-41ad-11ea-878a-0144ba558f3f.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/31392
2020-01-28T15:06:31Z
2020-01-28T16:18:20Z
2020-01-28T16:18:19Z
2020-01-28T16:18:20Z
Backport PR #31382 on branch 1.0.x (DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 65cfc412c0d98..81d8f3c1a1e0b 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -230,12 +230,12 @@ Other enhancements - Added the ``na_value`` argument to :meth:`Series.to_numpy`, :meth:`Index.to_numpy` ...
Backport PR #31382: DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up
https://api.github.com/repos/pandas-dev/pandas/pulls/31390
2020-01-28T12:49:01Z
2020-01-28T13:33:41Z
2020-01-28T13:33:40Z
2020-01-28T13:33:41Z
ENH: truncate output of Groupby.groups
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index a9237c239701b..f904781178656 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -32,7 +32,7 @@ check each issue individually, and it's not possible to find the unassign...
Resurrection of #24853. Have resolved conflicts and updated according to the last review it received. The original PR fixed some unrelated minor typos, so I've kept them in (and added a fix for another absolutely minor typo I'd noticed) - [x] closes #1135 - [x] tests added / passed - [x] passes `black pandas` - [...
https://api.github.com/repos/pandas-dev/pandas/pulls/31388
2020-01-28T11:22:57Z
2020-01-31T04:06:39Z
2020-01-31T04:06:38Z
2020-02-25T17:12:40Z
CLN: more consistent error message for construct_from_string wrong type
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 075096f6cfb54..3e5edd9c2def3 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -75,9 +75,11 @@ def construct_from_string(cls, string): try: return cls(np.dtype(string)) except Type...
https://api.github.com/repos/pandas-dev/pandas/pulls/31387
2020-01-28T11:03:21Z
2020-01-31T05:23:52Z
2020-01-31T05:23:52Z
2020-01-31T09:23:43Z
TYP: pandas/core/arrays/string_.py
diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index c485d1f50dc9d..309a0beb9c828 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -1,5 +1,5 @@ import operator -from typing import Type +from typing import TYPE_CHECKING, Type, Union import numpy as np @@...
https://api.github.com/repos/pandas-dev/pandas/pulls/31386
2020-01-28T10:27:52Z
2020-01-31T11:46:54Z
2020-01-31T11:46:54Z
2020-01-31T15:00:18Z
TYP: pandas/core/dtypes/dtypes.py
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index d7ba150e3ec9d..17c4c6ba1c701 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -3,7 +3,18 @@ """ import re -from typing import Any, Dict, List, MutableMapping, Optional, Tuple, Type, Union, cast +from typing...
https://api.github.com/repos/pandas-dev/pandas/pulls/31384
2020-01-28T10:09:36Z
2020-04-05T10:27:57Z
2020-04-05T10:27:57Z
2020-04-27T09:01:00Z
Raise error in read_csv when arguments header and prefix both are not None
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9fdda83abe944..27b28c1c08e23 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -177,6 +177,7 @@ MultiIndex I/O ^^^ - Bug in :meth:`read_json` where integer overflow was occuring when json contains big...
- [x] closes #27394 - [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/31383
2020-01-28T09:40:27Z
2020-02-03T15:52:28Z
2020-02-03T15:52:27Z
2020-02-03T16:13:05Z
DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index ada82987921ec..2abe85f042af1 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -230,12 +230,12 @@ Other enhancements - Added the ``na_value`` argument to :meth:`Series.to_numpy`, :meth:`Index.to_numpy` ...
Made some of the ipython blocks into literal code blocks to avoid showing long error tracebacks (that only distract from the core text). Plus did a few other small formatting clean-ups, and combined 2 pyarrow related entries.
https://api.github.com/repos/pandas-dev/pandas/pulls/31382
2020-01-28T08:49:35Z
2020-01-28T12:48:07Z
2020-01-28T12:48:07Z
2020-01-28T13:07:49Z
BUG: Timedelta components no longer rounded with high precision integers
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 920919755dc23..ff88a9b9bac3e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -109,7 +109,7 @@ Datetimelike Timedelta ^^^^^^^^^ -- +- Bug in constructing a :class:`Timedelta` with a high precision i...
- [x] closes #31354 - [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/31380
2020-01-28T07:16:54Z
2020-02-02T21:08:57Z
2020-02-02T21:08:57Z
2020-02-03T14:06:59Z
Backport PR #31238: REGR: Prevent indexes that aren't directly backedby numpy from entering libreduction code paths
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 14a3c3c008e92..a496afeee83af 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -13,7 +13,7 @@ is_list_like, is_sequence, ) -from pandas.core.dtypes.generic import ABCMultiIndex, ABCSeries +from pandas.core.dtypes.generic import ABCS...
Backport #31238
https://api.github.com/repos/pandas-dev/pandas/pulls/31378
2020-01-28T03:59:09Z
2020-01-28T12:17:47Z
2020-01-28T12:17:47Z
2020-02-24T18:13:51Z
"Backport PR #31358 on branch 1.0.x"
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index b89ead2fe7b47..5a3bce383629f 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2541,7 +2541,7 @@ def _partial_tup_index(self, tup, side="left"): for k, (lab, lev, labs) in enumerate(zipped): ...
xref #31358
https://api.github.com/repos/pandas-dev/pandas/pulls/31376
2020-01-28T02:15:36Z
2020-01-28T18:51:25Z
2020-01-28T18:51:25Z
2020-01-28T19:32:43Z
Backport PR #30860 on branch 1.0.x (REF: gradually move ExtensionIndex delegation to use inherit_names)
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 41072d4ce6a93..94dee95ab4154 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -27,7 +27,7 @@ import pandas.core.common as com import pandas.core.indexes.base as ibase from pandas.core.indexes.bas...
Backport PR #30860: REF: gradually move ExtensionIndex delegation to use inherit_names
https://api.github.com/repos/pandas-dev/pandas/pulls/31375
2020-01-28T01:54:25Z
2020-01-28T02:57:55Z
2020-01-28T02:57:55Z
2020-01-28T02:57:56Z
Backport PR #31290 on branch 1.0.x (BUG: Handle IntegerArray in pd.cut)
diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py index 2e3eb9170b15c..15e6aaeaa5e9d 100644 --- a/pandas/core/reshape/tile.py +++ b/pandas/core/reshape/tile.py @@ -14,7 +14,9 @@ is_datetime64_dtype, is_datetime64tz_dtype, is_datetime_or_timedelta_dtype, + is_extension_array_dtype,...
Backport PR #31290: BUG: Handle IntegerArray in pd.cut
https://api.github.com/repos/pandas-dev/pandas/pulls/31374
2020-01-28T01:52:51Z
2020-01-28T02:57:41Z
2020-01-28T02:57:41Z
2020-01-28T02:57:41Z
CLN: require extracting .values before expressions calls
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index ada983e9e4fad..fdc299ccdfde8 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -12,8 +12,6 @@ from pandas._config import get_option -from pandas._libs.lib import valu...
https://api.github.com/repos/pandas-dev/pandas/pulls/31373
2020-01-28T01:12:04Z
2020-01-28T02:22:14Z
2020-01-28T02:22:14Z
2020-01-28T02:25:36Z
CLN: tighten what we pass to Index._shallow_copy
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 4573fd7fc6da3..52dfc6930cf53 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -507,11 +507,6 @@ def _shallow_copy(self, values=None, **kwargs): attributes = self._get_attributes_dict() attribute...
https://api.github.com/repos/pandas-dev/pandas/pulls/31371
2020-01-27T22:57:56Z
2020-01-28T03:01:57Z
2020-01-28T03:01:57Z
2020-01-28T04:20:23Z
TYP: check_untyped_defs core.reshape.reshape
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index fab9f41cb6c4f..f00ff0d4ba5ed 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -1,6 +1,6 @@ from functools import partial import itertools -from typing import List +from typing import List, Optional, U...
pandas\core\reshape\reshape.py:378: error: "Index" has no attribute "levels"; maybe "nlevels"? pandas\core\reshape\reshape.py:381: error: "Index" has no attribute "codes" pandas\core\reshape\reshape.py:383: error: "Index" has no attribute "codes" pandas\core\reshape\reshape.py:436: error: Incompatible types in assig...
https://api.github.com/repos/pandas-dev/pandas/pulls/31367
2020-01-27T21:02:47Z
2020-01-31T04:18:02Z
2020-01-31T04:18:01Z
2020-01-31T09:25:59Z
TYP: check_untyped_defs core.computation.ops
diff --git a/pandas/core/computation/ops.py b/pandas/core/computation/ops.py index cb166ba65152b..5563d3ae27118 100644 --- a/pandas/core/computation/ops.py +++ b/pandas/core/computation/ops.py @@ -5,6 +5,7 @@ from distutils.version import LooseVersion from functools import partial import operator +from typing import...
https://api.github.com/repos/pandas-dev/pandas/pulls/31366
2020-01-27T20:34:54Z
2020-01-28T02:59:50Z
2020-01-28T02:59:50Z
2020-01-28T08:59:14Z
TYP: pandas/core/computation/expr.py
diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py index d91586e6c9b81..c26208d3b4465 100644 --- a/pandas/core/computation/expr.py +++ b/pandas/core/computation/expr.py @@ -1,11 +1,12 @@ -""":func:`~pandas.eval` parsers +""" +:func:`~pandas.eval` parsers. """ import ast from functools i...
https://api.github.com/repos/pandas-dev/pandas/pulls/31365
2020-01-27T20:26:12Z
2020-01-31T04:21:21Z
2020-01-31T04:21:21Z
2020-01-31T09:24:50Z
TYP: update setup.cfg
diff --git a/setup.cfg b/setup.cfg index d0570cee6fe10..e68a87413ed5d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -150,6 +150,9 @@ ignore_errors=True [mypy-pandas.tests.scalar.period.test_period] ignore_errors=True +[mypy-pandas._testing] +check_untyped_defs=False + [mypy-pandas._version] check_untyped_defs=False ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31363
2020-01-27T20:15:45Z
2020-01-28T03:01:12Z
2020-01-28T03:01:12Z
2020-01-28T09:00:14Z
Backport PR #30784: API: DataFrame.take always returns a copy
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 9d5289ae8f2d0..65cfc412c0d98 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -753,7 +753,7 @@ Deprecations - The deprecated internal attributes ``_start``, ``_stop`` and ``_step`` of :class:`RangeInde...
Backport #30784
https://api.github.com/repos/pandas-dev/pandas/pulls/31362
2020-01-27T20:04:55Z
2020-01-28T01:51:13Z
2020-01-28T01:51:13Z
2020-01-28T06:00:10Z
Avoid Index DeprecationWarning in Series getitem
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 4573fd7fc6da3..f1e1d07925bb6 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5826,6 +5826,8 @@ def deprecate_ndim_indexing(result): # GH#27125 indexer like idx[:, None] expands dim, but we # ca...
xref https://github.com/pandas-dev/pandas/issues/30867 cc @jorisvandenbossche. The alternative is to use a warnings filter inside SingleBlockManger.get_slice to filter the warning, but I think avoiding the warning in the first place is a bit nicer.
https://api.github.com/repos/pandas-dev/pandas/pulls/31361
2020-01-27T20:04:03Z
2020-01-28T20:55:41Z
2020-01-28T20:55:41Z
2020-01-28T20:55:45Z
DEPR: remove deprecated verbose, private_key kwargs for gbq
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index d0dc3f58379a0..9048e95d23f57 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -535,6 +535,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - :meth:`Series.plot` no longer acce...
The deprecation didn't have a whatsnew note or actually use deprecate_kwarg, so im not sure how formal the removal should be. xref #20564.
https://api.github.com/repos/pandas-dev/pandas/pulls/30200
2019-12-11T01:53:56Z
2019-12-13T17:12:44Z
2019-12-13T17:12:44Z
2019-12-13T17:36:14Z
DEPR: enforce deprecation of unitless td64/dt64
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index ddff72beab0a7..0a773b8a215ed 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1460,7 +1460,7 @@ class Timedelta(_Timedelta): # also timedelta-like retu...
https://api.github.com/repos/pandas-dev/pandas/pulls/30199
2019-12-11T01:51:10Z
2019-12-11T12:49:03Z
2019-12-11T12:49:03Z
2019-12-11T16:49:47Z
STY - fstrings on frame.py & numeric.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b8d86d9e295fe..fa85c54eb42fa 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7792,7 +7792,7 @@ def _get_agg_axis(self, axis_num): elif axis_num == 1: return self.index else: - raise ValueError("Axis...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #https://github.com/pandas-dev/pandas/issues/29886
https://api.github.com/repos/pandas-dev/pandas/pulls/30197
2019-12-11T00:41:32Z
2019-12-11T12:49:30Z
2019-12-11T12:49:30Z
2019-12-11T12:49:32Z
CLN: remove redundant Index checks
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1587d97ffb52c..803c29c327b8e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -45,7 +45,6 @@ is_signed_integer_dtype, is_timedelta64_dtype, is_unsigned_integer_dtype, - pandas_dtype, ) from pand...
the datetime64tz check can now be rolled in to the EA check
https://api.github.com/repos/pandas-dev/pandas/pulls/30195
2019-12-11T00:04:28Z
2019-12-11T12:50:17Z
2019-12-11T12:50:17Z
2019-12-11T16:20:08Z
DEPR: pandas.core.index
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4302497eb00cd..75af125c8d19f 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4683,6 +4683,7 @@ See the documentation for `pyarrow <https://arrow.apache.org/docs/python/>`__ an Write to a parquet file. .. ...
- [x] closes #19711 - [ ] 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/30193
2019-12-10T23:58:13Z
2019-12-14T08:02:04Z
2019-12-14T08:02:04Z
2019-12-14T15:35:48Z
DEPR: enforce kwarg deprecations in plotting, Categorical.fillna
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3c2e06cb9cf9a..d26a484739df3 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -627,6 +627,11 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed the default value for ``o...
https://api.github.com/repos/pandas-dev/pandas/pulls/30190
2019-12-10T21:34:56Z
2019-12-12T13:51:11Z
2019-12-12T13:51:11Z
2019-12-12T15:50:23Z
REF: pass dtype and data to pytables IndexCol constructor
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 6c3766b5ac816..bb758f45a8326 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2207,6 +2207,8 @@ def __init__( table=None, meta=None, metadata=None, + dtype=None, + data=None, ): supe...
Along #30184 we'll be able to get rid of `set_data` and clean up the last remaining state-setting in IndexCol objects.
https://api.github.com/repos/pandas-dev/pandas/pulls/30186
2019-12-10T20:18:48Z
2019-12-11T12:53:13Z
2019-12-11T12:53:13Z
2019-12-11T16:21:44Z
REF: dont alter state in pytables read_axes
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fe34f009165ac..a37cbd41bbf90 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1965,7 +1965,9 @@ def is_indexed(self) -> bool: return getattr(self.table.cols, self.cname).is_indexed # type: ignore def convert(self, values...
https://api.github.com/repos/pandas-dev/pandas/pulls/30184
2019-12-10T19:31:28Z
2019-12-12T23:14:33Z
2019-12-12T23:14:33Z
2019-12-12T23:35:42Z
Fixed IntegerArray division by 0
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3e72072eae303..2ec575ef5040a 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -858,6 +858,7 @@ Other - Bug in :meth:`DataFrame.append` that raised ``IndexError`` when appending with empty list (:issue:...
When dividing by 0, the result should be `inf`, not `NaN`. closes https://github.com/pandas-dev/pandas/issues/27398 closes https://github.com/pandas-dev/pandas/issues/27829
https://api.github.com/repos/pandas-dev/pandas/pulls/30183
2019-12-10T19:30:53Z
2019-12-11T17:09:39Z
2019-12-11T17:09:38Z
2019-12-11T17:09:39Z
TST: move comparision tests
diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index 443a0c7e71616..90790ccadb54a 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -389,6 +389,27 @@ def test_compare_array(self, data, all_compare_operators): other = pd.Series(...
These tests from https://github.com/pandas-dev/pandas/pull/28945 should be in `tests/arrays/test_integer.py` since they're not base extension array tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/30182
2019-12-10T17:43:51Z
2019-12-10T20:16:32Z
2019-12-10T20:16:32Z
2019-12-10T20:16:35Z
BUG: Support categorical targets in IntervalIndex.get_indexer
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8326976cbec8c..24d0427904b05 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -711,6 +711,7 @@ Numeric - Bug in :class:`NumericIndex` construction that caused indexing to fail when integers in the ``np...
- [X] closes #30063 - [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/30181
2019-12-10T07:28:11Z
2019-12-11T12:59:52Z
2019-12-11T12:59:52Z
2019-12-11T17:36:39Z
Simplified JSON string handling
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index ecfe1250f6f45..eaf9406c30856 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -405,22 +405,7 @@ static void *PyBytesToUTF8(JSOBJ _obj, JSONTypeContext *tc, vo...
Provides a slight boost to performance as well ```sh before after ratio [52f5fdf1] [325833e0] <master> <faster-json-str> - 112±1ms 101±0.7ms 0.90 io.json.ToJSON.time_to_json('index', 'df') SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY. PERFORM...
https://api.github.com/repos/pandas-dev/pandas/pulls/30179
2019-12-10T05:30:36Z
2019-12-10T12:30:07Z
2019-12-10T12:30:07Z
2020-01-16T00:33:16Z
DEPR: to_timedelta box kwarg
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8326976cbec8c..df7ad36c6af98 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -539,7 +539,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
Probably was intended to be done at the same time as the to_datetime version. Also cleaning up some other things picked up by grepping for "deprecate"
https://api.github.com/repos/pandas-dev/pandas/pulls/30177
2019-12-10T04:51:00Z
2019-12-11T07:25:14Z
2019-12-11T07:25:14Z
2019-12-11T16:15:46Z
DEPR: remove stata deprecations from 2015 and 2017
diff --git a/doc/redirects.csv b/doc/redirects.csv index e0ec3bcaa340d..02c0af9be3739 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -779,7 +779,6 @@ generated/pandas.io.formats.style.Styler.use,../reference/api/pandas.io.formats. generated/pandas.io.formats.style.Styler.where,../reference/api/pandas.io.for...
xref #9493 to remove the `data` method and #17328 to change the "index" kwarg to "index_col"
https://api.github.com/repos/pandas-dev/pandas/pulls/30176
2019-12-10T04:46:34Z
2019-12-10T19:54:15Z
2019-12-10T19:54:15Z
2019-12-10T19:58:56Z
BUG+DEPR: undeprecate item, fix dt64/td64 output type
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c288a008777cf..46231fadf4299 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -486,6 +486,7 @@ Documentation Improvements Deprecations ~~~~~~~~~~~~ +- :meth:`Series.item` and :meth:`Index.item` have...
- [x] closes #29250 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Does the un-deprecation need a dedicated discussion, or is there consensus on that? I'd be happy to split this into separate bug/depr pieces of r...
https://api.github.com/repos/pandas-dev/pandas/pulls/30175
2019-12-10T04:43:19Z
2019-12-18T08:11:21Z
2019-12-18T08:11:21Z
2019-12-18T16:15:43Z
Remove Dead JSON Code
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index ecfe1250f6f45..a68fad8a24664 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -531,26 +531,8 @@ static void *PyTimeToJSON(JSOBJ _obj, JSONTypeContext *tc, voi...
I think this function is somewhat misleading as it implies that any ndarray type goes through it, but realistically the flag that sends you through to this function is only set for datetime arrays
https://api.github.com/repos/pandas-dev/pandas/pulls/30174
2019-12-10T03:50:52Z
2019-12-10T12:29:16Z
2019-12-10T12:29:16Z
2020-01-16T00:33:14Z
PERF: Improve perf initalizing DataFrame with a range
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index a949ffdced576..1deca8fe3aad0 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -105,4 +105,16 @@ def time_frame_from_lists(self): self.df = DataFrame(self.data) +class FromRa...
Performance improvement when initalizing a DataFrame with a range: ```python >>> %timeit pd.DataFrame(range(1_000_000)) 347 ms ± 4.46 ms per loop # master 5.98 ms ± 61.9 µs per loop # this PR # other initialization types don't seem to be affected by this problem: >>> %timeit pd.Series(range(1_000_000)) 5.75...
https://api.github.com/repos/pandas-dev/pandas/pulls/30171
2019-12-09T22:11:14Z
2019-12-10T15:03:51Z
2019-12-10T15:03:51Z
2019-12-10T15:03:56Z
STY: Underscores for long numbers
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index c05eeb761abcf..34e01e55d2028 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1076,9 +1076,9 @@ def tz_localize(self, tz, ambiguous="raise", nonexistent="raise"): nonexistent, timedelt...
- [ ] 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/30169
2019-12-09T21:07:22Z
2019-12-10T12:48:16Z
2019-12-10T12:48:16Z
2019-12-20T14:41:10Z
STY: Underscores for long numbers
diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx index 8b847350cb1ff..e41914f3aa9ad 100644 --- a/pandas/_libs/testing.pyx +++ b/pandas/_libs/testing.pyx @@ -66,7 +66,8 @@ cpdef assert_almost_equal(a, b, check_less_precise=False, bint check_dtype=True...
- [ ] 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/30166
2019-12-09T20:43:06Z
2019-12-11T11:33:50Z
2019-12-11T11:33:50Z
2019-12-20T14:40:36Z
DOC: Cleaned doctrings
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index 7dfed94482a05..e8fd390456f82 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -4,7 +4,7 @@ import copy import pickle as pkl -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Optio...
- [ ] 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/30165
2019-12-09T19:25:50Z
2019-12-11T11:17:13Z
2019-12-11T11:17:13Z
2019-12-20T14:53:14Z
CI: test for file leakage
diff --git a/ci/deps/azure-36-locale_slow.yaml b/ci/deps/azure-36-locale_slow.yaml index c3c94e365c259..2bb2b00319382 100644 --- a/ci/deps/azure-36-locale_slow.yaml +++ b/ci/deps/azure-36-locale_slow.yaml @@ -18,7 +18,7 @@ dependencies: - lxml - matplotlib=2.2.2 - numpy=1.14.* - - openpyxl=2.4.8 + - openpyxl...
Continue troubleshooting followning #30096. Locally I'm seeing some failures sqlite files are leaking, but im not seeing the xls files that are causing problems in the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/30162
2019-12-09T18:54:14Z
2019-12-11T13:02:35Z
2019-12-11T13:02:35Z
2019-12-11T17:07:46Z
REF: finish setting pytables IndexCol attrs in constructor
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index b40637b978988..fe34f009165ac 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2111,10 +2111,6 @@ def set_info(self, info): if idx is not None: self.__dict__.update(idx) - def get_attr(self): - """ set th...
we're not all the way done, but this is a big milestone
https://api.github.com/repos/pandas-dev/pandas/pulls/30161
2019-12-09T16:21:13Z
2019-12-12T13:54:08Z
2019-12-12T13:54:08Z
2019-12-12T15:43:03Z
DOC: Cleaned docstrings
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index a3e1b9694f5d2..093c53790cd35 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -300,7 +300,7 @@ def left_join_indexer_unique(join_t[:] left, join_t[:] right): @cython.boundscheck(False) def left_join_indexer(ndarray[join_t] left, ndarray...
- [ ] 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/30158
2019-12-09T14:12:24Z
2019-12-10T16:32:43Z
2019-12-10T16:32:43Z
2019-12-20T14:47:15Z
DOC/STY: Cleaned pandas/_libs/{internals,interval}.pyx
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 603caed805e58..7be8b1b152fae 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -243,7 +243,6 @@ cpdef Py_ssize_t slice_len( - if ``s.step < 0``, ``s.start`` is not ``None`` Otherwise, the result is unreliabl...
- [ ] 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/30157
2019-12-09T13:43:08Z
2019-12-10T12:47:14Z
2019-12-10T12:47:14Z
2019-12-20T14:45:05Z
STY: some files in pandas/_libs/
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 49fb1ca50a1aa..9e5fa75ebeceb 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -175,7 +175,6 @@ def group_cumprod_float64(float64_t[:, :] out, ----- This method modifies the `out` parameter, rather than returning an o...
- [ ] 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/30156
2019-12-09T13:09:48Z
2019-12-09T16:43:22Z
2019-12-09T16:43:22Z
2019-12-09T17:29:36Z
DOC: Cleaned pandas/_libs/algos.pyx docstrings
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index c2d6a3bc4906d..7a2fc9dc7845a 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -49,8 +49,9 @@ cdef inline bint are_diff(object left, object right): class Infinity: - """ provide a positive Infinity comparison method for ranking...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30155
2019-12-09T12:40:28Z
2019-12-10T12:25:57Z
2019-12-10T12:25:57Z
2019-12-10T12:27:14Z
TST: DataFrameGroupBy.shift Loses TimeZone in datetime64 columns
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 3a16642641fca..93d4dc6046735 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -1702,6 +1702,15 @@ def test_group_shift_with_fill_value(): tm.assert_frame_equal(result, expec...
Adding test case for issue GH30134 - [x] closes #30134 - [x] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/30153
2019-12-09T10:23:03Z
2019-12-11T11:21:31Z
2019-12-11T11:21:31Z
2019-12-11T11:21:42Z
ENH: Add numba engine for rolling apply
diff --git a/ci/deps/azure-36-minimum_versions.yaml b/ci/deps/azure-36-minimum_versions.yaml index 8bf4f70d18aec..de7e011d9c7ca 100644 --- a/ci/deps/azure-36-minimum_versions.yaml +++ b/ci/deps/azure-36-minimum_versions.yaml @@ -17,6 +17,7 @@ dependencies: - beautifulsoup4=4.6.0 - bottleneck=1.2.1 - jinja2=2.8...
- [x] closes #28987 - [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/30151
2019-12-09T06:07:08Z
2019-12-27T19:27:43Z
2019-12-27T19:27:42Z
2023-09-29T13:16:02Z
Modify hash(pd.NA) to avoid integer hash collisions
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 63aa5501c5250..f1cfa0978c3a0 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -15,6 +15,8 @@ from pandas._libs.tslibs.np_datetime cimport ( from pandas._libs.tslibs.nattype cimport ( checknull_with_nat, c_NaT as NaT, is_...
- [X] closes #30013 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` No whatsnew entry since this issue was never user facing.
https://api.github.com/repos/pandas-dev/pandas/pulls/30150
2019-12-09T05:41:31Z
2019-12-24T15:04:03Z
2019-12-24T15:04:02Z
2019-12-24T23:31:29Z
Consolidated Nanosecond Conversions
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index a2130fa004f02..ecfe1250f6f45 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -212,6 +212,34 @@ static TypeContext *createTypeContext(void) { return pc; ...
Open to a new home
https://api.github.com/repos/pandas-dev/pandas/pulls/30149
2019-12-09T04:39:48Z
2019-12-09T17:09:58Z
2019-12-09T17:09:57Z
2023-04-12T20:17:14Z
CLN: Refactor pandas/tests/base - part3
diff --git a/pandas/conftest.py b/pandas/conftest.py index 0c964452df5da..131a011c5a101 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -868,6 +868,16 @@ def tick_classes(request): ) +@pytest.fixture +def datetime_series(): + """ + Fixture for Series of floats with DatetimeIndex + """ + ...
Part of #23877 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ----------------------- Starting to dissolve the `Ops` Mixin to drive fixturization of `pandas/tests/base/`
https://api.github.com/repos/pandas-dev/pandas/pulls/30147
2019-12-08T21:55:16Z
2020-02-01T15:13:06Z
2020-02-01T15:13:06Z
2020-02-01T15:13:36Z
BUG: Fix pd.NA `na_rep` truncated in to_csv
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index efea1fc1f525f..0da6d7b20a5c0 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -56,7 +56,7 @@ Dedicated string data type ^^^^^^^^^^^^^^^^^^^^^^^^^^ We've added :class:`StringDtype`, an extension type...
- [x] closes #29975 - [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/30146
2019-12-08T21:30:33Z
2020-01-01T18:18:10Z
2020-01-01T18:18:10Z
2020-01-01T18:18:14Z
Fix NoneType error when pulling non existent field
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8755abe642068..9f74362f83a70 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -891,6 +891,7 @@ I/O - Bug in :func:`read_json` where default encoding was not set to ``utf-8`` (:issue:`29565`) - Bug in ...
If normalizing a jsonstruct a field can be absent due to a schema change. - [X] closes #30148 - [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/30145
2019-12-08T19:13:38Z
2020-01-01T05:29:56Z
2020-01-01T05:29:56Z
2020-01-01T05:30:15Z
REF: use new pytables helper methods to de-duplicate _convert_index
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 56422e6c01a58..fc0c4ccf5b65b 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2250,16 +2250,7 @@ def set_data(self, data: Union[np.ndarray, ABCExtensionArray]): assert data is not None assert self.dtype is None - ...
The assertions in here are intended to be temporary. Once reviewers are convinced this is accurate, then the assertions can be removed and a bunch of these blocks can be condensed down to share code. The new helper func _get_data_and_dtype_name is also going to be used later to pre-empt the need for the state-alter...
https://api.github.com/repos/pandas-dev/pandas/pulls/30144
2019-12-08T18:31:44Z
2019-12-10T13:01:13Z
2019-12-10T13:01:13Z
2019-12-10T16:21:02Z
REF: pytables remove need for set_atom
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 56422e6c01a58..2c9c1af5953ff 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1895,6 +1895,7 @@ def __init__( freq=None, tz=None, index_name=None, + ordered=None, table=None, meta=None,...
Note this is doing the same thing as #30142 but in a different place. In both cases we are taking attrs that are currently pinned on post-constructor and instead passing them to the constructors.
https://api.github.com/repos/pandas-dev/pandas/pulls/30143
2019-12-08T18:13:51Z
2019-12-09T04:43:41Z
2019-12-09T04:43:41Z
2019-12-09T15:36:45Z
REF: pytables remove IndexCol.infer, move attr setting to constructors
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 1e382740240ab..56422e6c01a58 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1895,6 +1895,9 @@ def __init__( freq=None, tz=None, index_name=None, + table=None, + meta=None, + metadata=None...
In this PR the calls to `get_attr` are moved to right after the constructor calls; in the next pass they will be removed entirely at which point IndexCol will be non-stateful
https://api.github.com/repos/pandas-dev/pandas/pulls/30142
2019-12-08T18:10:15Z
2019-12-08T20:23:28Z
2019-12-08T20:23:28Z
2019-12-08T20:42:05Z
DEPR: Remove how, fill_method, and limit from resample
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 38051e9772ae9..6cdb9221a7a6a 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -600,6 +600,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - In :func:`concat` the default valu...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Deprecated since 0.18
https://api.github.com/repos/pandas-dev/pandas/pulls/30139
2019-12-08T08:01:33Z
2019-12-09T09:05:55Z
2019-12-09T09:05:55Z
2019-12-09T16:13:08Z
CLN/TYPE: window aggregation cleanups and typing
diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index 1fdecbca32102..8b1588c35b4de 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -18,7 +18,8 @@ cdef extern from "src/headers/cmath" namespace "std": int signbit(float64_t) nog...
- xref https://github.com/pandas-dev/pandas/pull/29878#issuecomment-561919909 - [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/30137
2019-12-08T00:26:04Z
2019-12-10T01:49:55Z
2019-12-10T01:49:54Z
2019-12-10T01:50:00Z
Removed is_sparse_array from objToJSON
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 608504a668175..a2130fa004f02 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -212,27 +212,11 @@ static TypeContext *createTypeContext(void) { return pc;...
@jbrockmendel @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/30136
2019-12-07T22:43:25Z
2019-12-08T15:44:20Z
2019-12-08T15:44:20Z
2023-04-12T20:16:59Z
CLN: change str.format() to f-string
diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index f6af05ab4d9e7..2de19a3319cc5 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -171,7 +171,7 @@ def _validate(self): if self._ndarray.dtype != "object": raise ValueError( ...
- [x] ref #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/30135
2019-12-07T21:29:36Z
2019-12-08T00:18:23Z
2019-12-08T00:18:23Z
2019-12-08T00:50:47Z
DOC: added docs
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 0896339bc28c7..a9269a5e0efa1 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -212,18 +212,18 @@ def _validate_key(self, key, axis: int): Parameters ---------- key : scalar, slice or list-like - ...
- [ ] 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/30133
2019-12-07T16:08:48Z
2019-12-09T04:46:16Z
2019-12-09T04:46:16Z
2019-12-09T09:27:21Z
REF: simplify pytables set_kind
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a95d7f39ab82c..f08fe96704b2a 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2221,15 +2221,6 @@ class DataCol(IndexCol): is_data_indexable = False _info_fields = ["tz", "ordered"] - @classmethod - def create_for_block(...
Pass more info to the constructors and set less stuff afterwards.
https://api.github.com/repos/pandas-dev/pandas/pulls/30132
2019-12-07T15:39:21Z
2019-12-08T15:57:50Z
2019-12-08T15:57:50Z
2019-12-08T16:15:16Z
DOC: Cleaned docstrings in core/indexers.py
diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index ac1b0ab766a03..f75087ca3b505 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -27,8 +27,13 @@ def is_list_like_indexer(key) -> bool: def is_scalar_indexer(indexer, arr_value) -> bool: - # return True if we are all scalar i...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30131
2019-12-07T12:38:23Z
2019-12-23T13:33:22Z
2019-12-23T13:33:22Z
2019-12-23T13:34:52Z
CLN: Split test_base
diff --git a/pandas/core/base.py b/pandas/core/base.py index b7216d2a70ee6..88b8fe405c8e4 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -93,7 +93,7 @@ class NoNewAttributesMixin: Prevents additional attributes via xxx.attribute = "something" after a call to `self.__freeze()`. Mainly used to ...
part of #23877 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some notes: - `test_ops.py` still feels pretty bloated, but I didn't see a good opportunity for further splitting - `test_conversion.py` is testing things like `to_list` a...
https://api.github.com/repos/pandas-dev/pandas/pulls/30130
2019-12-07T12:28:46Z
2019-12-08T17:18:17Z
2019-12-08T17:18:16Z
2019-12-08T17:18:28Z
DOC: Code style documentation
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst new file mode 100644 index 0000000000000..2fc2f1fb6ee8d --- /dev/null +++ b/doc/source/development/code_style.rst @@ -0,0 +1,129 @@ +.. _code_style: + +{{ header }} + +======================= +pandas code style guide +===========...
- [x] ref [(comment)](https://github.com/pandas-dev/pandas/pull/29963#discussion_r353760238) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This still needs a lot more work. I will appreciate any advice/idea/fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/30129
2019-12-07T11:24:17Z
2020-01-03T18:23:58Z
2020-01-03T18:23:58Z
2020-01-05T07:12:17Z
CLN: pytables create_axes cleanup
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a95d7f39ab82c..bdd99461f54b4 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2097,7 +2097,7 @@ def update_info(self, info): for key in self._info_fields: value = getattr(self, key, None) - idx = _get_i...
Small things that can be cleaned up following the bigger refactor of the last few days. In particular, the attribute-setting in 3803 was supposed to have been removed, apparently crept back in via rebase
https://api.github.com/repos/pandas-dev/pandas/pulls/30127
2019-12-07T02:04:02Z
2019-12-08T17:27:04Z
2019-12-08T17:27:04Z
2019-12-08T17:27:31Z
CLN: clean pytables convert methods
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index f08fe96704b2a..2afce9e4545b4 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1981,10 +1981,9 @@ def infer(self, handler: "Table"): new_self.read_metadata(handler) return new_self - def convert( - self, valu...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30125
2019-12-07T01:58:22Z
2019-12-08T17:28:57Z
2019-12-08T17:28:57Z
2019-12-08T17:42:20Z
CLN: f-string in pandas/core/arrays/*
diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py index 15ff1432f16e2..2cae2c9250ea5 100644 --- a/pandas/core/arrays/_ranges.py +++ b/pandas/core/arrays/_ranges.py @@ -114,10 +114,7 @@ def _generate_range_overflow_safe( assert side in ["start", "end"] i64max = np.uint64(np.iinfo(np....
- [x] ref #29547 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30124
2019-12-07T01:25:51Z
2019-12-07T16:59:08Z
2019-12-07T16:59:08Z
2019-12-07T16:59:15Z
CLN: f-string in pandas/core/arrays/sparse/*
diff --git a/pandas/core/arrays/sparse/accessor.py b/pandas/core/arrays/sparse/accessor.py index 595af6dc08733..c207b96a8d308 100644 --- a/pandas/core/arrays/sparse/accessor.py +++ b/pandas/core/arrays/sparse/accessor.py @@ -323,13 +323,7 @@ def _prep_index(data, index, columns): columns = ibase.default_in...
- [x] ref #29547 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30121
2019-12-07T00:13:42Z
2019-12-07T16:34:10Z
2019-12-07T16:34:10Z
2019-12-07T16:34:18Z
CLN: f-string in pandas/core/accessor.py and pandas/core/algorithms.py
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 963c9c65cb30c..da4566937b785 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -49,13 +49,13 @@ class PandasDelegate: """ def _delegate_property_get(self, name, *args, **kwargs): - raise TypeError("You cannot acc...
- [x] ref #29547 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30120
2019-12-06T23:43:43Z
2019-12-07T16:31:52Z
2019-12-07T16:31:52Z
2019-12-07T16:32:00Z
DOC: Style format
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 963c9c65cb30c..b95f60941dc28 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -35,7 +35,10 @@ def _dir_additions(self): def __dir__(self): """ - Provide method name lookup and completion + Provide met...
- [x] ref #30054 - [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/30119
2019-12-06T21:57:22Z
2019-12-07T17:00:17Z
2019-12-07T17:00:17Z
2019-12-08T09:04:18Z
DEPR: YyM units for Timedelta and friends
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 4cca663296bf2..382350b57bf7f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -539,6 +539,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed the the default value of `...
xref #23264
https://api.github.com/repos/pandas-dev/pandas/pulls/30118
2019-12-06T21:37:00Z
2019-12-07T16:30:23Z
2019-12-07T16:30:22Z
2019-12-07T17:36:43Z
DEPR: integer add/sub for Timestamp, DatetimeIndex, TimedeltaIndex
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29139a0a14991..ef514e7e89b57 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -547,6 +547,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed support for nested renamin...
_lots_ of cleanups become available after this. I did some of that in the tests here, but left most of it for follow-ups to keep the diff manageable.
https://api.github.com/repos/pandas-dev/pandas/pulls/30117
2019-12-06T21:24:33Z
2019-12-06T22:34:07Z
2019-12-06T22:34:07Z
2019-12-07T00:40:12Z
STY: change .format() to fstring
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index dc1a23e83f981..f3325f6ffd9d9 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -520,8 +520,8 @@ def fillna(self, value=None, method=None, limit=None): if is_array_like(value): if len(value) != len(...
- [ ] 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/30116
2019-12-06T21:10:57Z
2019-12-06T22:36:09Z
2019-12-06T22:36:09Z
2019-12-06T22:36:58Z
DEPR: DTI int64 values and tz interpreted as UTC
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29139a0a14991..ebc6d623afcc1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -546,6 +546,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
I'm open to ideas for nicer ways to update the tests
https://api.github.com/repos/pandas-dev/pandas/pulls/30115
2019-12-06T20:27:27Z
2019-12-06T23:22:06Z
2019-12-06T23:22:06Z
2019-12-07T00:38:49Z
DEPR: Series.argmin, argmax
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 5e2eaa6ca4a94..1df14f2129ca4 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -608,6 +608,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed the default ``fill_value``...
im looking forward to being done with these
https://api.github.com/repos/pandas-dev/pandas/pulls/30113
2019-12-06T16:32:49Z
2019-12-06T22:34:52Z
2019-12-06T22:34:52Z
2019-12-07T00:39:21Z
DEPR: msgpack
diff --git a/LICENSES/MSGPACK_LICENSE b/LICENSES/MSGPACK_LICENSE deleted file mode 100644 index ae1b0f2f32f06..0000000000000 --- a/LICENSES/MSGPACK_LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (C) 2008-2011 INADA Naoki <songofacandy@gmail.com> - - Licensed under the Apache License, Version 2.0 (the "License"); -...
there are two msgpack files in LICENSES, should those go?
https://api.github.com/repos/pandas-dev/pandas/pulls/30112
2019-12-06T16:28:32Z
2019-12-12T16:17:01Z
2019-12-12T16:17:01Z
2019-12-12T16:23:02Z