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
CLN: remove unused _max_fitting_element
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 0e6fb77e8b51b..ead1a2a4a544b 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -604,11 +604,6 @@ def _min_fitting_element(self, lower_limit: int) -> int: no_steps = -(-(lower_limit - self.start) // abs(...
- [ ] 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/41639
2021-05-24T05:03:37Z
2021-05-24T08:52:45Z
2021-05-24T08:52:45Z
2021-05-24T15:15:38Z
CLN: remove unnecessary _comparables
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index be81ff1c3fa52..5f24eb0cfaad6 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -82,6 +82,7 @@ class DatetimeIndexOpsMixin(NDArrayBackedExtensionIndex): Common ops mixin to suppor...
- [ ] 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/41638
2021-05-24T04:45:55Z
2021-05-26T01:48:50Z
2021-05-26T01:48:50Z
2021-05-26T04:23:55Z
CI: Unpin pip in py38 npdev
diff --git a/ci/deps/actions-38-numpydev.yaml b/ci/deps/actions-38-numpydev.yaml index e7ee6ccfd7bac..b50d0c6d690c7 100644 --- a/ci/deps/actions-38-numpydev.yaml +++ b/ci/deps/actions-38-numpydev.yaml @@ -12,7 +12,7 @@ dependencies: # pandas dependencies - pytz - - pip=20.2 + - pip - pip: - cython==0....
- [x] closes #38221 - [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/41637
2021-05-23T21:21:35Z
2021-05-25T08:09:06Z
2021-05-25T08:09:06Z
2021-05-28T20:48:47Z
ENH: set render limits on `Styler` to automatically trim dataframes
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index aa8a8fae417be..62a347acdaa34 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -487,6 +487,8 @@ styler.sparse.index True "Sparsify" MultiIndex displ ...
- [x] closes #40712 also linking #11700 - [x] tests added / passed Adds an option: `styler.max.elements` with a default value of 2**18 = 262144. ``` >>> pd.options.styler.max.elements = 2**18 >>> df = pd.DataFrame(np.random.rand(10000,100)) >>> %timeit df.style.render() 4.11 s ± 30.3 ms per loop (mean ± std...
https://api.github.com/repos/pandas-dev/pandas/pulls/41635
2021-05-23T19:37:14Z
2021-06-04T12:51:37Z
2021-06-04T12:51:37Z
2021-06-04T18:11:35Z
REF: share _mpl_repr
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8fb88e625d948..bd711a2624753 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1167,9 +1167,12 @@ def _format_attrs(self): """ return format_object_attrs(self) - def _mpl_repr(self): + @fi...
- [ ] 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/41627
2021-05-23T04:00:44Z
2021-05-25T13:21:21Z
2021-05-25T13:21:21Z
2021-05-25T13:59:21Z
REF: simplify maybe_cast_to_datetime
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 51b9ed5fd22c7..30b807001c33c 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -726,7 +726,9 @@ def _try_cast( except (ValueError, TypeError) as err: if dtype is not None and raise_cast_failure: ...
- [ ] 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/41624
2021-05-22T20:35:07Z
2021-05-25T13:23:32Z
2021-05-25T13:23:32Z
2021-05-25T14:00:27Z
REF: convert_dtypes return dtype objects
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index e3616bc857140..867f3b313da08 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1386,7 +1386,7 @@ def convert_dtypes( convert_integer: bool = True, convert_boolean: bool = True, convert_floating: bool = T...
This turns out to be a blocker for sharing arrays.integers.safe_cast with maybe_cast_to_integer_array, which in turn is a blocker for #34460
https://api.github.com/repos/pandas-dev/pandas/pulls/41622
2021-05-22T19:19:05Z
2021-05-24T18:18:31Z
2021-05-24T18:18:31Z
2021-05-24T18:30:47Z
TYP: NaTType comparisons
diff --git a/pandas/_libs/tslibs/nattype.pyi b/pandas/_libs/tslibs/nattype.pyi index 0f81dcb4b2df1..5a2985d0e815b 100644 --- a/pandas/_libs/tslibs/nattype.pyi +++ b/pandas/_libs/tslibs/nattype.pyi @@ -1,8 +1,14 @@ -from datetime import datetime +from datetime import ( + datetime, + timedelta, +) +from typing im...
- [ ] 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/41621
2021-05-22T18:26:48Z
2021-05-24T08:59:54Z
2021-05-24T08:59:54Z
2021-05-24T15:16:11Z
TYP: __future__ annotations in parsers
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index df2bfa7d2a870..02084f91d9966 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from collections import defaultdict import csv import 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/41620
2021-05-22T18:24:03Z
2021-05-23T08:49:24Z
2021-05-23T08:49:24Z
2021-05-23T17:13:03Z
REF: type change `escape` in `Styler.format` to str to allow "html" and "latex"
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 219b74407fae4..7d8d8e90dfbda 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1462,7 +1462,7 @@ "metadata": {}, "outputs": [], "source": [ - "df4.style.format(escape=True)" +...
Change is made ahead of 1.3.0 to pre-empt the addition of `escape_latex` and to avoid name ambiguity. This is not user facing since the `escape` kwarg was added for 1.3.0 only recently. **Alternative** If instead of having separate `escape_html` and `escape_latex` kwargs we could have `escape={None, 'html', 'l...
https://api.github.com/repos/pandas-dev/pandas/pulls/41619
2021-05-22T17:36:03Z
2021-05-27T15:09:07Z
2021-05-27T15:09:07Z
2021-05-27T21:23:16Z
REF: _try_cast
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 51b9ed5fd22c7..c0759e90da980 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -39,6 +39,7 @@ maybe_cast_to_datetime, maybe_cast_to_integer_array, maybe_convert_platform, + maybe_infer_to_datetimel...
collect all the `dtype is None` cases together
https://api.github.com/repos/pandas-dev/pandas/pulls/41618
2021-05-22T15:37:02Z
2021-05-25T13:26:41Z
2021-05-25T13:26:41Z
2021-05-25T14:03:09Z
CLN: various related to numeric indexes
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index aaf58f1fcb150..40f23c25a1e99 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -30,9 +30,13 @@ from pandas.core.dtypes.common import ( is_datetime64_dtype, is_datetime64tz_dtype, + is_float_dtype, + ...
A few bits to make #41153 smaller. Also fixes an issue with the current implementation of NumericIndex._engine_type: The implementation currently uses `self.dtype.type`, which is a problem when we are given platform-specific dtypes, e.g. `np.intc`. For example: ```python >>> d1 = np.dtype(np.intc) >>> d1 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41615
2021-05-22T11:22:03Z
2021-06-03T23:24:05Z
2021-06-03T23:24:05Z
2021-06-03T23:31:22Z
REGR: CategoricalIndex(None)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d357e4a633347..5e76310e5f514 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -652,6 +652,7 @@ Build Deprecations ~~~~~~~~~~~~ - Deprecated allowing scalars to be passed to the :class:`Categorical` c...
- [x] closes #38944 - [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/41612
2021-05-22T05:29:06Z
2021-05-25T08:14:34Z
2021-05-25T08:14:34Z
2021-05-25T14:19:12Z
REF: re-use sanitize_array in DataFrame._sanitize_columns
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index e83aa02f25ada..e18ba805be052 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -467,6 +467,8 @@ def sanitize_array( dtype: DtypeObj | None = None, copy: bool = False, raise_cast_failure: bool = True, ...
- [ ] 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 A big partial-indexing test is split and has a non-trivial diff, but the only _actual_ chan...
https://api.github.com/repos/pandas-dev/pandas/pulls/41611
2021-05-22T04:07:38Z
2021-05-26T01:49:26Z
2021-05-26T01:49:26Z
2021-05-26T04:24:30Z
BUG: pydatetime case followup to #41555
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 80d9a22a39b1e..53d196c78d988 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1915,13 +1915,19 @@ def maybe_unbox_datetimelike_tz_deprecation( along with a timezone-naive datetime64 dtype, which is deprecated. ...
#41555 was merged before i got a chance to push these suggested edits
https://api.github.com/repos/pandas-dev/pandas/pulls/41609
2021-05-21T20:36:30Z
2021-05-22T01:23:37Z
2021-05-22T01:23:37Z
2021-05-22T01:25:58Z
TYP deprecate_nonkeyword_arguments
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index f4c360f476514..5d53ab0cc41be 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -261,7 +261,7 @@ def deprecate_nonkeyword_arguments( version: str | None, allowed_args: list[str] | None = None, stacklevel: ...
If we have ```python import pandas as pd reveal_type(pd.Series(range(3)).interpolate('linear')) ``` then on master we get: ```console $ mypy t.py t.py:3: note: Revealed type is 'Any' ``` while here ```console $ mypy t.py t.py:3: note: Revealed type is 'Union[pandas.core.series.Series, None]' ```
https://api.github.com/repos/pandas-dev/pandas/pulls/41608
2021-05-21T19:58:53Z
2021-05-22T00:24:57Z
2021-05-22T00:24:57Z
2021-05-22T08:51:42Z
TST: Old issues
diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py index 7244624e563e3..32a499f6e9168 100644 --- a/pandas/tests/frame/indexing/test_where.py +++ b/pandas/tests/frame/indexing/test_where.py @@ -745,3 +745,15 @@ def test_where_bool_comparison(): } ) tm.as...
- [x] closes #15452 - [x] closes #15613 - [x] closes #15829 - [x] closes #15891 - [x] closes #15898 - [x] closes #16018 - [x] closes #16174 - [x] closes #16309 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code...
https://api.github.com/repos/pandas-dev/pandas/pulls/41607
2021-05-21T17:15:18Z
2021-05-24T18:55:31Z
2021-05-24T18:55:28Z
2021-05-24T19:30:17Z
BUG: case argument ignored when regex is False in Series.str.replace
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index c6c4dadaf8c9d..b686bcf690e8f 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -782,6 +782,7 @@ Strings - Bug in the conversion from ``pyarrow.ChunkedArray`` to :class:`~arrays.StringArray` when the ori...
- [ ] closes #41602 - [ ] 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/41606
2021-05-21T16:01:19Z
2021-05-25T13:35:30Z
2021-05-25T13:35:29Z
2021-05-25T14:36:47Z
[ArrowStringArray] TYP: add annotations to str.replace
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index c2b2454c1b858..028b88cb0b1d8 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1,12 +1,12 @@ from __future__ import annotations import codecs +from collections.abc import Callable # noqa: PDF00...
pre-cursor to #41590
https://api.github.com/repos/pandas-dev/pandas/pulls/41603
2021-05-21T13:12:32Z
2021-05-21T15:11:15Z
2021-05-21T15:11:15Z
2021-05-21T15:19:32Z
[ArrowStringArray] TYP: use future annotations more
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 43df34a7ecbb2..c2b2454c1b858 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1,14 +1,12 @@ +from __future__ import annotations + import codecs from functools import wraps import re from typing...
pre-cursor to #41590
https://api.github.com/repos/pandas-dev/pandas/pulls/41601
2021-05-21T09:59:46Z
2021-05-21T12:29:59Z
2021-05-21T12:29:59Z
2021-05-21T12:30:22Z
[ArrowStringArray] TST/CLN: cleanup str.replace tests
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 43df34a7ecbb2..020291f1caf45 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1348,7 +1348,7 @@ def replace(self, pat, repl, n=-1, case=None, flags=0, regex=None): ) ...
pre-cursor to #41590
https://api.github.com/repos/pandas-dev/pandas/pulls/41600
2021-05-21T09:19:12Z
2021-05-21T15:31:34Z
2021-05-21T15:31:33Z
2021-05-21T15:43:00Z
BUG: DataFrame(ndarray[dt64], dtype=object)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index c6c4dadaf8c9d..b3d9252acd3cb 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -775,6 +775,8 @@ Conversion - Bug in :func:`factorize` where, when given an array with a numeric numpy dtype lower than int...
- [ ] 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
https://api.github.com/repos/pandas-dev/pandas/pulls/41599
2021-05-21T05:10:26Z
2021-05-21T21:17:15Z
2021-05-21T21:17:15Z
2021-05-21T21:21:42Z
REF: _try_cast; go through fastpath more often
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index e83aa02f25ada..51b9ed5fd22c7 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -38,9 +38,9 @@ construct_1d_object_array_from_listlike, maybe_cast_to_datetime, maybe_cast_to_integer_array, - maybe_c...
- [x] closes #28145 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41597
2021-05-20T22:55:46Z
2021-05-22T01:24:08Z
2021-05-22T01:24:08Z
2021-05-22T01:39:22Z
CI: Xfails on Python 3.10
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 8ccf89c73704c..57e0144c967ea 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...
- [ ] 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 ~~The Python 3.10 CI is actually red, but the continue-on-error flag makes it so that the j...
https://api.github.com/repos/pandas-dev/pandas/pulls/41595
2021-05-20T22:34:51Z
2021-06-29T12:26:09Z
2021-06-29T12:26:09Z
2021-06-29T13:55:27Z
TYP and DOC: pd.merge accepts Series
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 18ee1ad9bcd96..7b564d55a342c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -260,6 +260,8 @@ _merge_doc = """ Merge DataFrame or named Series objects with a database-style join. +A named Series object is treated as a DataFrame with a si...
I noticed that the docs for `pd.merge()` and `pd.merge_asof()` were requiring the first argument to be a `DataFrame`, but in fact, they can be a `Series`. This PR updates the docs and the types to fix that issue. Didn't think a `whatsnew` entry was needed, and I skipped creating an issue, but will do so if required...
https://api.github.com/repos/pandas-dev/pandas/pulls/41594
2021-05-20T21:28:47Z
2021-05-24T09:07:27Z
2021-05-24T09:07:27Z
2021-05-24T11:47:32Z
TYP: mypy fixups- something upgraded?
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index f337589c35583..7dddb9f3d6f25 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -493,8 +493,7 @@ def size(self) -> int: """ The number of elements in the array. """ - # error: Incompatib...
I've been seeing these locally for a couple weeks, not sure why they just started showing up on the CI
https://api.github.com/repos/pandas-dev/pandas/pulls/41593
2021-05-20T20:58:35Z
2021-05-20T23:48:55Z
2021-05-20T23:48:55Z
2021-05-20T23:54:55Z
REF: simplify sanitize_array
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 0fef02b1489ac..e83aa02f25ada 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -6,7 +6,6 @@ """ from __future__ import annotations -from collections import abc from typing import ( TYPE_CHECKING, Any,...
We end up calling _try_cast in 3 places instead of 5
https://api.github.com/repos/pandas-dev/pandas/pulls/41592
2021-05-20T20:31:53Z
2021-05-21T15:26:59Z
2021-05-21T15:26:58Z
2021-05-21T15:42:08Z
[ArrowStringArray] PERF: use pyarrow.compute.replace_substring(_regex) if available
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index 4370f3a4e15cf..13903d581793f 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -1,5 +1,6 @@ from __future__ import annotations +from collections.abc import Callable # noqa: PDF001 im...
``` [ 50.00%] ··· strings.Methods.time_replace ok [ 50.00%] ··· ============== ========== dtype -------------- ---------- str 20.6...
https://api.github.com/repos/pandas-dev/pandas/pulls/41590
2021-05-20T19:58:06Z
2021-05-26T01:49:55Z
2021-05-26T01:49:55Z
2021-05-30T13:50:00Z
ENH: Deprecate non-keyword arguments for MultiIndex.set_levels
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d654cf5715bdf..3768af266339d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -681,6 +681,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip...
- [X] xref #41486 - [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/41589
2021-05-20T19:54:37Z
2021-05-26T10:04:04Z
2021-05-26T10:04:04Z
2021-05-29T09:14:16Z
DEPR: Timestamp.freq
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index e6271a7806706..f0e531cd81f84 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -26,6 +26,8 @@ Properties DateOffset.normalize DateOffset.rule_code ...
- [x] closes #15146 - [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 This in turn will allow us to remove DatetimeArray.freq and TimedeltaArray.freq, which is ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41586
2021-05-20T17:15:39Z
2021-06-07T16:47:34Z
2021-06-07T16:47:33Z
2021-07-01T16:21:20Z
fix optional type annotations
diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index f8eccfeb2c60a..fdd7e76528a5e 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -3,6 +3,7 @@ import importlib import sys import types +from typing import overload import warnings from pandas.util.version import Ve...
https://api.github.com/repos/pandas-dev/pandas/pulls/41583
2021-05-20T14:31:19Z
2021-05-21T09:29:16Z
null
2021-05-21T09:29:16Z
Deprecate non-keyword arguments in mask
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 645443c450146..f9a18330d1923 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -680,6 +680,7 @@ Deprecations - Deprecated behavior of :meth:`DatetimeIndex.union` with mixed timezones; in a future versio...
- [x] xref #41485 - [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/41580
2021-05-20T07:46:31Z
2021-05-27T14:43:51Z
2021-05-27T14:43:51Z
2021-05-27T15:36:06Z
BUG: Series(range_obj_outside_i8_bounds)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index c26f8288f59ab..cfc5ac329a847 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1008,6 +1008,7 @@ Other - Bug in :meth:`DataFrame.agg()` not sorting the aggregated axis in the order of the provided aggr...
- [x] closes #30173 - [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/41579
2021-05-20T03:23:38Z
2021-05-24T18:20:49Z
2021-05-24T18:20:48Z
2021-05-24T19:02:59Z
BUG: DataFrame(floatdata, dtype=inty) does unsafe casting
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1eb22436204a8..bc74b2722d29c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -808,6 +808,7 @@ Missing - Bug in :func:`isna`, and :meth:`Series.isna`, :meth:`Index.isna`, :meth:`DataFrame.isna` (and th...
- [x] closes #26919 - [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/41578
2021-05-20T01:06:50Z
2021-05-21T15:45:13Z
2021-05-21T15:45:13Z
2021-05-21T15:54:04Z
DOC: fixup docstring of deprecate_nonkeyword_arguments
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index f4c360f476514..fb073b1d3d039 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -267,7 +267,7 @@ def deprecate_nonkeyword_arguments( Parameters ---------- - version : str + version : str, optional ...
- [ ] closes #41553 - [ ] 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/41577
2021-05-20T00:29:31Z
2021-05-24T17:19:50Z
2021-05-24T17:19:50Z
2021-05-24T17:20:47Z
DEPS: clean outdated version compat, sync min versions
diff --git a/ci/deps/actions-37-db-min.yaml b/ci/deps/actions-37-db-min.yaml index 65c4c5769b1a3..cae4361ca37a7 100644 --- a/ci/deps/actions-37-db-min.yaml +++ b/ci/deps/actions-37-db-min.yaml @@ -6,7 +6,7 @@ dependencies: # tools - cython>=0.29.21 - - pytest>=5.0.1 + - pytest>=6.0 - pytest-cov - pytest...
numpy: #40851 sqlalchemy: #38344. pytest: #40656
https://api.github.com/repos/pandas-dev/pandas/pulls/41576
2021-05-20T00:13:36Z
2021-05-24T18:41:53Z
2021-05-24T18:41:53Z
2022-11-18T02:21:35Z
ENH: add timezone awareness for formatting iso8601 datetimes to json
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1eb22436204a8..7f6748787b963 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -218,6 +218,7 @@ Other enhancements - :meth:`Series.loc.__getitem__` and :meth:`Series.loc.__setitem__` with :class:`MultiI...
This PR allows for non-UTC printing of datetime strings from the `to_json` method when passing in local timestamps - [x] closes #12997 - [x] tests modified - [ ] Ensure all linting tests pass, see here for how to run them - [x] whatsnew entry Ok, so this is a doozy AND it's not done, but it can be merged as ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41573
2021-05-19T19:41:53Z
2021-08-17T01:53:25Z
null
2021-08-17T01:53:25Z
[ArrowStringArray] PERF: bypass some padding code in _wrap_result
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 43df34a7ecbb2..30b2f0e377c12 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -284,7 +284,7 @@ def cons_row(x): return [x] result = [cons_row(x) for x in result] ...
The padding of np.nan across all columns is not needed for StringArray/ArrowStringArray ``` before after ratio [896256ee] [1c883e0d] <master> <bypass> - 99.3±0.6ms 87.4±1ms 0.88 strings.Split.time_split('string', True) - 89.6±0.3ms ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41567
2021-05-19T12:07:18Z
2021-05-21T16:47:43Z
2021-05-21T16:47:42Z
2021-05-21T16:55:02Z
DOC: redocument the `subset` arg in styler for clarity of use
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index a96196a698f43..3a83d50884017 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -614,9 +614,10 @@ def apply( Apply to each column (``axis=0`` or ``'index'``), to each row (``axis=1`` or ``'colum...
came up in a comment to another PR, so here it is changed for all appropriate methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/41566
2021-05-19T11:34:39Z
2021-05-21T15:18:29Z
2021-05-21T15:18:29Z
2021-05-22T06:28:39Z
TST: tighten stacklevel checks
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a3c58b6c6ae15..ff46715d0a527 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -599,7 +599,9 @@ def _validate_shift_value(self, fill_value): "will raise in a future versi...
- [ ] 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/41560
2021-05-19T06:00:32Z
2021-05-19T12:53:24Z
2021-05-19T12:53:24Z
2021-05-19T14:43:35Z
ENH: Deprecate positional arguments for DataFrame.fillna and Series.fillna (GH41485)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1eb22436204a8..c25a27e6bb740 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -649,6 +649,7 @@ Deprecations - Deprecated behavior of :meth:`DatetimeIndex.union` with mixed timezones; in a future versio...
- [x] xref #41485 - [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/41559
2021-05-19T05:45:32Z
2021-05-21T15:06:35Z
2021-05-21T15:06:35Z
2021-05-21T15:06:39Z
DEPS: bump min numexpr version to 2.7.0
diff --git a/ci/deps/actions-37-minimum_versions.yaml b/ci/deps/actions-37-minimum_versions.yaml index aa5284e4f35d1..b97601d18917c 100644 --- a/ci/deps/actions-37-minimum_versions.yaml +++ b/ci/deps/actions-37-minimum_versions.yaml @@ -17,7 +17,7 @@ dependencies: - bottleneck=1.2.1 - jinja2=2.10 - numba=0.46....
Using 2.7.0 as the min support version removes all numexpr compat. And numexpr 2.7.0 was released on Aug 14, 2019.
https://api.github.com/repos/pandas-dev/pandas/pulls/41558
2021-05-19T04:30:39Z
2021-05-21T15:57:52Z
2021-05-21T15:57:52Z
2021-06-18T02:25:13Z
DEPR: DataFrame([categorical, ...]) special casing
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1eb22436204a8..a80f90924c3a5 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -648,6 +648,7 @@ Deprecations - Deprecated setting :attr:`Categorical._codes`, create a new :class:`Categorical` with the d...
- [x] closes #38845 - [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/41557
2021-05-19T02:38:17Z
2021-05-21T16:46:34Z
2021-05-21T16:46:34Z
2021-05-21T17:20:15Z
DEPR: Series/DataFrame with tzaware data and tznaive dtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 070e47d73cfae..ae82bdf5395d1 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -675,6 +675,7 @@ Deprecations - Deprecated using ``usecols`` with out of bounds indices for ``read_csv`` with ``engine="c"`...
- [ ] 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
https://api.github.com/repos/pandas-dev/pandas/pulls/41555
2021-05-18T23:13:06Z
2021-05-21T19:13:04Z
2021-05-21T19:13:04Z
2021-05-21T19:13:05Z
CLN: construction helper methods
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index f3133480108a6..964575ba47d7b 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -688,11 +688,8 @@ def _try_cast( if is_integer_dtype(dtype): # this will raise if we have e.g. floats - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41554
2021-05-18T21:48:35Z
2021-05-19T02:58:45Z
2021-05-19T02:58:45Z
2021-05-19T04:56:21Z
ENH: Deprecate non-keyword arguments for Index.set_names.
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index fe88cf93886ce..66d9e720153bd 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -679,6 +679,7 @@ Deprecations - Deprecated the ``convert_float`` optional argument in :func:`read_excel` and :meth:`ExcelFi...
- [ ] xref #41485 - [ ] 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/41551
2021-05-18T20:31:18Z
2021-05-27T13:18:21Z
2021-05-27T13:18:21Z
2021-05-27T13:18:21Z
[ArrowStringArray] PERF: use pyarrow native functions for str.get_dummies
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index d5ee28eb7017e..57be9cf9dfde3 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -933,3 +933,31 @@ def _str_rstrip(self, to_strip=None): else: result = pc.utf8_rtrim(s...
draft as performance is not yet better than object fallback ``` before after ratio [09f3bf80] [ec8f4b2d] <master> <get_dummies> + 647±4ms 761±6ms 1.18 strings.Dummies.time_get_dummies('arrow_string') SOME BENCHMARKS HAVE CHANGED SIGNIFICAN...
https://api.github.com/repos/pandas-dev/pandas/pulls/41549
2021-05-18T18:46:29Z
2021-05-24T19:42:37Z
null
2021-05-24T19:42:38Z
Possible Bug Fix for dependency
diff --git a/setup.cfg b/setup.cfg index f39e377e50c97..4084dfece07c8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,7 @@ project_urls = packages = find: install_requires = numpy>=1.17.3 + openpyxl>=3.0.7 python-dateutil>=2.7.3 pytz>=2017.3 python_requires = >=3.7.1
- [x] closes #41547
https://api.github.com/repos/pandas-dev/pandas/pulls/41548
2021-05-18T17:54:34Z
2021-05-18T18:25:06Z
null
2021-05-18T18:25:06Z
CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series
- [ ] closes #40876 - [ ] 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 The FrameOrSeriesUnion check was already removed. I have removed the FrameOrSeriesUnion...
https://api.github.com/repos/pandas-dev/pandas/pulls/41546
2021-05-18T17:44:33Z
2021-06-11T17:51:26Z
null
2021-06-11T17:51:27Z
ENH: Read and write pandas attrs to parquet with pyarrow engine
diff --git a/doc/source/development/developer.rst b/doc/source/development/developer.rst index d701208792a4c..a468403e9b261 100644 --- a/doc/source/development/developer.rst +++ b/doc/source/development/developer.rst @@ -40,6 +40,8 @@ So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a {'inde...
- [x] closes #20521 - [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/41545
2021-05-18T17:44:06Z
2021-07-08T00:31:44Z
null
2022-03-23T11:02:21Z
CLN: simplify libreduction
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index c28db9b669a4b..d730084692dd4 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -1,4 +1,3 @@ -from copy import copy from libc.stdlib cimport ( free, @@ -307,13 +306,11 @@ cpdef inline extract_result(object res): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41542
2021-05-18T15:27:03Z
2021-05-21T19:13:25Z
2021-05-21T19:13:25Z
2021-05-21T19:17:09Z
[ArrowStringArray] REF: str.extract - move code from function to accessor method
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 98d209ae4a899..e581906818eb2 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -2378,6 +2378,11 @@ def extract( 2 NaN dtype: object """ + from pandas import ( + ...
perf neutral refactor ~~draft as conflict with #41539~~
https://api.github.com/repos/pandas-dev/pandas/pulls/41541
2021-05-18T15:18:09Z
2021-05-25T13:42:18Z
2021-05-25T13:42:18Z
2021-05-25T14:37:22Z
REF: Grouper.grouper -> Grouper._gpr_index
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 877204f5bb2a2..b4f3dd7b942a6 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -252,6 +252,8 @@ class Grouper: axis: int sort: bool dropna: bool + _gpr_index: Index | None + _grouper...
ATM we set `self.grouper` in both _get_grouper and in _set_grouper, but to different types. This changes _set_grouper to set _gpr_index instead, which we can type as `Index | None`
https://api.github.com/repos/pandas-dev/pandas/pulls/41540
2021-05-18T15:17:41Z
2021-05-21T16:45:09Z
2021-05-21T16:45:09Z
2021-05-21T17:19:49Z
[ArrowStringArray] REF: str.extract - precusor to move from accessor to array
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 1461c52d5cb65..43df34a7ecbb2 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -3034,22 +3034,6 @@ def cat_core(list_of_columns: List, sep: str): return np.sum(arr_with_sep, axis=0) -def _gr...
perf neutral refactor combine `_str_extract_expand`, `_str_extract_noexpand` and `_groups_or_na_fun` into a single function `_str_extract` ready to move to array method.
https://api.github.com/repos/pandas-dev/pandas/pulls/41539
2021-05-18T14:52:52Z
2021-05-18T16:51:50Z
2021-05-18T16:51:50Z
2021-05-18T18:22:26Z
[ArrowStringArray] TST: parametrize /tests/strings/test_strings.py
diff --git a/pandas/tests/strings/test_strings.py b/pandas/tests/strings/test_strings.py index f77a78b8c4c49..98f3fc859976e 100644 --- a/pandas/tests/strings/test_strings.py +++ b/pandas/tests/strings/test_strings.py @@ -47,8 +47,8 @@ def test_iter(): assert s.dropna().values.item() == "l" -def test_iter_empty...
first followup to #41484
https://api.github.com/repos/pandas-dev/pandas/pulls/41538
2021-05-18T14:01:17Z
2021-05-18T16:52:48Z
2021-05-18T16:52:48Z
2021-05-18T18:16:28Z
[ArrowStringArray] REF: str.extract accessor method
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index e85da9f4b574d..1461c52d5cb65 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -15,7 +15,10 @@ import numpy as np import pandas._libs.lib as lib -from pandas._typing import FrameOrSeriesUnion +fr...
perf neutral refactor, another step towards #41372 next steps move code in `str_extract` into `extract` into StringMethods combine code in `_str_extract_noexpand` and `_str_extract_expand` into a `_str_extract` method on the array (not done here to keep diff simpler to review)
https://api.github.com/repos/pandas-dev/pandas/pulls/41535
2021-05-18T10:58:59Z
2021-05-18T12:48:41Z
2021-05-18T12:48:41Z
2021-05-18T14:12:08Z
REF: privatize Grouping attrs
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 877204f5bb2a2..62f75f52bb6ad 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -441,6 +441,9 @@ class Grouping: _codes: np.ndarray | None = None _group_index: Index | None = None + _passed...
Trying to move towards being less stateful.
https://api.github.com/repos/pandas-dev/pandas/pulls/41534
2021-05-18T02:11:23Z
2021-05-21T16:44:47Z
2021-05-21T16:44:47Z
2021-05-21T17:16:18Z
CLN/TYP: assorted cleanup and annotations
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 02c64fac0c009..6b1c0f851f8e7 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -235,7 +235,10 @@ def array_with_unit_to_datetime( if issubclass(values.dtype.type, (np.integer, np.float_)): result = values.astype("...
Things I find myself doing on multiple other in-progress branches
https://api.github.com/repos/pandas-dev/pandas/pulls/41533
2021-05-18T02:01:53Z
2021-05-18T16:47:03Z
2021-05-18T16:47:03Z
2021-05-18T17:26:19Z
REF: Grouping.grouper -> Grouping.grouping_vector
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 29a161676b2db..4310d849d66e8 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3064,7 +3064,7 @@ def _reindex_output( # reindexing only applies to a Categorical grouper elif not any(...
Too many things have a .grouper attribute which makes it really difficult to follow what type of object we're dealing with at different places in the stack. This changes the most-ambiguous attribute to grouping_vector. I'm open to other names.
https://api.github.com/repos/pandas-dev/pandas/pulls/41532
2021-05-18T01:11:05Z
2021-05-19T02:48:38Z
2021-05-19T02:48:38Z
2021-05-19T04:58:20Z
REF: DataFrame._values return DTA/TDA where appropriate
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index efefeb23445af..1fa149cd834b0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -857,26 +857,37 @@ def _can_fast_transpose(self) -> bool: # TODO(EA2D) special case would be unnecessary with 2D EAs return not is_1d_only_ea_dtyp...
- [ ] 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/41531
2021-05-17T23:46:35Z
2021-05-19T02:55:06Z
2021-05-19T02:55:06Z
2021-05-19T04:56:39Z
Fix compilation under cython 3.
diff --git a/.github/workflows/cython-3.yml b/.github/workflows/cython-3.yml new file mode 100644 index 0000000000000..6b453414d3f2f --- /dev/null +++ b/.github/workflows/cython-3.yml @@ -0,0 +1,70 @@ +name: Cython 3 + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs:...
Internal clean up to improve Cython 3 compatibility. See #34213.
https://api.github.com/repos/pandas-dev/pandas/pulls/41530
2021-05-17T22:56:43Z
2021-08-17T01:51:34Z
null
2021-08-17T03:10:17Z
REF: make Grouping less stateful
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 970e3c4ac80f4..e2855cbc90425 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -10,6 +10,7 @@ import numpy as np from pandas._typing import ( + ArrayLike, FrameOrSeries, final, ) @@ -58...
This gets rid of _make_codes, which sets two state variables, in favor of a cache_readonly _codes_and_uniques
https://api.github.com/repos/pandas-dev/pandas/pulls/41529
2021-05-17T22:54:29Z
2021-05-18T22:35:50Z
2021-05-18T22:35:50Z
2021-05-18T22:43:40Z
REF: simplify Grouping.__init__
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 4aac2630feb2c..970e3c4ac80f4 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -500,34 +500,33 @@ def __init__( # use Index instead of ndarray so we can recover the name ...
just de-nesting conditions in `__init__`
https://api.github.com/repos/pandas-dev/pandas/pulls/41528
2021-05-17T22:53:23Z
2021-05-18T16:46:08Z
2021-05-18T16:46:08Z
2021-05-18T17:25:53Z
REF: tighten types on maybe_infer_to_datetimelike
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index f3133480108a6..9523c2e3e62e0 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -682,6 +682,13 @@ def _try_cast( subarr = construct_1d_object_array_from_listlike(arr) return subarr + if dtype i...
- [ ] 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/41527
2021-05-17T22:49:46Z
2021-05-19T02:53:12Z
2021-05-19T02:53:12Z
2021-05-19T04:56:57Z
BUG: lib.infer_dtype with mixed-freq Periods
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 9298bc6a61bae..25e482fea60ee 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -228,7 +228,7 @@ Other enhancements - Constructing a :class:`DataFrame` or :class:`Series` with the ``data`` argument being...
- [ ] 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 Also adds a convert_period option to lib.maybe_infer_objects
https://api.github.com/repos/pandas-dev/pandas/pulls/41526
2021-05-17T20:22:52Z
2021-05-18T22:23:22Z
2021-05-18T22:23:22Z
2021-05-18T22:27:21Z
REF: make array_to_datetime single-pass
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 6b1c0f851f8e7..f9c98c649c3c3 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -63,6 +63,7 @@ from pandas._libs.tslibs.timestamps import Timestamp # Note: this is the only non-tslibs intra-pandas dependency here from pandas._libs.m...
Or more specifically, remove the need for falling back to datetime_to_datetime64 which does a second pass.
https://api.github.com/repos/pandas-dev/pandas/pulls/41525
2021-05-17T20:09:20Z
2021-07-11T17:54:10Z
null
2022-06-03T14:21:43Z
Allow deprecate_nonkeyword_arguments to not specify version, show class name
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 4b81b69976c62..cf2246f917bbe 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -329,7 +329,7 @@ ) -@deprecate_nonkeyword_arguments(allowed_args=2, version="2.0") +@deprecate_nonkeyword_arguments(allowed_args=["io", "sheet_...
xref https://github.com/pandas-dev/pandas/pull/41511#discussion_r633386611 as request, ping @jreback @simonjayhawkins I've removed the ability to pass an integer to `allowed_arguments` as it added complexity, was only used once in the codebase anyway, and wasn't even covered by tests Now, if `version` is None...
https://api.github.com/repos/pandas-dev/pandas/pulls/41524
2021-05-17T19:15:42Z
2021-05-18T12:50:37Z
2021-05-18T12:50:37Z
2021-05-19T08:43:22Z
added deprecate_nonkeyword_arguments to function where
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 258e391b9220c..ce20006a8d3db 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -681,6 +681,7 @@ Deprecations - Deprecated passing arguments as positional (except for ``"method"``) in :meth:`DataFrame.in...
- xref #41486 - generic.where. 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. -- added.
https://api.github.com/repos/pandas-dev/pandas/pulls/41523
2021-05-17T17:47:23Z
2021-05-26T01:47:34Z
2021-05-26T01:47:34Z
2021-05-26T06:04:51Z
TST: split pd.merge test with indicator=True
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index edd100219143c..77b155f01a2ea 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -102,6 +102,19 @@ def series_of_dtype_all_na(request): return request.param ...
- [ ] 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/41520
2021-05-17T14:32:07Z
2021-05-17T20:49:44Z
2021-05-17T20:49:44Z
2021-05-17T21:54:17Z
CLN: remove try/except in _prep_ndarray
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 884a2cec171de..00efc695ff04a 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -57,6 +57,7 @@ ) from pandas.core.arrays import ( Categorical, + DatetimeArray, E...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Recent-ish edits to the `convert` function make the fallback unnecessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/41519
2021-05-17T14:29:06Z
2021-05-17T19:00:07Z
2021-05-17T19:00:07Z
2021-05-17T19:03:11Z
DOC: Add clearer info when copy is False but memory shared only for certain objects
diff --git a/pandas/core/series.py b/pandas/core/series.py index d0ff50cca5355..530750f8bd27f 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -223,7 +223,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame): name : str, optional The name to give to the Series. copy : bool, default...
- [ ] closes #41423 - [ ] 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 Added to Series section more info in `copy` constructor parameter and 2 examples. Ran v...
https://api.github.com/repos/pandas-dev/pandas/pulls/41514
2021-05-16T23:07:46Z
2021-05-21T16:12:05Z
2021-05-21T16:12:04Z
2021-05-21T16:12:09Z
TYP: ExtensionArray delete() and searchsorted()
diff --git a/pandas/_typing.py b/pandas/_typing.py index ef9f38bbf5168..433f8645d35a8 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -69,6 +69,11 @@ from pandas.io.formats.format import EngFormatter from pandas.tseries.offsets import DateOffset + + # numpy compatible types + NumpyValueArray...
Additional typing for `ExtensionArray` `delete()` and `searchsorted()`
https://api.github.com/repos/pandas-dev/pandas/pulls/41513
2021-05-16T14:30:46Z
2021-09-06T17:10:09Z
2021-09-06T17:10:09Z
2021-09-06T17:35:11Z
ENH: add `styler` option context for sparsification of columns and index separately
diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py index a01610a69278b..82166a2a95c76 100644 --- a/asv_bench/benchmarks/io/style.py +++ b/asv_bench/benchmarks/io/style.py @@ -20,19 +20,19 @@ def setup(self, cols, rows): def time_apply_render(self, cols, rows): self._style_a...
This PR closes #41142. It adds a new `pandas.options` context for Styler (see #41395), and create the `sparse.index` and `sparse.columns` options, defaulting to True. It also allows a keyword application for sparsification via the `.render` method, (this might not really be necessary: opinion welcome) - [x] te...
https://api.github.com/repos/pandas-dev/pandas/pulls/41512
2021-05-16T14:17:32Z
2021-05-21T16:20:32Z
2021-05-21T16:20:32Z
2021-05-22T06:28:03Z
Deprecate passing args as positional in DataFrame/Series.clip
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d357e4a633347..36457be9b2c46 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -674,6 +674,7 @@ Deprecations - Deprecated setting :attr:`Categorical._codes`, create a new :class:`Categorical` with the d...
- [ ] xref #41485 - [ ] 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/41511
2021-05-16T14:00:39Z
2021-05-26T02:05:29Z
2021-05-26T02:05:29Z
2021-05-26T08:05:35Z
Deprecate passing args as positional in DataFrame/Series.interpolate
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 25e482fea60ee..1eb22436204a8 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -648,6 +648,7 @@ Deprecations - Deprecated setting :attr:`Categorical._codes`, create a new :class:`Categorical` with the d...
- [ ] xref #41485 - [ ] 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/41510
2021-05-16T13:51:00Z
2021-05-19T12:49:29Z
2021-05-19T12:49:29Z
2021-05-23T20:39:37Z
deprecate nonkeyword args for bfill
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 622029adf357f..10c3ca0ebe6d9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -647,6 +647,7 @@ Deprecations - Deprecated setting :attr:`Categorical._codes`, create a new :class:`Categorical` with the d...
- [ ] xref #41485 - [ ] 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/41509
2021-05-16T13:41:52Z
2021-05-17T20:29:02Z
null
2021-05-17T20:29:02Z
Deprecate passing args as positional DataFrame/Series.ffill
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 939b3c191c4a1..24cd41383e9d7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -682,6 +682,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip...
- [ ] xref #41485 - [ ] 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/41508
2021-05-16T13:38:17Z
2021-05-27T01:12:48Z
2021-05-27T01:12:48Z
2021-05-27T08:17:54Z
[ArrowStringArray] PERF: str.partition object fallback
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 15fc2d9e6d3c5..37a617b8952ea 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -17,6 +17,7 @@ import pandas._libs.lib as lib from pandas._typing import FrameOrSeriesUnion from pandas.util._decorat...
``` before after ratio [40482273] [5d1bc3e0] <master> <wrap-result> - 59.6±0.5ms 36.2±0.6ms 0.61 strings.Methods.time_partition('arrow_string') - 57.8±0.5ms 34.9±0.2ms 0.60 strings.Methods.time_rpartition('arrow_string') - 54.5±...
https://api.github.com/repos/pandas-dev/pandas/pulls/41507
2021-05-16T12:55:02Z
2021-05-16T14:05:35Z
null
2021-05-16T14:05:35Z
Deprecate passing args as positional in sort_index
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index d26e511202f9c..953046a3a2a10 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1897,7 +1897,7 @@ Writing in ISO date format: dfd = pd.DataFrame(np.random.randn(5, 2), columns=list("AB")) dfd["date"] =...
- [ ] xref #41485 - [ ] 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/41506
2021-05-16T12:34:53Z
2021-05-26T01:59:18Z
2021-05-26T01:59:17Z
2021-05-26T08:05:28Z
Deprecate passing args as positional in sort_values
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index fe88cf93886ce..939b3c191c4a1 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -682,6 +682,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip...
- [ ] xref #41485 - [ ] 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/41505
2021-05-16T12:25:28Z
2021-05-26T20:50:23Z
2021-05-26T20:50:23Z
2021-05-26T20:51:22Z
Deprecate passing args as positional in dropna
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index bbcb49cb6f129..fe88cf93886ce 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -682,6 +682,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip...
- [ ] xref #41485 - [ ] 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/41504
2021-05-16T12:14:46Z
2021-05-26T15:30:23Z
2021-05-26T15:30:23Z
2021-05-26T20:52:16Z
PERF: load plotting entrypoint only when necessary
diff --git a/asv_bench/benchmarks/plotting.py b/asv_bench/benchmarks/plotting.py index 11e43401f9395..249a8f3f556a1 100644 --- a/asv_bench/benchmarks/plotting.py +++ b/asv_bench/benchmarks/plotting.py @@ -1,5 +1,9 @@ +import importlib +import sys + import matplotlib import numpy as np +import pkg_resources from pa...
- [x] closes #41492 - [x] tests added / passed (I only ran plotting/test_backend.py, which seemed appropriate) - [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/41503
2021-05-16T12:02:14Z
2021-06-04T14:40:53Z
2021-06-04T14:40:53Z
2021-06-04T15:25:07Z
[ArrowStringArray] REF: dedup df creation in str.extract
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 15fc2d9e6d3c5..5606380908f38 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -3086,52 +3086,38 @@ def _get_group_names(regex: Pattern) -> List[Hashable]: def _str_extract_noexpand(arr, pat, flag...
step towards #41372
https://api.github.com/repos/pandas-dev/pandas/pulls/41502
2021-05-16T09:40:36Z
2021-05-17T15:00:57Z
2021-05-17T15:00:57Z
2021-05-17T15:47:41Z
TST/CLN: parameterize/dedup replace test2
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index e6e992d37fd5d..c5bc15effa99a 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1432,213 +1432,44 @@ def test_replace_bytes(self, frame_or_series): cl...
https://api.github.com/repos/pandas-dev/pandas/pulls/41501
2021-05-16T01:44:16Z
2021-05-19T03:01:16Z
2021-05-19T03:01:16Z
2021-05-19T03:01:20Z
Deprecate non-keyword arguments for drop_duplicates.
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d357e4a633347..5ad6369c12ecf 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -676,6 +676,7 @@ Deprecations - Deprecated using ``usecols`` with out of bounds indices for ``read_csv`` with ``engine="c"`...
- [ ] xref #41485 - [ ] tests added / passed - [ ] Ensure all linting tests pass - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41500
2021-05-16T01:11:37Z
2021-05-25T19:39:27Z
2021-05-25T19:39:27Z
2021-05-25T19:39:27Z
TST/CLN: parameterize/dedup replace test
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index fc25d3847867f..e6e992d37fd5d 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -57,129 +57,61 @@ def test_replace_inplace(self, datetime_frame, float_strin...
https://api.github.com/repos/pandas-dev/pandas/pulls/41499
2021-05-16T00:48:44Z
2021-05-17T12:49:20Z
2021-05-17T12:49:20Z
2021-05-17T13:27:53Z
ENH: groupby rank supports object dtype
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 622029adf357f..9968a103a13bf 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -224,6 +224,7 @@ Other enhancements - :meth:`pandas.read_csv` and :meth:`pandas.read_json` expose the argument ``encoding_e...
- [x] closes #38278 - [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 This was fixed way back in #38744 and looks thoroughly tested in #41387, so just a whatsnew here. I think the othe...
https://api.github.com/repos/pandas-dev/pandas/pulls/41498
2021-05-16T00:31:48Z
2021-05-17T12:52:27Z
2021-05-17T12:52:26Z
2021-05-17T13:27:59Z
BUG: columns name retention in groupby methods
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 7159f422e3fd6..6ad4975d6bf38 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1139,6 +1139,8 @@ Groupby/resample/rolling - Bug in :class:`DataFrameGroupBy` aggregations incorrectly failing to drop col...
- [x] closes #41564 - [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/41497
2021-05-15T23:40:24Z
2021-06-17T17:53:44Z
2021-06-17T17:53:44Z
2021-06-17T18:49:26Z
Deprecate passing default arguments as positional in reset_index
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d357e4a633347..532af3c65bc1e 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -677,6 +677,7 @@ Deprecations - Deprecated special treatment of lists with first element a Categorical in the :class:`DataF...
- [ ] xref #41485 - [ ] 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/41496
2021-05-15T20:21:26Z
2021-05-26T02:07:49Z
2021-05-26T02:07:49Z
2021-05-26T08:07:46Z
Deprecate passing default args as positional in DataFrame.set_index
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index a4a589cef7b02..42c8a64890a16 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -681,6 +681,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.clip` and :meth:`Series.clip...
- [ ] xref #41485 - [ ] 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/41495
2021-05-15T19:54:08Z
2021-05-26T12:40:03Z
2021-05-26T12:40:03Z
2021-05-26T14:50:31Z
TYP simplify overloads for fillna
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2941b6ac01904..a88be6bdd5688 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5029,76 +5029,10 @@ def fillna( def fillna( self, value, - method: FillnaOptions | None, - axis: Axis | None, - inplace...
`fillna` doesn't allow users to pass both `value` and `method`, so in effect the arguments after `value` are already keyword-only. So, the overloads can be simplified immediately. ```python import pandas as pd inplace : bool reveal_type(pd.Series([1,2,3]).fillna(value=0, inplace=False)) reveal_type(pd.Seri...
https://api.github.com/repos/pandas-dev/pandas/pulls/41494
2021-05-15T19:30:26Z
2021-05-17T20:51:12Z
null
2021-05-17T20:51:12Z
TST: Add tests for old issues 2
diff --git a/pandas/tests/frame/methods/test_diff.py b/pandas/tests/frame/methods/test_diff.py index 75d93ed2aafc6..0a3d2e1c9a8fc 100644 --- a/pandas/tests/frame/methods/test_diff.py +++ b/pandas/tests/frame/methods/test_diff.py @@ -285,3 +285,12 @@ def test_diff_readonly(self): result = df.diff() exp...
- [x] closes #14467 - [x] closes #14564 - [x] closes #14773 - [x] closes #15036 - [x] closes #15106 - [x] closes #15239 - [x] closes #15273 - [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 t...
https://api.github.com/repos/pandas-dev/pandas/pulls/41493
2021-05-15T19:22:14Z
2021-05-19T12:53:59Z
2021-05-19T12:53:57Z
2021-05-19T17:25:38Z
Deprecate nonkeyword args set axis
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 24cd41383e9d7..5436685c1f14f 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -692,9 +692,11 @@ Deprecations - Deprecated passing arguments (apart from ``value``) as positional in :meth:`DataFrame.fill...
- [ ] xref #41485 - [ ] 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/41491
2021-05-15T18:17:19Z
2021-05-27T12:08:38Z
2021-05-27T12:08:38Z
2021-05-27T12:23:32Z
[ArrowStringArray] PERF: str.extract object fallback
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index 0f68d1043b49d..d7fb36b062388 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -11,6 +11,19 @@ from .pandas_vb_common import tm +class Dtypes: + params = ["str", "string", "arrow_string"] + ...
``` before after ratio [40482273] [1788ffe6] <master> <extract-single-group> - 134±2ms 106±1ms 0.79 strings.Extract.time_extract_single_group('string', False) - 359±5ms 110±0.8ms 0.31 strings.Extract.time_extract_single_grou...
https://api.github.com/repos/pandas-dev/pandas/pulls/41490
2021-05-15T17:15:34Z
2021-05-17T20:50:32Z
2021-05-17T20:50:32Z
2021-05-18T08:35:05Z
STYLE: Add pre-commit hook for debug statements
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db3fc1853ea71..1fbd3cf85383e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: + - id: debug-statements - id: ...
Added https://github.com/pre-commit/pre-commit-hooks#debug-statements as a pre-commit hook. - [ ] 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 - [ ] whatsnew entry...
https://api.github.com/repos/pandas-dev/pandas/pulls/41489
2021-05-15T16:55:01Z
2021-05-16T09:10:28Z
2021-05-16T09:10:28Z
2021-05-16T10:49:44Z
BUG: CustomBusinessMonthBegin(End) sometimes ignores extra offset (GH41356)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ae1844b0a913c..fbb39f0357370 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -281,6 +281,7 @@ Styler Other ^^^^^ +- Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__...
- [x] closes #41356 #14869 - [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 ----------------- **Problem description**: _CustomBusinessMonth does not apply ext...
https://api.github.com/repos/pandas-dev/pandas/pulls/41488
2021-05-15T15:20:04Z
2021-07-28T01:50:05Z
2021-07-28T01:50:05Z
2021-07-28T01:50:22Z
[ArrowStringArray] REF: _str_startswith/_str_endswith
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index 219a8c7ec0b82..252bc215869ac 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -820,29 +820,26 @@ def _str_contains(self, pat, case=True, flags=0, na=np.nan, regex: bool = True): ...
using pyarrow native functions for _str_startswith/_str_endswith #41222 were merged before _str_contains #41217 so we can de-duplication some logic. and also a change to _str_match for perf gain on object fallback ``` - 32.8±0.2ms 25.5±0.1ms 0.78 strings.Methods.time_match('arrow_string') ```
https://api.github.com/repos/pandas-dev/pandas/pulls/41487
2021-05-15T11:17:40Z
2021-05-17T15:08:21Z
2021-05-17T15:08:21Z
2021-05-17T15:53:18Z
Deprecate non-keyword arguments in drop
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 24cd41383e9d7..10a042373a8d1 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -693,6 +693,7 @@ Deprecations - Deprecated passing arguments as positional in :meth:`DataFrame.reset_index` (other than ``"...
- [ ] xref #41485 - [ ] 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/41486
2021-05-15T10:10:55Z
2021-05-27T12:07:18Z
2021-05-27T12:07:17Z
2021-05-27T12:26:11Z
TST/CLN: tests/strings/test_strings.py
diff --git a/pandas/tests/strings/test_strings.py b/pandas/tests/strings/test_strings.py index 42d81154dea0f..f77a78b8c4c49 100644 --- a/pandas/tests/strings/test_strings.py +++ b/pandas/tests/strings/test_strings.py @@ -26,16 +26,16 @@ def assert_series_or_index_equal(left, right): def test_iter(): # GH3638 ...
variable and test renaming, test splitting and parametrization of existing as a pre-cursor to further parametrization on dtype and moving.
https://api.github.com/repos/pandas-dev/pandas/pulls/41484
2021-05-15T10:05:46Z
2021-05-17T18:26:37Z
2021-05-17T18:26:37Z
2021-05-17T18:29:03Z
TST: Add tests for old issues
diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py index a724f3d9f2a7d..fcccd0d846d0f 100644 --- a/pandas/tests/apply/test_frame_apply.py +++ b/pandas/tests/apply/test_frame_apply.py @@ -1519,3 +1519,11 @@ def test_apply_np_reducer(float_frame, op, how): getattr(np, op...
- [x] closes #13427 - [x] closes #13432 - [x] closes #13501 - [x] closes #13569 - [x] closes #13872 - [x] closes #13912 - [x] closes #13934 - [x] closes #14018 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code...
https://api.github.com/repos/pandas-dev/pandas/pulls/41482
2021-05-15T05:07:17Z
2021-05-17T15:17:30Z
2021-05-17T15:17:29Z
2021-05-17T16:17:57Z