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
CI: xfail failing 32-bit tests
diff --git a/pandas/tests/window/test_api.py b/pandas/tests/window/test_api.py index 2c3d8b4608806..28e27791cad35 100644 --- a/pandas/tests/window/test_api.py +++ b/pandas/tests/window/test_api.py @@ -6,7 +6,7 @@ import pandas.util._test_decorators as td import pandas as pd -from pandas import DataFrame, Index, Ser...
https://github.com/pandas-dev/pandas/issues/35294
https://api.github.com/repos/pandas-dev/pandas/pulls/35295
2020-07-15T19:44:33Z
2020-07-15T21:09:15Z
2020-07-15T21:09:15Z
2020-07-15T21:09:19Z
ENH: Add orient=tight format for dictionaries
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index b7efec8fd2e89..989963ec84db9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -134,6 +134,28 @@ Previously, negative arguments returned empty frames. df.groupby("A").nth(slice(1, -1)) df.group...
- [x] xref #4889 (see below) - [x] tests added / passed - tests.frame.methods.test_to_dict.test_to_dict_orient_tight() - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The issue in #4889 contains examples of how the JSON format doesn't suppo...
https://api.github.com/repos/pandas-dev/pandas/pulls/35292
2020-07-15T17:36:26Z
2021-10-16T15:50:53Z
2021-10-16T15:50:53Z
2023-02-13T20:55:24Z
xfail failing 32-bit tests
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index f7bb73b916ce0..b5a1dc2b2fb94 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -18,6 +18,7 @@ PY38 = sys.version_info >= (3, 8) PY39 = sys.version_info >= (3, 9) PYPY = platform.python_implementation() == "PyPy" +IS64 = ...
We need MacPython to be passing for the wheels to be built.
https://api.github.com/repos/pandas-dev/pandas/pulls/35289
2020-07-15T15:34:14Z
2020-07-15T18:04:48Z
2020-07-15T18:04:48Z
2020-07-15T20:27:02Z
Fix indexing, reindex on all-sparse SparseArray.
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 814dbe999d5c1..1864367db0c0b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1123,7 +1123,7 @@ Sparse - Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning before dropping ...
Closes https://github.com/pandas-dev/pandas/issues/35286. Also added a regression tests for the issue reported there.
https://api.github.com/repos/pandas-dev/pandas/pulls/35287
2020-07-15T14:11:23Z
2020-07-16T11:17:07Z
2020-07-16T11:17:06Z
2020-07-16T11:17:10Z
To latex position
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index eb55369d83593..4fbc1d4b6965e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2840,6 +2840,7 @@ def to_latex( multirow=None, caption=None, label=None, + position=None, ): r""" ...
- [ ] closes #35281 - [ ] 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/35284
2020-07-15T11:57:25Z
2020-08-07T15:32:27Z
2020-08-07T15:32:27Z
2020-08-10T06:20:08Z
BUG: GroupBy.count() and GroupBy.sum() incorreclty return NaN instead of 0 for missing categories
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 10dfd8406b8ce..260b92b5989c1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -152,6 +152,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ +- Bug in :meth:`DataFrameGroupBy.count` and...
- [x] closes #31422 - [x] closes #35028 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry *Behavioural Changes* Fixing two related bugs: when grouping on multiple categoricals, `.sum()` and `.count()` would return ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35280
2020-07-15T01:40:16Z
2020-08-07T15:21:13Z
2020-08-07T15:21:12Z
2020-08-07T15:21:19Z
Revert "BUG: fix union_indexes not supporting sort=False for Index subclasses"
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cfac916157649..97474af055c3c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1113,7 +1113,6 @@ Reshaping - Fixed bug in :func:`melt` where melting MultiIndex columns with ``col_level`` > 0 would rais...
Reverts pandas-dev/pandas#35098 Closes https://github.com/pandas-dev/pandas/issues/35238 I'll also push a test from https://github.com/pandas-dev/pandas/issues/35238 here, and add the xfailing tests from #35098.
https://api.github.com/repos/pandas-dev/pandas/pulls/35277
2020-07-14T20:23:45Z
2020-07-15T12:24:40Z
2020-07-15T12:24:40Z
2020-07-15T12:31:17Z
CI: pin pytest in minimum versions
diff --git a/ci/deps/azure-36-minimum_versions.yaml b/ci/deps/azure-36-minimum_versions.yaml index 9f66f82720b5b..f5af7bcf36189 100644 --- a/ci/deps/azure-36-minimum_versions.yaml +++ b/ci/deps/azure-36-minimum_versions.yaml @@ -6,7 +6,7 @@ dependencies: # tools - cython=0.29.16 - - pytest>=5.0.1, <6.0.0rc0 + ...
xref https://github.com/pandas-dev/pandas/pull/35260#discussion_r454293041
https://api.github.com/repos/pandas-dev/pandas/pulls/35274
2020-07-14T13:09:29Z
2020-07-14T13:56:50Z
2020-07-14T13:56:50Z
2020-07-14T13:56:57Z
Move API changes to appropriate sections
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 85b29a58a1f15..646a9c7b8c05d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -276,6 +276,10 @@ change, as ``fsspec`` will still bring in the same packages as before. Other enhancements ^^^^^^^^^^^^^^...
xref https://github.com/pandas-dev/pandas/issues/34801
https://api.github.com/repos/pandas-dev/pandas/pulls/35273
2020-07-14T12:35:38Z
2020-07-14T17:09:42Z
2020-07-14T17:09:42Z
2020-07-14T17:10:00Z
CI: Unpin pytest
diff --git a/ci/deps/azure-36-32bit.yaml b/ci/deps/azure-36-32bit.yaml index 2dc53f8181ac4..15704cf0d5427 100644 --- a/ci/deps/azure-36-32bit.yaml +++ b/ci/deps/azure-36-32bit.yaml @@ -23,4 +23,4 @@ dependencies: - pip - pip: - cython>=0.29.16 - - pytest>=5.0.1,<6.0.0rc0 + - pytest>=5.0.1 diff --git a/...
- [ ] closes #35261 have made a start working through the failures. we should be able to get mypy to green here and then when pytest 6.0.0 is released the upstream fixes should cause ci to go red since we have `warn_unused_ignores = True` in setup.cfg.
https://api.github.com/repos/pandas-dev/pandas/pulls/35272
2020-07-14T08:35:44Z
2020-07-29T15:59:29Z
2020-07-29T15:59:28Z
2020-07-30T12:20:14Z
REGR: revert ExtensionBlock.set to be in-place
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 55e2a810e6fc3..0e16340ed58e3 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -999,7 +999,6 @@ Indexing - Bug in :meth:`Series.__getitem__` indexing with non-standard scalars, e.g. ``np.dtype`` (:issue...
Alternative for https://github.com/pandas-dev/pandas/pull/35266 and closes #35369
https://api.github.com/repos/pandas-dev/pandas/pulls/35271
2020-07-14T08:01:29Z
2020-07-27T18:00:06Z
2020-07-27T18:00:06Z
2020-08-18T13:40:30Z
CI: Ignore setuptools distutils warning
diff --git a/ci/deps/azure-36-32bit.yaml b/ci/deps/azure-36-32bit.yaml index 15704cf0d5427..2dc53f8181ac4 100644 --- a/ci/deps/azure-36-32bit.yaml +++ b/ci/deps/azure-36-32bit.yaml @@ -23,4 +23,4 @@ dependencies: - pip - pip: - cython>=0.29.16 - - pytest>=5.0.1 + - pytest>=5.0.1,<6.0.0rc0 diff --git a/...
xref https://github.com/pandas-dev/pandas/issues/35252. Just ignoring in the test. Can discuss a proper solution in the issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/35260
2020-07-13T12:12:36Z
2020-07-13T15:27:00Z
2020-07-13T15:27:00Z
2020-07-14T13:15:47Z
ENH: Basis for a StringDtype using Arrow
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index f6d2d6e63340f..1ca18bae4e2c4 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -636,7 +636,7 @@ cpdef ndarray[object] ensure_string_array( ---------- arr : array-like The values to be converted to str, if needed. - na_val...
- [x] xref #35169 - [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/35259
2020-07-13T10:20:01Z
2020-11-20T14:20:24Z
2020-11-20T14:20:24Z
2020-11-20T20:50:34Z
[BUG] fixed DateOffset pickle bug when months >= 12
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 33e70daa55e66..8b2b9c14046af 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -80,6 +80,7 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :attr:`DatetimeArray.date` where a ``ValueError`` would be raised with a...
- [x] closes #34511 - [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/35258
2020-07-13T08:13:54Z
2020-08-14T16:17:38Z
2020-08-14T16:17:38Z
2021-03-20T02:35:50Z
REF: make tz_convert match pattern elsewhere
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index a6afd47d93479..606639af16a18 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -382,7 +382,10 @@ cpdef int64_t tz_convert_from_utc_single(int64_t val, tzinfo tz): converted: ...
asvs for tslibs.tz_convert show this as perf-neutral
https://api.github.com/repos/pandas-dev/pandas/pulls/35255
2020-07-12T23:00:59Z
2020-07-13T16:42:47Z
2020-07-13T16:42:47Z
2020-07-13T20:13:24Z
BUG: Use correct ExtensionArray reductions in DataFrame reductions
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index cfac916157649..9bc1499d5511e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -913,6 +913,7 @@ Numeric - Bug in :meth:`DataFrame.diff` with ``axis=1`` returning incorrect results with mixed dtypes (:is...
- [x] closes #34520 - [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/35254
2020-07-12T22:48:34Z
2020-07-15T22:17:58Z
2020-07-15T22:17:58Z
2020-07-15T22:44:19Z
BUG: ValueError on groupby with categoricals
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5f93e08d51baa..85b29a58a1f15 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1091,6 +1091,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.apply` where ``center=True`` was ignored when ``engine=...
- [x] closes #34951 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Within `DataFrameGroupBy._cython_agg_blocks`, if it is aggregating a one-column DataFrame, it creates a `SeriresGroupBy`, calls the function on tha...
https://api.github.com/repos/pandas-dev/pandas/pulls/35253
2020-07-12T22:31:33Z
2020-07-13T22:22:46Z
2020-07-13T22:22:45Z
2020-07-13T22:22:54Z
REF: de-duplicate get_resolution
diff --git a/pandas/_libs/tslibs/vectorized.pyx b/pandas/_libs/tslibs/vectorized.pyx index bdc00f6c6e21a..b23f8255a76ac 100644 --- a/pandas/_libs/tslibs/vectorized.pyx +++ b/pandas/_libs/tslibs/vectorized.pyx @@ -211,49 +211,40 @@ def get_resolution(const int64_t[:] stamps, tzinfo tz=None): int reso = RESO_DAY...
This changes get_resolution to use the same less-verbose pattern as ints_to_pydatetime; hopefully we'll be able to refactor out a couple of helper functions. asv run says this is perf-neutral
https://api.github.com/repos/pandas-dev/pandas/pulls/35245
2020-07-12T04:33:31Z
2020-08-03T23:22:04Z
2020-08-03T23:22:04Z
2020-08-04T02:01:27Z
ASV: dt64arr_to_periodarr
diff --git a/asv_bench/benchmarks/tslibs/period.py b/asv_bench/benchmarks/tslibs/period.py index 1a2c89b48c665..849e8ec864ac2 100644 --- a/asv_bench/benchmarks/tslibs/period.py +++ b/asv_bench/benchmarks/tslibs/period.py @@ -9,7 +9,12 @@ from pandas.tseries.frequencies import to_offset -from .tslib import _sizes +...
https://api.github.com/repos/pandas-dev/pandas/pulls/35244
2020-07-12T01:47:05Z
2020-07-14T17:16:30Z
2020-07-14T17:16:30Z
2020-07-14T18:43:27Z
CLN: annotate
diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx index 2d859db22ea23..a98820ca57895 100644 --- a/pandas/_libs/hashing.pyx +++ b/pandas/_libs/hashing.pyx @@ -15,7 +15,7 @@ DEF dROUNDS = 4 @cython.boundscheck(False) -def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'): +def...
https://api.github.com/repos/pandas-dev/pandas/pulls/35242
2020-07-11T23:51:52Z
2020-07-13T12:35:01Z
2020-07-13T12:35:01Z
2020-07-13T14:43:33Z
TST: GH20676 Verify equals operator for list of Numpy arrays
diff --git a/pandas/tests/generic/test_generic.py b/pandas/tests/generic/test_generic.py index 94747a52136c4..5e66925a38ec6 100644 --- a/pandas/tests/generic/test_generic.py +++ b/pandas/tests/generic/test_generic.py @@ -8,7 +8,7 @@ from pandas.core.dtypes.common import is_scalar import pandas as pd -from pandas im...
- [x] closes #20676 - [ 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/35237
2020-07-11T17:38:42Z
2020-07-13T16:36:12Z
2020-07-13T16:36:11Z
2020-07-13T16:36:15Z
TST: added tests for sparse and date range quantiles
diff --git a/pandas/tests/frame/methods/test_quantile.py b/pandas/tests/frame/methods/test_quantile.py index 0eec30cbc5c67..0b8f1e0495155 100644 --- a/pandas/tests/frame/methods/test_quantile.py +++ b/pandas/tests/frame/methods/test_quantile.py @@ -7,14 +7,29 @@ class TestDataFrameQuantile: - def test_quantile_...
- [x] closes #24600 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added tests for sparse and date range quantiles
https://api.github.com/repos/pandas-dev/pandas/pulls/35236
2020-07-11T17:00:02Z
2020-07-16T01:31:46Z
2020-07-16T01:31:45Z
2020-07-16T15:29:24Z
CLN/DOC: DataFrame.to_parquet supports file-like objects
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index cfe5621fec14e..df017bb0c1f0f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -19,6 +19,7 @@ IO, TYPE_CHECKING, Any, + AnyStr, Dict, FrozenSet, Hashable, @@ -2252,11 +2253,11 @@ def to_markdown( @deprecat...
Adds documentation and type-hints for supporting file-like objects when `engine == 'pyarrow'`; relevant to #30081. Tests for this behavior currently exist in `io.test_parquet.py`: ```` @td.skip_if_no("pyarrow") def test_read_file_like_obj_support(self, df_compat): buffer = BytesIO() df_compat...
https://api.github.com/repos/pandas-dev/pandas/pulls/35235
2020-07-11T16:50:07Z
2020-07-17T12:33:05Z
2020-07-17T12:33:05Z
2020-07-17T13:08:25Z
TST add test for dtype consistency with pd replace #23305
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index 498f7f7790514..a295b1f8baf63 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1420,3 +1420,83 @@ def test_replace_period_ignore_float(self): res...
- [x] closes #23305 - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35234
2020-07-11T16:32:19Z
2020-07-16T22:45:58Z
2020-07-16T22:45:57Z
2020-07-16T22:46:02Z
TST: Verify filtering operations on DataFrames with categorical Series
diff --git a/pandas/tests/frame/indexing/test_categorical.py b/pandas/tests/frame/indexing/test_categorical.py index d94dc8d2ffe00..25ad9063e7418 100644 --- a/pandas/tests/frame/indexing/test_categorical.py +++ b/pandas/tests/frame/indexing/test_categorical.py @@ -391,3 +391,14 @@ def test_loc_indexing_preserves_index_...
- [ x ] closes #22609 - [ 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/35233
2020-07-11T16:20:29Z
2020-07-15T22:24:07Z
2020-07-15T22:24:06Z
2020-07-15T22:24:10Z
Tst verify return none in tests/frame
diff --git a/pandas/tests/frame/indexing/test_categorical.py b/pandas/tests/frame/indexing/test_categorical.py index d94dc8d2ffe00..cfc22b9b18729 100644 --- a/pandas/tests/frame/indexing/test_categorical.py +++ b/pandas/tests/frame/indexing/test_categorical.py @@ -326,7 +326,10 @@ def test_assigning_ops(self): ...
verify we return None for all inplace calls in tests/frame related: https://github.com/pandas-dev/pandas/pull/35230
https://api.github.com/repos/pandas-dev/pandas/pulls/35232
2020-07-11T15:57:46Z
2020-07-12T12:05:03Z
2020-07-12T12:05:03Z
2020-07-12T12:05:15Z
BUG: Inconsistent behavior in Index.difference
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 90534c00df621..28e30e95e8bf1 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -953,6 +953,7 @@ Numeric - Bug in :meth:`DataFrame.diff` with ``axis=1`` returning incorrect results with mixed dtypes (:is...
- [ ] closes #35217 - [ ] 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/35231
2020-07-11T13:23:39Z
2020-07-16T09:55:15Z
2020-07-16T09:55:14Z
2020-07-16T09:57:00Z
TST verify return none inplace in tests/indexing
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index bfff58d05007f..17ac2307b9da6 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1208,8 +1208,10 @@ def test_constructor_single_row(self): data = [OrderedDict(...
verify we return none for all inplace calls in tests/indexing related: https://github.com/pandas-dev/pandas/pull/35210
https://api.github.com/repos/pandas-dev/pandas/pulls/35230
2020-07-11T13:14:55Z
2020-07-13T20:36:05Z
2020-07-13T20:36:05Z
2020-07-13T20:36:08Z
Place the calculation of mask prior to the calls of comp in replace_list to improve performance
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index c82670106d3b6..d5947726af7fd 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -596,18 +596,22 @@ def replace_list( # figure out our mask apriori to avoid repeated replacements ...
- [X] closes #33920 - [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/35229
2020-07-11T13:06:40Z
2020-07-15T12:27:23Z
2020-07-15T12:27:22Z
2020-07-16T07:08:44Z
TST: added test for groupby/apply timezone-aware with copy
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index 1945647ced08f..aa10f44670361 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -995,3 +995,18 @@ def test_apply_function_with_indexing_return_column(): result = df.groupby("foo1", as...
- [x] closes #27212 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry added test for groupby/apply timezone-aware with copy
https://api.github.com/repos/pandas-dev/pandas/pulls/35225
2020-07-11T01:57:18Z
2020-07-11T04:51:37Z
2020-07-11T04:51:37Z
2020-07-11T11:11:31Z
DEPR: DataFrame.lookup
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 74abbc9503db0..b11baad1e3eb5 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1480,17 +1480,27 @@ default value. s.get('a') # equivalent to s['a'] s.get('x', default=-1) -The...
- [x] xref #18262 - [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/35224
2020-07-11T00:05:41Z
2020-09-17T02:39:41Z
2020-09-17T02:39:41Z
2021-03-01T10:04:25Z
Fixing a confused method name in 02_read_write.rst
diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 12fa2a1e094d6..c6c6bfefc4303 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -151...
Fixed the confused method name. It should be `read_excel` based on the context, but `to_excel` was provided instead. Very simple PR for a simple fix to the documentation.
https://api.github.com/repos/pandas-dev/pandas/pulls/35222
2020-07-10T22:01:17Z
2020-07-10T22:22:51Z
2020-07-10T22:22:51Z
2020-07-10T22:22:55Z
ASV: asvs for normalize functions
diff --git a/asv_bench/benchmarks/tslibs/normalize.py b/asv_bench/benchmarks/tslibs/normalize.py new file mode 100644 index 0000000000000..7d4e0556f4d96 --- /dev/null +++ b/asv_bench/benchmarks/tslibs/normalize.py @@ -0,0 +1,32 @@ +try: + from pandas._libs.tslibs import normalize_i8_timestamps, is_date_array_normali...
With this, we have pretty good coverage for everything in tslibs.vectorized
https://api.github.com/repos/pandas-dev/pandas/pulls/35221
2020-07-10T21:34:33Z
2020-07-10T22:20:27Z
2020-07-10T22:20:27Z
2020-07-10T23:38:37Z
TYPING/DOC: Move custom type to _typing and add whatsnew
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d3724112ef455..62fc8c1c5c09a 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -332,6 +332,7 @@ Other enhancements - :meth:`~Series.explode` now accepts ``ignore_index`` to reset the index, similarly to...
followup of #29116 details see : https://github.com/pandas-dev/pandas/pull/29116#discussion_r453033204
https://api.github.com/repos/pandas-dev/pandas/pulls/35220
2020-07-10T19:46:06Z
2020-07-11T02:10:20Z
2020-07-11T02:10:20Z
2020-07-11T02:10:28Z
TST add corner cases in test_constructors
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index ab4f7781467e7..ef5c2d539f912 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1178,6 +1178,13 @@ def test_constructor_list_of_odicts(self): expected = DataF...
add two more corner cases to frame/test_constructors.
https://api.github.com/repos/pandas-dev/pandas/pulls/35216
2020-07-10T16:18:31Z
2020-07-11T10:44:57Z
2020-07-11T10:44:56Z
2020-07-11T10:45:09Z
REF: remove IntervalIndex.copy
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index abc82dd3c73f5..d16eb230b9f33 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -460,17 +460,6 @@ def __reduce__(self): d.update(self._get_attributes_dict()) return _new_IntervalInde...
cc @jschendel the existing behavior treats `name` differently than pretty much all our other copy methods. Was there a reason for that? It doesn't appear to be tested.
https://api.github.com/repos/pandas-dev/pandas/pulls/30627
2020-01-02T21:06:42Z
2020-01-03T00:48:24Z
2020-01-03T00:48:24Z
2020-01-03T00:52:19Z
REF: delegate more IntervalIndex methods
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index b2919b45fd6a7..cae9fa949f711 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -201,7 +201,14 @@ def func(intvidx_self, other, sort=False): ) @accessor.delegate_names( delegate=IntervalArray, ...
cc @jschendel is the usage of _simple_new instead of _shallow_copy `take` important? Should it always be the case that `idx.close == idx._data.closed`?
https://api.github.com/repos/pandas-dev/pandas/pulls/30626
2020-01-02T20:41:34Z
2020-01-03T09:59:26Z
2020-01-03T09:59:26Z
2020-01-06T15:38:22Z
TST: Adding test to concat where copy=False for ExtensionArrays
diff --git a/pandas/tests/extension/base/reshaping.py b/pandas/tests/extension/base/reshaping.py index 89c9ed3674a66..ec21898852888 100644 --- a/pandas/tests/extension/base/reshaping.py +++ b/pandas/tests/extension/base/reshaping.py @@ -94,6 +94,19 @@ def test_concat_columns(self, data, na_value): result = pd....
The test ensures that ExtensionArrays are correctly constructed when concat(copy=False) is used. - [x] closes #20756 - [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/30625
2020-01-02T20:03:02Z
2020-01-04T18:21:33Z
2020-01-04T18:21:33Z
2020-01-04T18:21:37Z
whatsnew fixups
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 59644440149ff..088e08d2fbd15 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -174,7 +174,7 @@ You can use the alias ``"boolean"`` as well. Using Numba in ``rolling.apply`` ^^^^^^^^^^^^^^^^^^^^^^^^^^^...
https://api.github.com/repos/pandas-dev/pandas/pulls/30624
2020-01-02T19:51:48Z
2020-01-02T21:42:28Z
2020-01-02T21:42:28Z
2020-01-02T21:42:31Z
REF: standardize usage with _make_wrapped_arith_op
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index f957860240dd2..306ccf176f970 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -512,39 +512,10 @@ def _convert_scalar_indexer(self, key, kind=None): return super()._convert...
https://api.github.com/repos/pandas-dev/pandas/pulls/30623
2020-01-02T19:39:09Z
2020-01-03T00:51:34Z
2020-01-03T00:51:34Z
2020-01-03T00:53:10Z
DOC: Fixing PR09 formatting errors
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 5f4bd801429a4..704914fb964fb 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -232,7 +232,7 @@ class Categorical(ExtensionArray, PandasObject): `categories` attribute (which in turn...
- part of #28602 - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` just the good stuff from #29530
https://api.github.com/repos/pandas-dev/pandas/pulls/30622
2020-01-02T18:46:30Z
2020-01-03T00:52:21Z
2020-01-03T00:52:20Z
2020-01-06T16:46:55Z
DEPR: pandas.util.testing
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index 43b1b31a0bfe8..eb903e28ff719 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -3,7 +3,7 @@ import numpy as np import pandas as pd -import pandas.util.testing as tm +import pa...
Closes https://github.com/pandas-dev/pandas/issues/16232. I tried to keep the commits somewhat clean. https://github.com/pandas-dev/pandas/commit/e96624b8a3f903798f7977fb92da09fc7417ec98 and https://github.com/pandas-dev/pandas/commit/d52d35f9d6a5e721ae0e6aa1579e44dac820ed7a can probably be ignored. That's just m...
https://api.github.com/repos/pandas-dev/pandas/pulls/30620
2020-01-02T17:27:01Z
2020-01-03T19:34:02Z
2020-01-03T19:34:02Z
2020-01-07T16:29:07Z
TYP: enable strict_equality to prohibit comparisons of non-overlappin…
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 7301c0ab434a0..63a2298ee02d5 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -60,6 +60,8 @@ class BooleanDtype(ExtensionDtype): BooleanDtype """ + name = "boolean" + @property def ...
…g types By default, mypy allows always-false comparisons like 42 == 'no'. Use this flag to prohibit such comparisons of non-overlapping types, and similar identity and container checks ``` pandas\core\dtypes\base.py:239: error: Non-overlapping equality check (left operand type: "str", right operand type: "Callabl...
https://api.github.com/repos/pandas-dev/pandas/pulls/30619
2020-01-02T15:36:41Z
2020-01-04T18:28:54Z
2020-01-04T18:28:54Z
2020-01-05T10:02:51Z
DEPR: is_copy arg of take
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index df747cb9654a9..3f94894e1da3c 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -579,6 +579,7 @@ Deprecations - The deprecated internal attributes ``_start``, ``_stop`` and ``_step`` of :class:`RangeInde...
- [x] closes #27357 - [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/30615
2020-01-02T04:28:17Z
2020-01-06T13:21:33Z
2020-01-06T13:21:33Z
2020-01-08T09:54:00Z
TYP: Add TypeVars to NDFrame
diff --git a/pandas/core/base.py b/pandas/core/base.py index ef7e59c9e19d7..d38dbec684f35 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -8,6 +8,7 @@ import numpy as np import pandas._libs.lib as lib +from pandas._typing import T from pandas.compat import PYPY from pandas.compat.numpy import functi...
Adding TypeVars to NDFrame methods that don't return optional values. This ensures that e.g. ``(DataFrame|Series).astype`` and ``(DataFrame|Series).copy`` have a known return type, which is nice. Also adds ``PandasObject._ensure_type``, which is a method used to solve the problem with optional return values, but whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/30613
2020-01-02T03:08:10Z
2020-01-03T01:05:17Z
2020-01-03T01:05:17Z
2020-03-02T22:35:16Z
CLN: replacing str.format with f-strings in several files. #29547
diff --git a/pandas/tests/io/formats/test_css.py b/pandas/tests/io/formats/test_css.py index a6ad5d5edbf5f..0d18b57c6d6e5 100644 --- a/pandas/tests/io/formats/test_css.py +++ b/pandas/tests/io/formats/test_css.py @@ -101,29 +101,25 @@ def test_css_side_shorthands(shorthand, expansions): top, right, bottom, left = ...
- [ ] xref #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/30612
2020-01-02T02:00:41Z
2020-01-03T00:36:40Z
2020-01-03T00:36:40Z
2020-01-03T00:36:54Z
Improve ASV Environment Creation Performance
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index c04bbf53a86a6..902b472304909 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -122,5 +122,8 @@ ".*": "0409521665" }, "regression_thresholds": { - } + }, + "build_command": + ["python setup.py build -...
...by leveraging a lot of the recent work to enable parallel CI Overriding default values documented here: https://asv.readthedocs.io/en/stable/asv.conf.json.html#build-command-install-command-uninstall-command I've picked 4 as the value assuming most people running benchmarks will have 2-4 cores. YMMV
https://api.github.com/repos/pandas-dev/pandas/pulls/30611
2020-01-02T00:46:35Z
2020-01-02T15:41:12Z
2020-01-02T15:41:12Z
2020-01-16T00:33:27Z
CLN: remove warnings clearing
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 57368a799138a..ec25f022f5a9e 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -26,7 +26,6 @@ Timestamp, date_range, ) -import pandas.core.array...
the tm.assert_produces_warning `clear` kwarg is no longer used, we could consider removing it
https://api.github.com/repos/pandas-dev/pandas/pulls/30608
2020-01-02T00:11:05Z
2020-01-02T02:36:50Z
2020-01-02T02:36:50Z
2020-01-02T02:40:33Z
REF: Delegate more methods for DTI/TDI/PI
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 11f4131df62a6..87a76b8681da4 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -445,7 +445,7 @@ def _formatter(self, boxed=False): return _get_format_timedelta64(self, box=True) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30607
2020-01-01T23:43:35Z
2020-01-02T02:38:26Z
2020-01-02T02:38:26Z
2020-01-02T02:42:23Z
CLN: remove CategoricalIndex.itemsize, should have gone in #29918
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 53051baa8e67e..5f4bd801429a4 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -302,7 +302,7 @@ class Categorical(ExtensionArray, PandasObject): __array_priority__ = 1000 _dtype = C...
https://api.github.com/repos/pandas-dev/pandas/pulls/30606
2020-01-01T22:34:38Z
2020-01-02T01:02:23Z
2020-01-02T01:02:23Z
2020-01-02T01:44:41Z
REF: delegate attrs for CategoricalIndex, IntervalIndex
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 531014e4affec..827ceb04cb712 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -10,7 +10,7 @@ from pandas._typing import AnyArrayLike import pandas.compat as compat from pandas.compat.numpy import...
Working towards creating an ExtensionIndexMixin to be shared by all our backed-be-EA indexes, which would ideally grow into ExtensionIndex. Removes CategoricalIndex._codes_for_groupby, which would raise AttributeError if it were ever called.
https://api.github.com/repos/pandas-dev/pandas/pulls/30605
2020-01-01T22:30:17Z
2020-01-02T13:55:53Z
2020-01-02T13:55:53Z
2020-01-02T16:52:59Z
CLN: Replace old format strings to f-strings in pandas/tests/base
diff --git a/pandas/tests/base/test_conversion.py b/pandas/tests/base/test_conversion.py index 4b6349a505509..4295d89869a72 100644 --- a/pandas/tests/base/test_conversion.py +++ b/pandas/tests/base/test_conversion.py @@ -288,7 +288,7 @@ def test_numpy_array_all_dtypes(any_numpy_dtype): def test_array(array, attr, inde...
- [x] Contributes to #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/30604
2020-01-01T19:46:24Z
2020-01-01T20:47:45Z
2020-01-01T20:47:45Z
2020-01-04T22:19:51Z
Added 'pearson' to methods list in pandas/core/nanops.py
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 584972f2b2dd5..6b03e76a1d691 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -1243,8 +1243,14 @@ def nancorr(a, b, method="pearson", min_periods=None): def get_corr_func(method): if method in ["kendall", "spearman"]: from ...
- [x] ref https://github.com/pandas-dev/pandas/pull/30461#discussion_r362323260 - [ ] 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/30603
2020-01-01T19:32:52Z
2020-01-07T23:17:53Z
2020-01-07T23:17:53Z
2020-01-08T20:30:05Z
TST: Add test for TypeError when using datetime.time in scatter plot
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index a9ab9d84dbc2f..c2a289b2772ba 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -1162,6 +1162,15 @@ def test_plot_scatter(self): axes = df.plot(x="x", y="y", kind="scatter", s...
- [ ] closes #8113 - [ ] 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/30602
2020-01-01T15:52:57Z
2020-01-01T16:26:02Z
2020-01-01T16:26:02Z
2020-01-01T16:26:05Z
CLN: Use fstring instead of .format in io/excel and test/generic
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 553334407d12e..fe13fce83161d 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -297,9 +297,7 @@ def read_excel( for arg in ("sheet", "sheetname", "parse_cols"): if arg in kwds: - raise TypeError( - ...
- [x] Contributes to #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/30601
2020-01-01T14:25:47Z
2020-01-01T16:07:12Z
2020-01-01T16:07:11Z
2020-01-01T16:07:15Z
BUG: Ensure df.itertuples() uses plain tuples correctly
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b194f20c3c433..5af426d07de14 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -987,6 +987,7 @@ Other - Bug in :class:`Index` where a non-hashable name could be set without raising ``TypeError`` (:issue...
Currently DataFrame.itertuples() has an off by one error when it inspects whether or not it should return namedtuples or plain tuples in it's response. This PR addresses that bug by correcting the condition that is used when making the check. Closes: #28282 - [x] closes #xxxx - [x] tests added / passed - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30600
2020-01-01T11:53:53Z
2020-01-02T00:58:16Z
2020-01-02T00:58:16Z
2020-01-06T09:15:27Z
REF: share _wrap_joined_index
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 6a49f9f670aab..f957860240dd2 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -35,6 +35,7 @@ import pandas.core.indexes.base as ibase from pandas.core.indexes.base import Index, _i...
this is the last of the trivial ones AFAICT. To get the others we're going to have to smooth out small differences in behavior, which should happen in non-refactoring PRs.
https://api.github.com/repos/pandas-dev/pandas/pulls/30599
2020-01-01T05:12:17Z
2020-01-01T16:03:07Z
2020-01-01T16:03:07Z
2020-01-01T16:32:50Z
CLN: Remove int32 and float32 dtypes from IntervalTree
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index 316c9e5b7e5f0..d09413bfa5210 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -8,14 +8,11 @@ from pandas._libs.algos import is_monotonic ctypedef fused int_scalar_t: int64_t - int32_t...
There isn't a practical way to actually get an `IntervalTree` with `int32`/`float32` dtypes since `IntervalIndex` is backed by two pandas indexes and we don't have a `Int32Index` or `Float32Index`. These indexes are used to create the underlying `IntervalTree` that backs an `IntervalIndex`, so we're guaranteed to have ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30598
2020-01-01T03:43:53Z
2020-01-01T18:19:08Z
2020-01-01T18:19:08Z
2020-01-01T21:14:22Z
REF: move inference/casting out of Index.__new__
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ec26e46a71e91..e9e3a5ef94a1f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -370,43 +370,12 @@ def __new__( subarr = subarr.copy() if dtype is None: - inferred = lib...
The new function operates only on arrays, not Indexes. This gets us close to being able to just use `pd.array` here.
https://api.github.com/repos/pandas-dev/pandas/pulls/30596
2020-01-01T03:38:59Z
2020-01-01T05:26:01Z
2020-01-01T05:26:00Z
2020-01-03T02:48:19Z
REF: share join methods for DTI/TDI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 76814403af385..6a49f9f670aab 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -6,8 +6,9 @@ import numpy as np -from pandas._libs import NaT, iNaT, lib +from pandas._libs import ...
The only actual changed behavior is in the new `_is_convertible_to_index_for_join` method where it first checks: ``` if isinstance(other, cls): return False ``` In master, TimedeltaIndex uses _is_convertible_to_index which returns True here. The DTI method behavior is unchanged.
https://api.github.com/repos/pandas-dev/pandas/pulls/30595
2020-01-01T02:59:51Z
2020-01-01T04:28:06Z
2020-01-01T04:28:06Z
2020-01-01T04:37:15Z
BUG: DTA/TDA/PA add/sub object-dtype
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 610fe4afcc9a0..763a6fe560283 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -27,7 +27,6 @@ is_integer_dtype, is_list_like, is_object_dtype, - is_offsetlike, is_p...
Bonus: we get to get rid of is_offsetlike
https://api.github.com/repos/pandas-dev/pandas/pulls/30594
2020-01-01T02:54:24Z
2020-01-01T03:41:35Z
2020-01-01T03:41:34Z
2020-01-01T03:47:01Z
CLN: remove no-longer-reachable addsub_int_array
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ceeaf018eb5f3..610fe4afcc9a0 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1093,39 +1093,6 @@ def _sub_period_array(self, other): new_values[mask] = NaT return ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30592
2020-01-01T00:56:04Z
2020-01-01T02:25:59Z
2020-01-01T02:25:59Z
2020-01-01T02:28:33Z
CLN: datetimelike EA and Index cleanups
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index df057ce5a0104..c5be958feb831 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -476,11 +476,6 @@ def to_timestamp(self, freq=None, how="start"): # -----------------------------------------------------------...
Working on sharing code between these classes better (xref #20587) and closing in on implementing ExtensionIndex.
https://api.github.com/repos/pandas-dev/pandas/pulls/30591
2020-01-01T00:19:57Z
2020-01-01T01:39:20Z
2020-01-01T01:39:20Z
2020-01-01T02:07:29Z
BUG: validate Index data is 1D + deprecate multi-dim indexing
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 40cbf67f1ea5e..00c1a61521a44 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -614,6 +614,7 @@ Deprecations - The ``pandas.util.testing`` module has been deprecated. Use the public API in ``pandas.test...
- [x] closes #13601 - [x] closes #27125 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This changes the behavior of `idx[:, None]` to return an ndarray instead of an invalid Index, needed to keep matplotlib tests w...
https://api.github.com/repos/pandas-dev/pandas/pulls/30588
2019-12-31T20:31:38Z
2020-01-09T21:17:06Z
2020-01-09T21:17:06Z
2023-04-05T10:20:20Z
REF: share code between DatetimeIndex and TimedeltaIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 7ba04fc9d2fea..88e70ac693a91 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -33,6 +33,7 @@ ) import pandas.core.indexes.base as ibase from pandas.core.indexes.base import Index,...
https://api.github.com/repos/pandas-dev/pandas/pulls/30587
2019-12-31T17:55:12Z
2020-01-01T01:42:25Z
2020-01-01T01:42:25Z
2020-01-01T02:08:09Z
REF: separate casting out of Index.__new__
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a3808f6f4a37e..aa41e2d591029 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -349,41 +349,8 @@ def __new__( # they are actually ints, e.g. '0' and 0.0 # should not be coerced ...
first of two PRs to separate array casting/inference out of `Index.__new__`. Once both are in place, we'll be able to do all inference/casting up-front and simplify the constructor quite a bit. We'll also be able to look into sharing code between Index/Series/array, and address a handful of outstanding issues with th...
https://api.github.com/repos/pandas-dev/pandas/pulls/30586
2019-12-31T17:29:20Z
2020-01-01T02:18:25Z
2020-01-01T02:18:25Z
2020-01-01T03:09:51Z
BUG: Disable parallel cythonize on Windows (GH 30214)
diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml index 03529bd6569c6..187a5db99802f 100644 --- a/ci/azure/windows.yml +++ b/ci/azure/windows.yml @@ -34,7 +34,7 @@ jobs: - bash: | source activate pandas-dev conda list - python setup.py build_ext -q -i + python setup.py build_...
- [x ] closes #30356 - [ ] tests added / passed - N/A - [ ] passes `black pandas` - Didn't run - changes too many files - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added test in `setup.py` to check if nthreads is positive and on Windows.
https://api.github.com/repos/pandas-dev/pandas/pulls/30585
2019-12-31T17:09:11Z
2020-01-01T01:34:36Z
2020-01-01T01:34:36Z
2020-01-03T21:41:05Z
ENH: Add dropna in groupby to allow NaN in keys
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index c5f58425139ee..ddba3dc452e28 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -199,6 +199,33 @@ For example, the groups created by ``groupby()`` below are in the order they app df3.group...
- [x] closes #3729 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Note that this PR will *NOT* fix the issue for `pivot_table` for now, the reason is that there is already an argument called `dropna` in `pivot_tabl...
https://api.github.com/repos/pandas-dev/pandas/pulls/30584
2019-12-31T16:07:32Z
2020-05-09T20:10:36Z
2020-05-09T20:10:36Z
2020-05-28T18:48:46Z
TYP: Add types to top-level funcs, step 2
diff --git a/pandas/_typing.py b/pandas/_typing.py index 7b89486751f12..14cf5157cea1d 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -21,9 +21,10 @@ from pandas.core.arrays.base import ExtensionArray # noqa: F401 from pandas.core.dtypes.dtypes import ExtensionDtype # noqa: F401 from pandas.c...
Next step to #30565. Next up will be the pd.read_* functions.
https://api.github.com/repos/pandas-dev/pandas/pulls/30582
2019-12-31T13:32:48Z
2020-01-05T16:21:07Z
2020-01-05T16:21:07Z
2020-01-05T16:27:52Z
BUG: Series __setitem__ gives wrong result with bool indexer
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 570ce11238327..7bba6feb1c2e8 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -858,6 +858,7 @@ Indexing - Bug when indexing with ``.loc`` where the index was a :class:`CategoricalIndex` with non-string...
Series.__setitem__ gives wrong result with bool indexer and when length of new data matches the number of Trues and new data is neither a Series nor a numpy array - [x] closes #30567 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30580
2019-12-31T12:55:01Z
2020-01-02T13:59:22Z
2020-01-02T13:59:22Z
2020-01-03T11:41:09Z
STY: Concat string
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index b0eeb7b96e0eb..850217c8a7803 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -286,7 +286,7 @@ def _load_obj(name): continue if "obj" not in locals(): - raise Impo...
- [x] ref #30454 - [ ] 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/30579
2019-12-31T12:11:41Z
2019-12-31T13:15:01Z
2019-12-31T13:15:01Z
2020-01-01T19:22:34Z
ENH: Add ignore_index to sort_index
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3810ab37822cc..1f25662bd6c20 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -221,6 +221,7 @@ Other enhancements - DataFrame constructor preserve `ExtensionArray` dtype with `ExtensionArray` (:issue:`...
- [x] closes #30114 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry @jreback I just looked back at #30114 and found out that i overlooked to add `ignore_index` to `sort_index`, and this might be the reason this i...
https://api.github.com/repos/pandas-dev/pandas/pulls/30578
2019-12-31T10:46:18Z
2020-01-03T13:10:49Z
2020-01-03T13:10:49Z
2020-02-13T00:54:28Z
CLN: Clean _test_moments_consistency in common.py
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index c3648bc619c50..77f59bf919168 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -212,40 +212,23 @@ def _create_data(self): super()._create_data() self.data = _consistency_data - def _te...
- [ ] xref #30486 #30542 - [ ] 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/30577
2019-12-31T08:38:02Z
2020-01-01T02:15:33Z
2020-01-01T02:15:33Z
2020-01-01T02:17:37Z
CLN: assorted cleanups
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8755abe642068..77c4ed6160dbe 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -794,6 +794,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` addition when adding a non-optimized :class:`DateOffset` inco...
Salvaging what I can from some abandoned branches.
https://api.github.com/repos/pandas-dev/pandas/pulls/30575
2019-12-30T23:01:39Z
2019-12-31T09:07:24Z
2019-12-31T09:07:24Z
2019-12-31T16:05:42Z
API: Raise when setting name via level
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 8223b831ebe2d..d6f5c0c758b60 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -565,19 +565,15 @@ When working with an ``Index`` object directly, rather than via a ``DataFrame``, mi2 ...
Closes https://github.com/pandas-dev/pandas/issues/29032 This is extremely ugly, but gets the job done. It's probably worth doing to avoid silently failing, but not sure. cc @topper-123.
https://api.github.com/repos/pandas-dev/pandas/pulls/30574
2019-12-30T22:52:50Z
2020-01-03T02:16:40Z
2020-01-03T02:16:40Z
2020-01-03T02:16:43Z
TYP: check_untyped_defs io.json._normalize
diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index aa14c3f3a63f3..c80b197214fc8 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -112,7 +112,7 @@ def nested_to_record( def _json_normalize( data: Union[Dict, List[Dict]], record_path: Optional[Union[st...
pandas\io\json\_normalize.py:282: error: Argument 1 to "zip" has incompatible type "Union[str, List[Any], None]"; expected "Iterable[Any]" pandas\io\json\_normalize.py:299: error: Argument 1 to "zip" has incompatible type "Union[str, List[Any], None]"; expected "Iterable[Any]"
https://api.github.com/repos/pandas-dev/pandas/pulls/30573
2019-12-30T22:34:50Z
2019-12-31T12:27:11Z
2019-12-31T12:27:11Z
2019-12-31T14:04:09Z
TYP: check_untyped_defs various
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index e8fd390456f82..0a1a1376bfc8d 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -169,9 +169,9 @@ def __new__(cls) -> "DataFrame": # type: ignore # our Unpickler sub-class to override methods and som...
pandas\core\dtypes\generic.py:7: error: 'classmethod' used with a non-method pandas\core\config_init.py:310: error: Name 'get_ipython' is not defined pandas\core\indexes\category.py:588: error: Need type annotation for 'missing' (hint: "missing: List[<type>] = ...")
https://api.github.com/repos/pandas-dev/pandas/pulls/30572
2019-12-30T22:07:17Z
2019-12-31T12:27:26Z
2019-12-31T12:27:25Z
2019-12-31T14:03:19Z
PERF: Fixed performance regression in Series init
diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py index 1dda51da49ffb..4a06ea9500770 100644 --- a/pandas/core/dtypes/base.py +++ b/pandas/core/dtypes/base.py @@ -276,10 +276,12 @@ def is_dtype(cls, dtype) -> bool: return False elif isinstance(dtype, cls): return Tru...
Closes https://github.com/pandas-dev/pandas/issues/30564 PR ``` [ 50.00%] ··· series_methods.SeriesConstructor.time_constructor ok [ 50.00%] ··· ====== ========== data ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30571
2019-12-30T21:30:14Z
2019-12-31T16:12:03Z
2019-12-31T16:12:02Z
2019-12-31T16:12:10Z
CLN: refactor tests in test_moments_ewm.py
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index c3648bc619c50..e1f322622de48 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -348,3 +348,34 @@ def get_result(obj, obj2=None): result.index = result.index.droplevel(1) expected = get_resu...
- [ ] xref: #30486 #30542 - [ ] 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/30570
2019-12-30T21:28:36Z
2020-01-03T12:45:58Z
2020-01-03T12:45:58Z
2020-01-03T13:26:37Z
BUG: Change IntervalDtype.kind from None to "O"
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 8755abe642068..cfbe57be379ed 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -843,6 +843,7 @@ Interval - Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`CategoricalI...
- [X] closes #30568 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry This is partially blocking #28399 as tests are failing there due to `kind` being `None`. cc @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/30569
2019-12-30T21:08:55Z
2019-12-31T12:26:14Z
2019-12-31T12:26:14Z
2019-12-31T17:20:18Z
CLN: Clean test moments for expanding
diff --git a/pandas/tests/window/moments/test_moments_expanding.py b/pandas/tests/window/moments/test_moments_expanding.py index 3361ecab28669..117c6eda0d6c8 100644 --- a/pandas/tests/window/moments/test_moments_expanding.py +++ b/pandas/tests/window/moments/test_moments_expanding.py @@ -173,19 +173,24 @@ def test_expa...
- xref #30486 #30542 - [ ] 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/30566
2019-12-30T20:51:29Z
2020-01-01T02:36:20Z
2020-01-01T02:36:20Z
2020-01-01T02:36:27Z
TYP: Add return types to some top-level func
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 108e24ffee820..9ff968bc554e4 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1356,7 +1356,7 @@ def date_range( name=None, closed=None, **kwargs, -): +) -> DatetimeIndex: ""...
Adds return type hints to some top-level funcs. I will take the rest over 1-2 more PRs. Having return types typed up will be good for the user experience (better piping etc.).
https://api.github.com/repos/pandas-dev/pandas/pulls/30565
2019-12-30T20:49:30Z
2019-12-31T09:08:04Z
2019-12-31T09:08:04Z
2019-12-31T12:37:14Z
ENH: Allow absolute precision in assert_almost_equal (#13357)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 567b6853bd633..622e7be4ba831 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -781,6 +781,9 @@ Deprecations - The ``squeeze`` keyword in the ``groupby`` function is deprecated and will be removed in a ...
closes #9457 Greetings! This is my first pull-request on an open source project, so I hope I did not miss anything at least too obvious... Thank you, in advance :smile: I do have a few questions: * Should I add the `versionadded` directive in all docstrings that were changed? * Which "whatsnew" release notes...
https://api.github.com/repos/pandas-dev/pandas/pulls/30562
2019-12-30T19:23:21Z
2020-06-24T22:25:21Z
2020-06-24T22:25:20Z
2022-11-12T11:40:12Z
BLD: Fix IntervalTree build warnings
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index 333c05f7c0dc5..316c9e5b7e5f0 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -6,12 +6,20 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in from pandas._libs.algos im...
- [X] closes #27169 - [X] closes #30365 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` xref #30366 cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/30560
2019-12-30T17:28:58Z
2020-01-01T02:45:56Z
2020-01-01T02:45:55Z
2020-01-01T03:32:42Z
[TST] Test DataFrame.append with other dtypes
diff --git a/pandas/tests/frame/methods/test_append.py b/pandas/tests/frame/methods/test_append.py index fac6a9139462f..1d6935795b0e4 100644 --- a/pandas/tests/frame/methods/test_append.py +++ b/pandas/tests/frame/methods/test_append.py @@ -177,3 +177,19 @@ def test_append_timestamps_aware_or_naive(self, tz_naive_fixtu...
- [x] closes #30445 - [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/30558
2019-12-30T13:11:54Z
2019-12-30T17:49:41Z
2019-12-30T17:49:41Z
2019-12-30T17:54:27Z
DOC: Document behaviour of head(n), tail(n) for negative values of n except on GroupBy
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 08c7f38ce4c82..e4999ea3cc576 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4652,6 +4652,9 @@ def head(self: FrameOrSeries, n: int = 5) -> FrameOrSeries: on position. It is useful for quickly testing if your object ...
- [x] xref #30192 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Output of `python3 scripts/validate_docstrings.py pandas.DataFrame.head` ```bash ################################################################...
https://api.github.com/repos/pandas-dev/pandas/pulls/30556
2019-12-30T10:55:14Z
2019-12-30T22:13:40Z
2019-12-30T22:13:40Z
2019-12-30T22:13:49Z
TST: Regression testing for fixed issues
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 8f88f68c69f2b..795f76d94cc25 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -588,6 +588,20 @@ def test_groupby_multiple_columns(df, op): tm.assert_series_equal(result, exp...
- [x] closes #5764 - [x] closes #7883 - [x] closes #7820 - [x] closes #8720 - [x] closes #6783 - [x] closes #7072 - [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/30554
2019-12-30T07:00:09Z
2019-12-31T15:04:45Z
2019-12-31T15:04:44Z
2020-01-01T01:43:01Z
TST/BUG: fix incorrectly-passing Exception in test_html
diff --git a/pandas/io/html.py b/pandas/io/html.py index 809ce77eef0bb..75cb0fafaa6b3 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_...
A `raise` is indented one indent further than it should be. Fixing this surfaces a failing test that is fixed by decoding bytes before passing it to bs4.
https://api.github.com/repos/pandas-dev/pandas/pulls/30553
2019-12-30T03:23:00Z
2020-01-18T17:20:04Z
2020-01-18T17:20:04Z
2020-01-18T17:24:11Z
TYP: check_untyped_defs core.computation.eval
diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py index dbfd6c04eee32..9c5388faae1bd 100644 --- a/pandas/core/computation/engines.py +++ b/pandas/core/computation/engines.py @@ -3,6 +3,7 @@ """ import abc +from typing import Dict, Type from pandas.core.computation.align import ...
pandas\core\computation\eval.py:334: error: Cannot instantiate abstract class 'AbstractEngine' with abstract attribute '_evaluate'
https://api.github.com/repos/pandas-dev/pandas/pulls/30551
2019-12-29T22:08:29Z
2019-12-30T13:28:32Z
2019-12-30T13:28:32Z
2019-12-30T13:55:41Z
TYP: check_untyped_defs pandas.core.computation.align
diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py index 57348ad3b81a0..a1b1cffdd1d76 100644 --- a/pandas/core/computation/align.py +++ b/pandas/core/computation/align.py @@ -2,10 +2,12 @@ """ from functools import partial, wraps +from typing import Dict, Optional, Sequence, Tuple, Typ...
pandas\core\computation\align.py:22: error: Incompatible types in assignment (expression has type "Type[Any]", variable has type "partial[Any]") pandas\core\computation\align.py:26: error: Incompatible types in assignment (expression has type "Tuple[partial[Any], None]", variable has type "Tuple[partial[Any]]") panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/30550
2019-12-29T21:38:07Z
2019-12-31T12:41:02Z
2019-12-31T12:41:02Z
2019-12-31T14:02:44Z
TYP: check_untyped_defs astype_nansafe
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index a8fcd6d03847c..f0cc3e1c3ae59 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -524,7 +524,7 @@ def astype(self, dtype, copy=True): na_value = np.nan # coerce data = self._coer...
``` pandas\core\arrays\integer.py:549: error: Argument "copy" to "astype_nansafe" has incompatible type "None"; expected "bool" pandas\core\arrays\boolean.py:527: error: Argument "copy" to "astype_nansafe" has incompatible type "None"; expected "bool" ```
https://api.github.com/repos/pandas-dev/pandas/pulls/30548
2019-12-29T20:55:00Z
2019-12-30T13:08:30Z
2019-12-30T13:08:30Z
2019-12-30T13:54:33Z
CLN: Update old .format to f-string
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index a8fcd6d03847c..b030a9a9cf139 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -755,9 +755,8 @@ def logical_method(self, other): if other_is_scalar and not (other is libmissing.NA or lib.is_bo...
Reviewed and updated to f-string for: pandas/compat/pickle_compat.py pandas/_config/config.py pandas/core/arrays/boolean.py - [x] Contributes to #29547 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Marking p...
https://api.github.com/repos/pandas-dev/pandas/pulls/30547
2019-12-29T20:47:00Z
2019-12-30T08:09:56Z
2019-12-30T08:09:55Z
2019-12-30T08:10:07Z
DEPR: DataFrame GroupBy indexing with single items DeprecationWarning
diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst index 69bb700c97b15..4e284fe7b5968 100644 --- a/doc/source/getting_started/comparison/comparison_with_sas.rst +++ b/doc/source/getting_started/comparison/comparison_with_sas.rst @@ ...
- [x] closes #23566 - [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/30546
2019-12-29T20:11:10Z
2020-01-03T02:13:49Z
2020-01-03T02:13:48Z
2020-01-03T03:05:19Z
CLN: Remove dead IntervalIndex code
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index ce0716e36cdf3..52df491725504 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -103,19 +103,6 @@ def _get_prev_label(label): raise TypeError(f"cannot determine next label for type {repr(type...
xref https://github.com/pandas-dev/pandas/pull/30459#issuecomment-568992710
https://api.github.com/repos/pandas-dev/pandas/pulls/30545
2019-12-29T19:27:11Z
2019-12-30T13:09:20Z
2019-12-30T13:09:20Z
2019-12-30T21:47:31Z
TST: XFAIL Travis read_html tests
diff --git a/.travis.yml b/.travis.yml index 0c7740295b637..25b7cd02a6599 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,17 +48,12 @@ matrix: - mysql - postgresql - # In allow_failures - env: - JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow" SQL="1" s...
- [x] xref #29622
https://api.github.com/repos/pandas-dev/pandas/pulls/30544
2019-12-29T18:56:08Z
2019-12-31T17:22:06Z
2019-12-31T17:22:06Z
2019-12-31T17:22:13Z
REF: Refactor window/test_moments.py
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index 1dfc0f34b2b8d..c3648bc619c50 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -3,7 +3,8 @@ import numpy as np from numpy.random import randn -from pandas import DataFrame, Series, bdate_range +from pand...
- [x] xref #30486 - [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/30542
2019-12-29T17:51:33Z
2019-12-30T17:52:57Z
2019-12-30T17:52:57Z
2019-12-30T21:01:43Z
TYP: Implicit generic "Any" for builtins
diff --git a/pandas/_typing.py b/pandas/_typing.py index 69b08c581cff9..7b89486751f12 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -23,21 +23,29 @@ from pandas.core.indexes.base import Index # noqa: F401 from pandas.core.series import Series # noqa: F401 from pandas.core.generic import NDF...
xref #30539
https://api.github.com/repos/pandas-dev/pandas/pulls/30541
2019-12-29T16:31:27Z
2019-12-31T14:36:42Z
2019-12-31T14:36:42Z
2020-01-05T19:48:25Z
CI: Travis default version of python to 3.7
diff --git a/.travis.yml b/.travis.yml index 0c7740295b637..0a5af6d4348c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: python -python: 3.5 +python: 3.7 # To turn off cached cython files and compiler cache # set NOCACHE-true
- [x] closes #30538 - [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/30540
2019-12-29T15:29:42Z
2019-12-30T13:09:59Z
2019-12-30T13:09:59Z
2019-12-31T11:06:07Z
CLN: update check_untyped_defs setup.cfg
diff --git a/setup.cfg b/setup.cfg index 8fb602188dad5..ab02f4fce183f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -232,9 +232,6 @@ check_untyped_defs=False [mypy-pandas.core.indexes.multi] check_untyped_defs=False -[mypy-pandas.core.indexes.timedeltas] -check_untyped_defs=False - [mypy-pandas.core.indexing] check_u...
https://api.github.com/repos/pandas-dev/pandas/pulls/30535
2019-12-29T09:55:48Z
2019-12-30T13:13:23Z
2019-12-30T13:13:23Z
2019-12-30T13:57:25Z
CI: Web_and_Docs failing
diff --git a/environment.yml b/environment.yml index ab10d8b7e0b20..46fb5e7a19078 100644 --- a/environment.yml +++ b/environment.yml @@ -70,7 +70,7 @@ dependencies: - blosc - bottleneck>=1.2.1 - ipykernel - - ipython>=5.6.0 + - ipython>=5.6.0,<=7.10.1 # see gh-30527 - jinja2 # pandas.Styler - matplotl...
- [ ] closes #30527 - [ ] 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/30534
2019-12-29T09:50:26Z
2019-12-29T14:17:45Z
2019-12-29T14:17:45Z
2019-12-29T14:27:28Z