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: avoid _get_engine_target in _get_nearest_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 9a669a19053b0..6c33510ddf1bc 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -163,7 +163,6 @@ ) if TYPE_CHECKING: - from pandas import ( CategoricalIndex, DataFrame, @@ -172,6 +171,7 @@ ...
A step towards supporting arbitrary EA-backed Indexes
https://api.github.com/repos/pandas-dev/pandas/pulls/43238
2021-08-26T20:28:29Z
2021-09-13T13:18:32Z
2021-09-13T13:18:32Z
2021-09-13T14:39:44Z
PERF: DataFrame(dict_of_categoricals)
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index b355ae2426884..7213c03aa3a9c 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1859,12 +1859,20 @@ def construction_error( # ----------------------------------------------------------------...
``` from asv_bench.benchmarks.frame_ctor import * self = FromDicts() self.setup() %timeit self.time_dict_of_categoricals() 1.48 ms ± 61.1 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master 528 µs ± 2.75 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43237
2021-08-26T17:02:57Z
2021-08-27T00:04:00Z
2021-08-27T00:04:00Z
2021-08-27T00:53:17Z
BUG: groupby.apply incorrectly dropping nan
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index d8e9e70ec7227..dd53fd187d38e 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` constructor failing to broadcast for defined :cla...
- [x] closes #43205 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43236
2021-08-26T16:49:20Z
2021-09-06T15:19:38Z
2021-09-06T15:19:37Z
2021-09-07T09:00:31Z
Added example to Dataframe.get docs
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 11c63aba43aac..b2f8006daf176 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3991,6 +3991,38 @@ def get(self, key, default=None): Returns ------- value : same type as items contained in object + + E...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry @MarcoGorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/43233
2021-08-26T16:23:51Z
2021-08-27T10:56:35Z
2021-08-27T10:56:34Z
2021-08-27T11:21:50Z
CLN: remove unused pandas-gbq tests
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py deleted file mode 100644 index e6be3f0567f67..0000000000000 --- a/pandas/tests/io/test_gbq.py +++ /dev/null @@ -1,223 +0,0 @@ -from contextlib import ExitStack as does_not_raise -from datetime import datetime -import os -import platform -import rand...
Closes #43214 These tests are not run in CI. I'll replace these with tests in the pandas-gbq repo (https://github.com/googleapis/python-bigquery-pandas/issues/379) - [x] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/...
https://api.github.com/repos/pandas-dev/pandas/pulls/43231
2021-08-26T16:02:36Z
2021-08-26T18:26:35Z
2021-08-26T18:26:34Z
2021-08-26T20:27:16Z
CLN: remove _index_data
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index c3faa00dce4c7..77fd4d94d05ac 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -64,9 +64,6 @@ cdef class _BaseGrouper: cdef inline _update_cached_objs(self, object cached_series, object cached_index, ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43229
2021-08-26T14:51:39Z
2021-09-02T23:16:22Z
2021-09-02T23:16:22Z
2021-09-02T23:17:43Z
Resolving Index Resetting for tz_localize
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 450ecc85c725b..d2683ebf4694a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -276,7 +276,7 @@ Timedelta Timezones ^^^^^^^^^ -- +- Bug in :meth:`Series.dt.tz_convert` resetting index in a :class:`Se...
- [x] closes #43080 - [x] tests added / passed I have added a test function `test_series_tz_localize_matching_index` in `test_tz_localize.py` - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsne...
https://api.github.com/repos/pandas-dev/pandas/pulls/43226
2021-08-26T14:15:56Z
2021-09-05T09:34:06Z
2021-09-05T09:34:06Z
2021-09-05T10:58:51Z
Added example for Dataframe.align
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b2f8006daf176..1f51576cc6e90 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8508,6 +8508,71 @@ def align( ------- (left, right) : ({klass}, type of other) Aligned objects. + + Examples + ...
- [ ] closes #42125 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry @MarcoGorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/43225
2021-08-26T14:05:03Z
2021-08-28T19:56:49Z
2021-08-28T19:56:49Z
2021-08-28T19:57:56Z
REF: share Index.putmask with ExtensionIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index e5f12ec53a6d4..584d4ad51bb8b 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4857,6 +4857,7 @@ def _concat(self, to_concat: list[Index], name: Hashable) -> Index: result = concat_compat(to_concat_vals) ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43221
2021-08-26T04:18:49Z
2021-09-01T15:50:51Z
2021-09-01T15:50:51Z
2021-09-01T15:55:44Z
BUG: MultiIndex.putmask
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 450ecc85c725b..14c9626eb6d27 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -325,6 +325,7 @@ MultiIndex - Bug in :meth:`MultiIndex.get_loc` where the first level is a :class:`DatetimeIndex` and a str...
- [x] closes #43212 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43219
2021-08-25T23:22:20Z
2021-08-30T15:12:24Z
2021-08-30T15:12:24Z
2021-08-30T15:33:34Z
TST: unhoused test_offsets fn to custom business hour (#27045)
diff --git a/pandas/tests/tseries/offsets/test_custom_business_hour.py b/pandas/tests/tseries/offsets/test_custom_business_hour.py index c2b4e3c343c11..8bc06cdd45a50 100644 --- a/pandas/tests/tseries/offsets/test_custom_business_hour.py +++ b/pandas/tests/tseries/offsets/test_custom_business_hour.py @@ -308,3 +308,21 @...
- [ ] xref #27085 (chips away at, yes) - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry * https://github.com/pandas-dev/pandas/pull/42284 * https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/43218
2021-08-25T22:29:44Z
2021-08-27T23:56:07Z
2021-08-27T23:56:07Z
2021-08-28T05:42:58Z
REF: avoid need for get_join_target in join_non_unique
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 60ab99df6eec9..35e07e864736c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4092,8 +4092,6 @@ def join( join_index, (left_indexer, right_indexer) """ other = ensure_index(other) - ...
Avoid a use of get_join_target to move towards allowing arbitrary EA-backed Index
https://api.github.com/repos/pandas-dev/pandas/pulls/43217
2021-08-25T22:26:06Z
2021-09-02T23:17:03Z
2021-09-02T23:17:03Z
2021-09-03T01:20:35Z
TYP: assorted
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index 9da5534c51321..60279395724ff 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -3,6 +3,8 @@ from typing import Any import numpy as np +from pandas._typing import npt + class Infinity: """ Provide a positive Infinity com...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43216
2021-08-25T22:25:28Z
2021-09-02T23:19:34Z
2021-09-02T23:19:34Z
2021-09-02T23:23:06Z
BUG: groupby agg fails silently with mixed dtypes
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index a4a5bed14d416..ccc475a74e13a 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`.Gr...
- [x] closes #43209 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43213
2021-08-25T18:49:07Z
2021-09-29T22:47:18Z
2021-09-29T22:47:17Z
2021-10-19T22:02:01Z
TST: categorical reindex with added categories
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 3c1614ac9f153..729cfb8a5667e 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -43,6 +43,7 @@ Series, Timedelta, Timestamp, + cut, date_range, ...
- [x] closes #42424 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry The bug is specifically in the Interval index. The error arises in the example code from ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43210
2021-08-25T12:29:47Z
2021-08-30T16:50:38Z
2021-08-30T16:50:38Z
2021-08-30T18:23:18Z
DOC: ecosystem pandas-stubs information
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index e58779c090d8f..78caf360519b6 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -575,3 +575,17 @@ Library Accessor Classes Description .. _composeml: https://github.com/alteryx/compos...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Added information about pandas-stubs to both the .rst and .md ecosystem doc files. closes https://github.com...
https://api.github.com/repos/pandas-dev/pandas/pulls/43207
2021-08-25T10:33:03Z
2021-09-09T00:19:44Z
2021-09-09T00:19:44Z
2021-09-09T06:30:25Z
REF: fast_xs avoid object dtype
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d0dad26cfb275..e558e18d183e1 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -941,13 +941,11 @@ def fast_xs(self, loc: int) -> ArrayLike: n = len(self) if isinstance(dty...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43203
2021-08-25T02:47:24Z
2021-08-30T15:56:24Z
2021-08-30T15:56:24Z
2021-08-30T17:37:20Z
CLN: remove no-longer-used
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d0dad26cfb275..f0dce1ab839b8 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1859,7 +1859,7 @@ def construction_error( # ------------------------------------------------------------------...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43200
2021-08-24T16:27:50Z
2021-08-25T19:04:24Z
2021-08-25T19:04:23Z
2021-08-25T19:11:46Z
BUG: convert_dtypes incorrectly converts byte strings to strings in 1.3+
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 05667264ad9af..937162e154335 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
- [x] closes #43183 - [x] tests added / passed in the test_convert_dtypes.py file - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Added extra try except block to identify the correct ty...
https://api.github.com/repos/pandas-dev/pandas/pulls/43199
2021-08-24T13:42:46Z
2021-10-17T11:04:06Z
2021-10-17T11:04:05Z
2021-10-17T16:56:34Z
DOC: OSX -> macOS
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 53e66eeff51e6..6fe0fa82236c3 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -181,7 +181,7 @@ run this command, though it may tak...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43193
2021-08-24T00:41:52Z
2021-08-25T19:53:06Z
2021-08-25T19:53:06Z
2021-08-26T01:14:55Z
DEPS: bump sqlalchemy min support version to 1.4.0
diff --git a/ci/deps/actions-38-db-min.yaml b/ci/deps/actions-38-db-min.yaml index f875f2ef88949..41d80c89f6f6d 100644 --- a/ci/deps/actions-38-db-min.yaml +++ b/ci/deps/actions-38-db-min.yaml @@ -44,4 +44,4 @@ dependencies: # sql - psycopg2=2.8.4 - pymysql=0.10.1 - - sqlalchemy=1.3.11 + - sqlalchemy=1.4.0 d...
precursor of #42976
https://api.github.com/repos/pandas-dev/pandas/pulls/43191
2021-08-23T23:31:42Z
2021-11-29T20:32:08Z
2021-11-29T20:32:08Z
2022-01-17T20:04:58Z
REF: remove libreduction.SeriesBinGrouper
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 4d3bdde357e88..c3faa00dce4c7 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -93,105 +93,6 @@ cdef class _BaseGrouper: return res, initialized -cdef class SeriesBinGrouper(_BaseGrouper): - """ - Per...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry xref #40263
https://api.github.com/repos/pandas-dev/pandas/pulls/43189
2021-08-23T22:57:59Z
2021-08-31T23:40:13Z
2021-08-31T23:40:13Z
2021-09-01T01:23:25Z
BUG: pickle Index[object] preserve dtype
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index e2b42a0ea14f5..5d487c4723a0d 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -377,6 +377,7 @@ I/O - Bug in :func:`read_fwf`, where difference in lengths of ``colspecs`` and ``names`` was not raising `...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry xref #43155
https://api.github.com/repos/pandas-dev/pandas/pulls/43188
2021-08-23T22:43:52Z
2021-09-04T23:53:40Z
2021-09-04T23:53:40Z
2021-09-05T00:51:50Z
TST: Test renaming a multiindex with duplicates (GH 38015)
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index b04a76093a002..479d048d35fbd 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -119,3 +119,13 @@ def test_multiindex_co...
- [x] closes #38015 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry This is my first real contribution, I appreciate the feedback!
https://api.github.com/repos/pandas-dev/pandas/pulls/43187
2021-08-23T21:10:15Z
2021-09-08T01:54:01Z
2021-09-08T01:54:00Z
2021-09-08T01:54:45Z
CLN: tests, annotations
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 36c0d024369e6..8916c1688344b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4816,7 +4816,6 @@ def reindex(self: FrameOrSeries, *args, **kwargs) -> FrameOrSeries: axes, level, limit, tolerance, method, fill_value, copy ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43186
2021-08-23T17:03:28Z
2021-08-25T19:08:27Z
2021-08-25T19:08:27Z
2021-08-25T19:12:57Z
PERF: copy blklocs/blknos in BlockManager.apply
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d0dad26cfb275..db6e2753ed698 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -330,7 +330,8 @@ def apply( if ignore_failures: return self._combine(result_blocks) - ...
Avoids a call to _rebuild_blknos_and_blklocs, which in e.g. time_reset_datetimeindex is 34 microseconds
https://api.github.com/repos/pandas-dev/pandas/pulls/43185
2021-08-23T16:56:17Z
2021-08-31T23:30:30Z
2021-08-31T23:30:30Z
2021-08-31T23:34:38Z
TST: MultiIndex with complex
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index 41c2c61154f08..b04a76093a002 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -98,3 +98,24 @@ def test_multiindex_with...
- [x] closes #42145 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them This has been resolved in the master. I think adding a test will close it.
https://api.github.com/repos/pandas-dev/pandas/pulls/43184
2021-08-23T16:52:36Z
2021-08-26T17:04:55Z
2021-08-26T17:04:54Z
2021-08-26T17:19:27Z
REF: implement IntervalIndex._get_indexer_unique_sides
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index c401ad0c1e0d5..0b9b818b960a0 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -648,12 +648,11 @@ def _get_indexer( ) -> npt.NDArray[np.intp]: if isinstance(target, IntervalIndex): - ...
Follow-up cleanup to get_indexer work
https://api.github.com/repos/pandas-dev/pandas/pulls/43182
2021-08-23T15:10:35Z
2021-09-14T18:17:49Z
2021-09-14T18:17:49Z
2021-09-14T18:29:26Z
ENH: `styler.render.repr` option
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 1ba7ea21d6c8c..1193dff4361b4 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -487,6 +487,8 @@ styler.sparse.index True "Sparsify" MultiIndex displ ...
offers option switching between "html" and "latex" output. adds items to #41395. also xref #39911 (technically after DataFrame.to_html is deprecated) - [x] adds option - [x] adds tests - [x] updates options.rst docs - [x] no public method docstrings - [x] whatsnew update to styler user guide as follo...
https://api.github.com/repos/pandas-dev/pandas/pulls/43180
2021-08-23T13:35:35Z
2021-09-01T23:03:25Z
2021-09-01T23:03:25Z
2021-09-02T05:13:11Z
ENH: `styler.render.encoding` option
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 41e0b754cfa81..c415616affcd5 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -489,6 +489,7 @@ styler.sparse.columns True "Sparsify" MultiIndex displ ...
This pandas option is added to allow the `Styler` options to be independent from the others. See #41395 - [x] add option - [x] add tests - [x] whats new - [x] update function docstrings `to_latex` and `to_html` will update styler user guide (do as a follow on). encoding also applies to saving to files ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43177
2021-08-23T13:23:45Z
2021-09-01T15:53:48Z
2021-09-01T15:53:48Z
2021-09-01T16:22:47Z
BUG: rolling with Int64
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7b1f44d25d5ae..f197683349506 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -356,7 +356,7 @@ Groupby/resample/rolling - Bug in :meth:`pandas.DataFrame.ewm`, where non-float64 dtypes were silently fai...
- [x] closes #43016 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43174
2021-08-23T03:32:35Z
2021-08-31T19:54:23Z
2021-08-31T19:54:23Z
2021-09-06T10:54:12Z
TST: Add testing to df.where() typecasting as per GH 42295
diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py index e23a893e0538d..eaafd2f017e79 100644 --- a/pandas/tests/frame/indexing/test_where.py +++ b/pandas/tests/frame/indexing/test_where.py @@ -771,3 +771,13 @@ def test_where_non_keyword_deprecation(): result = s....
- [x] closes #42295 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them This makes sure that df.where does not cast floats to integers.
https://api.github.com/repos/pandas-dev/pandas/pulls/43173
2021-08-23T02:00:52Z
2021-08-26T21:16:10Z
2021-08-26T21:16:09Z
2021-08-26T21:16:33Z
BUG: Pass index data correctly in groupby.transform/agg w/ engine=numba
diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 1340188c3d609..3dee3aa5e7c7a 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -25,7 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`.DataFrameGroupBy.agg` and :meth:`.DataFrameGro...
- [x] closes #43133 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43172
2021-08-22T23:57:32Z
2021-08-27T13:52:26Z
2021-08-27T13:52:26Z
2021-08-27T17:26:09Z
PERF: Rolling._apply
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index 157e90d6e8b0a..475bfe958ea06 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -1034,27 +1034,6 @@ def quantile( axes = [qs, self._axes[1]] return type(s...
- [x] closes #42736 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry ``` from asv_bench.benchmarks.rolling import * self = Engine() self.setup("DataFrame"...
https://api.github.com/repos/pandas-dev/pandas/pulls/43171
2021-08-22T23:15:14Z
2021-08-25T00:39:04Z
2021-08-25T00:39:04Z
2021-08-25T02:12:26Z
TST: DataFrame.mad with nullable dtype
diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py index 5f769946335ed..886cdfb7d76b0 100644 --- a/pandas/tests/frame/test_reductions.py +++ b/pandas/tests/frame/test_reductions.py @@ -1686,6 +1686,48 @@ def test_minmax_extensionarray(method, numeric_only): tm.assert_series_...
- [x] closes #33036 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43170
2021-08-22T22:59:49Z
2021-08-23T23:06:31Z
2021-08-23T23:06:31Z
2021-08-23T23:12:14Z
Backport PR #43166 on branch 1.3.x (Pin aiobotocore to get ci passing)
diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml index 03f2bc84bcc01..8704c65b5a83d 100644 --- a/ci/deps/actions-39.yaml +++ b/ci/deps/actions-39.yaml @@ -30,6 +30,7 @@ dependencies: - python-dateutil - pytz - s3fs>=0.4.2 + - aiobotocore<=1.3.3 - scipy - sqlalchemy - xlrd diff --git a/c...
Backport PR #43166: Pin aiobotocore to get ci passing
https://api.github.com/repos/pandas-dev/pandas/pulls/43169
2021-08-22T21:32:54Z
2021-08-23T11:29:05Z
2021-08-23T11:29:05Z
2021-08-23T11:29:19Z
Pin aiobotocore to get ci passing
diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml index a78fb30019b53..530e095895b77 100644 --- a/ci/deps/actions-39.yaml +++ b/ci/deps/actions-39.yaml @@ -31,6 +31,7 @@ dependencies: - python-dateutil - pytz - s3fs>=0.4.2 + - aiobotocore<=1.3.3 - scipy - sqlalchemy - xlrd diff --git a/c...
- [x] xref #43168 Aiobotocore got an upgrade from 1.3.3 to 1.4.0, looks like this broke our ci This comes with s3fs. The new release handles the dependency, but is not on conda-forge yet
https://api.github.com/repos/pandas-dev/pandas/pulls/43166
2021-08-22T18:20:34Z
2021-08-22T21:30:23Z
2021-08-22T21:30:23Z
2021-08-22T21:32:27Z
Fixed all warning.warn messages for space,full-stop etc issues
diff --git a/pandas/__init__.py b/pandas/__init__.py index 82593a932d0dd..68ca20338e99b 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -207,7 +207,7 @@ def __getattr__(name): warnings.warn( "The pandas.np module is deprecated " "and will be removed from pandas in a future...
I have fixed all the warning.warn messages in the entire code base for "Minor typo on warnings #39158" reported issue. closes #39158 Summary of the changes . [Fix-Tracking-Sheet (2).xlsx](https://github.com/pandas-dev/pandas/files/7030053/Fix-Tracking-Sheet.2.xlsx)
https://api.github.com/repos/pandas-dev/pandas/pulls/43163
2021-08-22T12:22:52Z
2021-08-25T17:55:55Z
2021-08-25T17:55:55Z
2021-08-25T17:55:56Z
Backport PR #38704 on branch 1.2.x (DOC: Start v1.2.1 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 310857faec436..55e3971502c0a 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.2 .. toctree:: :maxdepth: 2 + v1.2.1 v1.2.0 Version 1.1 diff --git a/doc/source/whatsne...
Backport PR #38704: DOC: Start v1.2.1 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/38706
2020-12-26T17:23:22Z
2020-12-26T18:24:25Z
2020-12-26T18:24:25Z
2020-12-26T18:24:25Z
TST: Add match=msg to all pytest.raises in pandas/tests/io/json
diff --git a/pandas/tests/io/json/test_json_table_schema.py b/pandas/tests/io/json/test_json_table_schema.py index 06e7c96277fd6..215d663e68d8f 100644 --- a/pandas/tests/io/json/test_json_table_schema.py +++ b/pandas/tests/io/json/test_json_table_schema.py @@ -439,7 +439,11 @@ def test_to_json_categorical_index(self): ...
This pull request partially addresses xref #30999 to remove bare `pytest.raises` by adding `match=msg`. It doesn't close that issue as I have only addressed test modules in tje pandas/tests/io/json directory. I also moved a couple of lines out of the `pytest.raises` context to make clear which pandas method was rais...
https://api.github.com/repos/pandas-dev/pandas/pulls/38705
2020-12-26T15:53:44Z
2020-12-27T22:57:01Z
2020-12-27T22:57:00Z
2020-12-27T22:57:19Z
DOC: Start v1.2.1 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index aa8a7a389adee..e07abffd95545 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.2 .. toctree:: :maxdepth: 2 + v1.2.1 v1.2.0 Version 1.1 diff --git a/doc/source/whatsne...
https://api.github.com/repos/pandas-dev/pandas/pulls/38704
2020-12-26T15:27:24Z
2020-12-26T17:23:05Z
2020-12-26T17:23:05Z
2020-12-26T17:23:10Z
Backport PR #38678 on branch 1.2.x (DOC: 1.2.0 release date)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3330ab1178804..93cb1939a4e84 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_120: -What's new in 1.2.0 (??) ------------------------- +What's new in 1.2.0 (December 26, 202...
Backport PR #38678: DOC: 1.2.0 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/38702
2020-12-26T11:26:21Z
2020-12-26T12:27:25Z
2020-12-26T12:27:25Z
2020-12-26T12:27:25Z
DEPR MultiIndex.is_lexsorted and MultiIndex.lexsort_depth
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 8446b384b8fb8..1a8c21a2c1a74 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -301,7 +301,6 @@ MultiIndex components MultiIndex.set_codes MultiIndex.to_flat_index MultiIndex.to_f...
- [x] closes #32259 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The issue is that `is_lexsorted` only looks at whether the _codes_ are sorted - the order of the codes doesn't necessarily reflect the sorting of th...
https://api.github.com/repos/pandas-dev/pandas/pulls/38701
2020-12-26T09:49:04Z
2021-01-04T00:15:57Z
2021-01-04T00:15:57Z
2022-08-10T18:49:12Z
CLN: remove unnecessary casting from Block methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index aca7373983a61..ea1b8259eeadd 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -26,7 +26,6 @@ find_common_type, infer_dtype_from, infer_dtype_from_scalar, - maybe_box_datetimelike, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38700
2020-12-26T00:16:36Z
2020-12-26T02:37:32Z
2020-12-26T02:37:32Z
2020-12-26T03:13:29Z
Backport PR #38679 on branch 1.2.x (Revert "Deprecated casting an object-dtype index of datetime objects to DatetimeIndex in the Series constructor (23598)")
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3d069cf11b571..3330ab1178804 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -524,7 +524,6 @@ Deprecations - Deprecated indexing :class:`DataFrame` rows with a single datetime-like string as ``df[stri...
Backport PR #38679: Revert "Deprecated casting an object-dtype index of datetime objects to DatetimeIndex in the Series constructor (23598)"
https://api.github.com/repos/pandas-dev/pandas/pulls/38699
2020-12-25T23:18:02Z
2020-12-26T10:53:42Z
2020-12-26T10:53:42Z
2020-12-26T10:53:42Z
BUG: Fix pd.json_normalize to not skip the first element of a generator input
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 83bff6d7bfb2d..cc3d4d7edc153 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -263,6 +263,8 @@ I/O - Allow custom error values for parse_dates argument of :func:`read_sql`, :func:`read_sql_query` and :...
- [x] closes #35923 - [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/38698
2020-12-25T14:57:06Z
2020-12-30T14:08:34Z
2020-12-30T14:08:33Z
2020-12-30T14:08:38Z
TST: GH30999 Add match=msg to all pytest.raises in tests/indexes
diff --git a/pandas/tests/indexes/multi/test_indexing.py b/pandas/tests/indexes/multi/test_indexing.py index 6bce89c520ce6..b6f131e5c1c9b 100644 --- a/pandas/tests/indexes/multi/test_indexing.py +++ b/pandas/tests/indexes/multi/test_indexing.py @@ -526,7 +526,7 @@ def test_get_loc_duplicates(self): xp = 0 ...
This pull request partially addresses xref #30999 to remove bare pytest.raises by adding match=msg. It doesn't close that issue as I have only addressed modules in pandas/tests/indexes I made a few of the raised errors more specific types. There are two other changes that are a bit more complex but I will put specif...
https://api.github.com/repos/pandas-dev/pandas/pulls/38697
2020-12-25T14:51:32Z
2020-12-31T16:25:22Z
2020-12-31T16:25:22Z
2020-12-31T16:25:27Z
Updated PULL_REQUEST_TEMPLATE.md
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7c3870470f074..7fb5a6ddf2024 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,4 @@ - [ ] closes #xxxx - [ ] tests added / passed -- [ ] passes `black pandas` -- [ ] passes `git diff up...
- [ ] closes #38696 - [ ] tests added / passed - [ ] passes `pre-commit run --from-ref=upstream/master --to-ref=HEAD --all-files` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38696
2020-12-25T13:59:23Z
2021-01-04T01:35:29Z
2021-01-04T01:35:29Z
2021-01-04T04:45:57Z
TST: GH30999 Add match=msg to all pytest.raises in tests/generic/methods/test_sample.py
diff --git a/pandas/tests/generic/methods/test_sample.py b/pandas/tests/generic/methods/test_sample.py index b26a3785f918d..6c1c352d8286c 100644 --- a/pandas/tests/generic/methods/test_sample.py +++ b/pandas/tests/generic/methods/test_sample.py @@ -66,69 +66,78 @@ def test_sample_lengths(self, obj): def test_sam...
This pull request partially addresses xref #30999 to remove bare `pytest.raises` by adding `match=msg`. It doesn't close that issue as I have only addressed one test module: pandas/tests/generic/methods/test_sample.py The only other thing I did was move a few lines out of the `pytest.raises` context as they were se...
https://api.github.com/repos/pandas-dev/pandas/pulls/38695
2020-12-25T11:56:33Z
2020-12-27T22:11:48Z
2020-12-27T22:11:48Z
2020-12-27T22:11:51Z
TST: Inconsistent behavior of .replace() in Int64 series with NA
diff --git a/pandas/tests/series/methods/test_replace.py b/pandas/tests/series/methods/test_replace.py index d2d564be88942..b619c9c9632e3 100644 --- a/pandas/tests/series/methods/test_replace.py +++ b/pandas/tests/series/methods/test_replace.py @@ -208,6 +208,15 @@ def test_replace_with_dict_with_bool_keys(self): ...
- [ ] closes #38267 - [ ] 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/38693
2020-12-25T08:47:35Z
2020-12-28T14:55:46Z
2020-12-28T14:55:46Z
2020-12-28T14:55:49Z
REF: make pd._testing a directory
diff --git a/pandas/_testing.py b/pandas/_testing.py deleted file mode 100644 index f96645b3805f0..0000000000000 --- a/pandas/_testing.py +++ /dev/null @@ -1,3158 +0,0 @@ -import bz2 -from collections import Counter -from contextlib import contextmanager -from datetime import datetime -from functools import wraps -impo...
We've accumulated some other helpers outside of pd._testing that id like to move there (xref #38688). This is a good time to split the large file.
https://api.github.com/repos/pandas-dev/pandas/pulls/38689
2020-12-24T22:02:10Z
2020-12-28T00:42:01Z
2020-12-28T00:42:01Z
2020-12-28T01:19:04Z
TST: implement tm.check_setitem_equivalents
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 3b3b1e6c14a8f..24359809065b1 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -1581,3 +1581,23 @@ def get_op_from_name(op_name: str) -> Callable: op = lambda x, y: rop(y, x) return op + + +# -------...
- [ ] 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/38688
2020-12-24T21:49:55Z
2020-12-28T15:27:03Z
2020-12-28T15:27:03Z
2020-12-28T15:40:13Z
CLN: algos.searchsorted
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 1061eb087318b..2098392cf70a9 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -11,7 +11,7 @@ import numpy as np -from pandas._libs import Timestamp, algos, hashtable as htable, iNaT, lib +from pandas._libs import algo...
https://api.github.com/repos/pandas-dev/pandas/pulls/38686
2020-12-24T18:56:58Z
2020-12-24T20:30:13Z
2020-12-24T20:30:13Z
2020-12-24T20:36:10Z
post-merge fixup
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index a3744519e9c2b..138a19779b831 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1063,15 +1063,12 @@ def putmask(self, mask, new, axis: int = 0) -> List["Block"]: # We only get here for n...
#38674 combined with #38677 lead to a NameError this fixes
https://api.github.com/repos/pandas-dev/pandas/pulls/38685
2020-12-24T17:57:07Z
2020-12-24T18:59:22Z
2020-12-24T18:59:22Z
2020-12-24T19:05:46Z
Add match=msg to pytest.raises or convert to external_error_raised for modules in tests/plotting
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py index 3cf72edcc505e..f0e15c19da5d3 100644 --- a/pandas/plotting/_matplotlib/core.py +++ b/pandas/plotting/_matplotlib/core.py @@ -1232,8 +1232,8 @@ def _get_stacked_values(cls, ax: "Axes", stacking_id, values, label): rais...
This pull request xref #30999 to remove bare `pytest.raises`. It doesn't close that issue as I have only addressed files within `pandas/tests/plotting/`. Things I did that were not simple adding `match = msg` to `pytest.raises` or converting them to `tm.external_error_raised`: - In `pandas/plotting/_matplotlib/_c...
https://api.github.com/repos/pandas-dev/pandas/pulls/38684
2020-12-24T16:07:43Z
2020-12-24T19:03:02Z
2020-12-24T19:03:02Z
2020-12-24T19:10:37Z
REF: simplify coerce_to_target_dtype
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 27acd720b6d71..79db2c449d484 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -39,9 +39,7 @@ from pandas.core.dtypes.common import ( DT64NS_DTYPE, TD64NS_DTYPE, - is_bool_dtype, i...
- [ ] 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/38683
2020-12-24T15:24:26Z
2020-12-24T20:32:09Z
2020-12-24T20:32:09Z
2020-12-24T20:35:28Z
Backport PR #38654 on branch 1.2.x ([BUG] Concat duplicates errors (or lack there of))
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 03480ae198345..65e52e03c43c7 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -5,7 +5,6 @@ from pandas._libs import lib import pandas as pd -from pandas.core.algorithms import make_d...
Backport PR #38654: [BUG] Concat duplicates errors (or lack there of)
https://api.github.com/repos/pandas-dev/pandas/pulls/38682
2020-12-24T15:08:49Z
2020-12-24T16:24:26Z
2020-12-24T16:24:26Z
2020-12-24T16:24:26Z
BUG: DataFrame.rank with np.inf and np.nan
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index b6d5493aefaa9..607a14c696578 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -212,6 +212,7 @@ Numeric - Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing incorrect subsequent in...
- [x] closes #32593 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Seemed like two distinct issues here - first `np.inf` wasn't distinguished from `np.nan` (https://github.com/pandas-dev/pandas/issues/32593#issuecom...
https://api.github.com/repos/pandas-dev/pandas/pulls/38681
2020-12-24T15:03:41Z
2020-12-30T21:11:28Z
2020-12-30T21:11:28Z
2020-12-30T21:57:24Z
CLN: Add typing for dtype argument in io/sql.py
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index d4aab05b22adf..aa4bcd8b1565a 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -7,7 +7,7 @@ from datetime import date, datetime, time from functools import partial import re -from typing import Any, Dict, Iterator, List, Optional, Sequence, Union, overload...
Follow up PR for #37546: - Added typing `Optional[DtypeArg]` for dtype arg in pandas/io, since those functions accept single values and dicts as `dtype` args - Added typing `Optional[Dtype]` for dtype arg in pandas/core, since those functions only accept a single value as `dtype` args - Added typing `Optional[NpDt...
https://api.github.com/repos/pandas-dev/pandas/pulls/38680
2020-12-24T14:55:29Z
2020-12-29T14:08:23Z
2020-12-29T14:08:23Z
2020-12-29T14:56:38Z
Revert "Deprecated casting an object-dtype index of datetime objects to DatetimeIndex in the Series constructor (23598)"
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6dc0d0cfaf80b..d947b6a495a75 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -524,7 +524,6 @@ Deprecations - Deprecated indexing :class:`DataFrame` rows with a single datetime-like string as ``df[stri...
This **partially** reverts commit 90a61350b1be7a200238212bd8d118a25a4d3d95. - [ ] closes #38182 - [ ] 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/38679
2020-12-24T12:16:19Z
2020-12-25T23:16:52Z
2020-12-25T23:16:52Z
2020-12-26T10:03:57Z
DOC: 1.2.0 release date
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3330ab1178804..93cb1939a4e84 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_120: -What's new in 1.2.0 (??) ------------------------- +What's new in 1.2.0 (December 26, 202...
- [ ] 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/38678
2020-12-24T11:31:03Z
2020-12-26T11:25:51Z
2020-12-26T11:25:51Z
2020-12-26T11:25:56Z
CLN: simplify Block.putmask
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 27acd720b6d71..2c19765b1e6a2 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1029,9 +1029,7 @@ def _putmask_simple(self, mask: np.ndarray, value: Any): # GH#37833 np.putmask is more p...
https://api.github.com/repos/pandas-dev/pandas/pulls/38677
2020-12-24T05:01:01Z
2020-12-24T17:49:04Z
2020-12-24T17:49:04Z
2020-12-24T17:50:39Z
REF: share Index.difference
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8d48a6277d412..edb8cd57b31bd 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2906,8 +2906,13 @@ def difference(self, other, sort=None): other, result_name = self._convert_can_do_setop(other) i...
- [ ] 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/38676
2020-12-24T04:16:44Z
2020-12-24T17:48:05Z
2020-12-24T17:48:05Z
2020-12-24T17:50:15Z
REF: dispatch TDBlock._can_hold_element to TimedeltaArray._validate_setitem_value
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0985be5193200..def2a2dbd61cf 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8858,7 +8858,7 @@ def _where( elif len(cond[icond]) == len(other): # try to not change dtype at first - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38674
2020-12-24T03:07:09Z
2020-12-24T17:47:18Z
2020-12-24T17:47:18Z
2020-12-24T17:59:07Z
TST: arithmetic test parametrization/cleanup
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 2b2be214428d2..58345aa22eac1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2077,7 +2077,7 @@ def objects_to_datetime64ns( require_iso8601=require_iso8601, ) result...
https://api.github.com/repos/pandas-dev/pandas/pulls/38673
2020-12-24T03:06:05Z
2020-12-24T16:50:46Z
2020-12-24T16:50:46Z
2020-12-24T17:08:06Z
REF: share Index.union
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index edb8cd57b31bd..e425ee1a78de5 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2656,12 +2656,59 @@ def union(self, other, sort=None): >>> idx2 = pd.Index([1, 2, 3, 4]) >>> idx1.union(idx2) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38671
2020-12-24T00:01:43Z
2020-12-24T21:57:14Z
2020-12-24T21:57:14Z
2020-12-24T22:27:58Z
Backport PR #38571 on branch 1.2.x (DEPR: Adjust read excel behavior for xlrd >= 2.0)
diff --git a/ci/deps/azure-38-slow.yaml b/ci/deps/azure-38-slow.yaml index 2b4339cf12658..9651837f26114 100644 --- a/ci/deps/azure-38-slow.yaml +++ b/ci/deps/azure-38-slow.yaml @@ -30,7 +30,7 @@ dependencies: - moto>=1.3.14 - scipy - sqlalchemy - - xlrd<2.0 + - xlrd>=2.0 - xlsxwriter - xlwt - moto d...
Backport PR #38571: DEPR: Adjust read excel behavior for xlrd >= 2.0
https://api.github.com/repos/pandas-dev/pandas/pulls/38670
2020-12-23T23:02:09Z
2020-12-24T01:11:39Z
2020-12-24T01:11:39Z
2020-12-24T01:11:40Z
Backport PR #38657 on branch 1.2.x (DOC/CI: fix class alias docstrings for sphinx 3.4 + unpin sphinx)
diff --git a/doc/source/conf.py b/doc/source/conf.py index 15e7a13ff5b72..951a6d4043786 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -687,6 +687,30 @@ def process_class_docstrings(app, what, name, obj, options, lines): lines[:] = joined.split("\n") +_BUSINED_ALIASES = [ + "pandas.tseries....
Backport PR #38657: DOC/CI: fix class alias docstrings for sphinx 3.4 + unpin sphinx
https://api.github.com/repos/pandas-dev/pandas/pulls/38669
2020-12-23T22:37:19Z
2020-12-24T01:11:24Z
2020-12-24T01:11:24Z
2020-12-24T01:11:25Z
BUG: `scatter_matrix` raising with 2d axis passed
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 7730242800e7b..6060551be0755 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -261,6 +261,7 @@ Period Plotting ^^^^^^^^ +- Bug in :func:`scatter_matrix` raising when 2d ``ax`` argument passed (:issu...
- [x] closes #16253 - [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/38668
2020-12-23T21:12:48Z
2020-12-23T23:29:48Z
2020-12-23T23:29:48Z
2020-12-23T23:59:26Z
CLN: Rolling _prep_values
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 43d09fbaace3b..426107c7c6b60 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -32,9 +32,7 @@ from pandas.core.dtypes.common import ( ensure_float64, is_bool, - is_float_dtype, is_integer,...
- [ ] 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/38666
2020-12-23T20:20:46Z
2020-12-23T22:33:50Z
2020-12-23T22:33:49Z
2020-12-23T22:36:25Z
REF: Index.__new__
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 275c977e9b37b..802f605e37f42 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -66,6 +66,12 @@ validate_all_hashable, ) from pandas.core.dtypes.concat import concat_compat +from pandas.core.dtypes.dtypes impo...
Aiming towards sharing more of this with Series and pd.array
https://api.github.com/repos/pandas-dev/pandas/pulls/38665
2020-12-23T20:20:08Z
2020-12-29T18:21:55Z
2020-12-29T18:21:55Z
2020-12-29T18:25:51Z
CLN: Rolling helper attributes
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 43d09fbaace3b..326fa3b028ce0 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -27,7 +27,7 @@ from pandas._typing import ArrayLike, Axis, FrameOrSeries, FrameOrSeriesUnion from pandas.compat._optional impo...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `is_datetimelike` was just an internal check and can be in-lined `_on` can just be calculated once in the init
https://api.github.com/repos/pandas-dev/pandas/pulls/38664
2020-12-23T19:36:27Z
2020-12-23T21:40:20Z
2020-12-23T21:40:20Z
2021-01-04T16:32:07Z
Develop pre check
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4ea29aef2736..1e818e4ef2306 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,6 +89,9 @@ repos: # No direct imports from conftest conftest\ import| import\ conftest + + # Check...
- [ x] closes #37957 - [ ] 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/38663
2020-12-23T19:20:30Z
2020-12-27T12:19:34Z
2020-12-27T12:19:33Z
2020-12-28T03:49:56Z
REF: collect dt64<->dt64tz astype in dtypes.cast
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index aa1d8f6254e2c..2b2be214428d2 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -24,6 +24,7 @@ ) from pandas.errors import PerformanceWarning +from pandas.core.dtypes.cast import astype_dt64_to_dt...
From here its straightforward to put the rest of Block._astype directly in astype_nansafe
https://api.github.com/repos/pandas-dev/pandas/pulls/38662
2020-12-23T19:07:44Z
2020-12-23T23:30:33Z
2020-12-23T23:30:33Z
2020-12-23T23:49:52Z
CLN: numba.prange usage
diff --git a/pandas/core/groupby/numba_.py b/pandas/core/groupby/numba_.py index 76f50f1387196..5c983985628ad 100644 --- a/pandas/core/groupby/numba_.py +++ b/pandas/core/groupby/numba_.py @@ -89,10 +89,6 @@ def generate_numba_agg_func( numba_func = jit_user_function(func, nopython, nogil, parallel) numba =...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/38417#discussion_r547925255
https://api.github.com/repos/pandas-dev/pandas/pulls/38661
2020-12-23T17:54:43Z
2020-12-23T20:05:46Z
2020-12-23T20:05:46Z
2020-12-23T20:05:58Z
Backport PR #38456 on branch 1.2.x (DOC: update wording about when xlrd engine can be used)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 965833c013c03..eba097cd8c345 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2820,15 +2820,40 @@ parse HTML tables in the top-level pandas io function ``read_html``. Excel files ----------- -The :func:`~p...
Backport PR #38456: DOC: update wording about when xlrd engine can be used
https://api.github.com/repos/pandas-dev/pandas/pulls/38660
2020-12-23T17:04:38Z
2020-12-23T19:29:33Z
2020-12-23T19:29:33Z
2020-12-23T19:29:34Z
TST: fix rest of mpl warnings
diff --git a/pandas/tests/plotting/test_hist_method.py b/pandas/tests/plotting/test_hist_method.py index e2a36dc5d6a1b..c72e59658d346 100644 --- a/pandas/tests/plotting/test_hist_method.py +++ b/pandas/tests/plotting/test_hist_method.py @@ -34,14 +34,14 @@ def test_hist_legacy(self): _check_plot_works(self...
- [x] closes #18306 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/38659
2020-12-23T16:42:43Z
2020-12-23T18:50:05Z
2020-12-23T18:50:05Z
2020-12-23T19:26:05Z
Backport PR #38293 on branch 1.2.x (BUG: read_json does not respect chunksize)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8aae870d50716..89b4240afe694 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -567,6 +567,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.groupby` for ``float`` ``dtype`` (:...
Backport PR #38293: BUG: read_json does not respect chunksize
https://api.github.com/repos/pandas-dev/pandas/pulls/38658
2020-12-23T16:33:30Z
2020-12-23T18:12:58Z
2020-12-23T18:12:58Z
2020-12-23T18:12:58Z
DOC/CI: fix class alias docstrings for sphinx 3.4 + unpin sphinx
diff --git a/doc/source/conf.py b/doc/source/conf.py index 15e7a13ff5b72..951a6d4043786 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -687,6 +687,30 @@ def process_class_docstrings(app, what, name, obj, options, lines): lines[:] = joined.split("\n") +_BUSINED_ALIASES = [ + "pandas.tseries....
Closes #38600
https://api.github.com/repos/pandas-dev/pandas/pulls/38657
2020-12-23T11:49:38Z
2020-12-23T22:37:05Z
2020-12-23T22:37:05Z
2020-12-24T09:07:29Z
[BUG] Concat duplicates errors (or lack there of)
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 03480ae198345..65e52e03c43c7 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -5,7 +5,6 @@ from pandas._libs import lib import pandas as pd -from pandas.core.algorithms import make_d...
- [ ] closes #6963 - [ ] xref #36263, #36290 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry @jreback So here is a basic proposal for making `concat` throw a more useful error when there are duplicate values on ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38654
2020-12-23T06:38:13Z
2020-12-24T15:08:03Z
2020-12-24T15:08:03Z
2021-01-12T23:04:12Z
BUG: MultiIndex, IntervalIndex intersection with Categorical
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 65bfd8289fe3d..3b5bc5dbd6c83 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -212,7 +212,7 @@ Strings Interval ^^^^^^^^ - +- Bug in :meth:`IntervalIndex.intersection` always returning object-dtype ...
- [ ] 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/38653
2020-12-23T05:38:11Z
2020-12-23T19:35:25Z
2020-12-23T19:35:25Z
2020-12-23T20:16:29Z
REF: use DatetimeArray._validate_setitem_value for DatetimeBlock._can_hold_element
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 79ecf8620c70c..9eba4f85f23f5 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -601,6 +601,10 @@ def _validate_listlike(self, value, allow_object: bool = False): if isinstance(va...
https://api.github.com/repos/pandas-dev/pandas/pulls/38651
2020-12-23T02:18:44Z
2020-12-23T16:02:38Z
2020-12-23T16:02:38Z
2020-12-23T17:02:34Z
BUG: Fix regression for groupby.indices in case of unused categories
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index a756239ee6798..804886fb987ad 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -18,7 +18,7 @@ Fixed regressions - :meth:`to_csv` created corrupted zip files when there were more rows than ``chunksize`` ...
- [x] closes #38642 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` To show the unused we categories, we can dispatch back as we did before #36842. Since Categorical does not support nan, the reason for the switch does not exist in this ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38649
2020-12-22T23:58:34Z
2020-12-29T23:16:30Z
2020-12-29T23:16:30Z
2020-12-30T09:10:38Z
REF: standardize get_indexer/get_indexer_non_unique code
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index cebbfac16019e..ff6ff98fb7840 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1233,7 +1233,7 @@ def reset_identity(values): # so we resort to this # GH 14776, 30667 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38648
2020-12-22T23:22:11Z
2020-12-23T14:29:21Z
2020-12-23T14:29:21Z
2020-12-23T15:22:24Z
TST/BUG: _gen_two_subplots always adding subplot even with passed axis
diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 1f94e18d8e622..d31f57426a721 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -626,7 +626,8 @@ def _gen_two_subplots(f, fig, **kwargs): """ Create plot on two subplots forcefully created. ...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` `kwargs.get("ax", fig.add_subplot(211))` was always adding a subplot (since the argument to `.get()` will be evaluated even if it doesn't need to be used). Assuming the intended behavior was ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38646
2020-12-22T23:07:24Z
2020-12-23T14:34:06Z
2020-12-23T14:34:06Z
2020-12-23T14:49:02Z
REF: use _should_compare to short-circuit set operations
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f5b9d0194833a..06cc995e7a8b9 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2796,14 +2796,18 @@ def intersection(self, other, sort=False): """ self._validate_sort_keyword(sort) self._a...
https://api.github.com/repos/pandas-dev/pandas/pulls/38643
2020-12-22T21:49:32Z
2020-12-23T14:36:41Z
2020-12-23T14:36:41Z
2020-12-23T15:21:49Z
ENH/ERR: More consistent error reporting with invalid win_type in rolling
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 53f254aee2e0e..bca8b8e4febf2 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -42,6 +42,7 @@ Other enhancements - Added :meth:`MultiIndex.dtypes` (:issue:`37062`) - Added ``end`` and ``end_day`` optio...
- [x] closes #15969 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Also in-lining methods that were only used once and moving a BaseIndexer test that was using `win_type`
https://api.github.com/repos/pandas-dev/pandas/pulls/38641
2020-12-22T21:24:52Z
2020-12-23T14:27:49Z
2020-12-23T14:27:48Z
2021-01-04T17:50:11Z
Backport PR #38533 on branch 1.2.x (BUG&TST: HTML formatting error in Styler.render() in rowspan attribute)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index fe80a3b5d6d0c..8aae870d50716 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -768,6 +768,10 @@ Plotting - Bug in :meth:`DataFrame.plot` and :meth:`Series.plot` was overwriting matplotlib's shared y ax...
Backport PR #38533: BUG&TST: HTML formatting error in Styler.render() in rowspan attribute
https://api.github.com/repos/pandas-dev/pandas/pulls/38640
2020-12-22T20:34:22Z
2020-12-22T22:21:32Z
2020-12-22T22:21:32Z
2020-12-22T22:21:32Z
Backport PR #38638 on branch 1.2.x (BUG: Fix regression in pandas merge)
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 2c6cdb846221f..95fdb21824234 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -859,7 +859,7 @@ def _maybe_add_join_keys(self, result, left_indexer, right_indexer): mask_right = right_indexer ==...
Backport PR #38638: BUG: Fix regression in pandas merge
https://api.github.com/repos/pandas-dev/pandas/pulls/38639
2020-12-22T19:22:50Z
2020-12-22T21:02:15Z
2020-12-22T21:02:15Z
2020-12-22T21:02:15Z
BUG: Fix regression in pandas merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index ebdfff5227026..1354e72cadc5a 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -865,7 +865,7 @@ def _maybe_add_join_keys(self, result, left_indexer, right_indexer): mask_right = right_indexer ==...
- [x] closes #38616 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Since this is a regression on master I think a whatsnew is not necessary?
https://api.github.com/repos/pandas-dev/pandas/pulls/38638
2020-12-22T17:50:03Z
2020-12-22T19:22:19Z
2020-12-22T19:22:19Z
2020-12-22T20:02:03Z
REF: simplify logic in assert_produces_warning
diff --git a/pandas/_testing.py b/pandas/_testing.py index cad95ca571258..7786eeeb46797 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -16,6 +16,7 @@ ContextManager, List, Optional, + Sequence, Tuple, Type, Union, @@ -2715,65 +2716,101 @@ class for all warnings. To check th...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Simplified logic in ``assert_produces_warning`` by extracting functions ``_assert_caught_expected_warning``, ``_assert_caught_no_extra_warnings`` and...
https://api.github.com/repos/pandas-dev/pandas/pulls/38637
2020-12-22T17:43:02Z
2020-12-22T21:04:05Z
2020-12-22T21:04:05Z
2020-12-22T21:04:09Z
TYP: Extend typing to allow passing Index to_datetime
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 1553deeef4059..69f11484237a3 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -32,7 +32,7 @@ guess_datetime_format, ) from pandas._libs.tslibs.strptime import array_strptime -from pandas._typing ...
ArrayConvertible should be able to accept Index or Series type as well This extends it to use AnyArrayLike instead of ArrayLike. - [ x] passes `black pandas` - [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/38634
2020-12-22T15:43:59Z
2020-12-23T15:52:41Z
2020-12-23T15:52:41Z
2021-04-14T07:14:01Z
Backport PR #37905 on branch 1.2.x (BUG: groupby resample different results with .agg() vs .mean() )
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bbdcd183f65e1..28c0094881159 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -792,8 +792,9 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.quantile` and :meth:`.Resampler.quantile` raise...
Backport PR #37905: BUG: groupby resample different results with .agg() vs .mean()
https://api.github.com/repos/pandas-dev/pandas/pulls/38633
2020-12-22T14:07:50Z
2020-12-22T15:41:58Z
2020-12-22T15:41:58Z
2020-12-22T15:41:58Z
Backport PR #37534 on branch 1.2.x (BUG: error raise when column contains percentage)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bbdcd183f65e1..d34175b9c4feb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -748,6 +748,7 @@ I/O - Bumped minimum xarray version to 0.12.3 to avoid reference to the removed ``Panel`` class (:issue:`2...
Backport PR #37534: BUG: error raise when column contains percentage
https://api.github.com/repos/pandas-dev/pandas/pulls/38632
2020-12-22T13:59:10Z
2020-12-22T15:16:43Z
2020-12-22T15:16:43Z
2020-12-22T15:16:43Z
DOC: capitalize NumPy as proper noun
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index e37d4cc05c8c7..7629870a8de66 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -163,7 +163,7 @@ Selection .. note:: - While standard Python / Numpy expressions for selecting and setting are + ...
In a similar vein to https://github.com/pandas-dev/pandas/pull/37808 - [ ] 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/38631
2020-12-22T02:54:32Z
2020-12-22T20:39:45Z
2020-12-22T20:39:45Z
2020-12-22T20:51:52Z
REF: collected dtypes.cast and construction simplifications
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 5f67db0244a4a..261b13e52777b 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -32,7 +32,6 @@ is_extension_array_dtype, is_float_dtype, is_integer_dtype, - is_iterator, is_list_like, is_o...
Also catch a warning in an io test that has been bugging me.
https://api.github.com/repos/pandas-dev/pandas/pulls/38629
2020-12-22T02:03:44Z
2020-12-22T14:03:21Z
2020-12-22T14:03:21Z
2020-12-22T15:31:17Z
TST/REF: Delete duplicate hist tests
diff --git a/pandas/tests/plotting/test_series.py b/pandas/tests/plotting/test_series.py index d5c0b3af7fac8..0a521b81c6be7 100644 --- a/pandas/tests/plotting/test_series.py +++ b/pandas/tests/plotting/test_series.py @@ -365,90 +365,6 @@ def test_pie_nan(self): result = [x.get_text() for x in ax.texts] ...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The tests deleted in this pr are also found starting here: https://github.com/pandas-dev/pandas/blob/e4f425dddda6b299fe5f5e05f18f128302f8604c/pandas/tests/plotting/test_hist_method.py#L26-L27
https://api.github.com/repos/pandas-dev/pandas/pulls/38628
2020-12-22T00:24:13Z
2020-12-22T01:16:01Z
2020-12-22T01:16:01Z
2020-12-22T01:21:35Z
Bug: assert_produces_warning(None) not raising AssertionError with warning
diff --git a/pandas/_testing.py b/pandas/_testing.py index 2d74cc89b8063..cad95ca571258 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -2724,11 +2724,10 @@ class for all warnings. To check that no warning is returned, extra_warnings = [] for actual_warning in w: - if not expe...
- [x] closes #38620 - [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/38626
2020-12-21T20:14:12Z
2020-12-22T13:40:42Z
2020-12-22T13:40:41Z
2020-12-22T14:31:26Z
Backport PR #38613 on branch 1.2.x (CI: move py38 slow to azure #38429)
diff --git a/.travis.yml b/.travis.yml index 1ddd886699d38..31edc4872e907 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,12 +35,6 @@ matrix: fast_finish: true include: - - env: - - JOB="3.8, slow" ENV_FILE="ci/deps/travis-38-slow.yaml" PATTERN="slow" SQL="1" - services: - - mysql - ...
Backport PR #38613: CI: move py38 slow to azure #38429
https://api.github.com/repos/pandas-dev/pandas/pulls/38624
2020-12-21T20:02:56Z
2020-12-21T22:00:47Z
2020-12-21T22:00:47Z
2020-12-21T22:00:48Z
BUG: join not working correctly with MultiIndex and one dimension categorical
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index cb97fdeccd579..2143ec01295e7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -316,6 +316,7 @@ Reshaping - Bug in :meth:`DataFrame.unstack` with missing levels led to incorrect index names (:issue:`375...
- [x] closes #38502 - [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/38621
2020-12-21T19:31:30Z
2021-01-13T13:25:53Z
2021-01-13T13:25:52Z
2021-01-13T16:55:33Z