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
BUG: Don't supply name to Series when using 'size' with agg/apply
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 00b49c2f4f951..9ec0f7dca3b84 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -842,7 +842,7 @@ def apply_str(self) -> FrameOrSeriesUnion: # Special-cased because DataFrame.size returns a single scalar obj = self.obj ...
- [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 Ref: https://github.com/pandas-dev/pandas/pull/39935#discussion_r651989373 Doing e.g. print(DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}).apply('sum')) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/42046
2021-06-16T02:12:25Z
2021-06-16T11:09:06Z
2021-06-16T11:09:06Z
2021-06-16T11:40:22Z
Backport PR #42030 on branch 1.3.x (Regression raising Error when having dup cols with single dtype for read csv)
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 7d7074988e5f0..e5e61e409c320 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -108,6 +108,7 @@ from pandas.core.dtypes.common import ( is_object_dtype, ) from pandas.core.dtypes.dtypes import CategoricalDtype +from pand...
Backport PR #42030: Regression raising Error when having dup cols with single dtype for read csv
https://api.github.com/repos/pandas-dev/pandas/pulls/42045
2021-06-16T01:46:13Z
2021-06-16T08:02:39Z
2021-06-16T08:02:39Z
2021-06-16T08:02:39Z
BUG: MultiIndex.reindex with level and EA dtype
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 166ea2f0d4164..9859f12a34621 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -167,7 +167,7 @@ Missing MultiIndex ^^^^^^^^^^ -- +- Bug in :meth:`MultiIndex.reindex` when passing a ``level`` that cor...
- [ ] 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 Preliminary to a pretty nice de-duplication.
https://api.github.com/repos/pandas-dev/pandas/pulls/42043
2021-06-16T00:50:09Z
2021-06-17T17:47:22Z
2021-06-17T17:47:22Z
2021-06-17T18:52:38Z
REF: de-duplicate CategoricalIndex._get_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 4de95079f6480..69d53b04cf9f6 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5167,6 +5167,7 @@ def set_value(self, arr, key, value): def get_indexer_non_unique(self, target) -> tuple[np.ndarray, np.ndarray]:...
https://api.github.com/repos/pandas-dev/pandas/pulls/42042
2021-06-16T00:45:10Z
2021-06-16T13:09:51Z
2021-06-16T13:09:51Z
2021-06-16T14:10:41Z
Backport PR #41266 on branch 1.3.x (API: make `hide_columns` and `hide_index` have a consistent signature and function in `Styler`)
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index c5aba539bd2dd..e4f0825d24828 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -31,7 +31,10 @@ from pandas.util._decorators import doc import pandas as pd -from pandas import RangeIndex +from pandas import ( + In...
Backport PR #41266: API: make `hide_columns` and `hide_index` have a consistent signature and function in `Styler`
https://api.github.com/repos/pandas-dev/pandas/pulls/42041
2021-06-16T00:23:01Z
2021-06-16T08:00:55Z
2021-06-16T08:00:55Z
2021-06-16T08:00:55Z
Backport PR #40731 on branch 1.3.x (ENH: `Styler.to_latex` conversion from CSS)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 414794dd6a56e..e20342976aad7 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -136,7 +136,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404 - Many features of the :...
Backport PR #40731: ENH: `Styler.to_latex` conversion from CSS
https://api.github.com/repos/pandas-dev/pandas/pulls/42040
2021-06-16T00:20:19Z
2021-06-16T08:00:26Z
2021-06-16T08:00:26Z
2021-06-16T08:00:26Z
Backport PR #41933 on branch 1.3.x (BUG: CategoricalIndex.get_loc(np.nan))
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 414794dd6a56e..2129025b2c071 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1014,6 +1014,7 @@ Indexing - Bug in :meth:`DataFrame.loc.__setitem__` when setting-with-expansion incorrectly raising when...
Backport PR #41933: BUG: CategoricalIndex.get_loc(np.nan)
https://api.github.com/repos/pandas-dev/pandas/pulls/42039
2021-06-16T00:11:44Z
2021-06-16T08:00:04Z
2021-06-16T08:00:03Z
2021-06-16T08:00:04Z
Backport PR #41846 on branch 1.3.x (BUG: DataFrame.at with CategoricalIndex)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 414794dd6a56e..a202c6fe56642 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1015,6 +1015,7 @@ Indexing - Bug in :meth:`DataFrame.loc.__getitem__` with :class:`MultiIndex` casting to float when at le...
Backport PR #41846: BUG: DataFrame.at with CategoricalIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/42038
2021-06-16T00:03:38Z
2021-06-16T07:59:40Z
2021-06-16T07:59:40Z
2021-06-16T07:59:41Z
Backport PR #42006 on branch 1.3.x (DEP: move pkg_resources back inline in function (delayed import))
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 00d87b707580d..302d5ede0ae86 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -7,8 +7,6 @@ Sequence, ) -import pkg_resources - from pandas._config import get_option from pandas._typing import IndexLabel @@ -1745,6 ...
Backport PR #42006: DEP: move pkg_resources back inline in function (delayed import)
https://api.github.com/repos/pandas-dev/pandas/pulls/42037
2021-06-15T23:53:02Z
2021-06-16T07:59:17Z
2021-06-16T07:59:17Z
2021-06-16T07:59:18Z
Backport PR #41974 on branch 1.3.x (BUG: UInt64Index.where with int64 value)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 414794dd6a56e..37f560807f1ca 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -948,6 +948,8 @@ Numeric - Bug in :meth:`Series.count` would result in an ``int32`` result on 32-bit platforms when argumen...
Backport PR #41974: BUG: UInt64Index.where with int64 value
https://api.github.com/repos/pandas-dev/pandas/pulls/42036
2021-06-15T23:49:11Z
2021-06-16T07:58:51Z
2021-06-16T07:58:51Z
2021-06-16T07:58:51Z
Backport PR #41964 on branch 1.3.x (Bug in melt raising Error with dup columns as value vars)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 414794dd6a56e..d71a6197a02cd 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1155,6 +1155,7 @@ Reshaping - Bug in :func:`to_datetime` raising an error when the input sequence contained unhashable ite...
Backport PR #41964: Bug in melt raising Error with dup columns as value vars
https://api.github.com/repos/pandas-dev/pandas/pulls/42035
2021-06-15T23:34:33Z
2021-06-16T07:58:18Z
2021-06-16T07:58:18Z
2021-06-16T07:58:19Z
Backport PR #41982 on branch 1.3.x (TST: fix xpass for M1 Mac)
diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py index 9572aeaf41c91..de75f1dffde56 100644 --- a/pandas/tests/indexes/numeric/test_numeric.py +++ b/pandas/tests/indexes/numeric/test_numeric.py @@ -2,6 +2,10 @@ import pytest from pandas._libs.tslibs import Time...
Backport PR #41982: TST: fix xpass for M1 Mac
https://api.github.com/repos/pandas-dev/pandas/pulls/42034
2021-06-15T23:33:32Z
2021-06-16T01:44:38Z
2021-06-16T01:44:38Z
2021-06-16T08:10:59Z
Backport PR #42017 on branch 1.3.x (DOC: Fix wrongly associated docstring of Series.str.isspace)
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 323cb6bd9fedd..d3cdcec9da8f1 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -3005,7 +3005,7 @@ def casefold(self): "isdigit", docstring=_shared_docs["ismethods"] % _doc_args["isdigit"] ...
Backport PR #42017: DOC: Fix wrongly associated docstring of Series.str.isspace
https://api.github.com/repos/pandas-dev/pandas/pulls/42033
2021-06-15T22:40:39Z
2021-06-16T01:45:52Z
2021-06-16T01:45:52Z
2021-06-16T01:45:52Z
Backport PR #42023 on branch 1.3.x (CI: pin fsspec)
diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml index e568f8615a8df..a9e4113bf9d18 100644 --- a/ci/deps/actions-37-db.yaml +++ b/ci/deps/actions-37-db.yaml @@ -16,7 +16,7 @@ dependencies: - botocore>=1.11 - dask - fastparquet>=0.4.0 - - fsspec>=0.7.4 + - fsspec>=0.7.4, <2021.6.0 - gcs...
Backport PR #42023: CI: pin fsspec
https://api.github.com/repos/pandas-dev/pandas/pulls/42032
2021-06-15T22:27:56Z
2021-06-15T23:32:37Z
2021-06-15T23:32:37Z
2021-06-15T23:32:43Z
PERF: groupsort_indexer contiguity
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 172f2bfb49160..adfe4de1263ed 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -217,8 +217,8 @@ def groupsort_indexer(const intp_t[:] index, Py_ssize_t ngroups): This is a reverse of the label factorization process. """ ...
Some low-hanging fruit ``` In [1]: import numpy as np ...: import pandas._libs.algos as libalgos ...: ...: np.random.seed(0) ...: inds = np.random.randint(0, 100, 500000) ...: ngroups = inds.max() + 1 In [2]: %timeit libalgos.groupsort_indexer(inds, ngroups) ``` `1.06 ms ± 11.3 µs per loop (m...
https://api.github.com/repos/pandas-dev/pandas/pulls/42031
2021-06-15T21:50:27Z
2021-07-28T01:31:16Z
2021-07-28T01:31:16Z
2021-07-28T01:54:30Z
Regression raising Error when having dup cols with single dtype for read csv
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 7d7074988e5f0..e5e61e409c320 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -108,6 +108,7 @@ from pandas.core.dtypes.common import ( is_object_dtype, ) from pandas.core.dtypes.dtypes import CategoricalDtype +from pand...
- [x] closes #42022 - [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 regression on master, so no whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/42030
2021-06-15T21:26:44Z
2021-06-16T01:46:05Z
2021-06-16T01:46:04Z
2021-06-16T08:45:50Z
Backport PR #41972 on branch 1.3.x (PERF: indexing on UInt64Index with int64s)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index eaba30012a5b8..96ddf9ce76f53 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5303,6 +5303,13 @@ def _maybe_promote(self, other: Index) -> tuple[Index, Index]: if not is_object_dtype(self.dtype): ...
Backport PR #41972: PERF: indexing on UInt64Index with int64s
https://api.github.com/repos/pandas-dev/pandas/pulls/42029
2021-06-15T21:06:06Z
2021-06-15T22:26:50Z
2021-06-15T22:26:50Z
2021-06-15T22:26:50Z
Backport PR #41958 on branch 1.3.x (REGR: Series[dt64/td64].astype(string))
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 37e83ddb0ffed..51a947f79ede2 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -716,6 +716,14 @@ cpdef ndarray[object] ensure_string_array( Py_ssize_t i = 0, n = len(arr) if hasattr(arr, "to_numpy"): + + if hasattr(arr, ...
Backport PR #41958: REGR: Series[dt64/td64].astype(string)
https://api.github.com/repos/pandas-dev/pandas/pulls/42028
2021-06-15T21:04:49Z
2021-06-15T22:27:36Z
2021-06-15T22:27:36Z
2021-06-15T22:27:36Z
Backport PR #42024 on branch 1.3.x (TST: Reduce number of numba tests run)
diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py index 24b28356a3099..5382f5f9202c0 100644 --- a/pandas/tests/window/conftest.py +++ b/pandas/tests/window/conftest.py @@ -90,13 +90,17 @@ def parallel(request): return request.param -@pytest.fixture(params=[True, False]) +# Can para...
Backport PR #42024: TST: Reduce number of numba tests run
https://api.github.com/repos/pandas-dev/pandas/pulls/42027
2021-06-15T20:46:56Z
2021-06-15T22:27:22Z
2021-06-15T22:27:22Z
2021-06-15T22:27:22Z
Backport PR #41968 on branch 1.3.x (DOC: 1.3.0 release notes addition and doc fix)
diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index 5a2ff803f0323..ae3647185f93d 100644 --- a/doc/source/reference/style.rst +++ b/doc/source/reference/style.rst @@ -34,7 +34,6 @@ Style application Styler.apply Styler.applymap - Styler.where Styler.format Styler.set_td...
Backport PR #41968: DOC: 1.3.0 release notes addition and doc fix
https://api.github.com/repos/pandas-dev/pandas/pulls/42025
2021-06-15T19:44:49Z
2021-06-15T20:54:26Z
2021-06-15T20:54:26Z
2021-06-15T20:54:26Z
TST: Reduce number of numba tests run
diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py index 24b28356a3099..5382f5f9202c0 100644 --- a/pandas/tests/window/conftest.py +++ b/pandas/tests/window/conftest.py @@ -90,13 +90,17 @@ def parallel(request): return request.param -@pytest.fixture(params=[True, False]) +# Can para...
- xref https://github.com/pandas-dev/pandas/pull/41971#issuecomment-860607472 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/42024
2021-06-15T19:38:49Z
2021-06-15T20:46:48Z
2021-06-15T20:46:48Z
2021-06-15T21:06:12Z
CI: pin fsspec
diff --git a/ci/deps/actions-37-db.yaml b/ci/deps/actions-37-db.yaml index e568f8615a8df..a9e4113bf9d18 100644 --- a/ci/deps/actions-37-db.yaml +++ b/ci/deps/actions-37-db.yaml @@ -16,7 +16,7 @@ dependencies: - botocore>=1.11 - dask - fastparquet>=0.4.0 - - fsspec>=0.7.4 + - fsspec>=0.7.4, <2021.6.0 - gcs...
Hopefully fixes new Windows py37_np17 failures
https://api.github.com/repos/pandas-dev/pandas/pulls/42023
2021-06-15T18:26:09Z
2021-06-15T22:27:48Z
2021-06-15T22:27:47Z
2021-06-17T10:38:26Z
BUG: passing str to GroupBy.apply
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 68f1c78688b1d..8d96d49daba4f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -256,6 +256,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ +- Fixed bug in :meth:`SeriesGroupBy.apply` ...
- [ ] 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/42021
2021-06-15T17:25:53Z
2021-07-17T14:18:16Z
2021-07-17T14:18:16Z
2021-07-17T18:47:28Z
Backport PR #41990 on branch 1.3.x (CI: troubleshoot py310 build)
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 03f4ce273de6e..c2b9c723b7c72 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1030,9 +1030,9 @@ def rank_1d( if rank_t is object: nan_fill_val = Infinity() elif rank_t is int64_t: - nan_fill_...
Backport PR #41990: CI: troubleshoot py310 build
https://api.github.com/repos/pandas-dev/pandas/pulls/42019
2021-06-15T13:17:18Z
2021-06-15T16:07:17Z
2021-06-15T16:07:17Z
2021-06-15T16:07:17Z
Backport PR #41954 on branch 1.3.x (DOC: more cleanup of 1.3 release notes)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index dd95f9088e3da..bc75d948ba4ce 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -637,7 +637,7 @@ If installed, we now require: +-----------------+-----------------+----------+---------+ | pytest (dev) ...
Backport PR #41954: DOC: more cleanup of 1.3 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/42018
2021-06-15T13:11:26Z
2021-06-15T14:54:58Z
2021-06-15T14:54:58Z
2021-06-15T14:54:59Z
DOC: Fix wrongly associated docstring of Series.str.isspace
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 323cb6bd9fedd..d3cdcec9da8f1 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -3005,7 +3005,7 @@ def casefold(self): "isdigit", docstring=_shared_docs["ismethods"] % _doc_args["isdigit"] ...
cc @simonjayhawkins - [ ] closes #42015 - [ ] 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/42017
2021-06-15T11:11:25Z
2021-06-15T22:40:31Z
2021-06-15T22:40:31Z
2021-06-16T11:09:48Z
BUG: `Styler.apply` consistently manages Series return objects aligning labels.
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 84fdc4600dc63..74f69ef73b822 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -365,6 +365,8 @@ Styler - Minor bug in :class:`.Styler` where the ``uuid`` at initialization maintained a floating undersco...
- [x] closes #13657 This issue is due to the asymmetric application of `DataFrame.apply` (#42005). **The bug** is that when using `Styler.apply` the treatment of Series return objects is applied for `axis=0` and overwritten for `axis=1`. ```python df = pd.DataFrame([[1,2],[3,4]], index=["X", "Y"], columns=["X...
https://api.github.com/repos/pandas-dev/pandas/pulls/42014
2021-06-15T07:22:49Z
2021-08-19T21:41:49Z
2021-08-19T21:41:49Z
2021-08-20T05:31:08Z
Backport PR #41971 on branch 1.3.x (CI: mark window online test slow)
diff --git a/pandas/tests/window/test_online.py b/pandas/tests/window/test_online.py index c7580650926da..461c62c07326d 100644 --- a/pandas/tests/window/test_online.py +++ b/pandas/tests/window/test_online.py @@ -22,6 +22,7 @@ def test_invalid_update(self): ): online_ewm.mean(update=df.head(1)) ...
Backport PR #41971: CI: mark window online test slow
https://api.github.com/repos/pandas-dev/pandas/pulls/42010
2021-06-15T01:12:58Z
2021-06-15T10:10:22Z
2021-06-15T10:10:22Z
2021-06-15T10:10:23Z
ENH: Clarify error message when reindexing fails (#42000)
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index dc66303a44f53..862aef8ceab34 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -701,7 +701,7 @@ Having a duplicated index will raise for a ``.reindex()``: .. code-block:: ipython I...
- [x] closes #42000 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/42007
2021-06-14T18:41:30Z
2021-06-16T09:34:33Z
2021-06-16T09:34:33Z
2021-06-16T09:34:44Z
DEP: move pkg_resources back inline in function (delayed import)
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 00d87b707580d..302d5ede0ae86 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -7,8 +7,6 @@ Sequence, ) -import pkg_resources - from pandas._config import get_option from pandas._typing import IndexLabel @@ -1745,6 ...
xref https://github.com/pandas-dev/pandas/issues/40169#issuecomment-860900794, fixup of #41503
https://api.github.com/repos/pandas-dev/pandas/pulls/42006
2021-06-14T18:36:09Z
2021-06-15T23:52:54Z
2021-06-15T23:52:54Z
2021-06-15T23:53:08Z
Backport PR #41987 on branch 1.3.x (TST: Un-xfail tests on numpy-dev)
diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py index ba8fe25401e8c..2c96cf291c154 100644 --- a/pandas/tests/frame/methods/test_to_records.py +++ b/pandas/tests/frame/methods/test_to_records.py @@ -3,8 +3,6 @@ import numpy as np import pytest -from pandas.c...
Backport PR #41987: TST: Un-xfail tests on numpy-dev
https://api.github.com/repos/pandas-dev/pandas/pulls/42004
2021-06-14T16:32:22Z
2021-06-15T00:39:50Z
2021-06-15T00:39:50Z
2021-06-15T00:39:50Z
ENH: `Styler.apply(map)_index` made compatible with `Styler.to_excel`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 964f4b83866c9..0632387bd19b7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -72,8 +72,8 @@ Styler :class:`.Styler` has been further developed in 1.4.0. The following enhancements have been made: ...
This is a follow-on to #41893. It makes the new `Styler.apply_index` and `Styler.applymap_index` methods compatible with `Styler.to_excel`. If the methods are not used the output reverts to the old format. ![Screen Shot 2021-06-14 at 10 58 47](https://user-images.githubusercontent.com/24256554/121866799-93016100-...
https://api.github.com/repos/pandas-dev/pandas/pulls/41995
2021-06-14T09:01:41Z
2021-10-19T00:44:24Z
2021-10-19T00:44:23Z
2021-10-19T05:31:41Z
ENH: `Styler.apply(map)_index` made compatible with `Styler.to_latex`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ef7ff2d24009e..89b7950c5faf4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -38,7 +38,7 @@ Other enhancements - :meth:`Series.ewm`, :meth:`DataFrame.ewm`, now support a ``method`` argument with a ``'...
This is a follow-on to #41893. It makes the new `Styler.apply_index` and `Styler.applymap_index` methods compatible with `Styler.to_latex`. ![Screen Shot 2021-06-14 at 09 24 46](https://user-images.githubusercontent.com/24256554/121854567-a22de200-ccf2-11eb-820a-cc905c7aac3a.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/41993
2021-06-14T07:30:25Z
2021-08-12T15:52:05Z
2021-08-12T15:52:05Z
2021-08-12T17:02:45Z
CI: troubleshoot py310 build
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 03f4ce273de6e..c2b9c723b7c72 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1030,9 +1030,9 @@ def rank_1d( if rank_t is object: nan_fill_val = Infinity() elif rank_t is int64_t: - nan_fill_...
- [ ] 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/41990
2021-06-14T01:52:48Z
2021-06-15T13:17:09Z
2021-06-15T13:17:09Z
2022-12-29T21:21:25Z
DEPS: drop Python 3.7 and NumPy 1.17 from tests (#41678)
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index 4b700c48979f7..54a55cc78914d 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -19,7 +19,7 @@ env: COVERAGE: true jobs: - Linux_py37_IO: + Linux_py38_IO: runs-on: ubuntu-latest defaults...
closes #41678 Most of the new minimum support versions were released between Oct 14, 2019, Python 3.8's initial release date, and June/July 2020.
https://api.github.com/repos/pandas-dev/pandas/pulls/41989
2021-06-13T22:22:56Z
2021-07-04T21:44:01Z
2021-07-04T21:44:01Z
2021-08-05T10:22:23Z
BUG: nan-objects lookup fails with Python3.10
diff --git a/pandas/_libs/src/klib/khash_python.h b/pandas/_libs/src/klib/khash_python.h index 87c6283c19a2f..c8e1ca5ebb4d3 100644 --- a/pandas/_libs/src/klib/khash_python.h +++ b/pandas/_libs/src/klib/khash_python.h @@ -251,12 +251,105 @@ int PANDAS_INLINE pyobject_cmp(PyObject* a, PyObject* b) { } -khint32_t PAN...
- [x] closes #41953 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them This builds upon #41952, which should be integrated first. We no longer can assume that the CPython's hash ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41988
2021-06-13T20:13:41Z
2021-06-17T19:05:36Z
2021-06-17T19:05:36Z
2021-06-17T19:06:14Z
TST: Un-xfail tests on numpy-dev
diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py index ba8fe25401e8c..2c96cf291c154 100644 --- a/pandas/tests/frame/methods/test_to_records.py +++ b/pandas/tests/frame/methods/test_to_records.py @@ -3,8 +3,6 @@ import numpy as np import pytest -from pandas.c...
- [ ] 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 Makes 3.8 npdev green.
https://api.github.com/repos/pandas-dev/pandas/pulls/41987
2021-06-13T19:05:06Z
2021-06-14T16:31:45Z
2021-06-14T16:31:45Z
2021-06-17T11:36:01Z
DOC: update array-like parameters if scalars accepted
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index bf6887ed27005..df9f3d07ce7fd 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -531,7 +531,7 @@ def factorize_array( mask: np.ndarray | None = None, ) -> tuple[npt.NDArray[np.intp], np.ndarray]: """ - Factoriz...
- [x] based on discussion in #41807 - [x] tests added / passed - N/A since only doc changes - [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 - N/A since only doc changes - [x] whatsnew entry - Not nee...
https://api.github.com/repos/pandas-dev/pandas/pulls/41985
2021-06-13T17:53:39Z
2021-07-14T23:47:06Z
2021-07-14T23:47:05Z
2021-07-19T12:00:54Z
Backport PR #41966 on branch 1.3.x (CI: activate azure pipelines/github actions on 1.3.x)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a802c678e20..a62942c7cd948 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: branches: - master - 1.2.x + - 1.3.x env: ENV_FILE: environment.yml diff --git a/.github/workflows/da...
Backport PR #41966: CI: activate azure pipelines/github actions on 1.3.x
https://api.github.com/repos/pandas-dev/pandas/pulls/41984
2021-06-13T16:52:39Z
2021-06-13T19:26:09Z
2021-06-13T19:26:09Z
2021-06-13T19:26:09Z
Backport PR #41981 on branch 1.3.x (BLD: Update MANIFEST.in)
diff --git a/MANIFEST.in b/MANIFEST.in index 1880e6a7208e2..f616fad6b1557 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -44,9 +44,8 @@ global-exclude *.c global-exclude *.cpp global-exclude *.h -global-exclude *.py[codx] -global-exclude *.px[di] -global-exclude *.pxi.in +global-exclude *.py[ocd] +global-exclude *.p...
Backport PR #41981: BLD: Update MANIFEST.in
https://api.github.com/repos/pandas-dev/pandas/pulls/41983
2021-06-13T16:39:43Z
2021-06-13T16:51:58Z
2021-06-13T16:51:58Z
2021-06-13T16:51:58Z
TST: fix xpass for M1 Mac
diff --git a/pandas/tests/indexes/numeric/test_numeric.py b/pandas/tests/indexes/numeric/test_numeric.py index 9572aeaf41c91..de75f1dffde56 100644 --- a/pandas/tests/indexes/numeric/test_numeric.py +++ b/pandas/tests/indexes/numeric/test_numeric.py @@ -2,6 +2,10 @@ import pytest from pandas._libs.tslibs import Time...
xref #38921 xref https://github.com/numpy/numpy/issues/19146
https://api.github.com/repos/pandas-dev/pandas/pulls/41982
2021-06-13T14:41:44Z
2021-06-15T23:33:23Z
2021-06-15T23:33:23Z
2021-06-18T02:23:08Z
BLD: Update MANIFEST.in
diff --git a/MANIFEST.in b/MANIFEST.in index 1880e6a7208e2..f616fad6b1557 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -44,9 +44,8 @@ global-exclude *.c global-exclude *.cpp global-exclude *.h -global-exclude *.py[codx] -global-exclude *.px[di] -global-exclude *.pxi.in +global-exclude *.py[ocd] +global-exclude *.p...
xref https://github.com/pandas-dev/pandas/pull/41977#issuecomment-860171367
https://api.github.com/repos/pandas-dev/pandas/pulls/41981
2021-06-13T11:25:41Z
2021-06-13T16:39:13Z
2021-06-13T16:39:13Z
2021-06-13T16:39:18Z
REF: Refactor assert_index_equal
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 1942e07d1b562..a29767153b021 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -314,18 +314,16 @@ def _check_types(left, right, obj="Index") -> None: return assert_class_equal(left, right...
There are currently some issues in `_check_dtypes` in `assert_index_equal` related to #41153: * `assert_attr_equal("dtype", left, right, obj=obj)` currently isn't run if `check_categorical` is False (even if the indexes are not CategoricalIndexes) * `assert_class_equal` with `exact='equiv'` should not be restricted t...
https://api.github.com/repos/pandas-dev/pandas/pulls/41980
2021-06-13T09:44:51Z
2021-06-18T01:46:49Z
2021-06-18T01:46:49Z
2021-06-18T05:22:27Z
Backport PR #41977 on branch 1.3.x (BLD: ignore multiple types of file in wheel)
diff --git a/MANIFEST.in b/MANIFEST.in index d0d93f2cdba8c..1880e6a7208e2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -17,18 +17,19 @@ global-exclude *.h5 global-exclude *.html global-exclude *.json global-exclude *.jsonl +global-exclude *.msgpack global-exclude *.pdf global-exclude *.pickle global-exclude *.pn...
Backport PR #41977: BLD: ignore multiple types of file in wheel
https://api.github.com/repos/pandas-dev/pandas/pulls/41979
2021-06-13T05:39:23Z
2021-06-13T07:38:13Z
2021-06-13T07:38:13Z
2021-06-13T07:38:13Z
BLD: ignore multiple types of file in wheel
diff --git a/MANIFEST.in b/MANIFEST.in index d0d93f2cdba8c..1880e6a7208e2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -17,18 +17,19 @@ global-exclude *.h5 global-exclude *.html global-exclude *.json global-exclude *.jsonl +global-exclude *.msgpack global-exclude *.pdf global-exclude *.pickle global-exclude *.pn...
xref #40169
https://api.github.com/repos/pandas-dev/pandas/pulls/41977
2021-06-13T00:51:30Z
2021-06-13T05:38:49Z
2021-06-13T05:38:49Z
2021-06-18T02:23:24Z
REF: De-duplicate MultiIndex._get_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 96ddf9ce76f53..4de95079f6480 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3497,6 +3497,13 @@ def _get_fill_indexer( self, target: Index, method: str_t, limit: int | None = None, tolerance=None ) ...
- [ ] 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/41976
2021-06-12T23:08:01Z
2021-06-15T23:48:23Z
2021-06-15T23:48:23Z
2021-06-16T00:21:47Z
BUG: UInt64Index.where with int64 value
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index bc75d948ba4ce..1e5065748c631 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -947,6 +947,8 @@ Numeric - Bug in :meth:`Series.count` would result in an ``int32`` result on 32-bit platforms when argumen...
- [ ] 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/41974
2021-06-12T21:11:03Z
2021-06-15T23:49:03Z
2021-06-15T23:49:03Z
2021-06-16T00:26:00Z
PERF: indexing on UInt64Index with int64s
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index eaba30012a5b8..96ddf9ce76f53 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5303,6 +5303,13 @@ def _maybe_promote(self, other: Index) -> tuple[Index, Index]: if not is_object_dtype(self.dtype): ...
- [x] closes #41873 - [ ] 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/41972
2021-06-12T20:08:10Z
2021-06-15T21:05:57Z
2021-06-15T21:05:57Z
2021-06-15T21:44:19Z
CI: mark window online test slow
diff --git a/pandas/tests/window/test_online.py b/pandas/tests/window/test_online.py index c7580650926da..461c62c07326d 100644 --- a/pandas/tests/window/test_online.py +++ b/pandas/tests/window/test_online.py @@ -22,6 +22,7 @@ def test_invalid_update(self): ): online_ewm.mean(update=df.head(1)) ...
Seems like the new online tests added increase test runtime a lot, making failures like https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=61437&view=logs&j=404760ec-14d3-5d48-e580-13034792878f&t=f81e4cc8-d61a-5fb8-36be-36768e5c561a and https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=61437&...
https://api.github.com/repos/pandas-dev/pandas/pulls/41971
2021-06-12T19:43:59Z
2021-06-15T01:12:49Z
2021-06-15T01:12:48Z
2021-06-15T04:52:36Z
ENH: nullables use Kleene logic for any/all reductions
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7b10a0f39bdbd..6fd84bf29e9c5 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -123,6 +123,7 @@ Other enhancements - Methods that relied on hashmap based algos such as :meth:`DataFrameGroupBy.value_coun...
- [x] xref #41967 - [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 gives consistency for nullable dtype treatment across `.any/.all` and the groupby versi...
https://api.github.com/repos/pandas-dev/pandas/pulls/41970
2021-06-12T19:19:37Z
2021-09-21T14:09:19Z
2021-09-21T14:09:19Z
2021-09-21T20:59:42Z
BUG: stacklevel for multidimensional indexing warning #31479
diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index ed4b1a3fbb39c..ef9b48911dfa1 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -13,6 +13,7 @@ AnyArrayLike, ArrayLike, ) +from pandas.util._exceptions import find_stack_level from pandas.core.dtypes.common import ( ...
- [x] closes #31479 - [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/41969
2021-06-12T17:59:57Z
2021-06-15T23:48:02Z
2021-06-15T23:48:02Z
2021-06-16T00:30:28Z
DOC: 1.3.0 release notes addition and doc fix
diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index 5a2ff803f0323..ae3647185f93d 100644 --- a/doc/source/reference/style.rst +++ b/doc/source/reference/style.rst @@ -34,7 +34,6 @@ Style application Styler.apply Styler.applymap - Styler.where Styler.format Styler.set_td...
https://api.github.com/repos/pandas-dev/pandas/pulls/41968
2021-06-12T17:43:34Z
2021-06-15T19:44:39Z
2021-06-15T19:44:38Z
2021-06-16T13:22:17Z
CI: activate azure pipelines/github actions on 1.3.x
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a802c678e20..a62942c7cd948 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: branches: - master - 1.2.x + - 1.3.x env: ENV_FILE: environment.yml diff --git a/.github/workflows/da...
This is milestoned 1.4 since the config is on master. (and we don't want the autobackport)
https://api.github.com/repos/pandas-dev/pandas/pulls/41966
2021-06-12T13:08:38Z
2021-06-13T07:50:54Z
2021-06-13T07:50:54Z
2021-06-13T16:54:02Z
Bug in melt raising Error with dup columns as value vars
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index dd95f9088e3da..1814420cf4f24 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1148,6 +1148,7 @@ Reshaping - Bug in :func:`to_datetime` raising an error when the input sequence contained unhashable ite...
- [x] closes #41951 - [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 @simonjayhawkins I think this changed in May last year, so probably not woth backporting?
https://api.github.com/repos/pandas-dev/pandas/pulls/41964
2021-06-12T10:49:11Z
2021-06-15T23:34:25Z
2021-06-15T23:34:24Z
2021-06-18T10:43:11Z
Backport PR #41924: PERF: fix regression in reductions for boolean/integer data
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 20adcee924a15..d42497c3a8322 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -231,7 +231,8 @@ def _maybe_get_mask( """ if mask is None: if is_bool_dtype(values.dtype) or is_integer_dtype(values.dtype): - ret...
Backport PR #41924
https://api.github.com/repos/pandas-dev/pandas/pulls/41963
2021-06-12T07:29:50Z
2021-06-12T13:20:48Z
2021-06-12T13:20:48Z
2021-06-12T13:20:56Z
CI: enable auto-cancel for GitHub Actions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a802c678e20..cfdae016836f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,8 @@ name: CI on: push: - branches: [master] + branches: + - master pull_request: branches: - master @@ -20,...
https://api.github.com/repos/pandas-dev/pandas/pulls/41962
2021-06-12T02:20:32Z
2021-06-15T23:36:11Z
2021-06-15T23:36:11Z
2021-06-18T02:23:36Z
REF: avoid accessing index._engine in set_with_engine
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index fbfee9a1f524c..d9eaaa763fde8 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -34,7 +34,6 @@ Dtype, DtypeObj, ) -from pandas.errors import InvalidIndexError from pandas.util._decorat...
- [ ] 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 orthogonal but related to #41956
https://api.github.com/repos/pandas-dev/pandas/pulls/41959
2021-06-11T23:29:00Z
2021-06-16T00:05:21Z
2021-06-16T00:05:21Z
2021-06-16T00:24:39Z
REGR: Series[dt64/td64].astype(string)
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 37e83ddb0ffed..51a947f79ede2 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -716,6 +716,14 @@ cpdef ndarray[object] ensure_string_array( Py_ssize_t i = 0, n = len(arr) if hasattr(arr, "to_numpy"): + + if hasattr(arr, ...
- [x] closes #41409 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry This surfaces another bug in `StringArray.__getitem__` that I haven't looked into yet.
https://api.github.com/repos/pandas-dev/pandas/pulls/41958
2021-06-11T23:15:36Z
2021-06-15T21:04:41Z
2021-06-15T21:04:40Z
2021-06-15T21:43:58Z
REF: avoid accessing ._engine in Series/DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2edad9f6626bb..00f6213110e76 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -158,7 +158,6 @@ from pandas.core.indexers import check_key_length from pandas.core.indexes import base as ibase from pandas.core.indexes.api import ( - Categ...
sits on top of #41846
https://api.github.com/repos/pandas-dev/pandas/pulls/41956
2021-06-11T19:54:49Z
2021-06-17T17:39:52Z
2021-06-17T17:39:52Z
2021-06-17T18:51:40Z
CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series
diff --git a/pandas/_typing.py b/pandas/_typing.py index 12d23786c3387..906b77319406f 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -101,12 +101,6 @@ ] Timezone = Union[str, tzinfo] -# FrameOrSeriesUnion means either a DataFrame or a Series. E.g. -# `def func(a: FrameOrSeriesUnion) -> FrameOrSeriesUnio...
- [x] closes #40876 - [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/41955
2021-06-11T18:16:38Z
2021-07-04T10:06:54Z
2021-07-04T10:06:53Z
2021-07-04T17:47:26Z
DOC: more cleanup of 1.3 release notes
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index e2b923812a211..45018569a3a04 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -636,7 +636,7 @@ If installed, we now require: +-----------------+-----------------+----------+---------+ | pytest (dev) ...
and fixes https://github.com/pandas-dev/pandas/pull/41908#issuecomment-858571515
https://api.github.com/repos/pandas-dev/pandas/pulls/41954
2021-06-11T16:32:25Z
2021-06-15T13:11:02Z
2021-06-15T13:11:02Z
2021-06-15T13:11:10Z
BUG: take nans correctly into consideration in complex and tuple
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1a5a9980e5e96..cadc5615cd654 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -1033,6 +1033,7 @@ Missing - Bug in :meth:`DataFrame.fillna` not accepting a dictionary for the ``downcast`` keyword (:issu...
- [x] closes #41836 - [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 NaNs as Float are already handled correctly (all nans are the same equavalency class), thi...
https://api.github.com/repos/pandas-dev/pandas/pulls/41952
2021-06-11T15:06:58Z
2021-06-16T22:15:37Z
2021-06-16T22:15:36Z
2021-06-16T22:15:53Z
DOC: fix link to pickle in msgpack section
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index dbefd1f20d2e3..c2b030d732ba9 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -31,7 +31,6 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like binary;`Feather Format <https://gith...
That failed the doc build. In addition also removed the msgpack row in the table at the top of the page, since those functions don't exist anymore.
https://api.github.com/repos/pandas-dev/pandas/pulls/41950
2021-06-11T12:22:09Z
2021-06-11T14:33:27Z
2021-06-11T14:33:27Z
2021-06-11T14:37:41Z
CI: use pyarrow 0.17.1 instead of 0.17.0 for py37_macos build
diff --git a/ci/deps/azure-macos-37.yaml b/ci/deps/azure-macos-37.yaml index 63e858eac433f..43e1055347f17 100644 --- a/ci/deps/azure-macos-37.yaml +++ b/ci/deps/azure-macos-37.yaml @@ -22,7 +22,7 @@ dependencies: - numexpr - numpy=1.17.3 - openpyxl - - pyarrow=0.17.0 + - pyarrow=0.17 - pytables - pytho...
Closes #41937
https://api.github.com/repos/pandas-dev/pandas/pulls/41948
2021-06-11T11:30:36Z
2021-06-11T23:56:04Z
2021-06-11T23:56:04Z
2021-06-12T08:31:36Z
ENH: `sparse_columns` and `sparse_index` added to `Styler.to_html`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 432dd46000eb3..62f1d9aef3e13 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -35,6 +35,7 @@ Other enhancements - Additional options added to :meth:`.Styler.bar` to control alignment and display, with...
Checks an item off the list in #41693
https://api.github.com/repos/pandas-dev/pandas/pulls/41946
2021-06-11T09:53:35Z
2021-07-28T23:01:05Z
2021-07-28T23:01:05Z
2021-07-29T14:59:15Z
TYP: make numpy.typing available from pandas._typing
diff --git a/pandas/_typing.py b/pandas/_typing.py index a9852dd4b13cf..ccf7699fb0b4b 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -42,6 +42,8 @@ final, ) + import numpy.typing as npt + from pandas._libs import ( Period, Timedelta, @@ -73,6 +75,7 @@ from panda...
xref https://github.com/pandas-dev/pandas/issues/41807#issuecomment-859372500 this does not update the `__array__` to `to_numpy` methods of EA, see https://github.com/pandas-dev/pandas/pull/41185#issuecomment-852469918 but does need a couple of ignores till that is done. (we are removing 3 anyway, so a net reduct...
https://api.github.com/repos/pandas-dev/pandas/pulls/41945
2021-06-11T09:51:13Z
2021-06-25T22:16:43Z
2021-06-25T22:16:43Z
2021-07-02T19:12:48Z
[ArrayManager] Enable pytables IO by falling back to BlockManager
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 0eae6ea5d6b7b..208b8a008ffe6 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -86,7 +86,10 @@ ) from pandas.core.construction import extract_array from pandas.core.indexes.api import ensure_index -from pandas.core.internals import Bloc...
This doesn't "fix" anything, but by falling back for now to the BlockManager-specific implementation of `to_hdf` writer, this avoids failures when using ArrayManager, which should make it easier to test it.
https://api.github.com/repos/pandas-dev/pandas/pulls/41944
2021-06-11T09:03:05Z
2021-06-11T11:20:52Z
2021-06-11T11:20:52Z
2021-06-11T11:52:12Z
DEPR: positional indexing on Series __getitem__/__setitem__
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 34965a2a6d711..7335f1cb066ce 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -1364,7 +1364,7 @@ We illustrate these fill methods on a simple Series: rng = pd.date_range("1/3/2000", period...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53201
2023-05-12T16:52:21Z
2023-05-19T21:13:50Z
2023-05-19T21:13:50Z
2023-05-19T21:28:08Z
PERF: Performance regression in Groupby.apply with group_keys=True
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 0d6647dc38b3c..c8159be4d7b6b 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -13,6 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed performance regression i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53195
2023-05-12T07:14:34Z
2023-05-12T16:58:18Z
2023-05-12T16:58:18Z
2023-05-16T16:18:15Z
use is_integer in df.insert
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 52fc8512c9db3..e659bf7adbf1a 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -351,6 +351,7 @@ Conversion - Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non-nanosecond ``pyarrow...
- [ ] closes #53193 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/53194
2023-05-12T05:51:34Z
2023-05-14T05:30:58Z
2023-05-14T05:30:58Z
2023-05-14T05:31:31Z
BUG/CoW: Series.rename not making a lazy copy when passed a scalar
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 0d6647dc38b3c..8ef733f825d00 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -31,6 +31,7 @@ Bug fixes - Bug in :meth:`DataFrame.__getitem__` not preserving dtypes for :class:`MultiIndex` partial keys ...
- [ ] closes #52450 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/53189
2023-05-11T22:23:39Z
2023-05-14T09:03:31Z
2023-05-14T09:03:31Z
2023-05-14T09:56:44Z
DOC: Fix version switcher
diff --git a/doc/source/versions.json b/web/pandas/versions.json similarity index 100% rename from doc/source/versions.json rename to web/pandas/versions.json
- [X] closes #53180
https://api.github.com/repos/pandas-dev/pandas/pulls/53188
2023-05-11T18:09:10Z
2023-05-11T23:45:29Z
2023-05-11T23:45:29Z
2023-05-11T23:47:50Z
DOC: Fix rst formatting in dev environment docs
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 38e354d8c57d6..8bc15d6968afc 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -225,7 +225,7 @@ To compile pandas with ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53187
2023-05-11T18:04:54Z
2023-05-11T20:17:25Z
2023-05-11T20:17:25Z
2023-05-11T20:17:42Z
CI: Clean caches of closed PRs
diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml new file mode 100644 index 0000000000000..099974141c1d1 --- /dev/null +++ b/.github/workflows/cache-cleanup.yml @@ -0,0 +1,30 @@ +name: Clean closed branch caches +on: + pull_request: + types: + - closed + +jobs: + cleanup:...
Looks like we regularly go over the 10GB CI cache limit. One step that should help is removing CI caches from closed PRs https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
https://api.github.com/repos/pandas-dev/pandas/pulls/53184
2023-05-11T16:49:00Z
2023-05-15T20:27:19Z
2023-05-15T20:27:19Z
2023-05-15T20:27:23Z
DOC: add missing parameters to offsets classes: BYearEnd, BusinessHour, WeekOfMonth
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index ffbaddfcd2afa..87b511d92ac30 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1714,6 +1714,8 @@ cdef class BusinessHour(BusinessMixin): Start time of your custom business hour in 24h forma...
- [x] towards #52431 Updated documentation for offsets classes: `BYearEnd,` `BusinessHour`, `WeekOfMonth`, added missing parameters.
https://api.github.com/repos/pandas-dev/pandas/pulls/53183
2023-05-11T15:54:07Z
2023-05-16T11:10:27Z
2023-05-16T11:10:27Z
2023-05-16T11:33:54Z
DOC Fixing EX01 - added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 022b85b9eb55c..99bd90750b676 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -80,12 +80,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings...
Towards #37875 I couldn't locally build the html files for `Series.SeriesGroupBy.is_monotonic_increasing` and `Series.SeriesGroupBy.is_monotonic_decreasing`. Followed https://github.com/noatamir/pyladies-berlin-sprints/issues/13 to split the docstrings from Series - but I'm not sure if adding #GH13 to the docstring ...
https://api.github.com/repos/pandas-dev/pandas/pulls/53181
2023-05-11T15:29:07Z
2023-05-15T14:46:46Z
2023-05-15T14:46:46Z
2023-05-15T14:54:17Z
Add asv benchmarks for Block.setitem()
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 53827cfcf64fb..84d95a23bd446 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -3,6 +3,7 @@ lower-level methods directly on Index and subclasses, see index_object.py, indexing_engine.py, and in...
- [x] closes #25756 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/53177
2023-05-11T13:09:18Z
2023-05-15T20:28:10Z
2023-05-15T20:28:10Z
2023-05-15T20:28:19Z
Add `np.intc` to `_factorizers` in `pd.merge`
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index e47c8c9b1714a..a40eb47508609 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -14,11 +14,11 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed performance regression i...
- [x] closes #52451 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/53175
2023-05-11T10:32:15Z
2023-05-17T16:45:33Z
2023-05-17T16:45:32Z
2023-05-17T16:49:48Z
Add test for groupby with TimeGrouper
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 2e432a768af9e..7bda7c575d994 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -3058,3 +3058,27 @@ def test_groupby_selection_other_methods(df): tm.assert_frame_equal( ...
- [x] closes #17202 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/53173
2023-05-10T23:21:14Z
2023-05-11T15:23:30Z
2023-05-11T15:23:30Z
2023-05-11T15:23:37Z
BUG/REF: ArrowExtensionArray non-nanosecond units
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b264e6da82b50..299adc5af8aea 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -438,6 +438,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ +- Bug in :class:`~arrays.ArrowExtensionArray` converting pandas n...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/53171
2023-05-10T22:02:22Z
2023-05-16T00:04:47Z
2023-05-16T00:04:47Z
2023-05-30T22:16:27Z
Switch to setup-micromamba
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 700197e400c5f..84e81b9a9297f 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -3,23 +3,14 @@ inputs: environment-file: description: Conda environment file to use....
We are deprecating `provision-with-micromamba` and replacing it with https://github.com/mamba-org/setup-micromamba. - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing ...
https://api.github.com/repos/pandas-dev/pandas/pulls/53168
2023-05-10T15:55:04Z
2023-05-12T17:24:27Z
2023-05-12T17:24:27Z
2023-05-12T17:48:06Z
BUG: from_dataframe with empty objects
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 5b62883c2741e..a5e39dc999129 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -449,6 +449,7 @@ Metadata Other ^^^^^ - Bug in :class:`FloatingArray.__contains__` with ``NaN`` item incorrectly returnin...
- [ ] closes #53155 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/53161
2023-05-09T23:08:04Z
2023-05-15T20:36:52Z
2023-05-15T20:36:52Z
2023-05-15T20:36:56Z
BUG: SparseDtype requires numpy dtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 62d56f684a11d..64c8f06349449 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -423,6 +423,7 @@ Reshaping Sparse ^^^^^^ +- Bug in :class:`SparseDtype` constructor failing to raise ``TypeError`` when ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53160
2023-05-09T23:02:07Z
2023-05-11T00:57:22Z
2023-05-11T00:57:22Z
2023-05-11T01:55:54Z
DOC: #53035 clarify the behavior of sep=None.
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 8b2a02f0ac63a..ad9e5b646371e 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -103,11 +103,12 @@ sep : str, default {_default_sep} Delimiter to use. If sep is None, the C engine cannot automatically detec...
Clarified that only the first valid line is used to detect the separator if sep=None in read_csv. - [ ] closes #53035 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding ...
https://api.github.com/repos/pandas-dev/pandas/pulls/53153
2023-05-09T13:00:54Z
2023-05-09T16:52:10Z
2023-05-09T16:52:10Z
2023-05-09T21:57:54Z
PERF: Series.str.get for pyarrow-backed strings
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 281db2759b9f0..07cedda9f9009 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -292,6 +292,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.loc` when selecting rows and column...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/53152
2023-05-09T10:43:27Z
2023-05-10T00:58:38Z
2023-05-10T00:58:38Z
2023-05-30T22:16:32Z
PERF: Series.add for pyarrow string/binary dtypes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 258c14cec7925..295f0367e4c16 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -289,6 +289,7 @@ Performance improvements - Performance improvement in :func:`concat` when ``axis=1`` and objects have diff...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/53150
2023-05-09T00:44:40Z
2023-05-09T16:53:37Z
2023-05-09T16:53:37Z
2023-05-30T22:16:33Z
Backport PR #53027 on branch 2.0.x (CI: Add job to validate conda-forge meta.yaml)
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index fa1b5e5d4fba3..6f1fa771a7854 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -14,6 +14,10 @@ on: permissions: contents: read +defaults: + run: + shell: bash -el {0} + ...
Backport PR #53027: CI: Add job to validate conda-forge meta.yaml
https://api.github.com/repos/pandas-dev/pandas/pulls/53146
2023-05-08T22:45:35Z
2023-05-09T00:10:23Z
2023-05-09T00:10:23Z
2023-05-09T00:10:24Z
MNT: Add support of Cython 3 master
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index ae1d20ca4e225..a45299c8ba896 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -303,19 +303,19 @@ PandasParser_IMPORT # cdef extern'ed declarations seem to leave behind an undefined symbol cdef double xstrtod_wrapper(const ch...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53145
2023-05-08T22:07:05Z
2023-05-09T16:59:00Z
2023-05-09T16:59:00Z
2023-05-09T17:25:16Z
MNT: Explicitly set cdef functions as noexcept
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 406b1a0f1f807..c62e60b7cdaa0 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1360,7 +1360,7 @@ cdef inline void _check_below_mincount( int64_t[:, ::1] nobs, int64_t min_count, mincount_t[:, ::1] resx, -) nogil...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53144
2023-05-08T21:40:48Z
2023-05-09T16:59:36Z
2023-05-09T16:59:36Z
2023-05-13T18:04:48Z
BUG: Setting frame into df with dup cols loses dtypes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 258c14cec7925..2d505cd7a2ed1 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -361,7 +361,7 @@ Interval Indexing ^^^^^^^^ -- +- Bug in :meth:`DataFrame.__setitem__` losing dtype when setting a :clas...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53143
2023-05-08T20:11:30Z
2023-05-09T23:09:40Z
2023-05-09T23:09:40Z
2023-05-10T05:40:32Z
CLN: Cleanup after CoW setitem PRs
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index a949ec808c5cd..762f41b4049c2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -14,10 +14,12 @@ including other versions of pandas. Enhancements ~~~~~~~~~~~~ -.. _whatsnew_210.enhancements.enhancemen...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53142
2023-05-08T19:54:44Z
2023-06-09T13:48:17Z
2023-06-09T13:48:17Z
2023-06-12T06:00:41Z
DOC: Move whatsnew after backport
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index c234de3e3b3ae..0d6647dc38b3c 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -28,6 +28,7 @@ Bug fixes - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect si...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53141
2023-05-08T19:48:02Z
2023-05-09T14:02:51Z
2023-05-09T14:02:51Z
2023-05-09T14:03:09Z
CI: Address non-failing warnings in CI jobs
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 6831eaba9e3fa..bec07c077ad59 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -232,7 +232,7 @@ jobs: python -m pip install -U pip wheel setuptools meson[ninja]==1.0.1 meson-python==0....
null
https://api.github.com/repos/pandas-dev/pandas/pulls/53139
2023-05-08T17:35:51Z
2023-05-12T17:16:31Z
2023-05-12T17:16:31Z
2023-05-12T17:16:34Z
Add test case for applying a function to a groupby object that append…
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index 5eaa2eb20f6bf..b52b708de50a6 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -19,6 +19,23 @@ from pandas.tests.groupby import get_groupby_method_args +def test_apply_func_that_appe...
…s each group to a list without using copy() function. The test checks if the groups are correctly appended to the list. This resolves GH issue 17718. - [ ] closes #17718 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/53138
2023-05-08T17:07:53Z
2023-05-09T16:45:19Z
2023-05-09T16:45:19Z
2023-05-09T16:55:13Z
Backport PR #53118 on branch 2.0.x (REGR: read_sql dropping duplicated columns)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 7864791f8bc59..fae0f06beb3a8 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -13,6 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :func:`rea...
Backport PR #53118: REGR: read_sql dropping duplicated columns
https://api.github.com/repos/pandas-dev/pandas/pulls/53136
2023-05-08T13:15:47Z
2023-05-08T16:32:21Z
2023-05-08T16:32:21Z
2023-05-08T16:32:22Z
TYP: remove mypy ignore[assignment] from pandas/core/internals/construction.py
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 29e0bb11be4dc..f080683d76df7 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -675,8 +675,7 @@ def reorder_arrays( if columns is not None: if not columns.equals...
Related to #37715 mypy ignore[assignment] was removed from pandas/core/internals/construction.py
https://api.github.com/repos/pandas-dev/pandas/pulls/53135
2023-05-08T09:24:42Z
2023-05-12T11:06:11Z
2023-05-12T11:06:11Z
2023-05-12T11:06:11Z
DOC: Updated applymap docstring
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index b2505bc63926c..c599bcbfd4170 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2051,7 +2051,7 @@ def applymap( .. deprecated:: 2.1.0 - Styler.applymap_index has been deprecated. Use Styler.map_in...
- [X] closes #53097 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/53132
2023-05-07T22:49:05Z
2023-05-08T16:36:18Z
2023-05-08T16:36:18Z
2023-05-08T16:36:24Z
CI: Don't run cron for forks
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 23609f692df7c..8715c5306a3b0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,6 +18,7 @@ jobs: actions: read contents: read security-events: write + if: github.repository_owner == 'p...
- [n/a] closes #xxxx (Replace xxxx with the GitHub issue number) - [n/a] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development...
https://api.github.com/repos/pandas-dev/pandas/pulls/53129
2023-05-07T15:16:54Z
2023-05-08T16:37:50Z
2023-05-08T16:37:50Z
2023-05-08T16:38:30Z
ENH: add validate parameter to Categorical.from_codes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 36b2aa3c28da5..a6302ca09f90a 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -95,6 +95,7 @@ Other enhancements - Improved error message when creating a DataFrame with empty data (0 rows), no index and...
- [x] closes #50975 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/53122
2023-05-07T00:09:52Z
2023-05-09T17:43:53Z
2023-05-09T17:43:53Z
2023-08-15T17:56:03Z
Backport PR #51895 on branch 2.0.x (BUG: Fix getitem dtype preservation with multiindexes)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 7864791f8bc59..f8ac59b49e6e3 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -29,6 +29,7 @@ Bug fixes - Bug in :meth:`DataFrame.convert_dtypes` ignores ``convert_*`` keywords when set to False ``dtype...
xref #53119 cc @jorisvandenbossche @jbrockmendel This fixes a pretty bad performance bottleneck for CoW. Would like to backport.
https://api.github.com/repos/pandas-dev/pandas/pulls/53121
2023-05-06T21:28:20Z
2023-05-08T16:40:06Z
2023-05-08T16:40:06Z
2023-05-08T17:34:32Z