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: Move some window/moments tests to test_ewm
diff --git a/pandas/tests/window/moments/test_moments_consistency_ewm.py b/pandas/tests/window/moments/test_moments_consistency_ewm.py index c79d02fd3237e..b41d2ec23a52d 100644 --- a/pandas/tests/window/moments/test_moments_consistency_ewm.py +++ b/pandas/tests/window/moments/test_moments_consistency_ewm.py @@ -18,58 +...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Since some tests are not running on `windows/moments` (https://github.com/pandas-dev/pandas/issues/37535), moving some lighter e...
https://api.github.com/repos/pandas-dev/pandas/pulls/44128
2021-10-21T05:22:51Z
2021-10-24T01:51:55Z
2021-10-24T01:51:55Z
2021-10-24T01:51:58Z
Backport PR #44124 on branch 1.3.x (CI: Use Windows and MacOS Numpy Wheels)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index b32b18b86e9df..4fe58ad4d60e9 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -30,9 +30,6 @@ jobs: name: actions-310-dev timeout-minutes: 60 - env: - NUMPY_WHEELS_AVAILABLE: ...
Backport PR #44124: CI: Use Windows and MacOS Numpy Wheels
https://api.github.com/repos/pandas-dev/pandas/pulls/44127
2021-10-21T01:01:12Z
2021-10-21T02:29:12Z
2021-10-21T02:29:12Z
2021-10-21T02:29:12Z
REF: use concat_compat in union_with_duplicates
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 2bcfe767203bd..c1b587ce3a6b2 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -61,6 +61,7 @@ is_timedelta64_dtype, needs_i8_conversion, ) +from pandas.core.dtypes.concat import concat_compat from pandas.core.dt...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44125
2021-10-20T23:37:53Z
2021-10-21T01:49:59Z
2021-10-21T01:49:59Z
2021-10-21T01:52:43Z
CI: Use Windows and MacOS Numpy Wheels
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index b32b18b86e9df..4fe58ad4d60e9 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -30,9 +30,6 @@ jobs: name: actions-310-dev timeout-minutes: 60 - env: - NUMPY_WHEELS_AVAILABLE: ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44124
2021-10-20T23:13:49Z
2021-10-21T01:00:43Z
2021-10-21T01:00:43Z
2021-10-21T01:14:35Z
BUG: DataFrame index name no longer resets after appending a list of series
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2a718fdcf16e7..f9acfba8100c9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -614,6 +614,7 @@ Reshaping - Bug in :func:`concat` which ignored the ``sort`` parameter (:issue:`43375`) - Fixed bug in :f...
- [x] closes #44109 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44123
2021-10-20T22:58:22Z
2021-11-05T00:52:46Z
2021-11-05T00:52:46Z
2022-01-25T21:24:22Z
REF: reuse self.grouper.result_index
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 1331fc07386fb..7ff0842678d7f 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -30,8 +30,4 @@ cpdef inline extract_result(object res): if res.ndim == 1 and len(res) == 1: # see test_agg_lambda_with...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44122
2021-10-20T22:48:53Z
2021-10-21T00:49:40Z
2021-10-21T00:49:40Z
2021-10-21T01:49:06Z
PERF: new_block_2d
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 44271907dd75a..de612b367f78f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1289,7 +1289,8 @@ def _unstack( new_values = new_values.T[mask] new_placement = new_placement[mask] ...
Avoids some redundant checks
https://api.github.com/repos/pandas-dev/pandas/pulls/44121
2021-10-20T22:05:09Z
2021-10-21T01:06:18Z
2021-10-21T01:06:18Z
2021-10-21T01:56:58Z
BUG: Compare type int64 with Int64 fails
diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py index 14f6557fbc31e..f24a0d0da38a5 100644 --- a/pandas/tests/dtypes/test_common.py +++ b/pandas/tests/dtypes/test_common.py @@ -20,6 +20,7 @@ import pandas as pd import pandas._testing as tm +from pandas.api import types from pand...
Closes #43038
https://api.github.com/repos/pandas-dev/pandas/pulls/44118
2021-10-20T18:41:35Z
2021-11-20T13:12:33Z
null
2021-11-20T13:12:33Z
BUG: ignore EAs when counting blocks to raise fragmentation PerformanceWarning
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 17b9e49bcad6a..c7b3874388d73 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -617,6 +617,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Bug in :func:`array` failing to preserve :class:`PandasArray` (:issue:`43...
Closes #44098
https://api.github.com/repos/pandas-dev/pandas/pulls/44115
2021-10-20T16:36:05Z
2021-10-21T00:51:10Z
2021-10-21T00:51:10Z
2021-10-21T06:04:48Z
TST: Adding test for checking that plotting grid param by default is mpl.rcParams['axes.grid']
diff --git a/pandas/tests/plotting/test_style.py b/pandas/tests/plotting/test_style.py index 3c48eeaccbf34..fbc4c2efa4b92 100644 --- a/pandas/tests/plotting/test_style.py +++ b/pandas/tests/plotting/test_style.py @@ -1,6 +1,9 @@ import pytest -from pandas import Series +from pandas import ( + DataFrame, + Seri...
- [ ] Related to #3188 - [ ] tests added to pandas/tests/plotting/test_style.py and passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] Seems the issue is obsolete. As I can see now the tested be...
https://api.github.com/repos/pandas-dev/pandas/pulls/44114
2021-10-20T12:46:18Z
2021-10-24T14:41:08Z
null
2021-10-24T14:50:05Z
CLN: clean TODOs in csv test
diff --git a/pandas/tests/frame/methods/test_to_csv.py b/pandas/tests/frame/methods/test_to_csv.py index be84eb9c85663..8a857c033a2de 100644 --- a/pandas/tests/frame/methods/test_to_csv.py +++ b/pandas/tests/frame/methods/test_to_csv.py @@ -142,8 +142,6 @@ def test_to_csv_from_csv4(self): result = read_c...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44113
2021-10-20T12:41:09Z
2021-10-20T17:25:26Z
2021-10-20T17:25:26Z
2022-11-18T02:20:52Z
DOC: ewm constructor
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index c697db9ea313e..c17af442fe2cc 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -126,9 +126,7 @@ def _calculate_deltas( class ExponentialMovingWindow(BaseWindow): r""" - Provide exponential weighted (EW) functions...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the Parameters * Organized and added more Examples
https://api.github.com/repos/pandas-dev/pandas/pulls/44111
2021-10-20T04:51:02Z
2021-10-21T00:58:05Z
2021-10-21T00:58:05Z
2021-10-21T09:17:19Z
DOC: expanding constructor
diff --git a/pandas/core/window/expanding.py b/pandas/core/window/expanding.py index 58662e44b9887..796849e622ff2 100644 --- a/pandas/core/window/expanding.py +++ b/pandas/core/window/expanding.py @@ -44,16 +44,26 @@ class Expanding(RollingAndExpandingMixin): """ - Provide expanding transformations. + Pro...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the Parameters * Organized and added more Examples * Added missing deprecation tag for `cen...
https://api.github.com/repos/pandas-dev/pandas/pulls/44110
2021-10-20T04:12:41Z
2021-10-21T00:54:52Z
2021-10-21T00:54:52Z
2021-10-21T01:48:30Z
DOC: rolling constructor
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 89be1f4206939..39aa5da95cc29 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -840,52 +840,89 @@ class Window(BaseWindow): Parameters ---------- window : int, offset, or BaseIndexer subclass ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * Made language more consistent in the `Parameters` * Organized and added more `Examples`
https://api.github.com/repos/pandas-dev/pandas/pulls/44108
2021-10-20T01:22:12Z
2021-10-21T00:56:13Z
2021-10-21T00:56:13Z
2021-10-21T01:48:39Z
BUG: RangeIndex.difference missed case
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 4def2e4b93553..b209a6556709b 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -705,6 +705,10 @@ def _difference(self, other, sort=None): else: return super()._difference(other, sor...
Need to figure out why running hypothesis locally (repeatedly) isn't catching the ones caught on the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/44107
2021-10-19T22:24:16Z
2021-10-20T21:06:43Z
2021-10-20T21:06:43Z
2021-10-20T21:51:49Z
BUG: PeriodIndex[B].to_timestamp inferring "D" instead of "B".
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 99a66c7e5454b..8732e1c397ce5 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -579,6 +579,7 @@ I/O Period ^^^^^^ - Bug in adding a :class:`Period` object to a ``np.timedelta64`` object incorrectly ra...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44105
2021-10-19T20:15:59Z
2021-11-11T13:41:52Z
2021-11-11T13:41:52Z
2021-11-11T13:41:52Z
ENH: Negative Reference Percent Changes
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c3ad87082c8ed..cafee9f0a0f28 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10114,6 +10114,7 @@ def pct_change( fill_method="pad", limit=None, freq=None, + negative_reference=False, **kwar...
- [x] closes #xxxx - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry I recently came across a problem at work that looks like it should be solved in `pct_c...
https://api.github.com/repos/pandas-dev/pandas/pulls/44102
2021-10-19T19:14:56Z
2021-10-20T10:37:00Z
null
2021-10-20T10:37:05Z
DOC: Perf notes
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 026429dabae84..17b9e49bcad6a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -403,21 +403,46 @@ Performance improvements - Performance improvement in :meth:`.GroupBy.sample`, especially when ``weights...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44101
2021-10-19T17:17:07Z
2021-10-19T21:59:52Z
2021-10-19T21:59:52Z
2021-10-19T22:02:49Z
testing broadcast on multiindex
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 0e6b36a484c47..87af6152b8189 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -668,6 +668,21 @@ def test_arithmetic_with_duplicate_columns(self, op): str(result) ...
- [x] closes #34388 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44094
2021-10-19T02:20:52Z
2021-11-29T00:59:13Z
2021-11-29T00:59:12Z
2021-11-29T00:59:16Z
ENH: retain RangeIndex in RangeIndex.difference
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index f1054635f44db..4def2e4b93553 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -675,6 +675,9 @@ def _difference(self, other, sort=None): if not isinstance(other, RangeIndex): return super()...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This should handle _all_ cases where it is possible to retain RangeIndex, a claim whic...
https://api.github.com/repos/pandas-dev/pandas/pulls/44093
2021-10-19T01:50:12Z
2021-10-19T12:55:47Z
2021-10-19T12:55:47Z
2021-10-19T14:42:53Z
TST: fix groupby-empty xfails
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8a893db95dc22..3b54918ae99c1 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1536,6 +1536,7 @@ def func(df): result = [index[i] if i >= 0 else np.nan for i in indices] return...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44092
2021-10-18T21:04:33Z
2021-10-20T21:09:05Z
2021-10-20T21:09:05Z
2021-10-20T21:51:21Z
BUG: crosstab fails with lists/tuples
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..a78fe1d83cac2 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -573,6 +573,7 @@ Reshaping - Bug in :func:`concat` would fail when the ``objs`` argument all had the same index and the ``k...
- [x] closes #44076 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44088
2021-10-18T17:51:45Z
2021-10-18T19:28:50Z
2021-10-18T19:28:50Z
2021-10-19T03:45:30Z
ENH: preserve RangeIndex in insert, delete
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 9eb086ed97180..487a1880caff5 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -15,7 +15,10 @@ import numpy as np -from pandas._libs import index as libindex +from pandas._libs import ( + index as libind...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44086
2021-10-18T16:36:25Z
2021-10-18T23:05:28Z
2021-10-18T23:05:28Z
2021-10-18T23:15:52Z
BUG: RangeIndex.difference with sort=None and step<0
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..eee80d10dcb47 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -604,6 +604,7 @@ Other ^^^^^ - Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__add__`) no...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44085
2021-10-18T16:08:00Z
2021-10-18T22:45:22Z
2021-10-18T22:45:22Z
2021-11-20T23:20:36Z
DOC: Fix cheatsheet automatic uploading
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20f7712131ba4..23e452f682b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,6 +136,9 @@ jobs: echo "${{ secrets.server_ip }} ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE1Kkopomm7FH...
Follow up of #44018. I didn't realize before merging that we were first uploading the web directory, and then copying the cheatsheets to it, so they won't be uploaded. The cheatsheets will be removed from the website in the CI of hte previous PR, so would be good to merge this asap, so the cheatsheets are restored. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44083
2021-10-18T15:32:24Z
2021-10-18T15:34:17Z
2021-10-18T15:34:16Z
2021-10-18T17:53:54Z
BUG: Change of behavior in casting of datetime-like types in MultiIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c5cfa4c2d1fcd..86f2793341d76 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1,6 +1,9 @@ from __future__ import annotations -from datetime import datetime +from datetime import ( + date, + datetime, +) ...
- [x] closes #43091 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Added try-except block in multi.py to reset the behaviour back to 1.2.5
https://api.github.com/repos/pandas-dev/pandas/pulls/44081
2021-10-18T12:58:09Z
2021-11-04T11:24:18Z
null
2021-11-04T11:24:18Z
BUG: to_datetime with xarray DataArray and specifie unit errors
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 964f4b83866c9..4465875fc9ae6 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -467,6 +467,7 @@ Conversion ^^^^^^^^^^ - Bug in :class:`UInt64Index` constructor when passing a list containing both posit...
- [x] closes #44053 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] coerce to numpy array before calling ```tslib.array_with_unit_to_datetime```function Let me know if ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44074
2021-10-18T00:20:51Z
2021-10-19T01:43:32Z
2021-10-19T01:43:31Z
2021-10-19T01:43:36Z
BUG: to_datetime with xarray DataArray and specifie unit errors
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 8b37026e16171..0d4a3890471b4 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -525,7 +525,15 @@ def _to_datetime_with_unit(arg, unit, name, tz, errors: str) -> Index: arr = arg.astype(f"datetim...
- [x] closes #44053 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Converted values of xarray.DataArray to numpy.ndarray to solve the problem.
https://api.github.com/repos/pandas-dev/pandas/pulls/44073
2021-10-17T19:40:14Z
2021-10-18T00:38:06Z
null
2021-10-18T02:19:41Z
Backport PR #44058 on branch 1.3.x (DOC: Start v1.3.5 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index e05bf9621e2c4..381df50641291 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.5 v1.3.4 v1.3.3 v1.3.2 diff --git a/doc/source/...
Backport PR #44058: DOC: Start v1.3.5 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/44072
2021-10-17T17:57:15Z
2021-10-17T19:31:49Z
2021-10-17T19:31:49Z
2021-10-17T19:31:50Z
REF: share Index subclass formatting code
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0cfd0e970a44c..7a42a37e6f6d1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1247,11 +1247,11 @@ def _format_data(self, name=None) -> str_t: line_break_each_value=self._is_multi, ) - de...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44070
2021-10-17T16:45:31Z
2021-10-17T22:00:51Z
2021-10-17T22:00:51Z
2021-10-17T23:56:10Z
BUG: 43909 - check monoticity of rolling groupby
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ffd32e263aa50..6baed863476a9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -809,6 +809,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.nth` failing on ``axis=1`` (:issue:`43926`) - Fixed bug ...
- [x] closes #43909 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Whats new: - Exception now raised when non-monotonic data passed to rolling groupby...
https://api.github.com/repos/pandas-dev/pandas/pulls/44068
2021-10-17T16:13:55Z
2021-12-22T15:16:03Z
2021-12-22T15:16:03Z
2021-12-22T15:16:07Z
Backport PR #43199 on branch 1.3.x (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 c99f9e28e7fdf..22e15ed9f5d71 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...
Backport PR #43199: BUG: convert_dtypes incorrectly converts byte strings to strings in 1.3+
https://api.github.com/repos/pandas-dev/pandas/pulls/44066
2021-10-17T11:04:34Z
2021-10-17T11:53:23Z
2021-10-17T11:53:23Z
2021-10-17T11:53:23Z
BUG: sort_index did not respect ignore_index when not sorting
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index af7706f624323..3d518de98a8a3 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -500,6 +500,7 @@ Indexing - Bug in :meth:`DataFrame.nlargest` and :meth:`Series.nlargest` where sorted result did not count...
- [X] closes #43591 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44065
2021-10-17T02:58:03Z
2021-10-19T15:00:17Z
2021-10-19T15:00:16Z
2021-10-19T15:00:25Z
DEPS: bump pyarrow min to 1.0 #41329
diff --git a/ci/deps/actions-38-db-min.yaml b/ci/deps/actions-38-db-min.yaml index a45e3919afd69..f875f2ef88949 100644 --- a/ci/deps/actions-38-db-min.yaml +++ b/ci/deps/actions-38-db-min.yaml @@ -31,7 +31,7 @@ dependencies: - openpyxl - pandas-gbq - protobuf>=3.12.4 - - pyarrow=0.17.1 # GH 38803 + - pyarrow...
- [x] closes #41329 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44064
2021-10-17T01:41:04Z
2021-10-18T13:29:03Z
2021-10-18T13:29:02Z
2022-11-18T02:20:52Z
CLN: collected cleanups
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 9fa84a0135a5e..78853ce6e41dc 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -408,7 +408,7 @@ cdef slice indexer_as_slice(intp_t[:] vals): int64_t d if vals is None: - raise TypeError("vals must...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44063
2021-10-16T22:48:35Z
2021-10-18T01:32:58Z
2021-10-18T01:32:58Z
2021-10-18T01:36:22Z
BUG: 43909 - check monoticity of rolling groupby
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 2b8ed3c97d026..24ac7c040a45d 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -2513,8 +2513,9 @@ def _get_window_indexer(self) -> GroupbyIndexer: def _validate_monotonic(self): """ Va...
- [y ] closes #43909 - [y ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ test and bugfix ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44062
2021-10-16T22:30:35Z
2021-10-17T16:15:58Z
null
2021-10-17T16:15:58Z
Backport PR #43291: BUG: Fixes to FixedForwardWindowIndexer and GroupbyIndexer (#43267)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..f36c0afac763e 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -33,6 +33,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Fixed bug in :meth:`pandas.DataFrame.groupby.rolling` and :class...
Backport PR #43291
https://api.github.com/repos/pandas-dev/pandas/pulls/44061
2021-10-16T20:36:14Z
2021-10-16T21:37:12Z
2021-10-16T21:37:12Z
2021-10-16T21:37:16Z
Backport PR #44057 on branch 1.3.x (DOC: 1.3.4 release date)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..2bdebe463ecc0 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_134: -What's new in 1.3.4 (October ??, 2021) +What's new in 1.3.4 (October 17, 2021) ---------...
Backport PR #44057: DOC: 1.3.4 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/44060
2021-10-16T19:56:58Z
2021-10-16T21:02:59Z
2021-10-16T21:02:59Z
2021-10-16T21:02:59Z
REF: share ExtensionIndex astype, __getitem__ with Index
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0cfd0e970a44c..bea31d148a309 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -59,7 +59,10 @@ deprecate_nonkeyword_arguments, doc, ) -from pandas.util._exceptions import find_stack_level +from pandas.uti...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44059
2021-10-16T18:22:30Z
2021-10-17T22:42:15Z
2021-10-17T22:42:15Z
2021-10-17T23:55:38Z
DOC: Start v1.3.5 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index b94954cf4c361..df33174804a33 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.5 v1.3.4 v1.3.3 v1.3.2 diff --git a/doc/source/...
this fails until 1.3.4 tag exists.
https://api.github.com/repos/pandas-dev/pandas/pulls/44058
2021-10-16T18:15:08Z
2021-10-17T17:57:06Z
2021-10-17T17:57:06Z
2021-10-17T17:57:10Z
DOC: 1.3.4 release date
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index b6ee2d57a0965..2bdebe463ecc0 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_134: -What's new in 1.3.4 (October ??, 2021) +What's new in 1.3.4 (October 17, 2021) ---------...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44057
2021-10-16T18:07:25Z
2021-10-16T19:56:49Z
2021-10-16T19:56:49Z
2021-10-16T20:06:02Z
Backport PR #44032 on branch 1.3.x ([PERF] fixing memory leak in aggregation.pyx)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 9c9aacc4b0f52..b6ee2d57a0965 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -35,6 +35,7 @@ Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values including ``NaT`` values ...
Backport PR #44032: [PERF] fixing memory leak in aggregation.pyx
https://api.github.com/repos/pandas-dev/pandas/pulls/44055
2021-10-16T17:47:26Z
2021-10-16T19:14:17Z
2021-10-16T19:14:17Z
2021-10-16T19:14:17Z
Removed a manual file handler pitfall
diff --git a/versioneer.py b/versioneer.py index 68c9bb161f206..1c5ff743cdc6c 100644 --- a/versioneer.py +++ b/versioneer.py @@ -1168,12 +1168,11 @@ def do_vcs_install(manifest_in, versionfile_source, ipy): files.append(versioneer_file) present = False try: - f = open(".gitattributes") - fo...
It is a simple PR. It only removes a manual file handler pitfall from versioneer.py As stated by [Pylint documentation](https://pylint.pycqa.org/en/latest/technical_reference/features.html) " consider-using-with (R1732) Consider using 'with' for resource-allocating operations Emitted if a resource-allocatin...
https://api.github.com/repos/pandas-dev/pandas/pulls/44047
2021-10-16T03:49:43Z
2021-10-16T18:14:21Z
null
2021-10-16T19:10:31Z
added test to indexing on groupby, #32464
diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py index ec7f3200b682b..8a98b27486d90 100644 --- a/pandas/tests/groupby/test_function.py +++ b/pandas/tests/groupby/test_function.py @@ -1171,6 +1171,38 @@ def test_groupby_sum_below_mincount_nullable_integer(): tm.assert_frame...
- [x] closes #32464 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them This makes sure an index of a groupby with more then one column is always a MultiIndex.
https://api.github.com/repos/pandas-dev/pandas/pulls/44046
2021-10-16T03:06:30Z
2022-05-07T02:42:46Z
null
2022-05-07T02:42:55Z
Fix several typos under pandas/_libs
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 1e05ef443d516..c229c67519a66 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -532,7 +532,7 @@ def group_add(add_t[:, ::1] out, nobs[lab, j] += 1 if nobs[lab, j] == 1: - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44043
2021-10-15T16:07:46Z
2021-10-15T18:14:13Z
2021-10-15T18:14:13Z
2021-10-15T21:26:48Z
Fixed metadata propagation in Dataframe.apply (issue #28283)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 254a004a37c40..4d3317b037e01 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -607,6 +607,7 @@ Reshaping - Bug in :func:`concat` which ignored the ``sort`` parameter (:issue:`43375`) - Fixed bug in :f...
Co-authored-by: Mohamad Rkein <mohamad_rkein@usp.br> Co-authored-by: Rafael Rodrigues <rrvsrafael@gmail.com> In reference to #28283 - [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-...
https://api.github.com/repos/pandas-dev/pandas/pulls/44041
2021-10-15T02:53:36Z
2021-10-29T21:57:49Z
2021-10-29T21:57:49Z
2021-10-29T21:57:49Z
DOC: Fix Docstring for DataFrame nlargest `keep` option (#44040)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 023ffb5a5fbda..1bb3dda0312cd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6584,8 +6584,8 @@ def nlargest(self, n, columns, keep: str = "first") -> DataFrame: keep : {'first', 'last', 'all'}, default 'first' Where th...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Add double backticks for DataFrame nlargest `keep` option to keep the style consistent From https://pandas.pydata.org/do...
https://api.github.com/repos/pandas-dev/pandas/pulls/44040
2021-10-15T02:02:09Z
2021-10-15T07:32:06Z
2021-10-15T07:32:06Z
2021-10-15T08:35:30Z
REF: dispatch DTI/TDI setops to RangeIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index d309dfc21eb95..4cff33f96de27 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -28,6 +28,7 @@ Resolution, Tick, parsing, + to_offset, ) from pandas.compat.numpy im...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Includes #44019 (but not that whatsnew) I'm optimistic we can eventually dispatch a...
https://api.github.com/repos/pandas-dev/pandas/pulls/44039
2021-10-15T01:55:22Z
2021-10-16T17:28:17Z
2021-10-16T17:28:16Z
2021-10-16T17:48:07Z
TST: added groupby apply test for nan coerce
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index e07d56931db8c..9e15da1bb0c01 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -1157,3 +1157,24 @@ def test_apply_na(dropna): result = dfgrp.apply(lambda grp_df: grp_df.nlargest(1, "...
- [x] closes #24903 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Bug was reported in #24903 that showed empty strings being coerced into Nan when certain apply was used...
https://api.github.com/repos/pandas-dev/pandas/pulls/44038
2021-10-15T01:04:31Z
2021-10-16T15:36:13Z
2021-10-16T15:36:13Z
2021-10-16T15:36:17Z
DOC: Document and annotate Index.reindex (#40328).
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f6bb8e7af3558..2dbfb23c9b785 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3947,6 +3947,27 @@ def reindex( Parameters ---------- target : an iterable + method : {None, 'pad'/'f...
- [x] closes #40328 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44037
2021-10-14T22:10:42Z
2021-10-16T15:35:07Z
2021-10-16T15:35:06Z
2021-10-16T15:47:43Z
Backport PR #43729: DEPS: Upgrade Deps for Python 3.10
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index d4777bcd1d079..2e4bfea165316 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -13,5 +13,5 @@ runs: - name: Build Pandas run: | python setup.py bu...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry **THIS IS A MANUAL BACKPORT OF LARGE BUILD CHANGES. PLEASE REVIEW CAREFULLY BEFORE MER...
https://api.github.com/repos/pandas-dev/pandas/pulls/44036
2021-10-14T21:40:29Z
2021-10-15T01:33:26Z
2021-10-15T01:33:26Z
2021-10-15T02:24:37Z
TST: adds test for .loc on multiindex for series GH43908
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index 104fa2da7a67e..d036773c778e6 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -912,3 +912,11 @@ def test_loc_keyerror_rightmost_key_missing(): ...
- [x] closes #43908 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44035
2021-10-14T21:01:33Z
2021-10-15T18:15:20Z
2021-10-15T18:15:20Z
2021-10-15T18:15:35Z
CLN: no need for suffices anymore in test_hashtable.py
diff --git a/pandas/tests/libs/test_hashtable.py b/pandas/tests/libs/test_hashtable.py index 8b7304a84c27b..bdc02ff0aa7a8 100644 --- a/pandas/tests/libs/test_hashtable.py +++ b/pandas/tests/libs/test_hashtable.py @@ -370,96 +370,85 @@ def test_unique_for_nan_objects_tuple(): assert len(unique) == 2 -def get_ht...
- [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Since we have version with fused types, there is no need to call precise version (i.e. with suffices like ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44034
2021-10-14T20:29:13Z
2021-10-15T18:16:32Z
2021-10-15T18:16:32Z
2021-10-15T18:16:47Z
REGR: Barplot broken on Index(dtype='object')
diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py index adda95f4c5aa0..c9cd212696a56 100644 --- a/pandas/tests/plotting/test_misc.py +++ b/pandas/tests/plotting/test_misc.py @@ -2,12 +2,13 @@ import numpy as np import pytest +from matplotlib.text import Text import pandas.util....
- [ ] closes #38947 - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44033
2021-10-14T20:19:30Z
2022-01-25T01:25:22Z
null
2022-01-25T01:25:22Z
[PERF] fixing memory leak in aggregation.pyx
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 9c9aacc4b0f52..b6ee2d57a0965 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -35,6 +35,7 @@ Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values including ``NaT`` values ...
- [x] closes #43339 - [x] tests passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry The old memory needs to be released, before the pointer switches to the new list.
https://api.github.com/repos/pandas-dev/pandas/pulls/44032
2021-10-14T20:06:26Z
2021-10-16T17:46:50Z
2021-10-16T17:46:50Z
2021-10-16T17:47:33Z
ENH/CI: Add Cache for Azure pipelines - posix
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 02a4a9ad44865..8bdafc85b2c2a 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -43,8 +43,33 @@ jobs: - script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' displayName: 'Set conda path' + - task: Cache@2 + displayName: Us...
- [x] closes ##42580 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Trying to leverage the use of cache on Azure pipelines - currently WIP will make s...
https://api.github.com/repos/pandas-dev/pandas/pulls/44029
2021-10-14T10:59:00Z
2022-03-30T01:22:29Z
null
2022-03-30T01:22:30Z
Temporarily add back Index._get_attributes_dict for dask compat
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f6bb8e7af3558..cc0521caaaf6c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -731,6 +731,22 @@ def _format_duplicate_message(self) -> DataFrame: # -------------------------------------------------------------...
See https://github.com/pandas-dev/pandas/pull/43895#issuecomment-938472299. There was of course no need to revert the full PR, just to add this method again.
https://api.github.com/repos/pandas-dev/pandas/pulls/44028
2021-10-14T09:48:22Z
2021-10-14T22:47:57Z
2021-10-14T22:47:57Z
2021-10-14T22:48:00Z
Bug multiple css selectors GH44011
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..3d89911434bfa 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -544,6 +544,8 @@ Styler - Bug when rendering an empty DataFrame with a named index (:issue:`43305`). - Bug when rendering ...
- [x ] closes #44011 - [x ] tests added / passed - [x ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44023
2021-10-14T00:59:05Z
2021-10-16T13:58:11Z
2021-10-16T13:58:10Z
2021-10-16T13:58:15Z
ENH: Ability to coerce floats when reading csv files GH2570
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2eb140e0bb6c2..fcabee06087dd 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -129,6 +129,7 @@ Other enhancements - :meth:`DataFrame.__pos__`, :meth:`DataFrame.__neg__` now retain ``ExtensionDtype`` dt...
- [x] closes #2570 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Ran the `io.csv.Read*` benchmarks which resulted in `BENCHMARKS NOT SIGNIFICANTLY CHAN...
https://api.github.com/repos/pandas-dev/pandas/pulls/44022
2021-10-14T00:02:58Z
2021-11-14T03:07:58Z
null
2021-11-14T03:07:59Z
DOC: DatetimeArray.std
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 6e58f487d5f4a..1ce75f5aac877 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -407,6 +407,7 @@ Methods :toctree: api/ DatetimeIndex.mean + DatetimeIndex.std TimedeltaIndex ...
`DatetimeIndex.std` is missing a doc-string. Add doc-string to `DatetimeArray.std` as `DatetimeIndex` is re-using `DatetimeArray.std`. There are a few more keywords, but they seem to be not implemented (numpy-compatiblity?) ```py pd.DatetimeIndex([1, 2]).std(out=[]) ValueError: the 'out' parameter is not supp...
https://api.github.com/repos/pandas-dev/pandas/pulls/44020
2021-10-13T22:44:08Z
2021-10-18T19:54:31Z
2021-10-18T19:54:31Z
2022-04-01T01:36:48Z
BUG: RangeIndex.union
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..d17329902f343 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -548,6 +548,7 @@ Styler Other ^^^^^ - Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__ad...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44019
2021-10-13T22:12:03Z
2021-10-16T15:39:08Z
2021-10-16T15:39:08Z
2021-10-16T16:10:04Z
DOC: Upload cheatsheets to site
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8f5f0385732f..20f7712131ba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,7 +137,7 @@ jobs: if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}} - name: Upload web - run: rsync ...
- [x] closes #40949 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry I went ahead and modified the `.github/workflows/ci.yml` so that the cheatsheets ar...
https://api.github.com/repos/pandas-dev/pandas/pulls/44018
2021-10-13T17:24:19Z
2021-10-18T15:16:36Z
2021-10-18T15:16:36Z
2021-10-28T16:36:12Z
Backport PR #44012 on branch 1.3.x (DOC: minor fixup of 1.3.4 release notes)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 6f07dc3e1e2f9..7fa24ab6225df 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,13 +15,13 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`.Gr...
Backport PR #44012: DOC: minor fixup of 1.3.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/44016
2021-10-13T15:30:23Z
2021-10-13T18:03:49Z
2021-10-13T18:03:49Z
2021-10-13T18:03:49Z
TST: More type checking during .(i)loc
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index b8c53c7b59239..edc1beb4c94aa 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -101,13 +101,20 @@ def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manage ...
- [X] Related to #43996 - [X] tests added to `pandas/tests/indexing/test_iloc.py` - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] During assignment to a .iloc or a .loc indexer, depending on whether...
https://api.github.com/repos/pandas-dev/pandas/pulls/44015
2021-10-13T13:36:51Z
2021-11-28T20:45:24Z
null
2021-11-28T20:45:25Z
DOC: minor fixup of 1.3.4 release notes
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 963aaa7f9189f..9c9aacc4b0f52 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,13 +15,13 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`.Gr...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44012
2021-10-13T11:52:55Z
2021-10-13T15:29:56Z
2021-10-13T15:29:55Z
2021-10-13T16:22:01Z
DOC: Added DataFrame in Parameters & Return description in the docstring
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 8b37026e16171..21357f37853d9 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -692,7 +692,8 @@ def to_datetime( Parameters ---------- arg : int, float, str, datetime, list, tuple, 1-d arr...
- [x] closes #41676 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Hello! I have added the following information to the source code (docstring of to_...
https://api.github.com/repos/pandas-dev/pandas/pulls/44007
2021-10-13T04:18:04Z
2021-10-17T20:55:07Z
2021-10-17T20:55:07Z
2021-10-18T15:57:24Z
CLN: pragma no cover, post-array_ufunc
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 82f9280870d59..4570957c01016 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1428,13 +1428,13 @@ def diff_2d( # see https://github.com/cython/cython/issues/2646 if (out_t is float32_t and not (diff_t is float...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44006
2021-10-13T04:01:56Z
2021-10-15T13:52:08Z
2021-10-15T13:52:08Z
2022-01-18T16:00:19Z
TST: Adding test to test_numeric, #37348
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 2e4551a449267..9932adccdbaf2 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -1429,3 +1429,16 @@ def test_sub_multiindex_swapped_levels(): result = df - df2 ...
- [x] closes #37348 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them This makes sure that comparing int to empty strings doesn't return an error.
https://api.github.com/repos/pandas-dev/pandas/pulls/44005
2021-10-13T01:12:19Z
2021-10-16T14:46:41Z
2021-10-16T14:46:40Z
2021-10-16T14:46:44Z
REF: de-duplicate MaskedArray tests
diff --git a/pandas/tests/arrays/boolean/test_comparison.py b/pandas/tests/arrays/boolean/test_comparison.py index 726b78fbd43bd..8730837b518e5 100644 --- a/pandas/tests/arrays/boolean/test_comparison.py +++ b/pandas/tests/arrays/boolean/test_comparison.py @@ -4,7 +4,7 @@ import pandas as pd import pandas._testing as...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44004
2021-10-12T23:01:21Z
2021-10-13T17:47:54Z
2021-10-13T17:47:54Z
2021-10-13T20:02:33Z
[BUG] Fix DataFrameGroupBy.boxplot with subplots=False fails for object columns
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 026429dabae84..63c18374b9154 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -542,7 +542,7 @@ Period Plotting ^^^^^^^^ -- +- When given non-numeric data, :meth:`DataFrame.boxplot` now raises a ``Va...
- [x] closes #43480 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44003
2021-10-12T22:25:43Z
2021-11-14T03:08:55Z
2021-11-14T03:08:55Z
2021-11-14T03:08:59Z
ENH: Support observed keyword argument in Categorical.value_counts
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7828c479e800f..55967c6fdbbfe 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -211,7 +211,7 @@ Other enhancements - :meth:`.GroupBy.mean` now supports `Numba <http://numba.pydata.org/>`_ execution with...
- [x] closes #43498 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44002
2021-10-12T19:16:22Z
2022-02-22T05:30:04Z
null
2022-02-22T05:30:04Z
BUG: Fix for rolling with uneven nanosecond windows have wrong results
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c5a22d8766a96..e47eaa94eb412 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -506,6 +506,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.apply` with time-based :class:`Grouper` objects incorrect...
- [x] closes #43997 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43998
2021-10-12T15:44:50Z
2021-10-15T00:59:21Z
2021-10-15T00:59:21Z
2021-10-15T00:59:28Z
MAINT: Correct small cast issues on Windows
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index e7f889ef39707..ec89e52e2eff7 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -543,7 +543,7 @@ def has_infs(floating[:] arr) -> bool: def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, int max_len): cdef: Py_ssize_t i,...
Use correct types to avoid downcasts on Windows - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43995
2021-10-12T09:40:05Z
2021-10-12T22:19:37Z
2021-10-12T22:19:37Z
2021-10-12T22:19:37Z
REF: share more ExtensionIndex methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a6360454cc02c..f6bb8e7af3558 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -356,6 +356,7 @@ def _outer_indexer( _typ: str = "index" _data: ExtensionArray | np.ndarray + _data_cls: type[np.ndarray]...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43992
2021-10-12T04:54:51Z
2021-10-12T19:31:54Z
2021-10-12T19:31:54Z
2021-10-12T19:44:58Z
CLN: use numpy quantile in qcut
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 77cd73fdfe91b..10a5932731e3b 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1117,89 +1117,6 @@ def checked_add_with_arr( return arr + b -def quantile(x, q, interpolation_method="fraction"): - """ - Comput...
The quantile function in algos is a partial implementation of the numpy quantile and there are no pandas objects involved.
https://api.github.com/repos/pandas-dev/pandas/pulls/43991
2021-10-12T04:18:47Z
2021-10-12T19:27:24Z
2021-10-12T19:27:24Z
2021-10-12T19:31:13Z
TST: pass exact to assert_index_equal
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index fc7e36dda4619..c9f7fd43c1050 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -33,6 +33,7 @@ IntervalIndex, MultiIndex, PeriodIndex, + RangeIndex, Series, TimedeltaIndex, ) @@ -552,...
After this we're close to being able to change the default from "equiv" to True (not that we would since that would be an API change)
https://api.github.com/repos/pandas-dev/pandas/pulls/43989
2021-10-12T01:50:11Z
2021-10-12T19:26:51Z
2021-10-12T19:26:50Z
2021-10-12T19:31:54Z
PERF: RangeIndex.insert
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index d219361dbdd57..90649ad2dcbc1 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -713,6 +713,20 @@ def symmetric_difference(self, other, result_name: Hashable = None, sort=None): # -------------------------...
``` index = pd.Index(range(2)) %timeit index.insert(2, 2) 48.4 µs ± 2.03 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 2.54 µs ± 70.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43988
2021-10-11T23:50:46Z
2021-10-12T19:32:17Z
2021-10-12T19:32:17Z
2021-10-12T19:45:16Z
REF: extract params used in DataFrame.__repr__
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..9ce8a19b98857 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -994,24 +994,8 @@ def __repr__(self) -> str: self.info(buf=buf) return buf.getvalue() - max_rows = get_option("display.max_rows")...
`DataFrame.__repr__` used different parameters than `DataFrame.to_string` and I've got a case where I want to use the `__repr__` ones, but with a change to one of the parameters. This refactoring makes it possible to extract those parameters so we can do: ```python >>> params = pd.io.formats.format.get_frame_repr_p...
https://api.github.com/repos/pandas-dev/pandas/pulls/43987
2021-10-11T22:58:31Z
2021-10-14T23:33:23Z
2021-10-14T23:33:23Z
2021-10-16T13:12:03Z
BUG: DataFrame.drop fails when columns argument given tuple
diff --git a/pandas/core/common.py b/pandas/core/common.py index 2bf925466e176..21c66e9638cc8 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -248,7 +248,9 @@ def asarray_tuplesafe(values, dtype: NpDtype | None = None) -> np.ndarray: return result -def index_labels_to_array(labels, dtype: NpD...
- [x] closes #43978 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43985
2021-10-11T21:59:30Z
2021-10-22T19:45:54Z
null
2021-10-22T19:47:02Z
TYP: Fixup annotations.
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a6360454cc02c..0310f92ffda7e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6708,17 +6708,19 @@ def _deprecated_arg(self, value, name: str_t, methodname: str_t) -> None: ) -def ensure_index_from...
Both modified functions may return a MultiIndex; the return annotation has been updated to reflect that. Added type hint for `names`. Minor docstring tweak. - [ ] closes #xxxx - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-com...
https://api.github.com/repos/pandas-dev/pandas/pulls/43981
2021-10-11T21:22:41Z
2021-10-13T07:45:40Z
null
2021-10-13T07:45:40Z
BUG: Fix `skipna` default value in method signatures
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b235f120d98c8..0e86a544f3435 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10387,15 +10387,13 @@ def _stat_function_ddof( name: str, func, axis=None, - skipna=None, + skipna=True, ...
Set `skipna` default values to `True` so that the value matches the purpose of the variable and its docstring. - [X] closes #34063 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43980
2021-10-11T21:09:30Z
2021-10-16T17:28:54Z
2021-10-16T17:28:54Z
2021-10-16T17:30:01Z
TYP: misc
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index bff7d117c97da..6dd1c7c9fb209 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -1,4 +1,5 @@ -# Note: this covers algos.pyx and algos_common_helper but NOT algos_take_helper +from __future__ import annotations + from typing import Any ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43977
2021-10-11T19:20:20Z
2021-10-14T23:21:06Z
2021-10-14T23:21:06Z
2021-10-14T23:45:48Z
DOC: bug in user guide after new method
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 67cf07a718877..1c83b0d3d048b 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1288,7 +1288,7 @@ "outputs": [], "source": [ "df2.style.format('{:.3f}', na_rep=\"\")\\\n", - "...
just updating something that I missed on previous pr when arg name was changed.
https://api.github.com/repos/pandas-dev/pandas/pulls/43976
2021-10-11T16:11:30Z
2021-10-14T17:07:13Z
2021-10-14T17:07:13Z
2021-10-15T16:48:20Z
BUG/TST: fixed so various methods call `__finalize__`, issue #28283
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 88238ac42ecff..e6755903d734f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7355,7 +7355,9 @@ def combine( result[col] = arr # convert_objects just in case - return self._constructor(result, index=new_index, ...
### Progress towards #28283 After this PD, the following methods should propagate metadata using `__finalize__`: - `DataFrame.combine, DataFrame.combine_first` - `DataFrame.explode` - `DataFrame.isin` - `DataFrame.merge` - `DataFrame.melt` - `DataFrame.mode` - `DataFrame.quantile` <br/> - [ ] closes #xx...
https://api.github.com/repos/pandas-dev/pandas/pulls/43974
2021-10-11T15:57:46Z
2021-11-14T03:09:42Z
null
2021-11-14T03:09:43Z
ENH: Rolling with steps
diff --git a/pandas/_libs/window/indexers.pyi b/pandas/_libs/window/indexers.pyi index c9bc64be34ac9..e7630684a2380 100644 --- a/pandas/_libs/window/indexers.pyi +++ b/pandas/_libs/window/indexers.pyi @@ -6,6 +6,7 @@ def calculate_variable_window_bounds( num_values: int, # int64_t window_size: int, # int64_...
- [x] closes #15354 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry - [x] update docu - [ ] docu example - [ ] add *versionadded* to docu if accepted
https://api.github.com/repos/pandas-dev/pandas/pulls/43973
2021-10-11T15:57:18Z
2021-10-16T20:54:29Z
null
2021-10-16T20:54:29Z
STYLE ban np.testing
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e99fda786ee68..2c76b682ee343 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -135,6 +135,12 @@ repos: entry: 'np\.random\.seed' files: ^asv_bench/benchmarks exclude: ^asv_bench/benchmarks/pandas_vb_comm...
xref https://github.com/pandas-dev/pandas/pull/43674#discussion_r720831806 There used to be a linting rule for this, but I missed it when moving linting rules over to `pandas-dev-flaker` in https://github.com/pandas-dev/pandas/pull/40906 - sorry about that, I thought I'd checked that everything had been preserved ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43971
2021-10-11T13:58:02Z
2021-10-11T22:29:40Z
2021-10-11T22:29:40Z
2021-10-11T22:29:44Z
TST: changed behavior of df.loc on multiindex
diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py index 104fa2da7a67e..aef9fdec5d593 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -912,3 +912,13 @@ def test_loc_keyerror_rightmost_key_missing(): ...
-added unittest for issue #43599 -error occurs due to different versions of pandas -made the requested changes
https://api.github.com/repos/pandas-dev/pandas/pulls/43970
2021-10-11T13:37:35Z
2021-10-11T16:57:40Z
null
2021-10-11T16:57:40Z
FIX BUG: Timestamp __add__/__sub__ DateOffset with nanoseconds lost.
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f50442eb7ca46..d6d3127e67945 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -626,6 +626,7 @@ Datetimelike - Bug in adding a ``np.timedelta64`` object to a :class:`BusinessDay` or :class:`CustomBusine...
- [x] closes #43892 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43968
2021-10-11T13:23:29Z
2021-12-17T22:41:30Z
2021-12-17T22:41:29Z
2021-12-18T07:47:52Z
Example for pandas.DataFrame.to_period docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..5df90eda378ee 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10503,6 +10503,28 @@ def to_period( Returns ------- DataFrame with PeriodIndex + + Examples + -------- + >>> idx = ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Doc improvement - added the example section for pandas.DataFrame.to_period
https://api.github.com/repos/pandas-dev/pandas/pulls/43967
2021-10-11T10:49:49Z
2021-10-14T22:40:42Z
2021-10-14T22:40:42Z
2021-10-14T22:41:02Z
CI: Add Cache task on Windows
diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml index 3bd20b1399be2..6b28fab070aac 100644 --- a/ci/azure/windows.yml +++ b/ci/azure/windows.yml @@ -2,6 +2,11 @@ parameters: name: '' vmImage: '' + +variables: + CONDA_CACHE_DIR: $(Pipeline.Workspace)/.condarc + + jobs: - job: ${{ parameters.name }} ...
- [ ] closes #42580 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43966
2021-10-11T10:19:02Z
2021-10-21T14:25:21Z
null
2021-10-21T14:25:21Z
DOC: Fix Series nlargest and nsmallest doc strings (#43964)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 76a00071c8adc..b266702f9a6d3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6597,7 +6597,7 @@ def nlargest(self, n, columns, keep: str = "first") -> DataFrame: - `first` : prioritize the first occurrence(s) - `las...
- [x] closes #43937 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Cancel nlargest and nsmallest's doc list item text bold effect, detail could see below. From ![Clip...
https://api.github.com/repos/pandas-dev/pandas/pulls/43964
2021-10-11T02:59:44Z
2021-10-12T22:28:00Z
2021-10-12T22:28:00Z
2021-10-15T02:02:53Z
Test that using a `tuple` or `list` for parameter `ascending` of `sort_index` is the same
diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py index e0f3286ec1f2f..c1141f705acbc 100644 --- a/pandas/tests/frame/methods/test_sort_index.py +++ b/pandas/tests/frame/methods/test_sort_index.py @@ -785,6 +785,48 @@ def test_sort_index_use_inf_as_na(self): ...
- [x] closes #43884 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry I could not find a suitable place to add a `whatsnew` entry, if there is one I will ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43963
2021-10-10T22:17:27Z
2021-10-16T14:35:19Z
2021-10-16T14:35:19Z
2021-10-16T14:35:23Z
BUG: RangeIndex arithmetic result.name
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4914d213accac..32f99c7852cca 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -411,6 +411,7 @@ Numeric - Bug in :meth:`DataFrame.rank` treating missing values and extreme values as equal (for example `...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43962
2021-10-10T21:48:33Z
2021-10-11T22:06:08Z
2021-10-11T22:06:08Z
2021-10-11T22:21:06Z
ENH: Update isin docs with examples of ~ operator usage (#43959)
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 584dd0f52ae28..e41f938170417 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -997,6 +997,15 @@ a list of items you want to check for. df.isin(values) +To return the DataFrame of...
- [x] closes #43959 Updated relevant docs to show usage of ~ to emulate `notin` operation.
https://api.github.com/repos/pandas-dev/pandas/pulls/43961
2021-10-10T21:42:10Z
2021-10-12T22:20:29Z
2021-10-12T22:20:29Z
2021-10-12T22:20:33Z
TYP/CLN: mostly in io/html.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d360c450194f1..c29a67c4942db 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -22,7 +22,6 @@ IO, TYPE_CHECKING, Any, - AnyStr, Callable, Hashable, Iterable, @@ -2598,7 +2597,7 @@ def to_stata( writer....
and in io/feather_format.py
https://api.github.com/repos/pandas-dev/pandas/pulls/43958
2021-10-10T17:38:21Z
2021-10-17T21:50:06Z
2021-10-17T21:50:05Z
2021-10-17T21:50:10Z
DOC: cancel replace's doc list item text bold effect
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index a3fa24c7ee1e0..7d89f2e8b7789 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -414,51 +414,51 @@ * numeric, str or regex: - numeric: numeric values equal to `to_replace` will be - ...
- [x] closes #43937 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] Cancel replace's doc list item text bold effect, detail could see below. From ![image](https://use...
https://api.github.com/repos/pandas-dev/pandas/pulls/43955
2021-10-10T10:17:20Z
2021-10-10T18:12:43Z
2021-10-10T18:12:42Z
2021-10-10T18:12:46Z
PERF: Index.insert
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c002832cd89bb..d7a8a2e3d5f87 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6330,13 +6330,24 @@ def insert(self, loc: int, item) -> Index: dtype = self._find_common_type_compat(item) re...
``` import pandas as pd idx = pd.Index([4, 5, 6]) %timeit idx.insert(1, 19) 26.7 µs ± 299 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 15.5 µs ± 185 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43953
2021-10-10T04:03:53Z
2021-10-10T21:41:14Z
2021-10-10T21:41:14Z
2021-10-10T21:51:37Z
REF: share RangeIndex methods
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index da953fe46ef1d..1c1bc356ef816 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1027,7 +1027,8 @@ def take( taken = algos.take( self._values, indices, allow_fill=allow_fill, fill_value=self._na...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43952
2021-10-10T03:42:18Z
2021-10-10T17:20:56Z
2021-10-10T17:20:56Z
2021-10-10T18:04:09Z
TYP: Use Protocols for file-like objects in read/to_*
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index c7113e663789b..437e75be0e55b 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -10,7 +10,10 @@ ) import zipfile -from pandas._typing import FilePathOrBuffer +from pandas._typing import ( + FilePath, + ReadPickleBuffer, +) fr...
Fixes #41610, rebased on top of #43855. This PR does a few things: 1. break `FilePathOrBuffer` apart to not mix basic types and generics 2. use protocols instead of union of specific classes 3. define many fine-grained protocols for the to/read methods/functions I tested that the protocols are sufficient (ne...
https://api.github.com/repos/pandas-dev/pandas/pulls/43951
2021-10-10T02:23:24Z
2021-11-17T02:11:38Z
2021-11-17T02:11:38Z
2021-11-24T23:02:11Z
BUG: startswith function gives misleading results when passed a series #3485
diff --git a/pandas/core/strings/object_array.py b/pandas/core/strings/object_array.py index 76ee55ef5f9ad..9a666c874c0a6 100644 --- a/pandas/core/strings/object_array.py +++ b/pandas/core/strings/object_array.py @@ -24,6 +24,7 @@ if TYPE_CHECKING: from pandas import Series +from pandas import Series class O...
- [x] closes #3485 - [] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry ``` python import pandas d = pandas.DataFrame([['hi,hi 2'],['bye','bye 2']], columns=[...
https://api.github.com/repos/pandas-dev/pandas/pulls/43950
2021-10-09T23:57:42Z
2021-11-14T03:13:56Z
null
2021-11-14T03:13:56Z