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
Fix str dtype -> IntegerDtype conversions
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index af7706f624323..0fddbdd57a023 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -470,6 +470,7 @@ Conversion ^^^^^^^^^^ - Bug in :class:`UInt64Index` constructor when passing a list containing both posit...
closes #25472 - [x] 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/43949
2021-10-09T23:34:51Z
2021-10-19T14:59:57Z
2021-10-19T14:59:56Z
2021-10-19T15:01:45Z
ENH: Make it possible to change type inplace
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b235f120d98c8..8cfd7a225b717 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5723,7 +5723,11 @@ def dtypes(self): return self._constructor_sliced(data, index=self._info_axis, dtype=np.object_) def astype( - se...
- [X] closes #43946 - [ ] 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] This commits adds the possibility of performing the operation of astype directly in a dataframe using t...
https://api.github.com/repos/pandas-dev/pandas/pulls/43948
2021-10-09T23:28:22Z
2021-10-10T13:57:06Z
null
2021-10-10T13:57:06Z
Astype inplace
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b235f120d98c8..ee77ceff057c2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5723,7 +5723,11 @@ def dtypes(self): return self._constructor_sliced(data, index=self._info_axis, dtype=np.object_) def astype( - se...
- [X] closes #43946 - [] 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] This commit adds an argument to make it possible to convert the types of a dataframe inplace.
https://api.github.com/repos/pandas-dev/pandas/pulls/43947
2021-10-09T23:20:34Z
2021-10-09T23:27:40Z
null
2021-10-09T23:27:40Z
[FIX] rolling to respect duplicate datetime indices on the right bound of centered windows
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index e638a24f830ef..48fd388922a4b 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -503,6 +503,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.apply` with time-based :class:`Grouper` objects incorrect...
…. - [x] closes #43944 - [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/43945
2021-10-09T22:44:19Z
2021-10-13T02:05:45Z
2021-10-13T02:05:45Z
2021-10-13T02:05:57Z
Fix multiindex loc nan
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 71d5c46b81ea0..1ab744f3f1b69 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -784,6 +784,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.nth` failing on ``axis=1`` (:issue:`43926`) - Fixed bug ...
- [x] closes #43814 - [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/43943
2021-10-09T21:12:50Z
2022-02-13T00:53:04Z
null
2022-02-13T00:53:04Z
DOC: Add examples for categorical functions
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 7e3bf33f411bb..a4d6c0f3cd832 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1163,6 +1163,17 @@ def add_categories(self, new_categories, inplace=no_default): remove_categories : R...
Adds simple examples to docstrings for `add_categories`, `remove_categories`, and `remove_unused_categories`.
https://api.github.com/repos/pandas-dev/pandas/pulls/43942
2021-10-09T17:00:32Z
2021-10-11T16:05:59Z
2021-10-11T16:05:59Z
2021-10-11T16:06:03Z
BUG: fix Frame getitem when column keys are nested tuples
diff --git a/pandas/core/common.py b/pandas/core/common.py index 2bf925466e176..f4dcbc20dc5fd 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -240,7 +240,8 @@ def asarray_tuplesafe(values, dtype: NpDtype | None = None) -> np.ndarray: if issubclass(result.dtype.type, str): result = np.asa...
- [x] closes #43780 - [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 Multi-column selection when the column labels are nested tuples, for example atomic ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43939
2021-10-09T08:39:38Z
2022-01-20T15:09:41Z
null
2022-01-20T15:09:41Z
BUG: NumericIndex.append retain dtype
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c002832cd89bb..693b4827acf19 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4896,6 +4896,11 @@ def _concat(self, to_concat: list[Index], name: Hashable) -> Index: to_concat_vals = [x._values for x in to...
- [ ] 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 - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43938
2021-10-09T03:41:25Z
2021-10-11T16:05:25Z
2021-10-11T16:05:25Z
2021-10-11T17:02:38Z
Backport PR #43910 on branch 1.3.x (TST: Skip leaky test on Python 3.10)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 894328aee53e1..c99de71834ddf 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -56,8 +56,6 @@ jobs: - name: Test with pytest run: | ci/run_tests.sh - # GH 41935 - c...
Backport PR #43910: TST: Skip leaky test on Python 3.10
https://api.github.com/repos/pandas-dev/pandas/pulls/43936
2021-10-09T00:18:48Z
2021-10-09T02:33:30Z
2021-10-09T02:33:30Z
2021-10-09T02:33:30Z
Backport PR #43772: CI: Test Python 3.10 on MacOS and Windows too
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 894328aee53e1..3a139936fbd22 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -21,10 +21,22 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: +...
- [ ] 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/43935
2021-10-08T23:26:54Z
2021-10-09T00:54:48Z
2021-10-09T00:54:48Z
2021-10-09T00:55:08Z
REF: Share Index.delete
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c002832cd89bb..5555c11eb7b69 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2495,6 +2495,7 @@ def is_all_dates(self) -> bool: ) return self._is_all_dates + @final @cache_readonly ...
Needed for #43930
https://api.github.com/repos/pandas-dev/pandas/pulls/43934
2021-10-08T21:50:40Z
2021-10-10T21:39:31Z
2021-10-10T21:39:31Z
2021-10-10T21:49:41Z
BUG: NumericIndex.insert
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index da953fe46ef1d..2ff9b3973a526 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6329,10 +6329,11 @@ def insert(self, loc: int, item) -> Index: arr = np.asarray(self) - # Use Index constructor to ...
- [x] closes #43921 - [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/43933
2021-10-08T19:31:44Z
2021-10-09T00:17:40Z
2021-10-09T00:17:40Z
2021-10-09T01:07:22Z
Raising ValueError when xlim and ylim contain non-int and non-float dtype elements #40889
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py index 08dc9538227f7..1af6026656f95 100644 --- a/pandas/plotting/_matplotlib/core.py +++ b/pandas/plotting/_matplotlib/core.py @@ -15,6 +15,7 @@ from pandas.core.dtypes.common import ( is_categorical_dtype, + is_datetime64_...
- [x] closes #40781 - [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/43932
2021-10-08T18:24:21Z
2022-01-25T01:27:21Z
null
2022-01-25T01:27:22Z
BENCH : Added benchmark for indexing with .loc for sorted/unsorted DatetimeIndex
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 58f2a73d82842..7401cfe77031d 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -247,8 +247,11 @@ class DatetimeIndexIndexing: def setup(self): dti = date_range("2016-01-01", periods...
- [x] closes #38690
https://api.github.com/repos/pandas-dev/pandas/pulls/43931
2021-10-08T17:21:27Z
2022-01-25T01:29:32Z
null
2022-01-25T01:29:32Z
ENH: allow storing ExtensionArrays in Index
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index b280e82c73b89..2b70078c50059 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -90,6 +90,43 @@ be removed in the future, see :ref:`here <whatsnew_140.deprecations.int64_uint64 See :ref:`here <advanced...
- [x] closes #22861 - [x] whatsnew Still TODO - [x] <s>288</s>15 not-yet-passing tests (with --skip-slow --skip-db) - [ ] flesh out tests/extension/base/ea_index.py - [x] <s>deprecation cycle</s> (decided we can probably just change) - [ ] optimize EAIndexEngine/NullableIndexEngine once #43870 is resolved - [x...
https://api.github.com/repos/pandas-dev/pandas/pulls/43930
2021-10-08T17:02:57Z
2021-12-31T14:58:42Z
2021-12-31T14:58:42Z
2022-01-18T16:20:54Z
fixed rolling for a decreasing index, added a test for that
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 722d0dcc10041..e638a24f830ef 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -502,6 +502,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby.rolling` when specifying ``on`` and calling ``_...
- [x] closes #43927 - [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/43928
2021-10-08T14:52:48Z
2021-10-09T01:10:01Z
2021-10-09T01:10:01Z
2021-10-09T01:10:20Z
BUG: Fix groupby nth with axis=1
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index e9101c9ff1f12..c5a22d8766a96 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -506,8 +506,10 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.apply` with time-based :class:`Grouper` objects incorrec...
Fixes a bug that no one has reported and probably no one cares about. But overlaps slightly with #42947, so I thought that I would make it a separate PR. Current behaviour: `df.groupby(df.iloc[1], axis=1).nth(0)` crashes ungracefully.
https://api.github.com/repos/pandas-dev/pandas/pulls/43926
2021-10-08T13:50:09Z
2021-10-13T15:31:48Z
2021-10-13T15:31:48Z
2021-10-13T23:00:22Z
Add Zstandard compression support
diff --git a/MANIFEST.in b/MANIFEST.in index c6ddc79eaa83c..78464c9aaedc8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -36,6 +36,7 @@ global-exclude *.xpt global-exclude *.cpt global-exclude *.xz global-exclude *.zip +global-exclude *.zst global-exclude *~ global-exclude .DS_Store global-exclude .git* diff --git...
- [ ] 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 Haven't found any discussion about Zstandard so far but I think it would be a valuable...
https://api.github.com/repos/pandas-dev/pandas/pulls/43925
2021-10-08T13:44:52Z
2021-12-22T22:56:47Z
2021-12-22T22:56:47Z
2021-12-23T09:59:45Z
ENH: __array_ufunc__ handle np.minimum.reduce
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index db5cce8459ca2..e1f08fa0ada9f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -552,6 +552,7 @@ Datetimelike - Bug in in calling ``np.isnan``, ``np.isfinite``, or ``np.isinf`` on a timezone-aware :class...
- [ ] 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 np.mimum.reduce(frame) -> return Series instead of ndarray np.maximum.reduce(series...
https://api.github.com/repos/pandas-dev/pandas/pulls/43923
2021-10-08T03:53:14Z
2021-11-29T00:55:11Z
2021-11-29T00:55:11Z
2021-12-13T15:39:44Z
TST: avoid re-running tests 14 times
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index a8684ca4d3c25..50097ae3787b3 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -525,38 +525,6 @@ def test_format_empty(self): assert empty_idx.format() == [] assert empty_idx.format(nam...
Test is unchanged, just moved to a class that isn't itself subclassed
https://api.github.com/repos/pandas-dev/pandas/pulls/43922
2021-10-08T03:14:41Z
2021-10-08T12:31:13Z
2021-10-08T12:31:13Z
2021-10-08T16:36:18Z
ENH: EA.tolist
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index 7b451ed3bf296..e2e8c94ef8fc6 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -60,6 +60,7 @@ objects. api.extensions.ExtensionArray.nbytes api.extensions.ExtensionArray...
Prelim for EA-backed Index.
https://api.github.com/repos/pandas-dev/pandas/pulls/43920
2021-10-07T23:23:39Z
2021-10-09T00:19:13Z
2021-10-09T00:19:13Z
2021-10-09T01:04:20Z
CLN: unnecessary warning-catching
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index d9f9c07a4f645..eb7638df301f7 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -621,17 +621,13 @@ def __iter__(self): chunksize = 10000 chunks = (length // chunksize) + 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/43919
2021-10-07T21:40:48Z
2021-10-08T12:32:04Z
2021-10-08T12:32:04Z
2021-10-08T16:35:04Z
TST/REF: fixturize
diff --git a/pandas/tests/indexes/categorical/test_indexing.py b/pandas/tests/indexes/categorical/test_indexing.py index 5d89fd3bb4bc3..798aa7188cb9a 100644 --- a/pandas/tests/indexes/categorical/test_indexing.py +++ b/pandas/tests/indexes/categorical/test_indexing.py @@ -300,8 +300,9 @@ def test_get_indexer_same_categ...
- [ ] 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/43918
2021-10-07T21:31:33Z
2021-10-08T12:32:57Z
2021-10-08T12:32:57Z
2021-10-08T12:32:57Z
BUG: np.isinf, np.isfinite, np.isnan with DTI[dt64tz]
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 722d0dcc10041..9f53ca404bd99 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -391,6 +391,7 @@ Datetimelike - :func:`to_datetime` would silently swap ``MM/DD/YYYY`` and ``DD/MM/YYYY`` formats if the gi...
- [ ] 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/43917
2021-10-07T21:19:58Z
2021-10-10T17:48:48Z
2021-10-10T17:48:48Z
2021-10-10T18:06:18Z
BENCH: indexing_engines
diff --git a/asv_bench/benchmarks/indexing_engines.py b/asv_bench/benchmarks/indexing_engines.py index 0cbc300ee2fc4..60e07a9d1469c 100644 --- a/asv_bench/benchmarks/indexing_engines.py +++ b/asv_bench/benchmarks/indexing_engines.py @@ -35,25 +35,49 @@ class NumericEngineIndexing: params = [ _get_numeric_...
With this I think we cover all the main paths through IndexEngine.get_loc
https://api.github.com/repos/pandas-dev/pandas/pulls/43916
2021-10-07T20:54:24Z
2021-10-07T23:54:28Z
2021-10-07T23:54:28Z
2021-10-08T00:52:36Z
TST : add test for groupby aggregation dtype
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 2c798e543bf6b..f178f85154319 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -1327,6 +1327,28 @@ def func(ser): tm.assert_fr...
- [ ] closes #32793 - [ ] 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/43915
2021-10-07T20:44:32Z
2021-10-29T21:58:56Z
2021-10-29T21:58:56Z
2021-10-29T21:59:00Z
TST/REF: collect/de-dup index tests
diff --git a/pandas/tests/frame/methods/test_reindex.py b/pandas/tests/frame/methods/test_reindex.py index c6b19547904ec..bee8025275b42 100644 --- a/pandas/tests/frame/methods/test_reindex.py +++ b/pandas/tests/frame/methods/test_reindex.py @@ -1078,3 +1078,35 @@ def test_reindex_datetimelike_to_object(self, dtype): ...
- [ ] 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/43914
2021-10-07T17:39:35Z
2021-10-07T22:02:09Z
2021-10-07T22:02:09Z
2021-10-07T23:28:06Z
TST: Skip leaky test on Python 3.10
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 3a139936fbd22..b32b18b86e9df 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -73,8 +73,6 @@ jobs: shell: bash run: | ci/run_tests.sh - # GH 41935 - continue-on-...
- [ ] xref #41935 (we should close after updating MacPython) - [ ] 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 test seems to be leaking on Python 3.10...
https://api.github.com/repos/pandas-dev/pandas/pulls/43910
2021-10-07T14:02:11Z
2021-10-09T00:18:23Z
2021-10-09T00:18:23Z
2021-11-11T01:38:23Z
TST/REF: misplaced Index.putmask tests
diff --git a/pandas/tests/indexes/interval/test_base.py b/pandas/tests/indexes/interval/test_base.py index 3589fe726b3bb..aa88bca2faec9 100644 --- a/pandas/tests/indexes/interval/test_base.py +++ b/pandas/tests/indexes/interval/test_base.py @@ -4,7 +4,6 @@ from pandas import ( IntervalIndex, Series, - dat...
- [ ] 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/43906
2021-10-07T03:59:27Z
2021-10-07T12:57:46Z
2021-10-07T12:57:46Z
2021-10-07T16:10:08Z
TST/REF: share/split index tests
diff --git a/pandas/tests/indexes/datetimelike.py b/pandas/tests/indexes/datetimelike.py index 70156092eeabe..ecdbf01fd41c1 100644 --- a/pandas/tests/indexes/datetimelike.py +++ b/pandas/tests/indexes/datetimelike.py @@ -9,6 +9,18 @@ class DatetimeLike(Base): + def test_isin(self, simple_index): + index ...
- [ ] 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/43905
2021-10-07T03:40:31Z
2021-10-07T12:57:06Z
2021-10-07T12:57:06Z
2021-10-07T16:10:37Z
ENH: implement Index.__array_ufunc__
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 22b49c35e0e68..722d0dcc10041 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -390,6 +390,7 @@ Datetimelike - Bug in :func:`to_datetime` with ``format`` and ``pandas.NA`` was raising ``ValueError`` (:i...
Very little user-facing here, AFAICT just the iadd/isub bug in DTA/TDA
https://api.github.com/repos/pandas-dev/pandas/pulls/43904
2021-10-06T23:12:24Z
2021-10-07T12:55:37Z
2021-10-07T12:55:37Z
2021-10-07T16:09:04Z
ENH: Add support for more placeholders in `guess_datetime_format`
diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py index 769889dfbe75d..a5a7bc5b5c8bd 100644 --- a/asv_bench/benchmarks/inference.py +++ b/asv_bench/benchmarks/inference.py @@ -277,6 +277,16 @@ def time_dup_string_tzoffset_dates(self, cache): to_datetime(self.dup_string_with_tz,...
Add support for day of week and meridiem placeholders and any combination of placeholders supported by `strftime` that do not correspond to a datetime attribute. - [x] closes #43901 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/43900
2021-10-06T06:41:39Z
2021-10-17T23:03:16Z
2021-10-17T23:03:16Z
2021-10-25T19:43:58Z
ENH: implement ExtensionArray.__array_ufunc__
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index daf0d0d000079..22b49c35e0e68 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -522,7 +522,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ -- +- NumPy ufuncs ``np.abs``, ``np.positive``, ``np.negative`` no...
This implements `ExtensionArray.__array_ufunc__` with minimal behavior changes (xref https://github.com/numpy/numpy/issues/20044 cc @shoyer). The only real behavior change is that np.abs, np.positive, np.negative wrap TimedeltaArray instead of returning ndarray[td64] After this comes `Index.__array_ufunc__`
https://api.github.com/repos/pandas-dev/pandas/pulls/43899
2021-10-06T02:25:43Z
2021-10-06T18:32:42Z
2021-10-06T18:32:42Z
2021-10-06T18:36:02Z
TST: slow collection in test_algos.py
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 5488c076554fd..9a9cd9fa4baaa 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -1797,13 +1797,13 @@ def test_too_many_ndims(self): @pytest.mark.single @pytest.mark.high_memory - @pytest.mark.parametrize( ...
- [x] closes #43888
https://api.github.com/repos/pandas-dev/pandas/pulls/43898
2021-10-06T00:45:09Z
2021-10-06T13:29:09Z
2021-10-06T13:29:09Z
2021-10-06T13:48:32Z
BUG: DataFrame arithmetic with subclass where constructor is not the subclass itself
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index dcd31abaa8857..0e9a51cf91d0f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -406,6 +406,8 @@ Numeric - Bug in :meth:`DataFrame.rank` raising ``ValueError`` with ``object`` columns and ``method="first...
- [x] closes #43201 - [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/43897
2021-10-05T23:44:38Z
2021-10-06T01:08:43Z
2021-10-06T01:08:43Z
2021-10-06T01:56:21Z
REF: remove _get_attributes_dict
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c9e128ffc4289..2b49a88e27961 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -728,13 +728,6 @@ def _format_duplicate_message(self) -> DataFrame: # -------------------------------------------------------------...
- [ ] 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/43895
2021-10-05T23:08:39Z
2021-10-06T01:09:29Z
2021-10-06T01:09:29Z
2022-03-01T18:32:17Z
ENH: Add custom descriptors (such as dtype, nunique, etc.) to Styler output
diff --git a/doc/source/_static/style/des_mean.png b/doc/source/_static/style/des_mean.png new file mode 100644 index 0000000000000..d52bbf55d40ae Binary files /dev/null and b/doc/source/_static/style/des_mean.png differ diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index dd7e2fe7434cd..6...
- [x] closes: #43875 ![Screen Shot 2021-10-24 at 08 52 28](https://user-images.githubusercontent.com/24256554/138583994-6a8debd6-6b8a-4fbb-a697-536b5a6b3590.png) <details> <summary>Former example...</summary> ![Screen Shot 2021-10-05 at 23 37 31](https://user-images.githubusercontent.com/24256554/1361064...
https://api.github.com/repos/pandas-dev/pandas/pulls/43894
2021-10-05T21:44:02Z
2022-02-25T18:53:38Z
null
2022-03-06T07:31:07Z
Annotates `indexers/utils.py` functions that don't return anything with `None`
diff --git a/pandas/core/indexers/utils.py b/pandas/core/indexers/utils.py index eacc7960a82aa..23d83343c96a2 100644 --- a/pandas/core/indexers/utils.py +++ b/pandas/core/indexers/utils.py @@ -363,7 +363,7 @@ def length_of_indexer(indexer, target=None) -> int: raise AssertionError("cannot find the length of the in...
- [ ] does not close any issue, change is too trivial - [ ] tests are not required for this - [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 - [ ] nothing new Related https://github.com/python/mypy/pull...
https://api.github.com/repos/pandas-dev/pandas/pulls/43893
2021-10-05T21:27:43Z
2021-10-06T01:10:03Z
2021-10-06T01:10:03Z
2021-10-06T01:10:07Z
BUG: pd.array preserve PandasArray
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4914d213accac..822c6372ea2a4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -526,6 +526,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ +- Bug in :func:`array` failing to preserve :class:`PandasArray` (...
- [ ] 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 - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43887
2021-10-05T04:07:46Z
2021-10-10T21:39:08Z
2021-10-10T21:39:08Z
2021-10-10T21:50:06Z
BUG: retain EA dtypes in DataFrame __pos__, __neg__
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 0c841078fe9b4..bfa59bb92c9a6 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -126,7 +126,8 @@ Other enhancements - Attempting to write into a file in missing parent directory with :meth:`DataFrame.to_...
- [ ] 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/43883
2021-10-04T19:16:57Z
2021-10-05T00:32:09Z
2021-10-05T00:32:09Z
2021-10-05T01:40:00Z
Don't suppress exception chaining for optional dependencies
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index dcd31abaa8857..a9d9ed5dab8de 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -127,7 +127,8 @@ Other enhancements - :meth:`IntegerArray.all` , :meth:`IntegerArray.any`, :meth:`FloatingArray.any`, and :...
I've just been [helping someone](https://stackoverflow.com/questions/69352179/package-streamlit-app-and-run-executable-on-windows) for whom the helpful error message appears to have obscured the real cause of the problem. Specifically, Jinja2 is present, but one of *its* dependencies is not. So the error message saying...
https://api.github.com/repos/pandas-dev/pandas/pulls/43882
2021-10-04T17:43:40Z
2021-10-06T01:07:57Z
2021-10-06T01:07:57Z
2021-10-06T08:20:23Z
DOC: Include a small preview of the groupby() user guide in its API reference
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 9f56885eefc3c..e3d6c0fc8d867 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -145,7 +145,9 @@ Notes ----- See the `user guide -<https://pandas.pydata.org/pandas-docs/stable/groupby.html>`__ for more. +<https://pand...
- [x] closes #43839 - [ ] 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/43880
2021-10-04T16:52:12Z
2021-11-29T16:00:57Z
2021-11-29T16:00:57Z
2021-11-29T16:43:10Z
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..cf2d27c6f580c 100644 --- a/pandas/tests/indexing/multiindex/test_loc.py +++ b/pandas/tests/indexing/multiindex/test_loc.py @@ -912,3 +912,14 @@ def test_loc_keyerror_rightmost_key_missing(): ...
-added unittest for issue #43599 -error occurs due to different versions of pandas
https://api.github.com/repos/pandas-dev/pandas/pulls/43879
2021-10-04T14:49:54Z
2022-01-25T01:30:42Z
null
2022-01-25T01:30:43Z
Add deprecation tag for passing a string for ewm(times=...)
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 79102c2bc82ee..29a6704ae5092 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -205,6 +205,8 @@ class ExponentialMovingWindow(BaseWindow): If str, the name of the column in the DataFrame representing the times. ...
Missed as part of https://github.com/pandas-dev/pandas/pull/43265
https://api.github.com/repos/pandas-dev/pandas/pulls/43873
2021-10-04T04:32:34Z
2021-10-04T12:07:41Z
2021-10-04T12:07:41Z
2021-10-04T17:49:00Z
PERF: tighter cython declarations, faster __iter__
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 87130906ef28b..4242a76dcc3b7 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -8,18 +8,16 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in ...
- [ ] 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/43872
2021-10-04T03:48:30Z
2021-10-05T00:33:02Z
2021-10-05T00:33:02Z
2021-10-05T01:39:20Z
ENH: ExponentialMovingWindow.sum
diff --git a/doc/source/reference/window.rst b/doc/source/reference/window.rst index 5e230a533625f..0be3184a9356c 100644 --- a/doc/source/reference/window.rst +++ b/doc/source/reference/window.rst @@ -88,6 +88,7 @@ Exponentially-weighted window functions :toctree: api/ ExponentialMovingWindow.mean + Exponen...
- [x] closes #13297 - [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/43871
2021-10-04T03:10:50Z
2021-10-06T12:57:43Z
2021-10-06T12:57:43Z
2021-10-06T16:49:20Z
BUG: get_indexer_non_unique with np.datetime64("NaT") and np.timedelta64("NaT")
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..583180d834010 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -498,6 +498,7 @@ Indexing - Bug in :meth:`DataFrame.nlargest` and :meth:`Series.nlargest` where sorted result did not count...
- [x] closes #43869 - [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/43870
2021-10-04T02:35:02Z
2021-10-18T19:41:22Z
2021-10-18T19:41:21Z
2021-10-18T19:54:59Z
BUG: Series[object].__setitem__(ndarray[M8ns]_with_matching_size)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a3dc95781ee93..2eb140e0bb6c2 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -446,6 +446,7 @@ Indexing - Bug in :meth:`DataFrame.query` where method calls in query strings led to errors when the ``num...
- [ ] 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/43868
2021-10-04T00:50:17Z
2021-10-12T22:20:08Z
2021-10-12T22:20:08Z
2021-10-12T22:46:29Z
Add clarifications to the docs regarding `to_feather`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index aad7213c93a1d..d98c6d1c5cfba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2564,6 +2564,13 @@ def to_feather(self, path: FilePathOrBuffer[AnyStr], **kwargs) -> None: `compression_level`, `chunksize` and `version` keywords. ...
- [X] closes https://github.com/pandas-dev/pandas/issues/28208 - [ ] 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 As discussed in https://github.com/pandas-...
https://api.github.com/repos/pandas-dev/pandas/pulls/43866
2021-10-03T21:20:53Z
2021-10-07T12:58:25Z
2021-10-07T12:58:24Z
2021-10-07T12:58:29Z
TYP: type insert and nsmallest/largest
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 77cd73fdfe91b..e7ec7fde762f4 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -8,7 +8,9 @@ from textwrap import dedent from typing import ( TYPE_CHECKING, + Hashable, Literal, + Sequence, Union, ...
cc @simonjayhawkins Could you have a look and give some feedback if this is ok so?
https://api.github.com/repos/pandas-dev/pandas/pulls/43865
2021-10-03T21:09:35Z
2021-10-19T22:05:49Z
2021-10-19T22:05:49Z
2021-10-20T19:49:17Z
BUG/ERR: sparse array cmp methods mismatched len
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 86f9d9ff624a4..a8b8cd087bf6f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -509,6 +509,7 @@ Sparse - Bug in :meth:`DataFrame.sparse.to_coo` raising ``AttributeError`` when column names are not uniqu...
- [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/43863
2021-10-03T16:19:06Z
2021-10-04T00:09:53Z
2021-10-04T00:09:53Z
2021-10-04T00:16:03Z
PERF: get_loc
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f93b4e9a019b6..ea0bebea8299b 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -116,12 +116,14 @@ cdef class IndexEngine: cdef: bint unique, monotonic_inc, monotonic_dec bint need_monotonic_check, need_unique_che...
Fixes a perf regression from 1.2.x ``` from asv_bench.benchmarks.indexing import * setup() self = NumericSeriesIndexing() self.setup(UInt64Index, "unique_monotonic_inc") %timeit self.time_getitem_scalar(UInt64Index, "unique_monotonic_inc") 6.34 µs ± 257 ns per loop (mean ± std. dev. of 7 runs, 100000 loops e...
https://api.github.com/repos/pandas-dev/pandas/pulls/43862
2021-10-03T15:22:19Z
2021-10-03T16:53:46Z
2021-10-03T16:53:46Z
2021-10-03T18:07:15Z
Update README.md
diff --git a/README.md b/README.md index 7bb77c70ab682..23e40485c3f57 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ **pandas** is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both -easy and intuitive. It aims to...
- [ ] 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/43861
2021-10-03T14:41:03Z
2021-10-03T17:02:23Z
null
2021-10-03T17:02:23Z
[ENH] to_orc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index aad7213c93a1d..e52ef00c348d6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2734,7 +2734,81 @@ def to_parquet( storage_options=storage_options, **kwargs, ) + + def to_orc( + self, + p...
Add pandas.io.orc.to_orc method definition
https://api.github.com/repos/pandas-dev/pandas/pulls/43860
2021-10-03T14:24:53Z
2021-11-12T10:44:41Z
null
2021-11-21T09:57:33Z
Backport PR #43854 on branch 1.3.x (REGR: RollingGroupby.corr producing incorrect results)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 05667264ad9af..6f07dc3e1e2f9 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -24,6 +24,8 @@ Fixed regressions - Fixed regression in :meth:`pandas.read_csv` raising ``UnicodeDecodeError`` exception whe...
Backport PR #43854: REGR: RollingGroupby.corr producing incorrect results
https://api.github.com/repos/pandas-dev/pandas/pulls/43859
2021-10-03T13:52:48Z
2021-10-03T15:41:50Z
2021-10-03T15:41:50Z
2021-10-03T15:41:50Z
REF: implement helpers for __array_ufunc__
diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py index 7cf34635ce9c1..f114278caf3ee 100644 --- a/pandas/core/arraylike.py +++ b/pandas/core/arraylike.py @@ -244,6 +244,8 @@ def array_ufunc(self, ufunc: np.ufunc, method: str, *inputs: Any, **kwargs: Any) cls = type(self) + kwargs = _standardi...
Refactored out of a branch that implements `Index.__array_ufunc__`
https://api.github.com/repos/pandas-dev/pandas/pulls/43856
2021-10-03T04:50:04Z
2021-10-03T18:47:04Z
2021-10-03T18:47:04Z
2021-10-03T19:12:52Z
TYP: make IOHandles generic
diff --git a/pandas/_typing.py b/pandas/_typing.py index 68ec331c2781f..85e29681285f4 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -7,7 +7,6 @@ BufferedIOBase, RawIOBase, TextIOBase, - TextIOWrapper, ) from mmap import mmap from os import PathLike @@ -170,7 +169,7 @@ PythonFuncType = ...
Towards #41610 This doesn't help with any ignore statements, as `Buffer` is defined as `Buffer = Union[IO[AnyStr], RawIOBase, BufferedIOBase, TextIOBase, TextIOWrapper, mmap]`: `IO[AnyStr]` will be replaced with `IO[str]` or `IO[bytes]`. btw., `Buffer` is a "bad" union as it contains one generic and many actual t...
https://api.github.com/repos/pandas-dev/pandas/pulls/43855
2021-10-02T18:46:56Z
2021-11-14T16:38:06Z
2021-11-14T16:38:06Z
2022-04-01T01:36:44Z
REGR: RollingGroupby.corr producing incorrect results
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 05667264ad9af..6f07dc3e1e2f9 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -24,6 +24,8 @@ Fixed regressions - Fixed regression in :meth:`pandas.read_csv` raising ``UnicodeDecodeError`` exception whe...
- [x] closes #43386 - [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 The regression is caused by the groupby paths requiring the data to be sorted by grou...
https://api.github.com/repos/pandas-dev/pandas/pulls/43854
2021-10-02T16:46:40Z
2021-10-03T13:52:20Z
2021-10-03T13:52:19Z
2021-10-03T13:53:06Z
TYP: enable reportPropertyTypeMismatch
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 7ff48a262c4d6..44cddd7bea81c 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1,3 +1,4 @@ +# pyright: reportPropertyTypeMismatch=false from __future__ import annotations import collections diff --git a/pyproject.toml b/pyproject....
This might be controversial. The setter allows any `Mapping` but the getter returns a `dict`. [reportPropertyTypeMismatch](https://github.com/microsoft/pyright/blob/main/docs/configuration.md): > [...] type of the value passed to the setter is not assignable to the value returned by the getter. Such mismatches vi...
https://api.github.com/repos/pandas-dev/pandas/pulls/43853
2021-10-02T14:21:51Z
2021-10-29T21:19:43Z
2021-10-29T21:19:43Z
2021-10-31T21:41:30Z
[ENH] MultiIndex: astype dict
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5f4207d0985ef..a7096f2b8db23 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5529,8 +5529,7 @@ def set_index( else: arrays.append(frame[col]._values) names.append(col) - if drop:...
astype multiindex with dict-like of names/int names index with pandas dtype - [ ] 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/43852
2021-10-02T11:34:40Z
2021-10-03T07:07:09Z
null
2021-10-03T07:15:07Z
BUG: json_normalize prefixed multi-char sep to all keys
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 94aed4aa295e1..86f9d9ff624a4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -463,6 +463,7 @@ I/O - Bug in unpickling a :class:`Index` with object dtype incorrectly inferring numeric dtypes (:issue:`4...
- [x] closes #43831 - [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/43851
2021-10-02T10:05:15Z
2021-10-03T13:50:22Z
2021-10-03T13:50:22Z
2021-10-03T13:50:24Z
TST: added test for cut when labels are tuples of Timestamps (#40661)
diff --git a/pandas/tests/reshape/test_cut.py b/pandas/tests/reshape/test_cut.py index c221a3a18911e..1425686f027e4 100644 --- a/pandas/tests/reshape/test_cut.py +++ b/pandas/tests/reshape/test_cut.py @@ -725,3 +725,12 @@ def test_cut_with_nonexact_categorical_indices(): ) tm.assert_frame_equal(expected, re...
- [x] closes #40661 - [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 Added a test for the cut method which uses Timestamp tuples as labels. Using cut wit...
https://api.github.com/repos/pandas-dev/pandas/pulls/43850
2021-10-02T09:06:18Z
2021-10-03T14:12:55Z
2021-10-03T14:12:55Z
2021-10-03T14:44:12Z
CI: Unpin fsspec
diff --git a/ci/deps/actions-38-db.yaml b/ci/deps/actions-38-db.yaml index b4495fa6887f4..26825cad5c8f6 100644 --- a/ci/deps/actions-38-db.yaml +++ b/ci/deps/actions-38-db.yaml @@ -16,7 +16,7 @@ dependencies: - botocore>=1.11 - dask - fastparquet>=0.4.0 - - fsspec>=0.7.4, <2021.6.0 + - fsspec>=0.7.4 - gcs...
- [ ] closes #42026 - [ ] 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 Testing a change out to see if it fixes it. Not sure if this is a bug on our side our...
https://api.github.com/repos/pandas-dev/pandas/pulls/43849
2021-10-02T03:21:00Z
2021-10-03T13:49:10Z
2021-10-03T13:49:09Z
2021-10-03T17:21:48Z
REF: BooleanArray/NumericArray share __array_ufunc__
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 66fc840f9821d..69896a389102f 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -365,51 +365,6 @@ def map_string(s): _HANDLED_TYPES = (np.ndarray, numbers.Number, bool, np.bool_) - def __array_ufu...
- [ ] 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/43848
2021-10-02T02:40:56Z
2021-10-03T13:54:46Z
2021-10-03T13:54:46Z
2021-10-03T14:56:00Z
REF: dont use np.abs in NDFrame.__abs__
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 91a446dd99334..9552f467b6132 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1589,6 +1589,77 @@ def bool(self): self.__nonzero__() + @final + def abs(self: NDFrameT) -> NDFrameT: + """ + Return a Ser...
Same as #43846 but for NDFrame Moves `abs` to be adjacent to `__abs__`.
https://api.github.com/repos/pandas-dev/pandas/pulls/43847
2021-10-01T23:21:03Z
2021-10-03T17:08:40Z
2021-10-03T17:08:40Z
2021-10-03T18:06:28Z
REF: use _unary_method for SparseArray.__abs__
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index ba7cf7d1bbfee..312cf387a8472 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1597,9 +1597,6 @@ def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs): else...
Upcoming PR will expand maybe_dispatch_ufunc_to_dunder_op to include unary methods, so this is needed to prevent circularity.
https://api.github.com/repos/pandas-dev/pandas/pulls/43846
2021-10-01T23:00:54Z
2021-10-01T23:56:54Z
2021-10-01T23:56:54Z
2021-10-02T01:45:41Z
CLN: assorted
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f4d59962c111e..f93b4e9a019b6 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -174,7 +174,7 @@ cdef class IndexEngine: cdef inline _get_loc_duplicates(self, object val): # -> Py_ssize_t | slice | ndarray[bool] c...
- [ ] 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/43845
2021-10-01T21:57:18Z
2021-10-03T13:54:16Z
2021-10-03T13:54:16Z
2021-10-03T14:55:03Z
TST: Test Series' settitem with Interval and NaN
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index b04a2c86a79d7..b8c53c7b59239 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -931,6 +931,17 @@ def test_iloc_setitem_td64_values_cast_na(self, value): expected = Series([NaT, 1...
Fixes #27937. As described in that issue, assigning a mixture of NaN and Interval values into a slice of a categorical-typed series would raise an exception. This is no longer the case. - [x] closes #27937 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/43844
2021-10-01T20:41:13Z
2021-10-05T00:32:37Z
2021-10-05T00:32:37Z
2021-10-05T06:26:02Z
TST: test selection methods after assignment with at
diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py index 23d2bee612243..d6be817ab6f77 100644 --- a/pandas/tests/indexing/test_at.py +++ b/pandas/tests/indexing/test_at.py @@ -26,6 +26,27 @@ def test_at_timezone(): tm.assert_frame_equal(result, expected) +def test_selection_methods...
- [X] closes #29282 - [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/43843
2021-10-01T20:28:55Z
2021-10-02T00:03:49Z
2021-10-02T00:03:48Z
2021-10-02T00:03:53Z
Backport PR #43834 on branch 1.3.x (TYP: Fix typing of frame.explode)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6da568698192d..85e445a8d35c8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8137,7 +8137,7 @@ def stack(self, level: Level = -1, dropna: bool = True): def explode( self, - column: Scalar | tuple | list[Scalar | tuple...
Backport PR #43834: TYP: Fix typing of frame.explode
https://api.github.com/repos/pandas-dev/pandas/pulls/43841
2021-10-01T19:13:37Z
2021-10-01T22:51:21Z
2021-10-01T22:51:21Z
2021-10-01T22:51:22Z
TYP: Fix typing of frame.explode
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 613a4cc829514..5f4207d0985ef 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8201,7 +8201,7 @@ def stack(self, level: Level = -1, dropna: bool = True): def explode( self, - column: Scalar | tuple | list[Scalar | tuple...
cc @simonjayhawkins
https://api.github.com/repos/pandas-dev/pandas/pulls/43834
2021-10-01T14:33:12Z
2021-10-01T19:12:31Z
2021-10-01T19:12:31Z
2021-11-13T19:32:46Z
update fix ignored sort in api.py and add test
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 722d0dcc10041..8c69820a54bce 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -512,6 +512,7 @@ Reshaping - Bug in :func:`concat` of ``bool`` and ``boolean`` dtypes resulting in ``object`` dtype instead...
- [x] closes #43375 - [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 As mentioned in the ticket, the function `api.union_indexes` does not handle the sor...
https://api.github.com/repos/pandas-dev/pandas/pulls/43833
2021-10-01T14:23:14Z
2021-10-10T17:28:31Z
2021-10-10T17:28:30Z
2021-10-10T17:28:34Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f15a340e75181..5a26ed150a3ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: absolufy-imports files: ^pandas/ - repo: https://github.com/python/black - rev: 21.7b0 + rev: 21.9b0 ...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/43830
2021-10-01T07:07:30Z
2021-10-01T08:58:21Z
2021-10-01T08:58:21Z
2021-10-01T08:58:24Z
TYP: enable disallow_untyped_decorators
diff --git a/pandas/_libs/properties.pyi b/pandas/_libs/properties.pyi new file mode 100644 index 0000000000000..b2ba55aefb8a5 --- /dev/null +++ b/pandas/_libs/properties.pyi @@ -0,0 +1,9 @@ +# pyright: reportIncompleteStub = false +from typing import Any + +# note: this is a lie to make type checkers happy (they speci...
- [ ] closes #33455, closes #41588, (closes #43388, closes #43387) - [ ] 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 Some of the many type errors unveiled...
https://api.github.com/repos/pandas-dev/pandas/pulls/43828
2021-10-01T02:29:35Z
2021-10-30T15:10:04Z
2021-10-30T15:10:03Z
2021-10-30T15:10:19Z
REF: add indices prop to sparse
diff --git a/pandas/_libs/sparse.pyi b/pandas/_libs/sparse.pyi index c75c36bd61fcd..aa5388025f6f2 100644 --- a/pandas/_libs/sparse.pyi +++ b/pandas/_libs/sparse.pyi @@ -17,6 +17,8 @@ class SparseIndex: def ngaps(self) -> int: ... @property def nbytes(self) -> int: ... + @property + def indices(self...
Future prs will use this more too, so figured adding it made sense
https://api.github.com/repos/pandas-dev/pandas/pulls/43827
2021-10-01T02:04:43Z
2021-10-03T22:28:26Z
2021-10-03T22:28:26Z
2021-10-03T22:37:53Z
CLN: Add comment on catch_warnings in agg_list_like
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 28ca8b70c9d27..291ad2b071665 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -370,6 +370,8 @@ def agg_list_like(self) -> DataFrame | Series: # Capture and suppress any warnings emitted by us in the call ...
- [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 Follow up from #43741
https://api.github.com/repos/pandas-dev/pandas/pulls/43826
2021-10-01T01:43:36Z
2021-10-01T14:10:48Z
2021-10-01T14:10:48Z
2021-10-01T14:14:49Z
REF: unnecessary method sharing with PeriodIndex
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 36e7a090214ed..2c9796e826825 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1228,7 +1228,9 @@ def _addsub_object_array(self, other: np.ndarray, op): ) return result ...
- [ ] 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/43825
2021-09-30T22:59:37Z
2021-10-01T02:04:16Z
2021-10-01T02:04:16Z
2021-10-01T02:06:45Z
CLN: unify some fused types
diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd index 4f7cc9345ed30..fdeff2ed11805 100644 --- a/pandas/_libs/algos.pxd +++ b/pandas/_libs/algos.pxd @@ -1,7 +1,7 @@ -from pandas._libs.util cimport numeric +from pandas._libs.dtypes cimport numeric_t -cdef numeric kth_smallest_c(numeric* arr, Py_ssize_t k...
Change summary: - `numeric` -> `numeric_t` - This replaces usages of `asof_t` - `numeric` + `object` -> `numeric_object_t` - This replaces usages of `algos_t`, `join_t`, `reshape_t` - `i64 + u64 + f32 + f64` -> `iu_64_floating_t` (don't love this name, suggestions welcome) - This replaces `groupby_t` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43824
2021-09-30T21:36:08Z
2021-10-01T16:36:36Z
2021-10-01T16:36:36Z
2021-10-01T18:25:00Z
PERF: tolist
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index d29cb519df1b0..5bbef727d1c8a 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -189,12 +189,6 @@ def _convert_tolerance(self, tolerance, target): tolerance = np.asarray(to_ti...
The parent class implementation is faster. ``` dti = pd.date_range("2016-01-01", periods=10**5, freq="S") %timeit dti.tolist() 286 ms ± 3 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 62.8 ms ± 765 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43823
2021-09-30T21:04:24Z
2021-09-30T22:57:57Z
2021-09-30T22:57:57Z
2021-09-30T23:01:58Z
PERF: assorted
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 1a0697f097494..87709ac6c33bf 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -24,7 +24,10 @@ cnp.import_array() from pandas._libs.algos import ensure_int64 from pandas._libs.arrays cimport NDArrayBacked -from pand...
``` import numpy as np from pandas._libs.internals import BlockPlacement arr = np.arange(5, dtype=np.intp) %timeit BlockPlacement(arr) 93.3 ns ± 0.203 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each) # <- PR 1.71 µs ± 40.2 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) # <- master ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43822
2021-09-30T16:50:27Z
2021-09-30T19:42:00Z
2021-09-30T19:42:00Z
2021-09-30T20:22:43Z
DOC: Typo(s?) in pandas.DataFrame.isin
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..4955513246626 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10563,13 +10563,13 @@ def isin(self, values) -> DataFrame: When ``values`` is a Series or DataFrame the index and column must match. Note that ...
- [🗸] closes #43755 - [🗸] 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/43820
2021-09-30T14:32:07Z
2021-10-03T14:14:03Z
2021-10-03T14:14:03Z
2021-10-03T14:14:10Z
TYP: fix RegisteredOption
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 9e140f4cad864..e2e6bbe8db7cc 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -78,7 +78,7 @@ class RegisteredOption(NamedTuple): key: str defval: object doc: str - validator: Callable[[Any], Any] | None + ...
Followup to #43776
https://api.github.com/repos/pandas-dev/pandas/pulls/43819
2021-09-30T14:22:31Z
2021-09-30T17:45:58Z
2021-09-30T17:45:58Z
2022-05-26T01:59:10Z
Backport PR #43801 on branch 1.3.x (DOC: Add cross merge to userguide section)
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index 09b3d3a8c96df..cee12c6939b25 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -562,7 +562,7 @@ all standard database join operations between ``DataFrame`` or named ``Series`` (hierarchica...
Backport PR #43801: DOC: Add cross merge to userguide section
https://api.github.com/repos/pandas-dev/pandas/pulls/43818
2021-09-30T13:22:42Z
2021-09-30T14:46:42Z
2021-09-30T14:46:42Z
2021-09-30T14:46:43Z
Backport PR #43802 on branch 1.3.x (REG: Regression in explode when column is non string)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index ccc475a74e13a..05667264ad9af 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`Series.cat.reorder_categories` failing to update the categori...
Backport PR #43802: REG: Regression in explode when column is non string
https://api.github.com/repos/pandas-dev/pandas/pulls/43817
2021-09-30T12:54:25Z
2021-09-30T14:06:29Z
2021-09-30T14:06:29Z
2021-09-30T14:06:29Z
Backport PR #43809 on branch 1.3.x (DOC: Add link to previous versions documentation)
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 51a6807b30e2a..3b440122c2b97 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -12,6 +12,9 @@ pandas documentation **Download documentation**: `PDF Version <pandas.pdf>`__ | `Zipped HTML <pandas.zip>`__ ...
Backport PR #43809: DOC: Add link to previous versions documentation
https://api.github.com/repos/pandas-dev/pandas/pulls/43816
2021-09-30T12:44:16Z
2021-09-30T13:57:56Z
2021-09-30T13:57:56Z
2021-09-30T13:57:56Z
Multiindex drop doc improvement
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..586ba3d39c605 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4911,6 +4911,10 @@ def drop( weight 1.0 0.8 length 0.3 0.2 + Drop a specific index combination from the MultiI...
- [ ] closes #43793 - [ ] tests added / passed - N/A - [ ] 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 - N/A - [ ] Improved documentation for ``DataFrame.drop``
https://api.github.com/repos/pandas-dev/pandas/pulls/43813
2021-09-30T06:51:08Z
2021-10-16T17:30:44Z
2021-10-16T17:30:44Z
2021-10-16T17:30:48Z
CI/TYP: set python_version for mypy
diff --git a/pyproject.toml b/pyproject.toml index 93a7805a63da3..a72aff2d6fc32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ follow_imports_for_stubs = false no_site_packages = false no_silence_site_packages = false # Platform configuration +python_version = "3.8" platform = "linux-64" # Disa...
- [x] closes #43807 - [ ] 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/43812
2021-09-30T03:27:06Z
2021-09-30T19:49:48Z
2021-09-30T19:49:47Z
2021-09-30T19:49:58Z
REF: handle uint-negatve cases in _check_type
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 1eca83f394987..f540dc99e91f3 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -157,19 +157,18 @@ cdef class IndexEngine: try: return self.mapping.get_item(val) - except (TypeError, ValueError, OverflowEr...
- [ ] 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/43811
2021-09-30T03:23:23Z
2021-09-30T12:42:30Z
2021-09-30T12:42:30Z
2021-09-30T14:24:51Z
CLN/TYP: assorted
diff --git a/asv_bench/benchmarks/indexing_engines.py b/asv_bench/benchmarks/indexing_engines.py index dc9576bc94d4c..0cbc300ee2fc4 100644 --- a/asv_bench/benchmarks/indexing_engines.py +++ b/asv_bench/benchmarks/indexing_engines.py @@ -1,5 +1,5 @@ """ -Benchmarks in this fiel depend exclusively on code in _libs/ +Ben...
- [ ] 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/43810
2021-09-30T01:24:52Z
2021-09-30T12:32:41Z
2021-09-30T12:32:41Z
2021-09-30T14:27:24Z
DOC: Add link to previous versions documentation
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 51a6807b30e2a..3b440122c2b97 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -12,6 +12,9 @@ pandas documentation **Download documentation**: `PDF Version <pandas.pdf>`__ | `Zipped HTML <pandas.zip>`__ ...
Add a "Previous versions" block with link to https://pandas.pydata.org where links to the documentation of prior versions are available. See preview below. ![image](https://user-images.githubusercontent.com/22901938/135364568-9f22f930-b7b4-42c7-ba39-c57f6290afc2.png) - [x] closes #43782 - [ ] tests added / pass...
https://api.github.com/repos/pandas-dev/pandas/pulls/43809
2021-09-30T00:03:24Z
2021-09-30T12:43:50Z
2021-09-30T12:43:50Z
2021-09-30T13:19:03Z
Backport PR #43213 on branch 1.3.x (BUG: groupby agg fails silently with mixed dtypes)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index a4a5bed14d416..ccc475a74e13a 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`.Gr...
Backport PR #43213: BUG: groupby agg fails silently with mixed dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/43808
2021-09-29T22:47:46Z
2021-09-30T07:41:23Z
2021-09-30T07:41:23Z
2021-09-30T07:41:23Z
TYP: GroupBy
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index e60250169edd1..b88a2e4c28cfb 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -5,6 +5,7 @@ from typing import ( Any, Callable, Generator, + Hashable, Literal, overload, ) @@ -197,7 +198,7 @@ def indices_fast( ...
- [ ] 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/43806
2021-09-29T22:08:11Z
2021-09-30T19:42:32Z
2021-09-30T19:42:32Z
2021-09-30T20:13:26Z
PERF: improve perf of conversion to string arrays
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c8fa6d46c3b7e..986c10d824ba0 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -347,6 +347,7 @@ Other Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in :meth:...
`f"{val}"` is faster than `str(val)`. Utilizing this in the tight string conversion loop in `ensure_string_array` gives a nice performance boost. ```python >>> int_arr = np.arange(1_000_000) >>> %timeit pd.Series(int_arr, dtype="string") 850 ms ± 8.65 ms per loop # master 455 ms ± 8.65 ms per loop # this PR >...
https://api.github.com/repos/pandas-dev/pandas/pulls/43805
2021-09-29T21:03:43Z
2021-09-30T19:43:54Z
2021-09-30T19:43:54Z
2021-09-30T22:44:45Z
REF: share _get_bool_indexer
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 185cbf6fd91b1..bb6fab47feb9e 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -47,6 +47,40 @@ cdef inline bint is_definitely_invalid_key(object val): return False +cdef ndarray _get_bool_indexer(ndarray values, object val): +...
- [ ] 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/43803
2021-09-29T20:45:49Z
2021-09-29T22:55:43Z
2021-09-29T22:55:43Z
2021-09-30T01:06:12Z
REG: Regression in explode when column is non string
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index a4a5bed14d416..e00397305b51d 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`Series.cat.reorder_categories` failing to update the categori...
- [x] closes #43314 - [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 This should cover the issue since the other pr did not make any progress. Is there...
https://api.github.com/repos/pandas-dev/pandas/pulls/43802
2021-09-29T20:45:19Z
2021-09-30T12:54:17Z
2021-09-30T12:54:17Z
2021-10-01T14:33:35Z
DOC: Add cross merge to userguide section
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index 09b3d3a8c96df..cee12c6939b25 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -562,7 +562,7 @@ all standard database join operations between ``DataFrame`` or named ``Series`` (hierarchica...
Forgot this when adding cross
https://api.github.com/repos/pandas-dev/pandas/pulls/43801
2021-09-29T20:14:18Z
2021-09-30T13:22:35Z
2021-09-30T13:22:35Z
2021-09-30T13:51:44Z
REF: make _unpack_bool_indexer a function
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index bb6fab47feb9e..1eca83f394987 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -85,6 +85,26 @@ cdef ndarray _get_bool_indexer(ndarray values, object val): _SIZE_CUTOFF = 1_000_000 +cdef _unpack_bool_indexer(ndarray[uint8_t, ndim=1...
Perf-neutral, makes code-sharing slightly easier for the EA (in particular Nullable) Engine in the works.
https://api.github.com/repos/pandas-dev/pandas/pulls/43800
2021-09-29T17:33:18Z
2021-09-30T01:15:23Z
2021-09-30T01:15:23Z
2021-09-30T01:17:25Z
CI/TYP: run pyright at manual stage in pre-commit
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9afb0e34f1075..0609755678d78 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,8 +13,6 @@ jobs: concurrency: group: ${{ github.ref }}-pre-commit cancel-in-progress: ${{gith...
with numpy<1.21.0 pyright (and mypy?) cannot determine some types which leads to overlapping overloads. See https://github.com/pandas-dev/pandas/pull/43747#issuecomment-930343454 @attack68
https://api.github.com/repos/pandas-dev/pandas/pulls/43799
2021-09-29T17:06:54Z
2021-10-03T22:30:51Z
2021-10-03T22:30:51Z
2022-04-01T01:36:59Z
Move group_selection_context from module to class
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index c5633b6809676..b4a21ccd2150a 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -75,7 +75,6 @@ _agg_template, _apply_docs, _transform_template, - group_selection_context, warn_dropp...
@jreback request to bring forwards part of #42947
https://api.github.com/repos/pandas-dev/pandas/pulls/43796
2021-09-29T08:35:54Z
2021-09-29T12:55:28Z
2021-09-29T12:55:28Z
2021-09-29T13:14:11Z
PERF: avoid warnings in IndexEngine.get_loc
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 0cdb3518cd97c..185cbf6fd91b1 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,5 +1,3 @@ -import warnings - cimport cython import numpy as np diff --git a/pandas/_libs/index_class_helper.pxi.in b/pandas/_libs/index_class_helper....
Only reached for non-unique indexes. Makes a big difference for small indexes. Room for de-duplication in follow-ups. ``` import numpy as np import pandas as pd np.random.seed(90) arr = np.random.randn(4).repeat(2) idx = pd.Index(arr) assert not idx.is_unique key = arr[4] engine = idx._engine %timei...
https://api.github.com/repos/pandas-dev/pandas/pulls/43792
2021-09-29T04:14:58Z
2021-09-29T12:59:54Z
2021-09-29T12:59:54Z
2021-09-29T16:39:02Z