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
REF: combine IndexEngine test files
diff --git a/pandas/tests/indexes/test_engines.py b/pandas/tests/indexes/test_engines.py index ee224c9c6ec89..9ea70a457e516 100644 --- a/pandas/tests/indexes/test_engines.py +++ b/pandas/tests/indexes/test_engines.py @@ -1,8 +1,31 @@ import re +import numpy as np import pytest +from pandas._libs import algos as l...
indexing tests are pretty scattered. One step at a time...
https://api.github.com/repos/pandas-dev/pandas/pulls/31193
2020-01-22T02:40:46Z
2020-01-24T03:27:21Z
2020-01-24T03:27:21Z
2020-01-24T04:42:30Z
CLN: remove unused fixtures
diff --git a/pandas/tests/indexes/conftest.py b/pandas/tests/indexes/conftest.py index e3e7ff4093b76..b1dcf0ed9b44b 100644 --- a/pandas/tests/indexes/conftest.py +++ b/pandas/tests/indexes/conftest.py @@ -1,7 +1,5 @@ -import numpy as np import pytest -import pandas as pd import pandas._testing as tm from pandas.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/31192
2020-01-22T01:25:44Z
2020-01-22T08:15:06Z
2020-01-22T08:15:06Z
2020-01-22T16:10:21Z
Fixturize JSON tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index d8f96021cdb15..e12acb5dd56d5 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -878,6 +878,11 @@ def tick_classes(request): ) +@pytest.fixture +def empty_series(): + return pd.Series([], index=[], dtype=np.float64) + + @pytest.fixture de...
Ultimately looking to split this module up into something like: - test_serializer.py - test_deserializer.py - test_roundtrip.py - test_orient.py TBD on those being the actual modules, but for now starting with some parametrization
https://api.github.com/repos/pandas-dev/pandas/pulls/31191
2020-01-22T01:13:14Z
2020-03-19T09:32:50Z
2020-03-19T09:32:49Z
2023-04-12T20:17:16Z
REF: move misplaced tests
diff --git a/pandas/tests/indexes/datetimes/test_snap.py b/pandas/tests/indexes/datetimes/test_snap.py new file mode 100644 index 0000000000000..a21d27d23f6b5 --- /dev/null +++ b/pandas/tests/indexes/datetimes/test_snap.py @@ -0,0 +1,37 @@ +import pytest + +from pandas import DatetimeIndex, date_range +import pandas._t...
https://api.github.com/repos/pandas-dev/pandas/pulls/31189
2020-01-21T23:27:29Z
2020-01-22T00:55:53Z
2020-01-22T00:55:53Z
2020-01-22T01:22:48Z
BUG: DatetimeIndex.snap incorrectly setting freq
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index ee9b948a76ac8..5f204a8c18368 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -486,8 +486,8 @@ def snap(self, freq="S"): s = t1 snapped[i] = s - # we k...
https://api.github.com/repos/pandas-dev/pandas/pulls/31188
2020-01-21T22:57:15Z
2020-01-26T01:30:10Z
2020-01-26T01:30:10Z
2020-01-26T01:42:51Z
BUG: IntegerArray.astype(boolean)
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 67036761bc62a..022e6a7322872 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -19,6 +19,7 @@ is_list_like, is_object_dtype, is_scalar, + pandas_dtype, ) from pandas.core.dtypes.dtypes im...
Closes https://github.com/pandas-dev/pandas/issues/31102
https://api.github.com/repos/pandas-dev/pandas/pulls/31187
2020-01-21T22:01:21Z
2020-01-23T15:26:39Z
2020-01-23T15:26:39Z
2020-01-23T19:02:02Z
DEPR: _BaseOffset's parameter `n` should be prevented from being 0
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 6ba58310000cb..b758c4b506479 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1334,15 +1334,22 @@ or backwards. pd.Timestamp('2014-01-31') - pd.offsets.MonthBegin(n=4) Fo...
- [ ] closes #31184 - [ ] 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/31185
2020-01-21T20:52:21Z
2020-07-05T13:10:28Z
null
2020-10-10T14:14:49Z
BUG: Series/Frame invert dtypes
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index bccf74d4f610b..69f565daa2daf 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1019,6 +1019,7 @@ Numeric - Bug in :meth:`DataFrame.round` where a :class:`DataFrame` with a :class:`CategoricalIndex` of ...
Fixes NDFrame.__invert__ to preserve dtypes by applying things blockwise. Notably, this fixes `~Series[BooleanDtype]`. This also provides a pattern for other unary ops, though I think that those are less pressing for 1.0, which should probably have a working `~Series[BooleanDtype]` cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/31183
2020-01-21T20:06:08Z
2020-01-23T22:45:52Z
2020-01-23T22:45:52Z
2020-02-01T14:53:28Z
CLN: Make Series._values match Index._values
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 9947866a76e3f..81e1d84880f60 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -278,6 +278,9 @@ def apply_standard(self): if ( self.result_type in ["reduce", None] and not self.dtypes.apply(is_extension_array...
Discussed in #31037 - Note this is _not_ an alternative to that, as this should not be considered for 1.0. - This does not implement any of the simplifications that it makes available. - There is a decent chance that the check in core.apply can be changed so that we can still use the fastpath for these dtypes. -...
https://api.github.com/repos/pandas-dev/pandas/pulls/31182
2020-01-21T19:32:13Z
2020-01-28T06:11:29Z
2020-01-28T06:11:29Z
2020-01-28T17:11:52Z
TYP: annotations in indexes
diff --git a/pandas/core/base.py b/pandas/core/base.py index c6800d282700f..4eab5f42c39ae 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -3,7 +3,7 @@ """ import builtins import textwrap -from typing import Dict, FrozenSet, List, Optional +from typing import Dict, FrozenSet, List, Optional, Union im...
https://api.github.com/repos/pandas-dev/pandas/pulls/31181
2020-01-21T19:24:52Z
2020-01-24T03:28:41Z
2020-01-24T03:28:41Z
2020-01-24T04:42:47Z
BUG/CLN: use more-correct isinstance check
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index 465f21da1278a..fa79c1f1a528f 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -347,8 +347,7 @@ def _assert_safe_casting(cls, data, subarr): def _is_compatible_with_other(self, other): re...
this is only kind of a bug, since the isinstance check still returns True on the `type(obj)`
https://api.github.com/repos/pandas-dev/pandas/pulls/31180
2020-01-21T17:45:21Z
2020-01-24T04:39:06Z
2020-01-24T04:39:06Z
2020-01-24T04:39:30Z
CLN: core.internals
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4257083cc8dc5..40a5ce25f4422 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3610,12 +3610,12 @@ def reindexer(value): # Explicitly copy here, instead of in sanitize_index, # as sanitize_index won't copy an EA, eve...
some annotations, remove an unused argument, privatize where possible, avoid a runtime/circular import
https://api.github.com/repos/pandas-dev/pandas/pulls/31179
2020-01-21T17:22:22Z
2020-01-23T08:07:07Z
2020-01-23T08:07:06Z
2020-01-23T17:26:46Z
BUG: inconsistency between PeriodIndex.get_value vs get_loc
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d0644fbb7ef54..3411be475ef11 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -144,7 +144,7 @@ Interval Indexing ^^^^^^^^ - Bug in slicing on a :class:`DatetimeIndex` with a partial-timestamp droppin...
ATM we have inconsistent treatment for indexing with strings where the string has a higher resolution than the PeriodIndex. Luckily only one test checks for the inconsistent `PeriodIndex.__contains__` behavior, so fixing it isn't _too_ invasive. ``` pi = pd.period_range("2017-09-01", freq="D", periods=3) ser = pd...
https://api.github.com/repos/pandas-dev/pandas/pulls/31172
2020-01-21T02:44:42Z
2020-01-25T16:07:16Z
2020-01-25T16:07:16Z
2020-01-25T16:34:19Z
TST: Add more regression tests for fixed issues
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index b1620df91ba26..7b1a9d8ff6ae3 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -412,6 +412,12 @@ def test_constructor_dict_order_insertion(self): expected = D...
- [x] closes #16894 - [x] closes #16916 - [x] closes #16410 - [x] closes #15454 - [x] closes #16699 - [x] closes #16231 - [x] closes #15150 - [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/31171
2020-01-21T02:29:18Z
2020-01-21T18:26:47Z
2020-01-21T18:26:45Z
2020-01-21T18:26:52Z
REF: require scalar in IntervalIndex.get_loc, get_value
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 3108c1a1afd0c..a756900ff9ae5 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1,7 +1,7 @@ """ define the IntervalIndex """ from operator import le, lt import textwrap -from typing import Any, Op...
cc @jschendel the casting of tuple->Interval on L819-820 seems sketchy, can you confirm if thats appropriate? I'm also curious about the restriction on slice steps in _convert_slice_indexer, would be nice to have a comment there about why that is. xref #31117.
https://api.github.com/repos/pandas-dev/pandas/pulls/31169
2020-01-21T01:38:58Z
2020-01-24T00:52:00Z
2020-01-24T00:52:00Z
2020-01-24T00:54:01Z
REF: simplify index.pyx
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index e4ec9db560b80..2dfc14378baf6 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -26,19 +26,13 @@ from pandas._libs import algos, hashtable as _hash from pandas._libs.tslibs import Timestamp, Timedelta, period as periodlib from pandas....
simplification of is_definitely_invalid_key is made possible by the recent change to make EA non-hashable.
https://api.github.com/repos/pandas-dev/pandas/pulls/31168
2020-01-21T00:51:02Z
2020-01-24T04:02:48Z
2020-01-24T04:02:48Z
2020-01-24T04:27:23Z
DOC: fix DataFrame.plot docs
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index dd907457f7c32..c239f11d5c6a1 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -374,7 +374,6 @@ def hist_frame( <class 'numpy.ndarray'> """ - _backend_doc = """\ backend : str, default None Backend to use instead...
- [x] fixes #29489 - [ ] 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/31167
2020-01-21T00:27:07Z
2020-01-23T12:35:16Z
2020-01-23T12:35:15Z
2020-01-26T15:55:17Z
Backport PR #29836 on branch 1.0.x (ENH: XLSB support)
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 111ba6b020bc7..dc51597a33209 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -34,3 +34,6 @@ dependencies: - xlsxwriter - xlwt - pyarrow>=0.15 + - pip + - pip: + - pyxlsb diff --git a/ci/deps/azur...
Backport PR #29836: ENH: XLSB support
https://api.github.com/repos/pandas-dev/pandas/pulls/31166
2020-01-20T23:49:24Z
2020-01-21T10:13:28Z
2020-01-21T10:13:28Z
2020-01-21T10:13:28Z
TST: Replaced try-catch blocks with pytest.raises
diff --git a/pandas/tests/test_errors.py b/pandas/tests/test_errors.py index 939ea8a64d94d..d72c00ceb0045 100644 --- a/pandas/tests/test_errors.py +++ b/pandas/tests/test_errors.py @@ -36,10 +36,9 @@ def test_exception_importable(exc): def test_catch_oob(): from pandas import errors - try: + msg = "Out of...
- [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/31165
2020-01-20T22:50:55Z
2020-01-23T08:11:37Z
2020-01-23T08:11:37Z
2020-01-24T12:19:25Z
Backport PR #31133 on branch 1.0.x (BUG: Break reference from grouping level to MI)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 84d7399cc4f2d..ed99c4eb46e48 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1256,6 +1256,10 @@ def _get_grouper_for_level(self, mapper, level): if len(uniques) < len(level_index): # Rem...
Backport PR #31133: BUG: Break reference from grouping level to MI
https://api.github.com/repos/pandas-dev/pandas/pulls/31164
2020-01-20T22:25:45Z
2020-01-20T23:59:03Z
2020-01-20T23:59:03Z
2020-01-20T23:59:04Z
BUG: corner cases in DTI.get_value, Float64Index.get_value
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index ee9b948a76ac8..b1463f52333a1 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -18,7 +18,7 @@ from pandas.core.dtypes.common import _NS_DTYPE, is_float, is_integer, is_scalar from pandas.core...
Series lookups are affected for the Float64Index case.
https://api.github.com/repos/pandas-dev/pandas/pulls/31163
2020-01-20T21:14:09Z
2020-01-23T23:01:48Z
2020-01-23T23:01:48Z
2020-01-23T23:12:24Z
CLN/STY: various code cleanups
diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py index a1b1cffdd1d76..e45d3ca66b6ec 100644 --- a/pandas/core/computation/align.py +++ b/pandas/core/computation/align.py @@ -1,4 +1,5 @@ -"""Core eval alignment algorithms +""" +Core eval alignment algorithms. """ from functools import ...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/31162
2020-01-20T21:03:44Z
2020-01-20T22:28:01Z
2020-01-20T22:28:01Z
2020-01-21T00:43:01Z
TST: Add regression tests for fixed issues
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index a861e0eb52391..b1620df91ba26 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -2433,6 +2433,24 @@ def test_datetime_date_tuple_columns_from_dict(self): expec...
- [x] closes #14600 - [x] closes #14849 - [x] closes #14955 - [x] closes #14592 - [x] closes #12163 - [x] closes #12948 - [x] closes #15058 - [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/31161
2020-01-20T20:14:22Z
2020-01-21T01:06:11Z
2020-01-21T01:06:09Z
2020-01-21T01:06:15Z
ENH: Implement _from_sequence_of_strings for BooleanArray
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3bd86bb02155f..c720070b96969 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -144,7 +144,7 @@ type dedicated to boolean data that can hold missing values. The default ``bool`` data type based on a boo...
- [x] closes #31131 - [x] tests added / passed - [x] passes `black pandas` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/31159
2020-01-20T18:30:01Z
2020-01-23T20:56:01Z
2020-01-23T20:56:01Z
2020-01-23T21:56:21Z
DOC: Update of the 'getting started' pages in the sphinx section of the documentation
diff --git a/doc/data/air_quality_long.csv b/doc/data/air_quality_long.csv new file mode 100644 index 0000000000000..6225d65d8e276 --- /dev/null +++ b/doc/data/air_quality_long.csv @@ -0,0 +1,5273 @@ +city,country,date.utc,location,parameter,value,unit +Antwerpen,BE,2019-06-18 06:00:00+00:00,BETR801,pm25,18.0,µg/m³ +An...
- [ ] closes #26831 This PR provides an update of the getting started pages of the Pandas documentation, following from the discussion in #26831 and the [proposal](https://docs.google.com/document/d/1Rc_eql5KLrdf0c582KyWfs2ADVNxbJy4jfosnqdrVak/edit#heading=h.mqz2f6gbl3sd). The update went together with the creation...
https://api.github.com/repos/pandas-dev/pandas/pulls/31156
2020-01-20T15:42:12Z
2020-02-17T11:49:43Z
2020-02-17T11:49:43Z
2020-02-17T18:54:40Z
BUG: nonexistent Timestamp pre-summer/winter DST w/dateutil timezone
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 59c90534beefd..1a7fe0a24665d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -92,9 +92,10 @@ Categorical Datetimelike ^^^^^^^^^^^^ + - Bug in :class:`Timestamp` where constructing :class:`Timestam...
- [X] closes #31043 - [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 rounding down to microseconds into Timedelta.total_seconds(). Lack of this rounding led to `dateutil.tz.tzinfo.utcoffset` and `d...
https://api.github.com/repos/pandas-dev/pandas/pulls/31155
2020-01-20T15:23:12Z
2020-01-24T03:33:00Z
2020-01-24T03:33:00Z
2020-01-24T16:31:54Z
Backport PR #31095 on branch 1.0.x (DOC: Restore ExtensionIndex.dropna.__doc__)
diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py index 58fcce7e59be7..db35cdb72979f 100644 --- a/pandas/core/indexes/extension.py +++ b/pandas/core/indexes/extension.py @@ -6,7 +6,7 @@ import numpy as np from pandas.compat.numpy import function as nv -from pandas.util._decorators imp...
Backport PR #31095: DOC: Restore ExtensionIndex.dropna.__doc__
https://api.github.com/repos/pandas-dev/pandas/pulls/31152
2020-01-20T13:35:47Z
2020-01-20T15:24:46Z
2020-01-20T15:24:46Z
2020-01-20T15:24:46Z
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...
Closes https://github.com/pandas-dev/pandas/issues/30738. Also fixes the performance issue for other arrays from https://github.com/pandas-dev/pandas/issues/30744, and related to https://github.com/pandas-dev/pandas/pull/30308#issuecomment-571146305 This generalizes the `check_bool_array_indexer` helper method that ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31150
2020-01-20T13:00:52Z
2020-01-29T12:04:58Z
2020-01-29T12:04:57Z
2020-01-29T14:46:57Z
DOC: replace long table of contents on home page with main links
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css new file mode 100644 index 0000000000000..84dbba823afa0 --- /dev/null +++ b/doc/source/_static/css/pandas.css @@ -0,0 +1,40 @@ +/* Getting started index page */ + +.intro-card { + background: #fff; + border-radius: 0; + padding: 30px ...
This is a proposal to remove the long table of contents on the documentation home page and replace it with a highlight of the main parts of the documentation. Reasons: I don't think the long table of contents resulted in a very attractive landing page of the docs. And further, it was also a "manual" table of content...
https://api.github.com/repos/pandas-dev/pandas/pulls/31148
2020-01-20T11:01:43Z
2020-01-27T19:43:56Z
2020-01-27T19:43:56Z
2020-01-27T19:53:54Z
Use Python 3 shebangs
diff --git a/ci/print_skipped.py b/ci/print_skipped.py index 72822fa2d3c7f..60e2f047235e6 100755 --- a/ci/print_skipped.py +++ b/ci/print_skipped.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import xml.etree.ElementTree as et diff --git a/doc/make.py b/doc/make.py index cf73f44b5dd02....
Plain 'python' may either not exist at all, or be Python 2.
https://api.github.com/repos/pandas-dev/pandas/pulls/31147
2020-01-20T08:07:45Z
2020-01-20T15:16:42Z
2020-01-20T15:16:42Z
2020-01-20T15:16:46Z
Remove possibly illegal test data
diff --git a/pandas/tests/io/data/html/computer_sales_page.html b/pandas/tests/io/data/html/computer_sales_page.html deleted file mode 100644 index ff2b031b58d64..0000000000000 --- a/pandas/tests/io/data/html/computer_sales_page.html +++ /dev/null @@ -1,619 +0,0 @@ -<table width="100%" border="0" cellspacing="0" cellpa...
Much of the test_html data looks like it was saved from real web pages, and not all of them look like the kind that are under a free software license. (I couldn't actually check because only one of the three identifies the source site, and that site raises a security warning.) This removes the questionable data, an...
https://api.github.com/repos/pandas-dev/pandas/pulls/31146
2020-01-20T08:05:33Z
2020-01-21T10:18:39Z
2020-01-21T10:18:39Z
2020-05-26T09:39:30Z
Use https for links where available
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index a1fbece3284ec..7dd2e04249492 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -54,10 +54,10 @@ incident. This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at -[http...
As some of our links are suggestions to install add-on software, insecure links potentially allow an attacker to replace this with their malware. During the process of writing this, I also found and fixed some broken or semi-broken (e.g. redirected to the top level instead of the page we want) links. The followin...
https://api.github.com/repos/pandas-dev/pandas/pulls/31145
2020-01-20T07:57:35Z
2020-01-24T03:55:09Z
2020-01-24T03:55:09Z
2020-01-24T03:55:13Z
Check for pyarrow not feather before pyarrow tests
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 22aa78919ef0f..d7a21b27308e8 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -129,7 +129,7 @@ def test_iterator(self): (pd.read_csv, "os", FileNotFoundError, "csv"), (pd.read_...
read_feather/to_feather now use pyarrow.feather, not top-level (feather-format) feather, but some of their tests were still looking for top-level feather. Two of them that deliberately cause a file not found error were also looking for the wrong form of error message. (Probably nobody noticed because the above was ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31144
2020-01-20T07:51:15Z
2020-01-24T03:54:11Z
2020-01-24T03:54:10Z
2020-01-24T03:54:17Z
REF: share searchsorted between DTI/TDI/PI, insert between DTI/TDI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index bf1272b223f70..e07271bfcb875 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -27,12 +27,13 @@ ) from pandas.core.dtypes.concat import concat_compat from pandas.core.dtypes.generi...
Made possible following #30950, takes the place of #30853.
https://api.github.com/repos/pandas-dev/pandas/pulls/31143
2020-01-20T01:20:32Z
2020-01-20T16:39:55Z
2020-01-20T16:39:55Z
2020-01-20T21:24:34Z
BUG: in DataFrame.count not returning subclassed data types.
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 1cd325dad9f07..f1273ab334740 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -141,6 +141,7 @@ Reshaping ^^^^^^^^^ - +- Bug in :meth:`DataFrame.count` not returning subclassed data types. - Bug in ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Once #30945 is merged these tests will pass. I also, didn't know if a PR without first submitting an issue was appropriate, but to cut down on wor...
https://api.github.com/repos/pandas-dev/pandas/pulls/31139
2020-01-19T20:20:10Z
2020-01-21T13:12:35Z
null
2020-01-21T13:13:42Z
TST:Disallow bare pytest raises issue 30999
diff --git a/pandas/tests/base/test_constructors.py b/pandas/tests/base/test_constructors.py index 0b7274399aafc..e27b5c307cd99 100644 --- a/pandas/tests/base/test_constructors.py +++ b/pandas/tests/base/test_constructors.py @@ -53,13 +53,16 @@ def test_invalid_delegation(self): delegate = self.Delegate(self...
- [x] refers #30999 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This pull request is to add appropriate match arguments to bare pytest.raises listed in #30999 [Comment](https://github.com/pandas-dev/pandas/issue...
https://api.github.com/repos/pandas-dev/pandas/pulls/31138
2020-01-19T18:57:46Z
2020-01-23T08:18:57Z
2020-01-23T08:18:57Z
2020-01-25T21:06:46Z
TYP: Index get_indexer_foo methods
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 4bcdb5d96a32d..e5e3b27c41721 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -213,7 +213,8 @@ cdef class IndexEngine: return self.monotonic_dec == 1 cdef inline _do_monotonic_check(self): - cdef object is_uniqu...
https://api.github.com/repos/pandas-dev/pandas/pulls/31137
2020-01-19T17:57:55Z
2020-01-19T20:58:40Z
2020-01-19T20:58:38Z
2020-01-19T20:59:38Z
COMPAT: Return NotImplemented for subclassing
diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py index 9ddc5c01030b1..81afb00c6dacc 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...
This changes index ops to check the *type* of the argument in index ops, rather than just the dtype. This lets index subclasses take control of binary ops when they know better what the result should be. Closes https://github.com/pandas-dev/pandas/issues/31109 cc @jbrockmendel, I've fixed this as close to the r...
https://api.github.com/repos/pandas-dev/pandas/pulls/31136
2020-01-19T17:48:06Z
2020-01-28T20:57:19Z
2020-01-28T20:57:19Z
2020-01-28T21:14:13Z
REF/BUG: Index.get_value called incorrectly, de-duplicate+simplify
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5ce2b06ed7dbd..ae9aacb8f5301 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -68,7 +68,6 @@ from pandas.core.arrays import ExtensionArray from pandas.core.base import IndexOpsMixin, PandasObject import pandas.c...
Also engine.get_value is being called incorrectly in DTI/TDI, which this fixes.
https://api.github.com/repos/pandas-dev/pandas/pulls/31134
2020-01-19T16:50:53Z
2020-01-20T15:32:58Z
2020-01-20T15:32:58Z
2020-01-20T16:24:29Z
BUG: Break reference from grouping level to MI
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 8682af6ab6369..b684908c25fe5 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1256,6 +1256,10 @@ def _get_grouper_for_level(self, mapper, level): if len(uniques) < len(level_index): # Rem...
Closes https://github.com/pandas-dev/pandas/issues/31068
https://api.github.com/repos/pandas-dev/pandas/pulls/31133
2020-01-19T16:29:18Z
2020-01-20T22:25:34Z
2020-01-20T22:25:33Z
2020-01-20T22:25:40Z
TST/REF: Parameteratized tests
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 656b274aa1a9e..cb08a8e33fa62 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -441,87 +441,123 @@ def check_compound_invert_op(self, lhs, cmp1, rhs): def ex(self, op, va...
https://api.github.com/repos/pandas-dev/pandas/pulls/31132
2020-01-19T07:51:57Z
2020-01-21T08:05:44Z
null
2020-01-22T23:41:00Z
TST: Implement external error raised helper function.
diff --git a/pandas/_testing.py b/pandas/_testing.py index 631d550c60534..13af8703cef93 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -8,7 +8,7 @@ from shutil import rmtree import string import tempfile -from typing import Any, List, Optional, Union, cast +from typing import Any, Callable, List, Option...
- [x] ref #30999 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Opened PR for what @gfyoung wrote [here](https://github.com/pandas-dev/pandas/issues/30999#issuecomment-575426086)
https://api.github.com/repos/pandas-dev/pandas/pulls/31130
2020-01-19T02:55:19Z
2020-02-07T18:45:13Z
2020-02-07T18:45:12Z
2020-02-14T09:05:38Z
REF: share code between Int64Index and UInt64Index
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index a8c2303d65361..def77ffbea591 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -231,6 +231,8 @@ class IntegerIndex(NumericIndex): This is an abstract class for Int64Index, UInt64Index. """ + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31129
2020-01-19T00:05:47Z
2020-01-19T20:56:06Z
2020-01-19T20:56:05Z
2020-01-19T20:57:12Z
REF: require PeriodArray in PeriodIndex._simple_new
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index bf1272b223f70..d262fcdc92ebf 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -193,20 +193,21 @@ def sort_values(self, return_indexer=False, ascending=True): # because ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31128
2020-01-18T21:30:41Z
2020-01-20T15:35:42Z
2020-01-20T15:35:42Z
2020-01-20T16:30:24Z
TYP: DataFrame.(index|columns) and Series.index
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index ec6ad38bbc7cf..04607531fb2ce 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -687,7 +687,6 @@ Other API changes - :meth:`Series.str.__iter__` was deprecated and will be removed in future releases (:is...
Makes mypy discover the ``.index`` and ``.columns`` attributes and that they're ``Index`` (sub-)classes. This is done by manually adding the ``properties.AxisProperty`` to DataFrame/Series instead of doing it programatically, as mypy doesn't like adding attributes programatically very much.
https://api.github.com/repos/pandas-dev/pandas/pulls/31126
2020-01-18T18:23:05Z
2020-01-24T01:19:03Z
2020-01-24T01:19:03Z
2020-01-24T20:20:14Z
REF/CLN: Index.get_value wrapping incorrectly
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a630938afeb8a..5ce2b06ed7dbd 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4639,7 +4639,8 @@ def get_value(self, series, key): k = self._convert_scalar_indexer(key, kind="getitem") try: - ...
Index.get_value isn't wrapping non-scalar results correctly, as a result of which we have an ugly kludge in `Series.__getitem__` to do that wrapping. This fixes that.
https://api.github.com/repos/pandas-dev/pandas/pulls/31125
2020-01-18T17:48:11Z
2020-01-18T19:39:00Z
2020-01-18T19:39:00Z
2020-01-18T19:54:03Z
Backport PR #30553 on branch 1.0.x (TST/BUG: fix incorrectly-passing Exception in test_html)
diff --git a/pandas/io/html.py b/pandas/io/html.py index eafcca0e85bb3..04f9f317d7dae 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -591,9 +591,14 @@ def _setup_build_doc(self): def _build_doc(self): from bs4 import BeautifulSoup - return BeautifulSoup( - self._setup_build_...
Backport PR #30553: TST/BUG: fix incorrectly-passing Exception in test_html
https://api.github.com/repos/pandas-dev/pandas/pulls/31124
2020-01-18T17:20:13Z
2020-01-18T18:53:14Z
2020-01-18T18:53:14Z
2020-01-18T18:53:15Z
CLN/BUG: Float64Index.get_loc
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index 566341d78c7ed..a8c2303d65361 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -488,17 +488,18 @@ def __contains__(self, other) -> bool: @Appender(_index_shared_docs["get_loc"]) def get_loc(s...
- clean up unnecessary try/except - the "bug" part is that ATM we incorrectly raise KeyError instead of TypeError on non-hashable.
https://api.github.com/repos/pandas-dev/pandas/pulls/31123
2020-01-18T17:12:32Z
2020-01-18T23:24:04Z
2020-01-18T23:24:04Z
2020-01-19T00:29:29Z
Backport PR #31097 on branch 1.0.x (DOC: Replace ggpy with plotnine in ecosystem)
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 7bd5ba7ecdf0b..b1de406b33352 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -112,16 +112,14 @@ also goes beyond matplotlib and pandas with the option to perform statistical estimation while plotting, aggregating across obse...
Backport PR #31097: DOC: Replace ggpy with plotnine in ecosystem
https://api.github.com/repos/pandas-dev/pandas/pulls/31122
2020-01-18T17:11:31Z
2020-01-18T18:53:37Z
2020-01-18T18:53:37Z
2020-01-18T18:53:37Z
Backport PR #30971 on branch 1.0.x (BUG: reductions for nullable dtypes should return pd.NA for skipna=False)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c423933d4c438..4d55ee1c1cfc2 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -483,6 +483,25 @@ Use :meth:`arrays.IntegerArray.to_numpy` with an explicit ``na_value`` instead. a.to_numpy(dtype="fl...
Backport PR #30971: BUG: reductions for nullable dtypes should return pd.NA for skipna=False
https://api.github.com/repos/pandas-dev/pandas/pulls/31121
2020-01-18T15:35:49Z
2020-01-18T16:23:51Z
2020-01-18T16:23:51Z
2020-01-18T16:23:52Z
Backport PR #30977 on branch 1.0.x (JSON Date Handling 1.0 Regressions)
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index c413a16f8d5f0..c5ac279ed3243 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -456,8 +456,8 @@ static char *PyDateTimeToIso(PyDateTime_Date *obj, NPY_DATETIME...
Backport PR #30977: JSON Date Handling 1.0 Regressions
https://api.github.com/repos/pandas-dev/pandas/pulls/31120
2020-01-18T15:34:38Z
2020-01-18T16:03:34Z
2020-01-18T16:03:34Z
2020-01-18T16:03:34Z
BUG: concat not copying index and columns when copy=True
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a04ba157ce0ae..8cbc95f0349cf 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -156,7 +156,7 @@ Reshaping - Bug in :meth:`DataFrame.pivot_table` when ``margin`` is ``True`` and only ``column`` is define...
- [x] closes #29879 - [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/31119
2020-01-18T07:48:20Z
2020-01-21T10:50:47Z
2020-01-21T10:50:47Z
2020-01-21T10:59:50Z
ERR: better error message on unparseable datetimes
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 1988b2e9e33f2..4ed7e499ee3cd 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1848,14 +1848,18 @@ def objects_to_datetime64ns( yearfirst=yearfirst, require_iso8601=require...
- [ ] closes #10720 - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/31118
2020-01-18T06:20:43Z
2020-03-14T21:38:23Z
null
2020-03-14T21:38:23Z
TYP: annotations
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index bb893bd2ffef6..bfa560ccae068 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4566,7 +4566,7 @@ def shift(self, periods=1, freq=None): """ raise NotImplementedError(f"Not supported for type {type...
Several of the Index subclasses are difficult to annotate, so I want to get the easy-ish parts to make it easier to focus on the pain points.
https://api.github.com/repos/pandas-dev/pandas/pulls/31115
2020-01-18T01:59:25Z
2020-01-18T11:54:22Z
2020-01-18T11:54:21Z
2020-01-18T16:11:48Z
CI: Adding script to validate consistent and correct capitalization among headings in documentation (#26941)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e2dc543360a62..18f701c140e50 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -320,6 +320,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL03,GL04,GL05,GL06,GL07,GL09,G...
Closes #26941 This script should be running correctly to validate capitalization for various rst files. Many keywords will need to be added into the script as more and more files are tested on this script. Currently testing on the following rst files through code_checks.sh: doc/source/development/contributing.rs...
https://api.github.com/repos/pandas-dev/pandas/pulls/31114
2020-01-17T22:12:44Z
2020-03-07T20:06:26Z
2020-03-07T20:06:26Z
2020-03-09T16:49:12Z
BUG: pd.concat fails when handling MultiIndex if repeated index exists
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5fe7d12188860..4827e63df2be4 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -555,6 +555,7 @@ Reshaping - Bug effecting all numeric and boolean reduction methods not returning subclassed data type. ...
xref #20565 - [ ] 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/31113
2020-01-17T21:49:53Z
2020-05-21T19:35:00Z
null
2020-05-21T19:35:00Z
BUG: Index.get_value being called incorrectly
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index bb893bd2ffef6..c856d7d8f0dd8 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4621,34 +4621,31 @@ def argsort(self, *args, **kwargs): @Appender(_index_shared_docs["get_value"] % _index_doc_kwargs) def ge...
AFAICT there aren't user-facing consequences, just built-up kludges in `Series.__getitem__` and `Index.get_value` that we'll be able to get rid of once we fix these inconsistencies. cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/31112
2020-01-17T18:42:42Z
2020-01-18T15:49:04Z
2020-01-18T15:49:04Z
2020-01-18T16:09:12Z
POC: docstring inheritance
diff --git a/pandas/core/base.py b/pandas/core/base.py index 66d7cd59dcfa4..2db70ac29c78c 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -95,6 +95,24 @@ def _ensure_type(self: T, obj) -> T: assert isinstance(obj, type(self)), type(obj) return obj + @classmethod + def __init_subc...
Proof of concept for automatically inheriting docstrings, so we dont have to use `@Appender(parent_class.method.__doc__)` quite so much. This doesnt handle `@Substitution`. If we can make that work for the common case where we're just putting in the class name, we could get a _lot_ less verbose. xref #31095, #31...
https://api.github.com/repos/pandas-dev/pandas/pulls/31110
2020-01-17T17:54:44Z
2020-01-23T02:02:57Z
null
2020-02-28T00:19:13Z
CLN: prune unreachable code
diff --git a/pandas/core/base.py b/pandas/core/base.py index 66d7cd59dcfa4..c6800d282700f 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -583,12 +583,10 @@ def _is_builtin_func(self, arg): class ShallowMixin: _attributes: List[str] = [] - def _shallow_copy(self, obj=None, **kwargs): + def _...
https://api.github.com/repos/pandas-dev/pandas/pulls/31106
2020-01-17T15:46:28Z
2020-01-18T15:51:06Z
2020-01-18T15:51:06Z
2020-01-18T16:07:28Z
TST: Fix some bare pytest raises
diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 15b1434f8629f..9c1442b75fbb2 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -1200,7 +1200,7 @@ def test_binop_other(self, op, value, dtype): (opera...
- [x] ref #30999 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Follow up for #30998
https://api.github.com/repos/pandas-dev/pandas/pulls/31105
2020-01-17T15:06:45Z
2020-01-17T23:29:05Z
2020-01-17T23:29:05Z
2020-01-18T14:50:41Z
CLN: Index._values docstring + Block.internal/external_values
diff --git a/pandas/core/arrays/sparse/scipy_sparse.py b/pandas/core/arrays/sparse/scipy_sparse.py index 88d63071c360f..17a953fce9ec0 100644 --- a/pandas/core/arrays/sparse/scipy_sparse.py +++ b/pandas/core/arrays/sparse/scipy_sparse.py @@ -17,14 +17,14 @@ def _check_is_partition(parts, whole): def _to_ijv(ss, row...
@jbrockmendel this is the "clean" part of https://github.com/pandas-dev/pandas/pull/31037, so if you merge this, I will update the other PR so that only the required changes are in the PR for 1.0.0.
https://api.github.com/repos/pandas-dev/pandas/pulls/31103
2020-01-17T13:18:53Z
2020-01-17T17:48:43Z
2020-01-17T17:48:43Z
2020-01-17T17:55:46Z
BUG: groupby transform fillna produces wrong result
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index c8e811ce82b1f..ad58232c81b23 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -169,6 +169,7 @@ Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :meth:`GroupBy.apply` raises ``ValueError`` ...
- [x] closes #30918 - [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/31101
2020-01-17T12:05:33Z
2020-01-24T19:16:01Z
2020-01-24T19:16:01Z
2020-05-29T10:48:03Z
Updated years in LICENSE
diff --git a/LICENSE b/LICENSE index 924de26253bf4..76954a5a339ab 100644 --- a/LICENSE +++ b/LICENSE @@ -1,8 +1,10 @@ BSD 3-Clause License -Copyright (c) 2008-2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team +Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc...
Really not sure about this change. (Feel free to close this PR at any time, if this file should not be changed).
https://api.github.com/repos/pandas-dev/pandas/pulls/31100
2020-01-17T08:55:32Z
2020-01-18T16:33:48Z
2020-01-18T16:33:48Z
2020-01-19T06:24:48Z
Backport PR #31091 on branch 1.0.x (CI/TST: fix failing tests in py37_np_dev)
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index 52640044565fc..5ff0bb8ef0d78 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill): ...
(Manual) Backport PR #31091 on branch 1.0.x (CI/TST: fix failing tests in py37_np_dev) cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/31099
2020-01-17T08:09:58Z
2020-01-17T11:34:17Z
2020-01-17T11:34:17Z
2020-01-17T13:21:03Z
CLN: Regular expression clean
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index 07abdceb71f9f..5ff0bb8ef0d78 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill): ...
- [x] ref https://github.com/pandas-dev/pandas/pull/31091#discussion_r367732954 - [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/31098
2020-01-17T07:56:44Z
2020-01-17T10:13:55Z
2020-01-17T10:13:55Z
2020-01-17T13:21:58Z
DOC: Replace ggpy with plotnine in ecosystem
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 7bd5ba7ecdf0b..b1de406b33352 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -112,16 +112,14 @@ also goes beyond matplotlib and pandas with the option to perform statistical estimation while plotting, aggregating across obse...
- [ ] closes #31087 - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Changed ggpy reference to plotnine.
https://api.github.com/repos/pandas-dev/pandas/pulls/31097
2020-01-17T04:14:18Z
2020-01-18T17:11:21Z
2020-01-18T17:11:21Z
2020-02-19T03:52:49Z
ENH: partial string indexing on non-monotonic PeriodIndex
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 08b2ae0a4a837..3fdab0fd26643 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1951,6 +1951,10 @@ The ``period`` dtype can be used in ``.astype(...)``. It allows one to change th...
Looks like the DatetimeIndex analogue of this was done in #2437 (https://github.com/pandas-dev/pandas/commit/3a173f19b308d2fb7d8e96dfc57f2e5ecd046138) This does _not_ yet support two-sides slicing e.g. `ser["2015":"2016"]`, but im hoping to get that handled before long. Partial overlap with #31058, nothing should...
https://api.github.com/repos/pandas-dev/pandas/pulls/31096
2020-01-17T02:40:30Z
2020-01-21T16:27:25Z
2020-01-21T16:27:24Z
2020-01-21T17:15:54Z
DOC: Restore ExtensionIndex.dropna.__doc__
diff --git a/pandas/core/indexes/extension.py b/pandas/core/indexes/extension.py index 58fcce7e59be7..db35cdb72979f 100644 --- a/pandas/core/indexes/extension.py +++ b/pandas/core/indexes/extension.py @@ -6,7 +6,7 @@ import numpy as np from pandas.compat.numpy import function as nv -from pandas.util._decorators imp...
Per request from @jorisvandenbossche on #30717.
https://api.github.com/repos/pandas-dev/pandas/pulls/31095
2020-01-17T01:46:15Z
2020-01-20T13:35:21Z
2020-01-20T13:35:21Z
2020-01-20T16:27:26Z
WEB: Styling blog
diff --git a/web/pandas/community/blog.html b/web/pandas/community/blog.html index ffe6f97d679e4..627aaa450893b 100644 --- a/web/pandas/community/blog.html +++ b/web/pandas/community/blog.html @@ -4,10 +4,10 @@ {% for post in blog.posts %} <div class="card"> <div class="card-body"> - ...
Improving how the blog section looks. Changing a bit the font size, color, and spacing. And also removing html tags from the content, since it's tricky to make titles, images, links... in the posts look good in the preview. Not convinced that the blog looks great, but that's the best I could do, and I think it looks...
https://api.github.com/repos/pandas-dev/pandas/pulls/31094
2020-01-17T00:22:06Z
2020-01-17T16:51:20Z
2020-01-17T16:51:20Z
2020-01-17T16:51:21Z
Pull Request Tips
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 4fdcb93745094..2dcb6a32d7941 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -1525,3 +1525,19 @@ The branch will still exist on GitHub, so to delete it there do:: ...
I think these issues pop up on a good deal of PRs but aren't explicitly stated anywhere, so adding a few bullet points to the contributing guide might help
https://api.github.com/repos/pandas-dev/pandas/pulls/31093
2020-01-17T00:14:18Z
2020-01-18T16:37:40Z
2020-01-18T16:37:40Z
2020-02-02T01:21:45Z
Fix Segfault (maybe)
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 8bbbc6db94842..f44b7c42fd0c7 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -40,8 +40,7 @@ cdef class BlockPlacement: self._as_array = arr self._has_array = True else: - ...
- [X] closes #21824 I have only been able to reproduce this issue once and can't verify that this works, but I think @jorisvandenbossche has had more luck reproducing so maybe can try I noticed `_as_array` showing up in a core dump I was able to get, and this line seems a little suspect so perhaps removing the wr...
https://api.github.com/repos/pandas-dev/pandas/pulls/31092
2020-01-17T00:11:57Z
2020-01-23T17:37:36Z
null
2023-04-12T20:16:58Z
CI/TST: fix failing tests in py37_np_dev
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index 52640044565fc..07abdceb71f9f 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/31091
2020-01-17T00:11:17Z
2020-01-17T02:24:19Z
2020-01-17T02:24:19Z
2020-01-27T12:37:03Z
CLN: update _simple_new usages
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 942b51eda7d0b..f55d943e3086e 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -253,7 +253,7 @@ def __new__( ambiguous=ambiguous, ) - subarr = cls._simple_new(dtarr...
In preparation for making the _simple_new constructors stricter, xref #31084, #31055.
https://api.github.com/repos/pandas-dev/pandas/pulls/31089
2020-01-16T23:49:23Z
2020-01-18T15:59:28Z
2020-01-18T15:59:28Z
2020-01-18T16:14:58Z
BUG: df.pivot_table fails when margin is True and only columns is defined
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 441f4b380656e..21081ee23a773 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -161,6 +161,9 @@ def time_pivot_table_categorical_observed(self): observed=True, ) + def time...
- [x] closes #31016 - [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/31088
2020-01-16T21:31:59Z
2020-01-20T20:08:12Z
2020-01-20T20:08:11Z
2021-07-03T06:49:58Z
DOC: automatic 'end' year of copyright
diff --git a/doc/source/conf.py b/doc/source/conf.py index c6786a03f0e44..7f24d02a496e1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -10,6 +10,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. +from datetime import datetime import importlib i...
#31022 Updated it after nearly 6 years, I think this will update with each new merge, so that should not be a problem from now on, (I think) cc (@datapythonista)
https://api.github.com/repos/pandas-dev/pandas/pulls/31085
2020-01-16T19:41:07Z
2020-01-16T21:36:54Z
2020-01-16T21:36:54Z
2020-01-16T23:39:35Z
REF: stricter types for RangeIndex._simple_new
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 47daaa4958411..22a0097c6b95f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -57,6 +57,7 @@ ABCMultiIndex, ABCPandasArray, ABCPeriodIndex, + ABCRangeIndex, ABCSeries, ABCTimedeltaIndex,...
xref #31055.
https://api.github.com/repos/pandas-dev/pandas/pulls/31084
2020-01-16T19:24:11Z
2020-01-16T23:55:08Z
2020-01-16T23:55:08Z
2020-01-17T01:08:23Z
CLN: Remove download_wheels.py, moved to pandas-release
diff --git a/scripts/download_wheels.py b/scripts/download_wheels.py deleted file mode 100644 index 3d36eed2d888a..0000000000000 --- a/scripts/download_wheels.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python -"""Fetch wheels from wheels.scipy.org for a pandas version.""" -import argparse -import pathlib -import...
- [X] xref #31039 Script being moved to the pandas-release repository in https://github.com/pandas-dev/pandas-release/pull/23
https://api.github.com/repos/pandas-dev/pandas/pulls/31083
2020-01-16T19:15:37Z
2020-01-16T21:46:29Z
2020-01-16T21:46:29Z
2020-01-16T21:46:34Z
CLN: __all__ for core/index.py
diff --git a/pandas/core/index.py b/pandas/core/index.py index 8cff53d7a8b74..9fc9ee709ffba 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -1,6 +1,6 @@ import warnings -from pandas.core.indexes.api import ( # noqa:F401 +from pandas.core.indexes.api import ( CategoricalIndex, DatetimeIndex...
- [ ] 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/31082
2020-01-16T19:03:00Z
2020-01-17T17:40:04Z
null
2020-01-17T17:59:01Z
CLN: Moved the same code in 'if' and the 'else' outside
diff --git a/setup.py b/setup.py index 6635b58cd7103..86fe62202c643 100755 --- a/setup.py +++ b/setup.py @@ -412,15 +412,14 @@ def run(self): cmdclass.update({"clean": CleanCommand, "build": build}) +cmdclass["build_ext"] = CheckingBuildExt if cython: suffix = ".pyx" - cmdclass["build_ext"] = CheckingBu...
AFICT this should be ok, right? cc (@WillAyd)
https://api.github.com/repos/pandas-dev/pandas/pulls/31081
2020-01-16T18:50:48Z
2020-01-16T19:49:50Z
2020-01-16T19:49:50Z
2020-01-16T19:52:14Z
TST: Remove bare pytest.raises
diff --git a/pandas/core/ops/array_ops.py b/pandas/core/ops/array_ops.py index b84d468fff736..064e2e3ea4412 100644 --- a/pandas/core/ops/array_ops.py +++ b/pandas/core/ops/array_ops.py @@ -95,7 +95,9 @@ def masked_arith_op(x, y, op): else: if not is_scalar(y): - raise TypeError(type(y)) + ...
References #30999 Adds match argument to pytest.raises found in the following files. https://github.com/pandas-dev/pandas/issues/30999#issuecomment-574174389 **ToDo:** - [x] pandas/tests/arithmetic/test_numeric - [X] pandas/tests/arithmetic/test_object - [x] pandas/tests/arithmetic/test_timedelta64 - [x] pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/31079
2020-01-16T18:02:21Z
2020-01-24T03:57:24Z
2020-01-24T03:57:24Z
2020-01-27T04:45:27Z
CLN: remove unused legacy pickle compat code
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b73f129fbda8e..6332ff45c59d0 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1928,9 +1928,9 @@ def __setstate__(self, state): object.__setattr__(self, k, v) else: - self._unpick...
- [ ] 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/31078
2020-01-16T17:57:13Z
2020-01-16T23:50:41Z
2020-01-16T23:50:41Z
2020-01-17T10:07:41Z
STY: Some stuff that triggers my OCD ;)
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 59ba1705d2dbb..884db9ee931d4 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -13,26 +13,45 @@ cnp.import_array() cdef extern from "numpy/npy_math.h": float64_t NAN "NPY_NAN" - from pandas._libs.khash cimport ...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some stuff that got the attention of my eye
https://api.github.com/repos/pandas-dev/pandas/pulls/31076
2020-01-16T15:38:57Z
2020-01-16T18:34:43Z
2020-01-16T18:34:43Z
2020-01-16T18:41:33Z
CLN/MAINT: Clean and annotate stata reader and writers
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 012fb1d0c2eb7..dbcdcd17255b5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -11,6 +11,7 @@ import collections from collections import abc +import datetime from io import StringIO import itertools import sys @@ -19,6 +20,7 @@ IO,...
- [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/31072
2020-01-16T12:09:02Z
2020-01-26T00:42:01Z
2020-01-26T00:42:01Z
2020-07-28T14:41:36Z
ENH: accept a dictionary in plot colors
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index c8e811ce82b1f..61e907acfd54e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -162,7 +162,7 @@ I/O Plotting ^^^^^^^^ -- +- :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`). ...
This is a resurrection of #28659. Have kept the original commit history, just rebased and added docstrings. - [x] closes #8193 - [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/31071
2020-01-16T11:25:12Z
2020-01-26T01:04:28Z
2020-01-26T01:04:27Z
2020-02-01T18:19:00Z
PERF: add shortcut to Timedelta constructor
diff --git a/asv_bench/benchmarks/tslibs/timedelta.py b/asv_bench/benchmarks/tslibs/timedelta.py index 8a16ddc189483..6ed273281569b 100644 --- a/asv_bench/benchmarks/tslibs/timedelta.py +++ b/asv_bench/benchmarks/tslibs/timedelta.py @@ -10,6 +10,11 @@ class TimedeltaConstructor: + def setup(self): + self...
WIP until #30676 gets merged. - [ ] second half of #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 Timedelta constructor to cut down on processing if Timedelta is passed....
https://api.github.com/repos/pandas-dev/pandas/pulls/31070
2020-01-16T09:57:08Z
2020-01-24T00:36:48Z
2020-01-24T00:36:47Z
2020-01-27T06:54:59Z
Fix DataFrame.info() range summary for DatetimeIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index bf1272b223f70..efdea13464885 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -485,7 +485,7 @@ def _summary(self, name=None): """ formatter = self._formatter_func ...
**Fix `DataFrame.info()` range summary for DatetimeIndex** This PR aims to provide better description of [DatetimeIndex](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.html) within [DataFrame.info](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.info.html)...
https://api.github.com/repos/pandas-dev/pandas/pulls/31069
2020-01-16T08:20:16Z
2020-02-05T08:02:10Z
null
2020-02-05T08:02:10Z
DOC: add plotting backends in visualization.rst
diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index 39051440e9d9a..b0d63f9cd948a 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -1641,3 +1641,46 @@ when plotting a large number of points. :suppress: plt.cl...
- [x] closes #30984
https://api.github.com/repos/pandas-dev/pandas/pulls/31066
2020-01-16T05:40:06Z
2020-02-05T19:09:05Z
2020-02-05T19:09:05Z
2020-02-05T19:19:30Z
CLN: remove redundant return value
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index 3705b0a41fe55..ebdf7a1e29216 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -217,7 +217,7 @@ def parse_datetime_string(date_string: str, freq=None, dayfirst=False, return dt try: -...
https://api.github.com/repos/pandas-dev/pandas/pulls/31065
2020-01-16T04:53:51Z
2020-01-16T10:23:27Z
2020-01-16T10:23:27Z
2020-01-16T16:35:04Z
BUG: partial-timestamp slicing near the end of year/quarter/month
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index b5a7b19f160a4..4e8cc3ce1d04f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -102,7 +102,7 @@ Interval Indexing ^^^^^^^^ - +- Bug in slicing on a :class:`DatetimeIndex` with a partial-timestamp dro...
I'm fairly confident we can refactor this to be a lot less verbose, but will do that separately from the bugfix. - [ ] 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/31064
2020-01-16T04:33:04Z
2020-01-18T15:56:37Z
2020-01-18T15:56:36Z
2020-01-18T16:20:56Z
TYP/CLN: Replaced "Optional[Hashable]" with "Label" from pandas._typing
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0c413cd473bbc..b73f129fbda8e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -37,6 +37,7 @@ FilePathOrBuffer, FrameOrSeries, JSONSerializable, + Label, Level, Renamer, ) @@ -3009,10 +3010,10 @@ def to_csv...
- [ ] 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/31062
2020-01-16T03:45:13Z
2020-01-16T10:26:01Z
2020-01-16T10:26:01Z
2020-01-16T14:58:49Z
CLN: Replace Appender and Substitution with simpler doc decorator
diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst index 649dd37b497b2..1c99b341f6c5a 100644 --- a/doc/source/development/contributing_docstring.rst +++ b/doc/source/development/contributing_docstring.rst @@ -937,33 +937,31 @@ classes. This helps us keep d...
- [X] closes #30933 - [x] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry A new decorator to handle docstring formatting. There is also an update for an existing case to show how it works.
https://api.github.com/repos/pandas-dev/pandas/pulls/31060
2020-01-16T02:13:33Z
2020-02-12T16:01:46Z
2020-02-12T16:01:46Z
2020-02-13T01:39:28Z
CLN: Removed unused varibles from for loops
diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx index 211935009d2e5..b4f8eeb3d226d 100644 --- a/pandas/io/sas/sas.pyx +++ b/pandas/io/sas/sas.pyx @@ -33,7 +33,7 @@ cdef const uint8_t[:] rle_decompress(int result_length, raise ValueError("Unexpected non-zero end_of_first_byte") n...
- [ ] 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/31059
2020-01-16T01:46:28Z
2020-01-16T16:19:00Z
2020-01-16T16:19:00Z
2020-01-16T18:42:41Z
REF: use _get_string_slice in PeriodIndex.get_value
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 9d501b2601c09..b3386f6104032 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -483,25 +483,20 @@ def get_value(self, series, key): return series.iat[key] if isinstance(key, str): + ...
Most of _get_string_slice is duplicated inside PeriodIndex.get_value, which likely explains why get_string_slice has almost no test [coverage](https://codecov.io/gh/pandas-dev/pandas/src/master/pandas/core/indexes/period.py#L715). This also brings PeriodIndex.get_value into closer alignment with DatetimeIndex.get_valu...
https://api.github.com/repos/pandas-dev/pandas/pulls/31058
2020-01-16T01:19:55Z
2020-01-20T19:53:19Z
2020-01-20T19:53:19Z
2020-01-20T19:54:42Z
Split out JSON Date Converters
diff --git a/pandas/_libs/src/ujson/python/date_conversions.c b/pandas/_libs/src/ujson/python/date_conversions.c new file mode 100644 index 0000000000000..fc4bdef8463af --- /dev/null +++ b/pandas/_libs/src/ujson/python/date_conversions.c @@ -0,0 +1,118 @@ +// Conversion routines that are useful for serialization, +// b...
This file is pretty large so trying to make more modular. This separates out conversion routines required for getting from the Python space to JSON, but which don't actually serialize the data
https://api.github.com/repos/pandas-dev/pandas/pulls/31057
2020-01-16T01:13:50Z
2020-01-20T23:44:49Z
2020-01-20T23:44:48Z
2023-04-12T20:17:15Z
CLN: assorted cleanups
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 1c86235f9eaa1..8da6907750ac7 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1055,7 +1055,7 @@ def equals(self, other) -> bool: if not isinstance(other, IntervalIndex): if no...
https://api.github.com/repos/pandas-dev/pandas/pulls/31056
2020-01-15T22:19:33Z
2020-01-16T09:59:06Z
2020-01-16T09:59:06Z
2020-01-16T16:30:12Z
REF: be stricter about what we pass to _simple_new
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 1e2a02e988fdd..d9b53aa4a867c 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -169,8 +169,9 @@ def __init__(self, values, freq=None, dtype=None, copy=False): self._dtype = PeriodDtype(freq) @cla...
This will take a few passes to get rid of all the checks done in _simple_new that should be done elsewhere
https://api.github.com/repos/pandas-dev/pandas/pulls/31055
2020-01-15T21:58:35Z
2020-01-18T16:17:32Z
2020-01-18T16:17:32Z
2020-01-18T16:25:23Z
DOC: Fix HDF5 complevel and complib formatting
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 55bbf6848820b..e776da016d5d7 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4220,46 +4220,49 @@ Compression all kinds of stores, not just tables. Two parameters are used to control compression: ``complevel...
Fixes formatting of these params. - [x] closes #31052 - [ ] 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) N/A as this PR only updates an rst file for the docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/31053
2020-01-15T20:18:05Z
2020-01-20T13:34:12Z
2020-01-20T13:34:12Z
2020-01-20T13:34:23Z
CLN: Remove unused release scripts
diff --git a/scripts/build_dist.sh b/scripts/build_dist.sh deleted file mode 100755 index c3f849ce7a6eb..0000000000000 --- a/scripts/build_dist.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# build the distribution -LAST=`git tag --sort version:refname | grep -v rc | tail -1` - -echo "Building distribution for: $LA...
- [X] ref #31039 Old scripts that are not used anymore. CC: @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/31049
2020-01-15T17:07:35Z
2020-01-20T17:38:28Z
2020-01-20T17:38:28Z
2020-01-20T17:38:33Z
FIX: fix interpolate with kwarg limit area and limit direction using pad or bfill
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index adc1806523d6e..503c3c37790fd 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -225,6 +225,7 @@ Missing ^^^^^^^ - Bug in :meth:`SeriesGroupBy.transform` now correctly handles missing values for `drop...
- [x] closes #26796 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This separates a large part of the code changes from #25141 to keep things comprehendible.
https://api.github.com/repos/pandas-dev/pandas/pulls/31048
2020-01-15T17:06:53Z
2020-11-27T05:06:52Z
null
2020-11-27T05:06:53Z
DOC: Add missing docstrings
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 47daaa4958411..605013882b31e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1163,6 +1163,9 @@ def to_frame(self, index=True, name=None): @property def name(self): + """ + Return Index o...
Added docstrings: ``` pandas.Index.has_duplicates pandas.Index.is_all_dates pandas.Index.name pandas.Index.is_boolean pandas.Index.is_floating pandas.Index.is_integer pandas.Index.is_interval pandas.Index.is_mixed pandas.Index.is_numeric pandas.Index.is_object ``` There are some other docstrings left - I...
https://api.github.com/repos/pandas-dev/pandas/pulls/31047
2020-01-15T16:43:31Z
2020-01-17T13:27:38Z
2020-01-17T13:27:38Z
2020-01-17T13:27:49Z