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 |
|---|---|---|---|---|---|---|---|
TST: mark test_wrong_url as requiring network | diff --git a/pandas/tests/io/xml/test_xml.py b/pandas/tests/io/xml/test_xml.py
index 823d155360908..bd84eb8f2e1bc 100644
--- a/pandas/tests/io/xml/test_xml.py
+++ b/pandas/tests/io/xml/test_xml.py
@@ -423,6 +423,7 @@ def test_url():
tm.assert_frame_equal(df_url, df_expected)
+@tm.network
def test_wrong_url(pa... | - [ ] 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/42354 | 2021-07-03T07:19:32Z | 2021-07-04T21:34:12Z | 2021-07-04T21:34:12Z | 2021-07-04T21:34:16Z |
PERF: DatetimeIndex.union | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 8da99961a0a24..316ddc67eb275 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -64,7 +64,6 @@
NDArrayBackedExtensionIndex,
inherit_names,
)
-from pandas.core.indexes.numeri... | ```
In [2]: dti = pd.date_range('2016-01-01', periods=10**5, freq="s")
In [3]: dti2 = dti.delete(50000)
In [4]: %timeit dti.union(dti2)
1.77 ms ± 7.97 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master
1.55 ms ± 9.29 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/42353 | 2021-07-03T03:28:17Z | 2021-07-04T21:33:46Z | 2021-07-04T21:33:46Z | 2021-07-04T21:42:51Z |
DEPR: ignoring missing labels when indexing on MultiIndex level | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index cb2a59860783f..7fe8f532e23ee 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -153,7 +153,7 @@ Deprecations
- Deprecated ``method`` argument in :meth:`Index.get_loc`, use ``index.get_indexer([label], m... | - [ ] closes #xxxx
- [ ] 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
There are a bunch of issues that boil down to this weird behavior. I need to track down th... | https://api.github.com/repos/pandas-dev/pandas/pulls/42351 | 2021-07-02T23:42:06Z | 2021-07-14T23:20:45Z | 2021-07-14T23:20:45Z | 2021-07-14T23:50:56Z |
BUG: Don't cache args during rolling/expanding.apply with numba engine | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 24f307f23f435..06f89ba62c3e4 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -189,7 +189,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
--
+- Bug in :meth:`Series.rolling.apply`, :... | - [x] closes #42287
- [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/42350 | 2021-07-02T21:59:52Z | 2021-07-04T18:13:18Z | 2021-07-04T18:13:18Z | 2021-07-05T23:21:16Z |
Backport PR #42312 on branch 1.3.x (DOC: Start v1.3.1 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 986cf43b80494..08f46a53cf2f1 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.3
.. toctree::
:maxdepth: 2
+ v1.3.1
v1.3.0
Version 1.2
diff --git a/doc/source/whatsne... | Backport PR #42312: DOC: Start v1.3.1 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/42348 | 2021-07-02T16:28:20Z | 2021-07-02T17:24:30Z | 2021-07-02T17:24:30Z | 2021-07-02T17:24:30Z |
ENH: Rename index when using DataFrame.reset_index | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index bb9c124bae68b..2239543bc841a 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -106,6 +106,7 @@ Other enhancements
- :meth:`read_table` now supports the argument ``storage_options`` (:issue:`39167`)
- ... | - [x] closes #6878
- [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
Probably the hardest part of this PR is choosing a good name for the new argument. As menti... | https://api.github.com/repos/pandas-dev/pandas/pulls/42346 | 2021-07-02T15:42:15Z | 2021-10-31T01:10:37Z | null | 2021-10-31T01:10:37Z |
DOC: fix docs after deprecation of args | diff --git a/pandas/core/series.py b/pandas/core/series.py
index c79ecd554bed5..800e8c7d88406 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -5072,9 +5072,9 @@ def between(self, left, right, inclusive="both") -> Series:
4 False
dtype: bool
- With `inclusive` set to ``Fal... | follows up an oversigh from #40628.
`False` was deprecated as an input so the example should be updated. | https://api.github.com/repos/pandas-dev/pandas/pulls/42342 | 2021-07-02T10:35:15Z | 2021-07-03T22:46:35Z | 2021-07-03T22:46:35Z | 2021-07-04T13:33:00Z |
For CI check | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1abb01099f977..64014704605dd 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2750,12 +2750,15 @@ def to_sql(
schema : str, optional
Specify the schema (if database flavor supports this). If None, use
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42341 | 2021-07-02T10:13:08Z | 2021-07-02T10:13:15Z | null | 2021-07-02T10:16:36Z | |
DOC: Unsuppress relevant dataframe in split-apply-combine guide | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 870ec6763c72f..a341b682ef436 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -391,7 +391,6 @@ something different for each of the columns. Thus, using ``[]`` similar to
getting a column fr... | Currently, the [user guide for groupby](https://pandas.pydata.org/docs/dev/user_guide/groupby.html#dataframe-column-selection-in-groupby) shows the following code, but it is unclear where the "C" and "D" columns come from.
:
table_method_func, raw=True, engine="numba"
)
+ ... | - [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
close #42273 | https://api.github.com/repos/pandas-dev/pandas/pulls/42339 | 2021-07-02T04:56:30Z | 2021-07-06T16:52:51Z | 2021-07-06T16:52:51Z | 2021-07-06T19:06:22Z |
PERF/REGR: revert #41785 | diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst
index 9c17a22bf6d52..65719a11243f8 100644
--- a/doc/source/whatsnew/v1.3.1.rst
+++ b/doc/source/whatsnew/v1.3.1.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Pandas could not be built on PyPy (:issue:`42355`)
- :class:`DataFra... | - [x] closes #42248
- [ ] 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/42338 | 2021-07-01T23:06:36Z | 2021-07-08T12:42:32Z | 2021-07-08T12:42:31Z | 2021-07-13T09:51:59Z |
Backport PR #42313 on branch 1.3.x (DOC: v1.3.0 release date) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b1ee8ca03d3ee..59ec974aab0a4 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_130:
-What's new in 1.3.0 (June ??)
------------------------------
+What's new in 1.3.0 (July 2... | Backport PR #42313: DOC: v1.3.0 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/42337 | 2021-07-01T18:50:52Z | 2021-07-01T20:39:32Z | 2021-07-01T20:39:32Z | 2021-07-01T20:39:34Z |
Backport PR #42334 on branch 1.3.x (PERF/REGR: restore IntervalIndex._intersection_non_unique) | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 845d21e18d287..94d7814151a25 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -808,7 +808,8 @@ def _intersection(self, other, sort):
# multiple NaNs
taken = other._intersec... | Backport PR #42334: PERF/REGR: restore IntervalIndex._intersection_non_unique | https://api.github.com/repos/pandas-dev/pandas/pulls/42336 | 2021-07-01T18:18:19Z | 2021-07-01T19:18:53Z | 2021-07-01T19:18:53Z | 2021-07-01T19:18:53Z |
BUG: Series.loc with MultiIndex whose first level is all-NaN | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index be91020d357b6..8608dffd58090 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -216,8 +216,9 @@ Interval
Indexing
^^^^^^^^
-- Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :class:... | - [x] closes #42055
- [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/42335 | 2021-07-01T17:06:31Z | 2021-07-15T04:24:14Z | 2021-07-15T04:24:14Z | 2021-07-15T04:38:12Z |
PERF/REGR: restore IntervalIndex._intersection_non_unique | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 134583833daac..36779504d014b 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -803,7 +803,8 @@ def _intersection(self, other, sort):
# multiple NaNs
taken = other._intersec... | - [ ] xref #42240
- [ ] 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
Reverts the rest of #41929 | https://api.github.com/repos/pandas-dev/pandas/pulls/42334 | 2021-07-01T15:53:09Z | 2021-07-01T18:17:50Z | 2021-07-01T18:17:50Z | 2021-07-02T13:36:36Z |
BENCH: update imports to allow testing against 1.2.5 | diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py
index 427af9307f2c9..159584d9120a5 100644
--- a/asv_bench/benchmarks/algos/isin.py
+++ b/asv_bench/benchmarks/algos/isin.py
@@ -1,6 +1,9 @@
import numpy as np
-from pandas.compat.numpy import np_version_under1p20
+try:
+ from pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/42330 | 2021-07-01T10:30:44Z | 2021-07-02T00:23:07Z | 2021-07-02T00:23:07Z | 2021-07-02T18:29:02Z | |
BUG: .loc with MultiIndex with tuple in level GH#27591 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index fa9c424351b00..2dcbef46e4f75 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -232,6 +232,7 @@ Interval
Indexing
^^^^^^^^
- Bug in :meth:`DataFrame.truncate` and :meth:`Series.truncate` when the obje... | - [x] closes #27591
- [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/42329 | 2021-06-30T20:55:22Z | 2021-08-08T23:30:36Z | 2021-08-08T23:30:35Z | 2021-08-09T01:50:17Z |
add Juneteenth to USFederalHolidayCalendar | diff --git a/pandas/tseries/holiday.py b/pandas/tseries/holiday.py
index 54ac116afe3cf..fc22846d28f9f 100644
--- a/pandas/tseries/holiday.py
+++ b/pandas/tseries/holiday.py
@@ -530,17 +530,17 @@ def merge(self, other, inplace=False):
"Columbus Day", month=10, day=1, offset=DateOffset(weekday=MO(2))
)
USThanksgiv... | * Add **Juneteenth National Independence Day**
* Standardize the [official federal holiday names](https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/#url=2021) | https://api.github.com/repos/pandas-dev/pandas/pulls/42328 | 2021-06-30T16:59:01Z | 2021-08-08T21:20:32Z | null | 2021-11-22T19:35:46Z |
Backport PR #42323 on branch 1.3.x (BUG: `Styler.to_latex` now doesn't manipulate the `Styler` object.) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 60dc7096c9d1e..b1ee8ca03d3ee 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -136,7 +136,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404
- Many features of the :... | Backport PR #42323: BUG: `Styler.to_latex` now doesn't manipulate the `Styler` object. | https://api.github.com/repos/pandas-dev/pandas/pulls/42327 | 2021-06-30T14:39:54Z | 2021-06-30T17:03:08Z | 2021-06-30T17:03:08Z | 2021-06-30T17:03:16Z |
REF: avoid try/except in maybe_mi_droplevel | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1abb01099f977..3724fe5b2c0bc 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3767,8 +3767,10 @@ class animal locomotion
if isinstance(index, MultiIndex):
try:
loc, new_index = index._get_lo... | Sits on top of #42315 | https://api.github.com/repos/pandas-dev/pandas/pulls/42326 | 2021-06-30T14:31:25Z | 2021-07-04T21:35:14Z | 2021-07-04T21:35:14Z | 2021-07-04T21:43:50Z |
WEB: Added theme dependent favicon | diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html
index 023bfe9e26b78..49990ac60fcd4 100644
--- a/web/pandas/_templates/layout.html
+++ b/web/pandas/_templates/layout.html
@@ -12,7 +12,7 @@
<title>pandas - Python Data Analysis Library</title>
<meta charset="utf-8">
... | - [x] closes #42314
- [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 a light mode version of the favicon based upon the .svgs in the static folder as wel... | https://api.github.com/repos/pandas-dev/pandas/pulls/42325 | 2021-06-30T13:11:23Z | 2021-07-09T13:16:22Z | 2021-07-09T13:16:22Z | 2021-07-09T13:16:26Z |
Backport PR #42318: PERF/REGR: symmetric_difference revert most of #41833 | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index dd123ae82ce49..e666b14b5d67c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3254,12 +3254,47 @@ def symmetric_difference(self, other, result_name=None, sort=None):
if result_name is None:
r... | Backport PR #42318 | https://api.github.com/repos/pandas-dev/pandas/pulls/42324 | 2021-06-30T09:51:39Z | 2021-06-30T14:34:30Z | 2021-06-30T14:34:30Z | 2021-06-30T14:34:39Z |
BUG: `Styler.to_latex` now doesn't manipulate the `Styler` object. | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 60dc7096c9d1e..b1ee8ca03d3ee 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -136,7 +136,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404
- Many features of the :... | - [x] closes #42320
- [x] tests added / passed
- [x] whatsnew entry not needed if included in 1.3.0 (although will be needed for 1.3.1)
| https://api.github.com/repos/pandas-dev/pandas/pulls/42323 | 2021-06-30T07:45:04Z | 2021-06-30T14:39:23Z | 2021-06-30T14:39:23Z | 2021-07-13T20:58:54Z |
Revert "Revert "REF: move shift logic from BlockManager to DataFrame"" | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8ccde3093cf70..6f621699aa5ae 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5279,28 +5279,45 @@ def shift(
axis = self._get_axis_number(axis)
ncols = len(self.columns)
- if axis == 1 and periods != 0 and fill_val... | Reverts pandas-dev/pandas#42317 which was a revert to backport for 1.3.0 release, this puts those changes back on master.
does not close perf issue as will still exist on master | https://api.github.com/repos/pandas-dev/pandas/pulls/42322 | 2021-06-30T07:31:53Z | 2021-07-02T20:30:47Z | null | 2021-07-02T21:03:14Z |
Backport PR #42317 on branch 1.3.x (Revert "REF: move shift logic from BlockManager to DataFrame") | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index cd127d9c9ec63..954ea24d0d8fc 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5285,45 +5285,28 @@ def shift(
axis = self._get_axis_number(axis)
ncols = len(self.columns)
+ if axis == 1 and periods != 0 and fill_val... | Backport PR #42317: Revert "REF: move shift logic from BlockManager to DataFrame" | https://api.github.com/repos/pandas-dev/pandas/pulls/42321 | 2021-06-30T07:26:16Z | 2021-06-30T09:19:45Z | 2021-06-30T09:19:45Z | 2021-06-30T09:19:45Z |
BUG: not dropping scalar-indexes MultiIndex levels | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index f8578d87e4cad..7681ac588d3ca 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -825,7 +825,15 @@ def _getitem_lowerdim(self, tup: tuple):
ax0 = self.obj._get_axis(0)
# ...but iloc should handle the tuple as simple... | - [ ] 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
There are a bunch of issues about inconsistent dropping of MultiIndex levels: #12827, #1863... | https://api.github.com/repos/pandas-dev/pandas/pulls/42319 | 2021-06-30T05:11:39Z | 2021-07-04T21:35:37Z | 2021-07-04T21:35:37Z | 2021-07-04T21:44:44Z |
PERF/REGR: symmetric_difference revert most of #41833 | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3cfa1f15fa118..53b5bf8f182bd 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3209,7 +3209,6 @@ def _wrap_difference_result(self, other, result):
# We will override for MultiIndex to handle empty results
... | - [ ] closes #42239
- [ ] 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
aimed at #42239 | https://api.github.com/repos/pandas-dev/pandas/pulls/42318 | 2021-06-30T04:29:57Z | 2021-06-30T09:01:11Z | 2021-06-30T09:01:10Z | 2021-06-30T14:25:17Z |
Revert "REF: move shift logic from BlockManager to DataFrame" | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6f621699aa5ae..8ccde3093cf70 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5279,45 +5279,28 @@ def shift(
axis = self._get_axis_number(axis)
ncols = len(self.columns)
+ if axis == 1 and periods != 0 and fill_val... | Reverts pandas-dev/pandas#40536
Discussed in #42246, we can revert for 1.3 without breaking anything, then un-revert in 1.4 and have some time to sort out the perf trouble. | https://api.github.com/repos/pandas-dev/pandas/pulls/42317 | 2021-06-30T03:30:42Z | 2021-06-30T07:25:47Z | 2021-06-30T07:25:47Z | 2021-06-30T07:26:26Z |
REF: remove drop_level kwarg from MultiIndex._get_loc_level | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c052b977ea07a..424041a59f3a9 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3765,11 +3765,15 @@ class animal locomotion
if isinstance(index, MultiIndex):
try:
- loc, new_index = index._get... | - [ ] 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/42315 | 2021-06-29T20:59:49Z | 2021-07-01T23:05:29Z | 2021-07-01T23:05:29Z | 2021-07-01T23:31:07Z |
DOC: v1.3.0 release date | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 60dc7096c9d1e..f22936e80fb29 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_130:
-What's new in 1.3.0 (June ??)
------------------------------
+What's new in 1.3.0 (July 2... | https://api.github.com/repos/pandas-dev/pandas/pulls/42313 | 2021-06-29T19:07:50Z | 2021-07-01T18:50:43Z | 2021-07-01T18:50:43Z | 2021-07-01T18:50:47Z | |
DOC: Start v1.3.1 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 0b27bb4d58d5e..1f04eb6f68ae8 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.3
.. toctree::
:maxdepth: 2
+ v1.3.1
v1.3.0
Version 1.2
diff --git a/doc/source/whatsne... | will fail till v1.3.0 tag exists | https://api.github.com/repos/pandas-dev/pandas/pulls/42312 | 2021-06-29T19:02:18Z | 2021-07-02T16:27:54Z | 2021-07-02T16:27:54Z | 2021-07-02T16:27:59Z |
BUG: don't silently ignore kwargs in get_indexer_for | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..31e9a3d9873b2 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -87,7 +87,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
Other API changes
^^^^^^... | - [ ] 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
- [x] whatsnew entry
At first I was thinking of deprecating, but decided that silently ignoring should be consid... | https://api.github.com/repos/pandas-dev/pandas/pulls/42310 | 2021-06-29T17:12:13Z | 2021-07-01T23:04:34Z | 2021-07-01T23:04:34Z | 2021-07-01T23:16:11Z |
WIP: PERF: Cythonize fillna | diff --git a/asv_bench/benchmarks/replace.py b/asv_bench/benchmarks/replace.py
index 2a115fb0b4fe3..c09e70915ef81 100644
--- a/asv_bench/benchmarks/replace.py
+++ b/asv_bench/benchmarks/replace.py
@@ -13,10 +13,25 @@ def setup(self, inplace):
rng = pd.date_range("1/1/2000", periods=N, freq="min")
data... | - [ ] closes #42147
- [ ] 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
Code is still pretty messy at this point, opening mainly for CI purposes. Also, this is my... | https://api.github.com/repos/pandas-dev/pandas/pulls/42309 | 2021-06-29T15:54:43Z | 2021-10-31T00:38:13Z | null | 2021-10-31T00:38:14Z |
REF: move casting from Index._get_indexer to Index.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 7b7b234a06eca..6d9d45b2cde71 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3462,6 +3462,18 @@ def get_indexer(
# Only call equals if we have same dtype to avoid inference/casting
retur... | - [ ] 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/42308 | 2021-06-29T15:38:33Z | 2021-07-01T23:06:07Z | 2021-07-01T23:06:07Z | 2021-07-01T23:25:57Z |
Auto backport of pr 42293 on 1.3.x | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index 26f13280c118f..845d21e18d287 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -61,6 +61,7 @@
from pandas.core.dtypes.dtypes import IntervalDtype
from pandas.core.dtypes.missing import is_valid_na_... | backport of pr #42293 | https://api.github.com/repos/pandas-dev/pandas/pulls/42306 | 2021-06-29T15:08:11Z | 2021-06-29T19:53:46Z | 2021-06-29T19:53:45Z | 2021-06-29T19:56:09Z |
DEPS: update setuptools min version | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3a07aae11dc1b..dca1a84867e72 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -110,7 +110,7 @@ repos:
entry: python scripts/generate_pip_deps_from_conda.py
files: ^(environment.yml|requirements-dev.txt)$
... | According to https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html, the min version of setuptools that support `entry_points` in `setup.cfg` is `51.0.0`. | https://api.github.com/repos/pandas-dev/pandas/pulls/42304 | 2021-06-29T14:51:46Z | 2021-08-03T19:33:58Z | 2021-08-03T19:33:58Z | 2021-08-17T04:17:01Z |
Revert "ENH: Add `method='table'` for EWM.mean" | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 97294fc02834b..d35770b720f7a 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -296,8 +296,5 @@ def time_apply(self, method):
table_method_func, raw=True, engine="numba"
)
- ... | Reverts pandas-dev/pandas#42273 | https://api.github.com/repos/pandas-dev/pandas/pulls/42302 | 2021-06-29T13:22:28Z | 2021-06-29T14:20:00Z | 2021-06-29T14:20:00Z | 2021-06-29T14:20:25Z |
ENH: `Styler.bar` extended to allow centering about the mean, value or callable | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index cc499204318c1..24965a38a4ce1 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1190,9 +1190,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "In version 0.20.0 the ... | This refactors `Styler.bar` to allow more flexible arguments to align bars, and an additional keyword `props` akin to other builtin methods that allow some customisation, demonstrated in the new user guide (image below)
- [x] closes #26070
- [x] tests added / passed
- [x] whats new
**All previous tests pass wit... | https://api.github.com/repos/pandas-dev/pandas/pulls/42301 | 2021-06-29T13:14:18Z | 2021-07-09T13:15:05Z | 2021-07-09T13:15:05Z | 2021-07-09T18:02:13Z |
Backport PR #42292 on branch 1.3.x (REGR: ExcelWriter fails when passed kwargs) | diff --git a/pandas/io/excel/_odswriter.py b/pandas/io/excel/_odswriter.py
index efef86329314b..fa2779b01d681 100644
--- a/pandas/io/excel/_odswriter.py
+++ b/pandas/io/excel/_odswriter.py
@@ -29,6 +29,7 @@ def __init__(
storage_options: StorageOptions = None,
if_sheet_exists: str | None = None,
... | Backport PR #42292: REGR: ExcelWriter fails when passed kwargs | https://api.github.com/repos/pandas-dev/pandas/pulls/42300 | 2021-06-29T12:29:32Z | 2021-06-29T13:54:00Z | 2021-06-29T13:54:00Z | 2021-06-29T13:54:01Z |
Backport PR #41283 on branch 1.3.x (TYP Series and DataFrame currently type-check as hashable) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 0641b32383125..60dc7096c9d1e 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -707,6 +707,7 @@ Other API changes
- Added new ``engine`` and ``**engine_kwargs`` parameters to :meth:`DataFrame.to_sql` to... | Backport PR #41283: TYP Series and DataFrame currently type-check as hashable | https://api.github.com/repos/pandas-dev/pandas/pulls/42299 | 2021-06-29T12:27:52Z | 2021-06-29T13:44:29Z | 2021-06-29T13:44:29Z | 2021-06-29T13:44:29Z |
Backport PR #42256 on branch 1.3.x (CI: fewer workers on windows) | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 5644ad46714d5..7c088622f9638 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -12,11 +12,13 @@ jobs:
ENV_FILE: ci/deps/azure-windows-37.yaml
CONDA_PY: "37"
PATTERN: "not slow and not network"
+ PYTEST_WORKERS... | Backport PR #42256: CI: fewer workers on windows | https://api.github.com/repos/pandas-dev/pandas/pulls/42298 | 2021-06-29T12:26:46Z | 2021-06-29T13:21:25Z | 2021-06-29T13:21:25Z | 2021-06-29T13:21:26Z |
Backport PR #41595 on branch 1.3.x (CI: Xfails on Python 3.10) | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 38b1aa9ae7047..4ef5b16e71e71 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -10,6 +10,12 @@ on:
paths-ignore:
- "doc/**"
+env:
+ PYTEST_WORKERS: "auto"
+ PANDAS_CI: 1
+ PATTER... | Backport PR #41595: CI: Xfails on Python 3.10 | https://api.github.com/repos/pandas-dev/pandas/pulls/42297 | 2021-06-29T12:26:18Z | 2021-06-29T13:20:53Z | 2021-06-29T13:20:53Z | 2021-06-29T13:20:53Z |
Backport PR #42273 on branch 1.3.x (ENH: Add `method='table'` for EWM.mean) | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index d35770b720f7a..97294fc02834b 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -296,5 +296,8 @@ def time_apply(self, method):
table_method_func, raw=True, engine="numba"
)
+ ... | Backport PR #42273: ENH: Add `method='table'` for EWM.mean | https://api.github.com/repos/pandas-dev/pandas/pulls/42296 | 2021-06-29T12:25:27Z | 2021-06-29T13:24:44Z | null | 2021-06-29T13:24:44Z |
CLN: MultiIndex._get_loc_level | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 82895ab9eb67a..8e729069367d7 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3769,8 +3769,10 @@ class animal locomotion
loc, new_index = index._get_loc_level(
key, level=0, drop_level=drop_l... | Trying to work through the inconsistencies here and its a beast. This just splits off some preliminary cleanup. | https://api.github.com/repos/pandas-dev/pandas/pulls/42294 | 2021-06-29T05:21:53Z | 2021-06-29T21:20:05Z | null | 2021-06-29T21:23:13Z |
PERF/REGR: IntervalIndex.intersection, PeriodIndex.get_loc | diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py
index e0f7a42dcfadd..134583833daac 100644
--- a/pandas/core/indexes/interval.py
+++ b/pandas/core/indexes/interval.py
@@ -61,6 +61,7 @@
from pandas.core.dtypes.dtypes import IntervalDtype
from pandas.core.dtypes.missing import is_valid_na_... | - [ ] 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
Should fix #42240, #42247, not checking the box because I jumped the gun last time. | https://api.github.com/repos/pandas-dev/pandas/pulls/42293 | 2021-06-29T04:38:51Z | 2021-06-29T12:31:40Z | 2021-06-29T12:31:39Z | 2021-06-29T18:49:04Z |
REGR: ExcelWriter fails when passed kwargs | diff --git a/pandas/io/excel/_odswriter.py b/pandas/io/excel/_odswriter.py
index efef86329314b..fa2779b01d681 100644
--- a/pandas/io/excel/_odswriter.py
+++ b/pandas/io/excel/_odswriter.py
@@ -29,6 +29,7 @@ def __init__(
storage_options: StorageOptions = None,
if_sheet_exists: str | None = None,
... | - [x] closes #42286
- [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
Seeing some open resource test failure in excel writer, but not sure why. Checking if they occur on CI too.
B... | https://api.github.com/repos/pandas-dev/pandas/pulls/42292 | 2021-06-29T03:16:45Z | 2021-06-29T12:29:22Z | 2021-06-29T12:29:22Z | 2021-07-01T00:58:59Z |
DOC: Only include numpy.std note for std, not all ddof methods | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5bd845534fc96..d27cf5e3a28bb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10557,6 +10557,7 @@ def mad(self, axis=None, skipna=None, level=None):
name1=name1,
name2=name2,
axis_descr=axis_des... | I noticed that this note was mistakenly added to all methods that use `num_ddof_doc`, e.g. including [`sem`](https://pandas.pydata.org/docs/reference/api/pandas.Series.sem.html), which is misleading - this statement is only true for `std`. This PR makes sure we only add the note in that case.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42290 | 2021-06-28T21:33:37Z | 2021-07-13T16:52:33Z | 2021-07-13T16:52:33Z | 2021-07-13T16:52:39Z |
BUG: get_indexer_non_unique with np.nan | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 3351bb7cac7d6..10817a6ae61bd 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -288,10 +288,12 @@ cdef class IndexEngine:
object val
int count = 0, count_missing = 0
Py_ssize_t i, j, n, n_t, n_all... | - [x] closes #35392
- [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
One of the tests is copied from #35498 | https://api.github.com/repos/pandas-dev/pandas/pulls/42289 | 2021-06-28T21:31:40Z | 2021-07-24T22:25:44Z | null | 2021-07-24T22:25:58Z |
DEPR: treating dt64 as UTC in Timestamp constructor | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5b09b62fa9e88..ae00309ba964d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -150,6 +150,7 @@ Deprecations
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)
- Deprecated ``method`` argum... | - [ ] xref #24559
- [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
Once enforced this will match the DatetimeIndex/DatetimeArray/Series behavior | https://api.github.com/repos/pandas-dev/pandas/pulls/42288 | 2021-06-28T20:56:12Z | 2021-07-08T12:42:13Z | 2021-07-08T12:42:13Z | 2021-07-08T15:19:09Z |
to_timedelta docs warning on default behaviour | diff --git a/doc/source/user_guide/timedeltas.rst b/doc/source/user_guide/timedeltas.rst
index 0b4ddaaa8a42a..180de1df53f9e 100644
--- a/doc/source/user_guide/timedeltas.rst
+++ b/doc/source/user_guide/timedeltas.rst
@@ -88,13 +88,19 @@ or a list/array of strings:
pd.to_timedelta(["1 days 06:05:01.00003", "15.5us... | - [x] closes #34633
- [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
Have added clarification to the user guide on the default behaviour of `to_timedelta` when a string is passed. | https://api.github.com/repos/pandas-dev/pandas/pulls/42285 | 2021-06-28T18:18:36Z | 2021-07-11T20:15:33Z | 2021-07-11T20:15:33Z | 2021-07-11T20:15:39Z |
TST: move custom business month tests to own file (#27085) | diff --git a/pandas/tests/tseries/offsets/test_custom_business_month.py b/pandas/tests/tseries/offsets/test_custom_business_month.py
new file mode 100644
index 0000000000000..4cdd25d6483f7
--- /dev/null
+++ b/pandas/tests/tseries/offsets/test_custom_business_month.py
@@ -0,0 +1,339 @@
+"""
+Tests for the following offs... | - [ ] xref #27085
- [x] tests added / passed (no new tests added; all tests pass)
- [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
Move custom month business cases from the `test_month.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/42284 | 2021-06-28T16:29:36Z | 2021-07-23T00:01:02Z | 2021-07-23T00:01:02Z | 2021-07-23T18:19:48Z |
Backport PR #42268: PERF: IntervalIndex.intersection | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1de28cb26e7dc..1dcc3337990a3 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3099,9 +3099,13 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with m... | Backport PR #42268 | https://api.github.com/repos/pandas-dev/pandas/pulls/42283 | 2021-06-28T16:13:46Z | 2021-06-28T17:18:45Z | 2021-06-28T17:18:45Z | 2021-06-28T17:52:27Z |
Backport PR #42270: PERF: CategoricalIndex.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 1de28cb26e7dc..b03e25631d235 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3407,12 +3407,25 @@ def get_indexer(
# matched to Interval scalars
return self._get_indexer_non_comparable(t... | Backport PR #42270 | https://api.github.com/repos/pandas-dev/pandas/pulls/42282 | 2021-06-28T16:07:00Z | 2021-06-28T21:28:38Z | 2021-06-28T21:28:38Z | 2021-06-28T21:33:04Z |
Backport PR #42277 on branch 1.3.x (DOC GH29075 close database connections after creation) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c2b030d732ba9..1b28aa2900f65 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5526,13 +5526,23 @@ below and the SQLAlchemy `documentation <https://docs.sqlalchemy.org/en/latest/c
# Create your engine.
... | Backport PR #42277: DOC GH29075 close database connections after creation | https://api.github.com/repos/pandas-dev/pandas/pulls/42281 | 2021-06-28T15:43:05Z | 2021-06-28T16:56:25Z | 2021-06-28T16:56:25Z | 2021-06-28T16:56:25Z |
Backport PR #42254 on branch 1.3.x (REGR: groupby with as_index=False on an empty frame) | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 5cb0eac5d9074..18c84d9aa88bf 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1676,7 +1676,9 @@ def _wrap_transformed_output(
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame:
... | Backport PR #42254: REGR: groupby with as_index=False on an empty frame | https://api.github.com/repos/pandas-dev/pandas/pulls/42280 | 2021-06-28T14:28:15Z | 2021-06-28T15:41:48Z | 2021-06-28T15:41:48Z | 2021-06-28T15:41:49Z |
Backport PR #42091 on branch 1.3.x (REGR: Subclassing `Styler` and addressing `from_custom_template`) | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index c94795aac732c..7b790daea37ff 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -24,6 +24,8 @@ Styler properties
Styler.env
Styler.template_html
+ Styler.template_html_style
+ Styler.templat... | Backport PR #42091: REGR: Subclassing `Styler` and addressing `from_custom_template` | https://api.github.com/repos/pandas-dev/pandas/pulls/42279 | 2021-06-28T13:24:57Z | 2021-06-28T14:24:22Z | 2021-06-28T14:24:22Z | 2021-06-28T14:24:23Z |
TST: Added test for upcasting to object when concatinating on categorical indexes with non-identical categories | diff --git a/pandas/tests/reshape/concat/test_categorical.py b/pandas/tests/reshape/concat/test_categorical.py
index d8b5f19c6a745..aba14fd2fcd77 100644
--- a/pandas/tests/reshape/concat/test_categorical.py
+++ b/pandas/tests/reshape/concat/test_categorical.py
@@ -202,3 +202,24 @@ def test_categorical_concat_gh7864(sel... | This PR simple adds a test for upcasting to object when concatinating on categorical indexes with non-identical categories.
- [x] closes #17629
- [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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42278 | 2021-06-28T13:07:55Z | 2021-07-01T23:46:31Z | 2021-07-01T23:46:31Z | 2021-07-01T23:46:37Z |
DOC GH29075 close database connections after creation | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c2b030d732ba9..1b28aa2900f65 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5526,13 +5526,23 @@ below and the SQLAlchemy `documentation <https://docs.sqlalchemy.org/en/latest/c
# Create your engine.
... | - [x] closes #29075
- [ ] whatsnew entry
I've expanded on the use of a context manager to handle the closing of the database connection after the connection has been opened. I've also included a warning at the end of the section highlighting problems with leaving the database connection open. I think these additio... | https://api.github.com/repos/pandas-dev/pandas/pulls/42277 | 2021-06-28T08:30:47Z | 2021-06-28T15:42:38Z | 2021-06-28T15:42:38Z | 2021-06-28T16:01:22Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 631a78b877b45..cda7f64708dbd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,7 +53,7 @@ repos:
types: [text]
args: [--append-config=flake8/cython-template.cfg]
- repo: https://github.com/PyCQA/isort
- ... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/42274 | 2021-06-28T07:10:51Z | 2021-06-30T07:47:25Z | 2021-06-30T07:47:25Z | 2021-06-30T07:47:28Z |
ENH: Add `method='table'` for EWM.mean | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index d35770b720f7a..97294fc02834b 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -296,5 +296,8 @@ def time_apply(self, method):
table_method_func, raw=True, engine="numba"
)
+ ... | - [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/42273 | 2021-06-28T05:49:30Z | 2021-06-29T12:24:59Z | 2021-06-29T12:24:59Z | 2021-07-02T08:21:58Z |
CLN: simplify Styler clear mechanics and tests | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 06e5ba3fad460..931e775f7bdec 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1029,15 +1029,14 @@ def clear(self) -> None:
Returns None.
"""
- self.ctx.clear()
- self.tooltips = None
... | - [x] follows #42187
- [x] checks an item off #40675
The current mechanics are unstructured and the tests is not future proof (if new attributes are added tests will not pick these up and fail). This PR generalises the construction and future proofs the tests. No user facing change.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42271 | 2021-06-27T21:43:56Z | 2021-07-01T23:56:26Z | 2021-07-01T23:56:26Z | 2021-07-03T07:25:23Z |
PERF: CategoricalIndex.get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..c5d26eddcf451 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3415,16 +3415,24 @@ def get_indexer(
# matched to Interval scalars
return self._get_indexer_non_comparable(t... | - [x] closes #42249
- [ ] 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
```
import pandas as pd
import string, itertools
data_unique = pd.CategoricalIndex(
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42270 | 2021-06-27T19:57:46Z | 2021-06-28T14:58:01Z | 2021-06-28T14:58:00Z | 2021-06-28T16:14:21Z |
DEPR: Index.get_loc with method | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..5ffb5b0c7ed7e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -97,7 +97,7 @@ Other API changes
Deprecations
~~~~~~~~~~~~
- Deprecated :meth:`Index.is_type_compatible` (:issue:`42113`)... | - [ ] 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
We only use it one place internally; this will allow us to simplify get_loc, which will mar... | https://api.github.com/repos/pandas-dev/pandas/pulls/42269 | 2021-06-27T18:21:14Z | 2021-07-01T23:15:30Z | 2021-07-01T23:15:30Z | 2022-11-28T18:55:23Z |
PERF: IntervalIndex.intersection | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..1cd0ba3c47cd8 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3089,7 +3089,13 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with m... | - [x] closes #42240
- [ ] 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
```
import pandas as pd
import numpy as np
N = 10 ** 5
left = pd.IntervalIndex.from_... | https://api.github.com/repos/pandas-dev/pandas/pulls/42268 | 2021-06-27T16:42:14Z | 2021-06-28T14:25:14Z | 2021-06-28T14:25:14Z | 2021-06-28T16:16:17Z |
TST IntegerArray bounds error closing GH21796 | diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py
index 61d56df485ab1..958ccec930f0e 100644
--- a/pandas/tests/arrays/test_array.py
+++ b/pandas/tests/arrays/test_array.py
@@ -309,6 +309,14 @@ def test_scalar_raises():
pd.array(1)
+def test_bounds_check():
+ # GH21796
+ ... | - [x] closes #21796
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42267 | 2021-06-27T16:35:16Z | 2021-07-01T23:55:16Z | 2021-07-01T23:55:16Z | 2021-07-01T23:55:16Z |
BUG: Series.loc[dtstr] type depends on monotonicity | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..016ece3b57e73 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -158,7 +158,7 @@ Interval
Indexing
^^^^^^^^
--
+- Bug in indexing on a :class:`Series` or :class:`DataFrame` with a :cla... | - [x] closes #24892
- [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
xref #42258 which makes the same change for PeriodIndex._can_partial_date_slice but its be... | https://api.github.com/repos/pandas-dev/pandas/pulls/42265 | 2021-06-26T22:52:34Z | 2021-07-01T23:18:58Z | 2021-07-01T23:18:57Z | 2021-07-01T23:39:02Z |
CLN: Group tests for apply/agg/transform with a string argument | diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py
index 14266a2c29a7f..388ae1dbf2f53 100644
--- a/pandas/tests/apply/test_frame_apply.py
+++ b/pandas/tests/apply/test_frame_apply.py
@@ -1,5 +1,4 @@
from datetime import datetime
-from itertools import chain
import warnings
... | - [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
Reorg of apply tests, grouping all those that take a string argument together. Plan to next create `test_list` and `test_dict`, then all other test files in appl... | https://api.github.com/repos/pandas-dev/pandas/pulls/42264 | 2021-06-26T20:57:47Z | 2021-07-09T13:15:46Z | 2021-07-09T13:15:46Z | 2021-07-09T13:54:31Z |
CLN: simplify take2d_axis0 generated code | diff --git a/pandas/_libs/algos_take_helper.pxi.in b/pandas/_libs/algos_take_helper.pxi.in
index 90a9a7b2349e1..ec041c03b05e1 100644
--- a/pandas/_libs/algos_take_helper.pxi.in
+++ b/pandas/_libs/algos_take_helper.pxi.in
@@ -109,32 +109,33 @@ def take_2d_axis0_{{name}}_{{dest}}(ndarray[{{c_type_in}}, ndim=2] values,
... | For example, on master we generate:
```
@cython.wraparound(False)
@cython.boundscheck(False)
def take_2d_axis0_int8_int32(const int8_t[:, :] values,
ndarray[intp_t] indexer,
int32_t[:, :] out,
fill_value... | https://api.github.com/repos/pandas-dev/pandas/pulls/42263 | 2021-06-26T20:14:00Z | 2021-07-01T23:40:14Z | 2021-07-01T23:40:14Z | 2021-07-01T23:45:06Z |
Set threadsafe behavior for numba parallelism | diff --git a/pandas/core/util/numba_.py b/pandas/core/util/numba_.py
index 96907df3c48ad..4597563516efd 100644
--- a/pandas/core/util/numba_.py
+++ b/pandas/core/util/numba_.py
@@ -11,6 +11,14 @@
from pandas.util.version import Version
+try:
+ # Reduce likelihood of segfaulting during parallelism
+ # https:/... | - xref #https://github.com/numba/numba/issues/6839#issuecomment-867977583
- [x] tests added / passed
Applicable for 1.3.0 since this behavior can appear for the new `method="table"` feature for rolling/expanding
cc @jbrockmendel
| https://api.github.com/repos/pandas-dev/pandas/pulls/42262 | 2021-06-26T19:52:40Z | 2021-06-28T02:10:40Z | null | 2021-06-28T08:41:58Z |
BUG: Fix to_datetime() cache behaviour to not omit duplicated output values | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 81545ada63ce5..86ae571ff0b77 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -122,7 +122,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
--
+- Bug in :func:`to_datetime` returning pd.NaT for inputs that... | - [x] closes #42259
- [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/42261 | 2021-06-26T19:45:12Z | 2021-07-04T21:32:21Z | 2021-07-04T21:32:21Z | 2021-07-22T12:25:42Z |
CLN: allow label memviews to be None | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index d0f664c323a89..9da5534c51321 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -123,7 +123,7 @@ def is_monotonic(
def rank_1d(
values: np.ndarray, # ndarray[rank_t, ndim=1]
- labels: np.ndarray, # const int64_t[:]
+ lab... | Saves some unnecessary memory allocations, plus moving towards making `rank_sorted_1d` easier to call. Also have done something similar for allowing `mask` to be None, but split that off this pr to keep it simpler.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42260 | 2021-06-26T19:24:10Z | 2021-07-01T23:42:10Z | 2021-07-01T23:42:10Z | 2021-07-01T23:45:18Z |
REF: simplify __can_partial_date_slice, _parsed_string_to_bounds | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 2a2993dedb25d..ce44ce3261286 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -567,21 +567,6 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed: datetime):
-------
... | - [ ] 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/42258 | 2021-06-26T18:39:19Z | 2021-07-01T23:13:25Z | 2021-07-01T23:13:25Z | 2021-07-01T23:23:55Z |
Backport PR #42148 on branch 1.3.x (DOC: share swaplevel docstring between DataFrame and Series (#42120)) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0dc844fe3d58d..e555625dbba95 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -6744,23 +6744,16 @@ def nsmallest(self, n, columns, keep: str = "first") -> DataFrame:
self, n=n, keep=keep, columns=columns
).nsmallest()
... | Backport PR #42148: DOC: share swaplevel docstring between DataFrame and Series (#42120) | https://api.github.com/repos/pandas-dev/pandas/pulls/42257 | 2021-06-26T18:32:38Z | 2021-06-27T08:39:28Z | 2021-06-27T08:39:28Z | 2021-06-27T08:39:28Z |
CI: fewer workers on windows | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 5644ad46714d5..7c088622f9638 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -12,11 +12,13 @@ jobs:
ENV_FILE: ci/deps/azure-windows-37.yaml
CONDA_PY: "37"
PATTERN: "not slow and not network"
+ PYTEST_WORKERS... | - [x] closes #42236
Seeing if this helps for #42236
| https://api.github.com/repos/pandas-dev/pandas/pulls/42256 | 2021-06-26T17:05:12Z | 2021-06-29T12:26:37Z | 2021-06-29T12:26:37Z | 2021-06-29T12:26:54Z |
ENH: Create directories when missing in to_* methods | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 06b00a9cbb4eb..bc198cb14ac9a 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -72,6 +72,9 @@ class IOArgs:
compression: CompressionDict
should_close: bool = False
+ def __post_init__(self):
+ self.parent_exists = dir_exists(... | This is the most fundamental approach to creating new folders when a user specifies a path that is missing in file creation methods like `to_csv`, `to_excel`, `to_feather` etc. We can do this in [io/common.py:`get_handle()`](https://github.com/pandas-dev/pandas/blob/50a59bac1f2bcbf9ac87c7a4160d4355be512294/pandas/io/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/42255 | 2021-06-26T16:27:08Z | 2021-08-17T02:45:28Z | null | 2021-08-17T02:45:28Z |
REGR: groupby with as_index=False on an empty frame | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 5cb0eac5d9074..18c84d9aa88bf 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1676,7 +1676,9 @@ def _wrap_transformed_output(
def _wrap_agged_manager(self, mgr: Manager2D) -> DataFrame:
... | - [x] closes #41998
- [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
No whatsnew because this was introduced in 1.3
| https://api.github.com/repos/pandas-dev/pandas/pulls/42254 | 2021-06-26T16:17:55Z | 2021-06-28T14:27:50Z | 2021-06-28T14:27:50Z | 2021-10-19T03:46:02Z |
Update construction.py | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 7bef7ae9b39d7..55e6c9bdcba90 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -127,7 +127,7 @@ def arrays_to_mgr(
columns = ensure_index(columns)
# from BlockMana... | - [ ] 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/42253 | 2021-06-26T13:17:08Z | 2021-06-26T13:26:43Z | null | 2021-06-26T13:26:59Z |
ENH: allow attrs to be propagated via pd.concat | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 193356a46a6ea..9e48e8bb35838 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -190,6 +190,7 @@ representation of :class:`DataFrame` objects (:issue:`4889`).
Other enhancements
^^^^^^^^^^^^^^^^^^
+- ... | - [x] closes #41828
- [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
@TomAugspurger @lithomas1 I have made a fix to this issue and I wonder if do you mind have... | https://api.github.com/repos/pandas-dev/pandas/pulls/42252 | 2021-06-26T12:19:46Z | 2021-12-05T15:39:24Z | 2021-12-05T15:39:23Z | 2021-12-05T19:07:15Z |
DOC: Clarify relation between DateOffset and relativedelta | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index ac7447420596a..6596aebc1892e 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -1152,12 +1152,13 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
"""
Standard kind of date in... | dateutil.relativedelta can be constructed either from two date/datetime objects passed as positional arguments, or explicitly constructed in terms of year, month, day etc passed as keyword arguments. DateOffset only supports the keyword argument form of relativedelta.
- [x] related to #41847
- [ ] tests added / pas... | https://api.github.com/repos/pandas-dev/pandas/pulls/42251 | 2021-06-26T12:14:55Z | 2021-07-11T19:35:36Z | 2021-07-11T19:35:36Z | 2021-07-11T19:35:44Z |
DOC: create folders in to_csv #24306 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5f57c353391c2..b697739b6166e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3450,6 +3450,18 @@ def to_csv(
... archive_name='out.csv') # doctest: +SKIP
>>> df.to_csv('out.zip', index=False... | - [x] closes #24306
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42250 | 2021-06-26T10:16:43Z | 2021-09-21T19:15:44Z | 2021-09-21T19:15:44Z | 2021-09-21T19:15:48Z |
CLN: simplify MultiIndex.get_locs | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index cac0a8cc5791f..398b49884efe4 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -3040,7 +3040,9 @@ def partial_selection(key, indexer=None):
indexer = self._get_level_indexer(key, level=level)
... | I think this can be simplified further, but need to fix a newly-surfaced get_indexer_non_unique bug first | https://api.github.com/repos/pandas-dev/pandas/pulls/42245 | 2021-06-26T02:59:19Z | 2021-07-04T21:37:03Z | 2021-07-04T21:37:03Z | 2021-07-04T21:45:20Z |
Updated the return type section of to_datetime | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 014a702618bda..9a1ee029f1609 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -762,7 +762,9 @@ def to_datetime(
If parsing succeeded.
Return type depends on input:
- - list-li... | Updated the return type section of to_datetime to include list-like mixed timezone inputs
- [x] closes #42229
- [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/42244 | 2021-06-26T00:02:49Z | 2021-07-11T19:41:22Z | 2021-07-11T19:41:21Z | 2021-07-12T08:06:37Z |
PERF/ENH: allow Generator in sampling methods | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 45c280b89ea28..02ea989ed5525 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -29,7 +29,7 @@ enhancement2
Other enhancements
^^^^^^^^^^^^^^^^^^
--
+- :meth:`Series.sample`, :meth:`DataFrame.sample`,... | - [x] closes #38100
- [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
The perf gap is pretty crazy:
```
In [10]: rng = np.random.default_rng()
In [11]... | https://api.github.com/repos/pandas-dev/pandas/pulls/42243 | 2021-06-25T23:01:18Z | 2021-07-04T21:37:34Z | 2021-07-04T21:37:34Z | 2021-07-04T22:00:35Z |
DOC: Add pandas-workshop community tutorial. | diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst
index b8940d2efed2f..a349251bdfca6 100644
--- a/doc/source/getting_started/tutorials.rst
+++ b/doc/source/getting_started/tutorials.rst
@@ -18,6 +18,19 @@ entails.
For the table of contents, see the `pandas-cookbook GitHub... | - [X] closes #42009
- [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 | https://api.github.com/repos/pandas-dev/pandas/pulls/42242 | 2021-06-25T22:59:26Z | 2021-07-11T19:47:14Z | 2021-07-11T19:47:14Z | 2021-07-11T20:14:10Z |
Backport PR #42237 on branch 1.3.x (TST/CI: Reduce number of unnecessary numba tests in groupby ops) | diff --git a/pandas/tests/groupby/conftest.py b/pandas/tests/groupby/conftest.py
index b69a467f91659..9e7d6d2a7c5bd 100644
--- a/pandas/tests/groupby/conftest.py
+++ b/pandas/tests/groupby/conftest.py
@@ -137,13 +137,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Ca... | Backport PR #42237: TST/CI: Reduce number of unnecessary numba tests in groupby ops | https://api.github.com/repos/pandas-dev/pandas/pulls/42241 | 2021-06-25T21:59:32Z | 2021-06-26T11:28:53Z | 2021-06-26T11:28:53Z | 2021-06-26T11:28:53Z |
REF: share Index.join | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..e437099572d75 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3870,6 +3870,7 @@ def _reindex_non_unique(
# --------------------------------------------------------------------
# Join Meth... | - [ ] 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/42238 | 2021-06-25T20:34:45Z | 2021-06-25T22:07:28Z | 2021-06-25T22:07:28Z | 2021-06-25T22:12:25Z |
TST/CI: Reduce number of unnecessary numba tests in groupby ops | diff --git a/pandas/tests/groupby/conftest.py b/pandas/tests/groupby/conftest.py
index b69a467f91659..9e7d6d2a7c5bd 100644
--- a/pandas/tests/groupby/conftest.py
+++ b/pandas/tests/groupby/conftest.py
@@ -137,13 +137,17 @@ def parallel(request):
return request.param
-@pytest.fixture(params=[True, False])
+# Ca... | - [x] closes #42236
- [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
Limiting the numba `engine_kwargs` parameterization for groupby tests similar to #42024
cc @mzeitlin11 | https://api.github.com/repos/pandas-dev/pandas/pulls/42237 | 2021-06-25T19:51:31Z | 2021-06-25T21:59:05Z | 2021-06-25T21:59:05Z | 2021-06-25T22:55:37Z |
BUG: OutOfBoundsTimedelta not raised for out-of-bounds Timedelta | diff --git a/pandas/tests/scalar/timedelta/test_constructors.py b/pandas/tests/scalar/timedelta/test_constructors.py
index ea4a56be6da48..34b725eb9fe77 100644
--- a/pandas/tests/scalar/timedelta/test_constructors.py
+++ b/pandas/tests/scalar/timedelta/test_constructors.py
@@ -204,15 +204,26 @@ def test_overflow_on_cons... | - [x] closes #36615
- [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
| https://api.github.com/repos/pandas-dev/pandas/pulls/42235 | 2021-06-25T18:56:09Z | 2021-07-13T21:17:24Z | 2021-07-13T21:17:24Z | 2021-07-13T21:17:28Z |
Backport PR #42168: ENH: add ignore index to DataFrame / Series.sample | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ddcce820f5a19..49c168cd5eb84 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -278,6 +278,7 @@ Other enhancements
- Improved error message in ``corr`` and ``cov`` methods on :class:`.Rolling`, :class:`... | Backport of #42168
| https://api.github.com/repos/pandas-dev/pandas/pulls/42234 | 2021-06-25T18:39:19Z | 2021-06-25T21:58:24Z | 2021-06-25T21:58:24Z | 2021-06-25T22:39:00Z |
PERF/REF: groupby sample | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 1648985a56b91..6ca951e946bad 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -832,4 +832,18 @@ def function(values):
self.grouper.agg(function, engine="cython")
+class Sample:
+ def... | - [x] closes #34483
- [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
Benchmarks:
```
before after ratio
[d61ace50] [... | https://api.github.com/repos/pandas-dev/pandas/pulls/42233 | 2021-06-25T18:22:21Z | 2021-07-02T00:05:13Z | 2021-07-02T00:05:13Z | 2021-07-02T00:07:27Z |
PERF: Avoid copy in DataFrame._reduce corner cases | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0acbb0c34266f..bf5cf8ce6da8a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9810,8 +9810,12 @@ def _reduce(
FutureWarning,
stacklevel=5,
)
- cols = self.columns[~dtype_is_dt]
- ... | This implements BlockManager._get_data_subset (which ArrayManager already has) to avoid making a copy in a `DataFrame.__getitem__` usage inside DataFrame._reduce.
This path is deprecated so this snippet will be removed in 2.0.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42232 | 2021-06-25T17:37:39Z | 2021-06-25T22:12:38Z | 2021-06-25T22:12:38Z | 2021-06-25T22:15:25Z |
PERF: tighten _should_compare for MultiIndex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..928c4928dded0 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5345,6 +5345,16 @@ def _get_indexer_non_comparable(
"""
if method is not None:
other = unpack_nested_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/42231 | 2021-06-25T17:08:41Z | 2021-07-01T23:03:39Z | 2021-07-01T23:03:39Z | 2021-07-16T21:38:54Z |
REF: move short-circuiting up to get_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..7b58e34152547 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3077,7 +3077,7 @@ def intersection(self, other, sort=False):
return Index([], name=result_name)
elif not is_dty... | This is the last of the boilerplate-cleanups I have for get_indexer, with some additional CLN thrown in for good measure. | https://api.github.com/repos/pandas-dev/pandas/pulls/42230 | 2021-06-25T17:03:06Z | 2021-06-25T22:08:20Z | 2021-06-25T22:08:20Z | 2021-06-25T22:11:23Z |
CLN: setops | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..3a26c5e44c599 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3089,8 +3089,6 @@ def _intersection(self, other: Index, sort=False):
"""
intersection specialized to the case with ma... | - [ ] 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/42228 | 2021-06-25T16:52:42Z | 2021-06-25T22:09:21Z | 2021-06-25T22:09:21Z | 2021-06-25T22:12:01Z |
REF: implement Index._should_partial_index | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 64ba18271100e..f23366193958f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3410,7 +3410,7 @@ def get_indexer(
if len(target) == 0:
return np.array([], dtype=np.intp)
- if not self... | Formalize the IntervalIndex special case, in principle let subclasses override. | https://api.github.com/repos/pandas-dev/pandas/pulls/42227 | 2021-06-25T16:29:36Z | 2021-07-01T23:12:44Z | 2021-07-01T23:12:44Z | 2021-08-24T13:56:00Z |
REF: de-duplicate MultiIndex.reindex | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6219aa07478d7..9bd2051a9a07f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3762,14 +3762,25 @@ def reindex(
target = ensure_has_len(target) # target may be an iterator
if not isinstance(tar... | - [ ] 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/42226 | 2021-06-25T16:17:50Z | 2021-06-25T22:12:09Z | 2021-06-25T22:12:09Z | 2021-06-25T22:12:58Z |
REF: _validate_partial_date_slice -> _can_partial_date_slice | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 7afcb4f5b6978..b953bbba8f78c 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -282,7 +282,7 @@ def _summary(self, name=None) -> str:
# ------------------------------------------... | Moving incrementally towards sharing more of get_loc between DTI/PI | https://api.github.com/repos/pandas-dev/pandas/pulls/42225 | 2021-06-25T16:15:04Z | 2021-06-25T17:32:47Z | 2021-06-25T17:32:47Z | 2021-06-25T17:33:49Z |
Backport PR #42197 on branch 1.3.x (PERF: IntervalArray.unique, IntervalIndex.intersection) | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index f4a6b0b1c1694..a9ca39b89360c 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -11,11 +11,7 @@
Union,
cast,
)
-from warnings import (
- catch_warnings,
- simplefilter,
- warn,
-)
+from warnings import wa... | Backport PR #42197: PERF: IntervalArray.unique, IntervalIndex.intersection | https://api.github.com/repos/pandas-dev/pandas/pulls/42224 | 2021-06-25T14:32:25Z | 2021-06-25T15:42:27Z | 2021-06-25T15:42:27Z | 2021-06-25T15:42:27Z |
Backport PR #42220 on branch 1.3.x (DOC: 1.3 release notes misc) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cb8df16d6c0fb..ddcce820f5a19 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -1,7 +1,7 @@
.. _whatsnew_130:
-What's new in 1.3.0 (??)
-------------------------
+What's new in 1.3.0 (June ??)
+------... | Backport PR #42220: DOC: 1.3 release notes misc | https://api.github.com/repos/pandas-dev/pandas/pulls/42223 | 2021-06-25T14:25:36Z | 2021-06-25T15:42:08Z | 2021-06-25T15:42:08Z | 2021-06-25T15:42:08Z |
ENH: add if_sheet_exists='overlay' to ExcelWriter | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7828c479e800f..5791f3859745e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -207,12 +207,14 @@ Other enhancements
- Added :meth:`.ExponentialMovingWindow.sum` (:issue:`13297`)
- :meth:`Series.str.sp... | - [x] closes #42221, related to #40231
- [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 - not applicable
I mainly wanted this functionality myself, and am very... | https://api.github.com/repos/pandas-dev/pandas/pulls/42222 | 2021-06-25T14:00:08Z | 2021-11-17T02:02:18Z | 2021-11-17T02:02:17Z | 2021-11-17T02:02:23Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.