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
Backport PR #48285 on branch 1.5.x (WEB: Unpin pydata sphinx theme)
diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html index 7e0043e771e72..f592a910dfbda 100644 --- a/doc/_templates/sidebar-nav-bs.html +++ b/doc/_templates/sidebar-nav-bs.html @@ -1,9 +1,9 @@ <nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation"> <div class="bd-toc-ite...
Backport PR #48285: WEB: Unpin pydata sphinx theme
https://api.github.com/repos/pandas-dev/pandas/pulls/48585
2022-09-16T17:33:06Z
2022-09-16T19:56:37Z
2022-09-16T19:56:37Z
2022-09-16T19:56:37Z
Backport PR #48572 on branch 1.5.x (DOC: Fixing styles for the dark theme)
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index 84eafa308175c..2a348e5b84e6e 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -154,7 +154,7 @@ ul.task-bullet > li > p:first-child { .comparison-card ....
Backport PR #48572: DOC: Fixing styles for the dark theme
https://api.github.com/repos/pandas-dev/pandas/pulls/48584
2022-09-16T17:30:30Z
2022-09-16T19:56:48Z
2022-09-16T19:56:48Z
2022-09-16T19:56:48Z
Backport PR #48397 on branch 1.5.x (WARN: Remove false positive warning for iloc inplaceness)
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 1035fd08a1a36..c15e597558221 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -459,7 +459,8 @@ def all_timeseries_index_generator(k: int = 10) -> Iterable[Index]: def make_rand_series(name=None, dtype=np.float64) ...
Backport PR #48397: WARN: Remove false positive warning for iloc inplaceness
https://api.github.com/repos/pandas-dev/pandas/pulls/48583
2022-09-16T17:19:14Z
2022-09-16T19:57:03Z
2022-09-16T19:57:03Z
2022-09-16T19:57:03Z
CLN: Simplify factorize
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index da1aac827defe..d98534e6f3917 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -762,10 +762,6 @@ def factorize( if not isinstance(values, ABCMultiIndex): values = extract_array(values, extract_numpy=True) - ...
- [ ] 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/48580
2022-09-16T02:15:54Z
2022-10-11T16:31:06Z
2022-10-11T16:31:06Z
2022-10-13T17:01:10Z
BUG: Fix calling groupBy(...).apply(func) on an empty dataframe invokes func
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ef41b749c89e6..3157723167020 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -77,6 +77,7 @@ Fixed regressions - Fixed performance regression in :func:`factorize` when ``na_sentinel`` is not ``None`` a...
- [x] closes #47985 - [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/48579
2022-09-16T01:56:57Z
2022-09-27T20:21:24Z
2022-09-27T20:21:24Z
2022-09-30T14:39:08Z
API: Add pandas.api.typing
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 8374b0c739f89..771163ae1b0bc 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -7,7 +7,9 @@ GroupBy ======= .. currentmodule:: pandas.core.groupby -GroupBy objects are returned by groupby cal...
- [x] closes #48577 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48578
2022-09-16T01:51:42Z
2023-04-17T23:26:04Z
2023-04-17T23:26:04Z
2023-04-18T13:28:07Z
Make pandas/io/sql.py work with sqlalchemy 2.0
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 25032ed1c76b0..24676856f9fad 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -48,7 +48,7 @@ dependencies: - pyxlsb - s3fs>=2021.08.0 - scipy - - sqlalchemy<1.4.46 + - sqlalchemy - tabulate - tzdata>=2022a ...
- [x] closes #40686 - [ ] [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/48576
2022-09-15T23:28:30Z
2023-02-09T17:35:09Z
2023-02-09T17:35:09Z
2023-03-13T16:23:09Z
DOC: Fixing styles for the dark theme
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index 84eafa308175c..2a348e5b84e6e 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -154,7 +154,7 @@ ul.task-bullet > li > p:first-child { .comparison-card ....
- [X] closes ##48527 - [X] xref #48285 I checked that the bright theme continues to look good, and it fixes the most obvious problems of the dark theme.
https://api.github.com/repos/pandas-dev/pandas/pulls/48572
2022-09-15T23:02:20Z
2022-09-16T17:30:23Z
2022-09-16T17:30:23Z
2022-09-16T17:30:32Z
Backport PR #48557 on branch 1.5.x (WEB: Add new footer to web)
diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index 67876d88a2d1a..0829bec043b2b 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -91,7 +91,7 @@ </li> </ul> <p> - pandas is a fiscally ...
Backport PR #48557: WEB: Add new footer to web
https://api.github.com/repos/pandas-dev/pandas/pulls/48571
2022-09-15T17:36:54Z
2022-09-15T20:04:14Z
2022-09-15T20:04:14Z
2022-09-15T20:04:14Z
Add OpenSSF Scorecards GitHub Action
diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml new file mode 100644 index 0000000000000..7799c33b66683 --- /dev/null +++ b/.github/workflows/scorecards.yml @@ -0,0 +1,54 @@ +name: Scorecards supply-chain security +on: + # Only the default branch is supported. + branch_protection_rule...
Closes #48566 As per the linked issue, this PR adds the OpenSSF Scorecards GitHub Action, which automatically checks the repo's supply-chain security processes and reports results to the repo's Security dashboard. I have also taken the liberty of adding a [badge][1] to the README.md displaying the project's scor...
https://api.github.com/repos/pandas-dev/pandas/pulls/48570
2022-09-15T17:29:06Z
2022-09-20T17:48:28Z
2022-09-20T17:48:27Z
2022-10-13T17:01:09Z
Backport PR #48555 on branch 1.5.x (DEPR: Series.astype(np.datetime64))
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 581cc9b5f61a9..39d99416db1bc 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -936,6 +936,7 @@ Other Deprecations - Deprecated the ``sort_columns`` argument in :meth:`DataFrame.plot` and :meth:`Series....
Backport PR #48555: DEPR: Series.astype(np.datetime64)
https://api.github.com/repos/pandas-dev/pandas/pulls/48569
2022-09-15T16:55:10Z
2022-09-15T18:53:37Z
2022-09-15T18:53:37Z
2022-09-15T18:53:37Z
Backport PR #48539 on branch 1.5.x (REGR: groupby doesn't identify null values when sort=False)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 581cc9b5f61a9..bed545fccba1c 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1016,7 +1016,6 @@ Numeric - Bug in division, ``pow`` and ``mod`` operations on array-likes with ``dtype="boolean"`` not be...
Backport PR #48539: REGR: groupby doesn't identify null values when sort=False
https://api.github.com/repos/pandas-dev/pandas/pulls/48568
2022-09-15T16:49:26Z
2022-09-15T18:53:20Z
2022-09-15T18:53:20Z
2022-09-15T18:53:21Z
Backport PR #48563 on branch 1.5.x (DOC: Fix read_sas 1.5 release notes)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4d717aa45ccea..581cc9b5f61a9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -965,7 +965,7 @@ Performance improvements - Performance improvement in :class:`BusinessHour` ``str`` and ``repr`` (:issue:`...
Backport PR #48563: DOC: Fix read_sas 1.5 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/48565
2022-09-15T11:47:04Z
2022-09-15T15:19:27Z
2022-09-15T15:19:27Z
2022-09-15T15:19:27Z
Backport PR #48562 on branch 1.5.x (TST: Testing that no warnings are emitted and that inplace fillna produces the correct result (GH48480))
diff --git a/pandas/tests/frame/methods/test_fillna.py b/pandas/tests/frame/methods/test_fillna.py index 3d7e5c6823e9d..697b28a65ac2e 100644 --- a/pandas/tests/frame/methods/test_fillna.py +++ b/pandas/tests/frame/methods/test_fillna.py @@ -780,3 +780,16 @@ def test_fillna_nonconsolidated_frame(): df_nonconsol = d...
Backport PR #48562: TST: Testing that no warnings are emitted and that inplace fillna produces the correct result (GH48480)
https://api.github.com/repos/pandas-dev/pandas/pulls/48564
2022-09-15T11:44:15Z
2022-09-15T15:19:16Z
2022-09-15T15:19:16Z
2022-09-15T15:19:17Z
DOC: Fix read_sas 1.5 release notes
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4d717aa45ccea..581cc9b5f61a9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -965,7 +965,7 @@ Performance improvements - Performance improvement in :class:`BusinessHour` ``str`` and ``repr`` (:issue:`...
xref https://github.com/pandas-dev/pandas/pull/47403#issuecomment-1242755217 CC @datapythonista
https://api.github.com/repos/pandas-dev/pandas/pulls/48563
2022-09-15T09:36:15Z
2022-09-15T11:46:57Z
2022-09-15T11:46:57Z
2022-09-15T11:47:05Z
TST: Testing that no warnings are emitted and that inplace fillna produces the correct result (GH48480)
diff --git a/pandas/tests/frame/methods/test_fillna.py b/pandas/tests/frame/methods/test_fillna.py index 3d7e5c6823e9d..697b28a65ac2e 100644 --- a/pandas/tests/frame/methods/test_fillna.py +++ b/pandas/tests/frame/methods/test_fillna.py @@ -780,3 +780,16 @@ def test_fillna_nonconsolidated_frame(): df_nonconsol = d...
- [x] closes #48480 - [x] [Tests added and passed] - [x] All [code checks passed] In GH48480 it was stated that using fillna in-place on a dataframe with Nones emits a future warning. The issue was already resolved as also stated in the issue, so I included a test which tests on an example that no warning is emitt...
https://api.github.com/repos/pandas-dev/pandas/pulls/48562
2022-09-15T09:19:19Z
2022-09-15T11:44:08Z
2022-09-15T11:44:08Z
2022-09-15T11:48:38Z
To json append mode
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 15b3b894c68b6..24e2db01c063e 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1910,6 +1910,7 @@ with optional parameters: * ``date_unit`` : The time unit to encode to, governs timestamp and ISO8601 precision....
- [X] closes #35849 - [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/48559
2022-09-15T00:47:28Z
2022-09-15T00:47:43Z
null
2022-09-15T00:47:43Z
Backport PR #48556 on branch 1.5.x (DOC: Fix docs footer)
diff --git a/doc/_templates/pandas_footer.html b/doc/_templates/pandas_footer.html new file mode 100644 index 0000000000000..c24bce52e67e0 --- /dev/null +++ b/doc/_templates/pandas_footer.html @@ -0,0 +1,3 @@ +<p class="copyright"> + &copy {{copyright}} pandas via <a href="https://numfocus.org">NumFOCUS, Inc.</a> Ho...
Backport PR #48556: DOC: Fix docs footer
https://api.github.com/repos/pandas-dev/pandas/pulls/48558
2022-09-15T00:17:21Z
2022-09-15T07:33:54Z
2022-09-15T07:33:54Z
2022-09-15T07:33:55Z
WEB: Add new footer to web
diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index 67876d88a2d1a..0829bec043b2b 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -91,7 +91,7 @@ </li> </ul> <p> - pandas is a fiscally ...
- [X] closes #48012 Replacing current footer in the web by new standard one with copyright and OVH hosting.
https://api.github.com/repos/pandas-dev/pandas/pulls/48557
2022-09-14T23:25:24Z
2022-09-15T17:36:47Z
2022-09-15T17:36:47Z
2022-09-15T17:36:55Z
DOC: Fix docs footer
diff --git a/doc/_templates/pandas_footer.html b/doc/_templates/pandas_footer.html new file mode 100644 index 0000000000000..c24bce52e67e0 --- /dev/null +++ b/doc/_templates/pandas_footer.html @@ -0,0 +1,3 @@ +<p class="copyright"> + &copy {{copyright}} pandas via <a href="https://numfocus.org">NumFOCUS, Inc.</a> Ho...
Follow up of #48543 Seems like Sphinx escapes html tags in the copyright setting, and links can't be created. Using a template for the new footer. Good news is that with a custom template, we can't now get rid of the `Copyright` word in the footer.
https://api.github.com/repos/pandas-dev/pandas/pulls/48556
2022-09-14T22:56:52Z
2022-09-15T00:16:47Z
2022-09-15T00:16:47Z
2022-09-15T00:16:56Z
DEPR: Series.astype(np.datetime64)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4d717aa45ccea..2c06dfe8272dc 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -936,6 +936,7 @@ Other Deprecations - Deprecated the ``sort_columns`` argument in :meth:`DataFrame.plot` and :meth:`Series....
- [x] closes #47844 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48555
2022-09-14T22:29:29Z
2022-09-15T16:55:01Z
2022-09-15T16:55:01Z
2022-09-15T17:01:41Z
Backport PR #48550 on branch 1.5.x (TST: remove 2D tests irrelevant for pyarrow)
diff --git a/pandas/tests/extension/base/dim2.py b/pandas/tests/extension/base/dim2.py index f71f3cf164bfc..1d5a5c4532a5d 100644 --- a/pandas/tests/extension/base/dim2.py +++ b/pandas/tests/extension/base/dim2.py @@ -12,6 +12,9 @@ class Dim2CompatTests(BaseExtensionTests): + # Note: these are ONLY for Extension...
Backport PR #48550: TST: remove 2D tests irrelevant for pyarrow
https://api.github.com/repos/pandas-dev/pandas/pulls/48554
2022-09-14T21:32:26Z
2022-09-15T00:04:44Z
2022-09-15T00:04:44Z
2022-09-15T00:04:44Z
Manual Backport PR #48417 on branch 1.5.x (Revert set_index inplace and copy keyword changes)
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 92729a16c6a30..f939945fc6cda 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1723,12 +1723,13 @@ the given columns to a MultiIndex: frame Other options in ``set_index`` allow yo...
xref #48417
https://api.github.com/repos/pandas-dev/pandas/pulls/48552
2022-09-14T19:16:34Z
2022-09-15T00:03:58Z
2022-09-15T00:03:58Z
2022-09-15T00:04:25Z
ENH: added finalize to binary operators on DataFrame, GH28283
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 405b8cc0a5ded..ea3ba77dcca0f 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -32,6 +32,7 @@ Other enhancements - :meth:`Series.add_suffix`, :meth:`DataFrame.add_suffix`, :meth:`Series.add_prefix` and ...
- [ ] xref #28283 - [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/48551
2022-09-14T19:04:44Z
2022-09-19T23:08:21Z
2022-09-19T23:08:21Z
2022-10-13T17:01:09Z
TST: remove 2D tests irrelevant for pyarrow
diff --git a/pandas/tests/extension/base/dim2.py b/pandas/tests/extension/base/dim2.py index d2c1e6971c56e..85e19f1860b21 100644 --- a/pandas/tests/extension/base/dim2.py +++ b/pandas/tests/extension/base/dim2.py @@ -18,6 +18,9 @@ class Dim2CompatTests(BaseExtensionTests): + # Note: these are ONLY for Extension...
Gets rid of 3367 irrelevant xfails cc @mroeschke
https://api.github.com/repos/pandas-dev/pandas/pulls/48550
2022-09-14T16:35:52Z
2022-09-14T21:31:54Z
2022-09-14T21:31:54Z
2022-09-14T21:40:35Z
Backport PR #48543 on branch 1.5.x (DOC: Update footer and include OVH)
diff --git a/doc/source/conf.py b/doc/source/conf.py index 84958595f6618..3225582269b64 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -163,7 +163,11 @@ # General information about the project. project = "pandas" -copyright = f"2008-{datetime.now().year}, the pandas development team" +copyright = ( + ...
Backport PR #48543: DOC: Update footer and include OVH
https://api.github.com/repos/pandas-dev/pandas/pulls/48548
2022-09-14T16:07:24Z
2022-09-14T17:30:32Z
2022-09-14T17:30:31Z
2022-09-14T17:30:32Z
to_csv_relationaldb function enhancement Issue #48545
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 32d4ac24a1d53..84d49d6b9964d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3737,6 +3737,157 @@ def to_csv( storage_options=storage_options, ) + def to_csv_relationaldb(self, relational_cols_dict: dict[st...
- [ ] 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/48546
2022-09-14T14:45:36Z
2022-09-16T17:31:22Z
null
2022-09-16T17:31:22Z
DOC: Update footer and include OVH
diff --git a/doc/source/conf.py b/doc/source/conf.py index 84958595f6618..3225582269b64 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -163,7 +163,11 @@ # General information about the project. project = "pandas" -copyright = f"2008-{datetime.now().year}, the pandas development team" +copyright = ( + ...
- [X] xref #48012 The OVH agreement for the new hosting has been signed, adding an OVH mention to the documentation footer for 1.5, and standardizing to the agreed footer. Note that Sphinx poor design doesn't provide a way to have the footer we want (it forces the footer to start with `© Copyright`), without crea...
https://api.github.com/repos/pandas-dev/pandas/pulls/48543
2022-09-14T10:44:17Z
2022-09-14T16:06:52Z
2022-09-14T16:06:52Z
2022-09-14T16:07:00Z
BUG: Changed .at to not set values that do not exist yet in a DataFrame #48323
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 92729a16c6a30..03843c08cf94f 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -851,16 +851,12 @@ You can also set using these same indexers. .. ipython:: python - df.at[dates[5], ...
- [ ] closes #48323 - [ ] [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/48542
2022-09-14T06:10:28Z
2022-10-28T16:57:02Z
null
2022-10-28T16:57:02Z
Added test case to lock in behaviour
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index a7c9a7eb88221..a8baa6782d5a0 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -212,6 +212,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ - Bug in :meth:`Series.mean` overflowing unnecessarily with nullabl...
* In previous versions, concatenating to empty EA was resetting type information to np.object - [x] closes #48510 (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 ne...
https://api.github.com/repos/pandas-dev/pandas/pulls/48541
2022-09-14T05:53:37Z
2022-09-15T16:46:03Z
2022-09-15T16:46:03Z
2022-10-13T17:01:08Z
ENH: Added append functionality for DataFrame.to_json
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 63e6b007f77a8..1d56b4fbd48b5 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1918,6 +1918,7 @@ with optional parameters: * ``date_unit`` : The time unit to encode to, governs timestamp and ISO8601 precision....
- [X] closes #35849 - [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/48540
2022-09-14T03:35:36Z
2022-10-20T17:58:24Z
2022-10-20T17:58:24Z
2022-10-20T18:55:26Z
REGR: groupby doesn't identify null values when sort=False
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index d8a319da2065e..baa91b61828a7 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1018,7 +1018,6 @@ Numeric - Bug in division, ``pow`` and ``mod`` operations on array-likes with ``dtype="boolean"`` not be...
- [x] closes #48506 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48539
2022-09-14T02:13:13Z
2022-09-15T16:49:17Z
2022-09-15T16:49:16Z
2022-09-17T12:50:09Z
DOC: alphabetize Visualization
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 166162a4763bf..3f54ccc1939aa 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -133,27 +133,34 @@ for Bokeh that can be loaded as a native pandas plotting backend via It is very similar to the matplotlib plotting backend, but ...
Alphabetize's the sections in https://pandas.pydata.org/docs/ecosystem.html#pandas-ecosystem as a fair way of listing projects
https://api.github.com/repos/pandas-dev/pandas/pulls/48534
2022-09-13T19:57:58Z
2022-09-14T15:20:55Z
null
2022-09-14T15:20:55Z
Backport PR #48489 on branch 1.5.x (BUG: fix test_arrow.py tests)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index f5262aa7ceeaa..aeb9bc7a31674 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1188,10 +1188,10 @@ def needs_i8_conversion(arr_or_dtype) -> bool: """ if arr_or_dtype is None: return False - ...
Backport PR #48489: BUG: fix test_arrow.py tests
https://api.github.com/repos/pandas-dev/pandas/pulls/48532
2022-09-13T19:15:37Z
2022-09-13T22:41:38Z
2022-09-13T22:41:38Z
2022-09-13T22:41:39Z
CI/TST: Remove --color=yes for more consistent log output
diff --git a/pyproject.toml b/pyproject.toml index 97a0d30092804..89afdcfd32d22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ exclude = ''' [tool.pytest.ini_options] # sync minversion with pyproject.toml & install.rst minversion = "6.0" -addopts = "--strict-data-files --strict-markers --strict-...
While debugging https://github.com/pandas-dev/pandas/pull/48258, I noticed the pytest logs would not correctly render since we've activated `--color=yes`. Example: https://github.com/pandas-dev/pandas/actions/runs/3025310849/jobs/4867636909 Example wo/ color: https://github.com/pandas-dev/pandas/actions/runs/302603...
https://api.github.com/repos/pandas-dev/pandas/pulls/48531
2022-09-13T16:31:27Z
2022-09-14T16:00:24Z
2022-09-14T16:00:24Z
2022-10-13T17:01:07Z
Bug: #48527
diff --git a/doc/source/_static/index_contribute.svg b/doc/source/_static/index_contribute.svg index e86c3e9fd0b3e..bccb79c40b8d9 100644 --- a/doc/source/_static/index_contribute.svg +++ b/doc/source/_static/index_contribute.svg @@ -1,5 +1,3 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with ...
- [ ] closes #48527(Replace #48527 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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/48530
2022-09-13T16:31:02Z
2022-09-13T16:35:23Z
null
2022-09-13T16:35:29Z
Backport PR #48525 on branch 1.5.x (CI: Fix py311 builds different exception message)
diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py index f624c56b54001..772dfdfe8fb03 100644 --- a/pandas/tests/dtypes/test_concat.py +++ b/pandas/tests/dtypes/test_concat.py @@ -38,7 +38,9 @@ def test_concat_periodarray_2d(): result = _concat.concat_compat([arr[:, :2], arr[:, 2:]...
Backport PR #48525: CI: Fix py311 builds different exception message
https://api.github.com/repos/pandas-dev/pandas/pulls/48529
2022-09-13T16:13:11Z
2022-09-13T18:07:01Z
2022-09-13T18:07:01Z
2022-09-13T18:07:01Z
Bug solved #48527
diff --git a/doc/source/_static/index_contribute.svg b/doc/source/_static/index_contribute.svg index e86c3e9fd0b3e..bccb79c40b8d9 100644 --- a/doc/source/_static/index_contribute.svg +++ b/doc/source/_static/index_contribute.svg @@ -1,5 +1,3 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with ...
- [x] 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/48528
2022-09-13T16:01:43Z
2022-09-13T16:23:38Z
null
2022-09-13T16:26:20Z
CI: Fix py311 builds different exception message
diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py index f624c56b54001..772dfdfe8fb03 100644 --- a/pandas/tests/dtypes/test_concat.py +++ b/pandas/tests/dtypes/test_concat.py @@ -38,7 +38,9 @@ def test_concat_periodarray_2d(): result = _concat.concat_compat([arr[:, :2], arr[:, 2:]...
- [ ] 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/48525
2022-09-13T10:56:08Z
2022-09-13T16:12:34Z
2022-09-13T16:12:34Z
2022-10-23T17:40:15Z
BUG: Fix handling of Oracle Numbers in read_sql_table BUG 34988
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index ef41b749c89e6..d5fffa1f59e76 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -88,6 +88,7 @@ Bug fixes - Bug in :meth:`DataFrame.to_hdf` raising ``AssertionError`` with boolean index (:issue:`48667`) ...
- [x] closes #34988 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48522
2022-09-13T03:54:28Z
2022-11-09T21:01:38Z
null
2022-11-09T21:01:38Z
change test such that it passes in headless mode (instead of xpass)
diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py index db85cb416145f..d76b731ba43f9 100644 --- a/pandas/tests/io/test_clipboard.py +++ b/pandas/tests/io/test_clipboard.py @@ -1,3 +1,4 @@ +import os from textwrap import dedent import numpy as np @@ -389,11 +390,12 @@ def test_invali...
…and xpass in non-headless mode (instead of error). - [ ] closes #48483 - [ ] [Tests *modified* and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests). - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.h...
https://api.github.com/repos/pandas-dev/pandas/pulls/48520
2022-09-12T21:50:23Z
2022-09-13T16:14:14Z
2022-09-13T16:14:14Z
2022-10-13T17:01:07Z
Manual Backport PR #48428 on branch 1.5.x (BUG/TST: fix a bunch of arraymanager+pyarrow tests)
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index dcf69dfda1ae8..fd156ccfc8b31 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -297,19 +297,10 @@ def apply_with_block(self: T, f, align_keys=None, swap_axis=True, **kwarg...
xref https://github.com/pandas-dev/pandas/pull/48428
https://api.github.com/repos/pandas-dev/pandas/pulls/48518
2022-09-12T19:30:48Z
2022-09-13T17:23:50Z
2022-09-13T17:23:50Z
2022-09-13T17:23:53Z
Backport PR #48490 on branch 1.5.x (CI: Use -j1 for python-dev build to avoid flaky build error)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 46cb564b494f6..8b97c3821efe5 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -80,9 +80,10 @@ jobs: python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 py...
Backport PR #48490: CI: Use -j1 for python-dev build to avoid flaky build error
https://api.github.com/repos/pandas-dev/pandas/pulls/48517
2022-09-12T17:00:38Z
2022-09-12T19:14:39Z
2022-09-12T19:14:39Z
2022-09-12T19:14:40Z
update pd.DataFrame.merge - add typing for `how` parameter
diff --git a/pandas/_typing.py b/pandas/_typing.py index dc51c04447bef..208d68bcec572 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -331,3 +331,6 @@ def closed(self) -> bool: # dropna AnyAll = Literal["any", "all"] + +# merge +MergeHow = Literal["left", "right", "inner", "outer", "cross"] diff --git a/p...
- [x] closes #48503 - [ ] [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/48513
2022-09-12T07:37:29Z
2022-10-19T16:22:44Z
null
2022-10-19T16:22:45Z
BUG: Fix bug in pd.eval when UnaryOp in function
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index a7c9a7eb88221..500f63bd0a51f 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -148,6 +148,7 @@ Numeric Conversion ^^^^^^^^^^ - Bug in constructing :class:`Series` with ``int64`` dtype from a string l...
- [x] closes #46471 - [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/48511
2022-09-12T04:21:17Z
2022-09-14T15:58:27Z
2022-09-14T15:58:27Z
2022-10-13T17:01:06Z
TYP: type all arguments with str default values
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 36ff38a849969..966fda1ed710a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -268,7 +268,7 @@ repos: |/_testing/ - id: autotyping name: autotyping - entry: python -m libcst.tool codemod autotyp...
After this PR autotyping will gently nudge people to add type annotations for arguments with a string default value. This PR is bigger than expected - there were many untyped arguments that have a string default value. Typing arguments that have default values is important, as pyright assumes that untyped argumen...
https://api.github.com/repos/pandas-dev/pandas/pulls/48508
2022-09-11T23:11:54Z
2022-09-22T16:05:19Z
2022-09-22T16:05:19Z
2023-08-14T17:09:27Z
ENH: Keep dtypes in MultiIndex.union without NAs
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 7f16b109a2aac..ba6db137de083 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -104,6 +104,7 @@ Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in :meth:`.GroupBy.median` fo...
- [ ] 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/48505
2022-09-11T13:02:52Z
2022-09-13T17:24:31Z
2022-09-13T17:24:31Z
2022-10-13T17:01:04Z
PERF: merge on sorted MultiIndex
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index e3c6bf9bd4e07..753559eb62b35 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -6,6 +6,7 @@ DataFrame, MultiIndex, Series, + array, concat, date_range, me...
- [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/48504
2022-09-11T03:02:05Z
2022-09-19T23:11:07Z
2022-09-19T23:11:07Z
2022-10-13T17:01:03Z
SAS7BDAT parser: Speed up blank_missing
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index ee5085fd9ad89..9b0bef2cde1c0 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -106,6 +106,7 @@ Performance improvements - Performance improvement for :meth:`Series.value_counts` with nullable dtype (:i...
Move `blank_missing` to Cython. ASV: ``` # Old io.sas.SAS.time_read_sas7bdat 10.6±0.05ms # New io.sas.SAS.time_read_sas7bdat 5.47±0.02ms ``` - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing...
https://api.github.com/repos/pandas-dev/pandas/pulls/48502
2022-09-10T23:19:28Z
2022-09-13T00:04:09Z
2022-09-13T00:04:09Z
2022-10-13T17:01:03Z
Backport PR #48473 on branch 1.5.x (REGR: .describe on unsigned dtypes results in object)
diff --git a/pandas/conftest.py b/pandas/conftest.py index b6e1559b9f8cf..cf735bf535ddd 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1603,6 +1603,45 @@ def any_numpy_dtype(request): return request.param +@pytest.fixture( + params=tm.ALL_REAL_NUMPY_DTYPES + + tm.COMPLEX_DTYPES + + tm.AL...
Backport PR #48473: REGR: .describe on unsigned dtypes results in object
https://api.github.com/repos/pandas-dev/pandas/pulls/48501
2022-09-10T21:33:43Z
2022-09-11T11:37:31Z
2022-09-11T11:37:31Z
2022-09-11T11:37:31Z
DOC: Add SeriesGroupBy and DataFrameGroupBy reference pages
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 63d7c19b7841d..138018eacef49 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -14,10 +14,14 @@ Indexing, iteration .. autosummary:: :toctree: api/ - GroupBy.__iter__ - GroupBy.groups ...
- [x] closes #48399 (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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/48500
2022-09-10T18:08:26Z
2022-09-15T23:19:50Z
2022-09-15T23:19:50Z
2022-10-13T17:01:02Z
BUG: MultiIndex.union losing extension array dtype
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index ee5085fd9ad89..1c2fa280465e8 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -168,6 +168,7 @@ Missing MultiIndex ^^^^^^^^^^ - Bug in :meth:`MultiIndex.unique` losing extension array dtype (:issue:`4...
- [ ] 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/48498
2022-09-10T12:56:23Z
2022-09-12T17:59:23Z
2022-09-12T17:59:23Z
2022-10-13T17:01:01Z
Bug: raise TypeError when doing infer_freq using RangeIndex
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index ee5085fd9ad89..975909686c28f 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -121,7 +121,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ -- +- Bug in :func:`pandas.infer_freq`, raising ``TypeError`` whe...
- [x] closes #48439 - [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/48497
2022-09-10T12:27:56Z
2022-09-13T07:32:35Z
2022-09-13T07:32:35Z
2022-10-13T17:01:00Z
ENH: Support mask properly in GroupBy.quantile
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index ee5085fd9ad89..88e122221f770 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -28,6 +28,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`.GroupBy.quantile` now preserving nullable d...
- [x] xref #37493 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/48496
2022-09-10T11:04:08Z
2022-09-12T17:58:10Z
2022-09-12T17:58:10Z
2022-10-13T17:01:00Z
BUG/PERF: use lexsort_indexer in MultiIndex.argsort
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 0bc91d3cd9637..2394d4721edfc 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -220,6 +220,7 @@ Missing MultiIndex ^^^^^^^^^^ +- Bug in :meth:`MultiIndex.argsort` raising ``TypeError`` when index con...
- [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/48495
2022-09-10T10:18:36Z
2022-10-07T11:01:45Z
2022-10-07T11:01:44Z
2022-10-26T10:18:36Z
Backport PR #48443 on branch 1.5.x (BUG: Fix pyarrow groupby tests)
diff --git a/pandas/core/series.py b/pandas/core/series.py index d2f66e9bd36e2..0e6f40564c003 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -572,7 +572,10 @@ def _set_axis(self, axis: int, labels: AnyArrayLike | list) -> None: """ labels = ensure_index(labels) - if labels....
#48443
https://api.github.com/repos/pandas-dev/pandas/pulls/48494
2022-09-10T08:49:24Z
2022-09-12T17:13:51Z
2022-09-12T17:13:51Z
2022-09-12T17:31:42Z
CI: Fix failing tests
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index f700a7c918d49..fdb3c3f8fe4af 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -1437,17 +1437,7 @@ def test_diff(self, data, periods, request): @pytest.mark.parametrize("drop...
- [ ] 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/48493
2022-09-10T08:45:02Z
2022-09-10T10:54:34Z
2022-09-10T10:54:34Z
2022-10-13T17:00:58Z
WEB: Update Python for Data Analysis book
diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md index dc43a6a273832..84893db505908 100644 --- a/web/pandas/getting_started.md +++ b/web/pandas/getting_started.md @@ -51,10 +51,10 @@ and more about JupyterLab in the ## Books -The book we recommend to learn pandas is [Python for Data Analy...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/48491
2022-09-10T01:26:16Z
2022-09-12T18:00:41Z
2022-09-12T18:00:41Z
2022-10-13T17:00:58Z
CI: Use -j1 for python-dev build to avoid flaky build error
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 46cb564b494f6..8b97c3821efe5 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -80,9 +80,10 @@ jobs: python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 py...
xref #47305 e.g. https://github.com/pandas-dev/pandas/runs/8280474438?check_suite_focus=true
https://api.github.com/repos/pandas-dev/pandas/pulls/48490
2022-09-10T00:24:34Z
2022-09-12T17:00:07Z
2022-09-12T17:00:07Z
2022-09-12T17:00:11Z
BUG: fix test_arrow.py tests
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index f5262aa7ceeaa..aeb9bc7a31674 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1188,10 +1188,10 @@ def needs_i8_conversion(arr_or_dtype) -> bool: """ if arr_or_dtype is None: return False - ...
Sits on top of #48428
https://api.github.com/repos/pandas-dev/pandas/pulls/48489
2022-09-09T23:45:30Z
2022-09-13T19:15:28Z
2022-09-13T19:15:28Z
2022-09-13T20:34:06Z
Backport PR #48472 on branch 1.5.x (PERF: keep using ObjectEngine for ExtensionArrays for 1.5)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 91c658a4cef5d..ace3df3ae97a4 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5154,6 +5154,9 @@ def _get_engine_target(self) -> ArrayLike: if isinstance(vals, StringArray): # GH#45652 much mo...
Backport PR #48472: PERF: keep using ObjectEngine for ExtensionArrays for 1.5
https://api.github.com/repos/pandas-dev/pandas/pulls/48486
2022-09-09T17:18:44Z
2022-09-09T20:42:23Z
2022-09-09T20:42:23Z
2022-09-09T20:42:23Z
DOC: A blank line is needed at the beginning of list.
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e471e7efb20ae..9982e14532400 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6624,15 +6624,17 @@ def drop_duplicates( subset : column label or sequence of labels, optional Only consider certain columns for identifying ...
Fixes not displaying as a list in keep parameter of ``DataFrame.drop_duplicates``. Added a blank line. ![image](https://user-images.githubusercontent.com/30496251/189386107-1421391f-22bf-461f-9cd2-0f8d87471272.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/48485
2022-09-09T15:26:46Z
2022-09-09T17:08:00Z
2022-09-09T17:08:00Z
2022-10-13T17:00:57Z
BUG: fix valueError for groupby with empty inputs when sample method is called
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index ee5085fd9ad89..ab23e44bb30bb 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -188,7 +188,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- +- Bug in :meth:`DataFrameGroupBy.sample`...
- [x] closes ##48459 - [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/48484
2022-09-09T13:30:59Z
2022-09-12T16:57:48Z
2022-09-12T16:57:48Z
2022-10-13T17:00:56Z
BUG: GroupBy equates different types of null values
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 77de1636a92eb..643a3ee05cc1a 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -78,10 +78,7 @@ ABCSeries, ABCTimedeltaArray, ) -from pandas.core.dtypes.missing import ( - isna, - na_value_for_dtype, -) +fro...
- [x] closes #48476 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48477
2022-09-09T04:26:28Z
2022-09-10T18:29:13Z
null
2022-11-22T03:24:06Z
DOC: Remove storage options from doc of Styler.to_excel
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 4a8169c0609fd..bb3fe58c51a08 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -442,7 +442,7 @@ def set_tooltips( @doc( NDFrame.to_excel, klass="Styler", - storage_options=_shared_docs["sto...
Remove parameter from doc string that is not in function. `Styler.to_excel` only supports `storage_options` in 1.5.x+ The PR is only for the 1.4.x branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/48475
2022-09-08T22:47:15Z
2022-10-11T21:02:57Z
null
2022-10-11T21:06:21Z
Backport PR #48354 on branch 1.5.x (CI: Bump timeout to 180 minutes)
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index 9cbd41917110e..8b3d69943bd9d 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -28,7 +28,7 @@ jobs: defaults: run: shell: bash -el {0} - timeout-minutes: 120 +...
Backport PR #48354: CI: Bump timeout to 180 minutes
https://api.github.com/repos/pandas-dev/pandas/pulls/48474
2022-09-08T21:32:07Z
2022-09-09T09:40:10Z
2022-09-09T09:40:10Z
2022-09-09T09:40:11Z
REGR: .describe on unsigned dtypes results in object
diff --git a/pandas/conftest.py b/pandas/conftest.py index 6f31e2a11486a..446d7f7263cbe 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1606,6 +1606,45 @@ def any_numpy_dtype(request): return request.param +@pytest.fixture( + params=tm.ALL_REAL_NUMPY_DTYPES + + tm.COMPLEX_DTYPES + + tm.AL...
- [x] closes #48340 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48473
2022-09-08T20:33:20Z
2022-09-10T21:33:15Z
2022-09-10T21:33:15Z
2022-09-11T13:13:25Z
PERF: keep using ObjectEngine for ExtensionArrays for 1.5
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 7ea017e322bd3..78e1f713644dd 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5155,6 +5155,9 @@ def _get_engine_target(self) -> ArrayLike: if isinstance(vals, StringArray): # GH#45652 much mo...
Closes https://github.com/pandas-dev/pandas/issues/45652, see https://github.com/pandas-dev/pandas/pull/45514#issuecomment-1025637651 for context. @jbrockmendel I think we discussed this at some point a few months ago, but I forgot about it, that if we didn't improve ExtensionEngine for nullable dtypes before 1.5, w...
https://api.github.com/repos/pandas-dev/pandas/pulls/48472
2022-09-08T19:13:49Z
2022-09-09T17:18:36Z
2022-09-09T17:18:36Z
2022-09-09T17:18:42Z
Backport PR #48416 on branch 1.5.x (REF: ensure to apply suffixes before concat step in merge code)
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 159ab33a8a04f..fe51230961327 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -764,8 +764,9 @@ def _reindex_and_concat( from pandas import concat + left.columns = llabels + right.colu...
Backport PR #48416: REF: ensure to apply suffixes before concat step in merge code
https://api.github.com/repos/pandas-dev/pandas/pulls/48470
2022-09-08T18:44:22Z
2022-09-08T21:14:12Z
2022-09-08T21:14:12Z
2022-09-08T21:14:12Z
Revert FutureWarning check
diff --git a/pandas/tests/frame/methods/test_update.py b/pandas/tests/frame/methods/test_update.py index af7a13f6adb5a..a35530100a425 100644 --- a/pandas/tests/frame/methods/test_update.py +++ b/pandas/tests/frame/methods/test_update.py @@ -136,8 +136,7 @@ def test_update_from_non_df(self): def test_update_datetim...
- [ ] 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/48468
2022-09-08T16:28:14Z
2022-09-08T18:54:59Z
2022-09-08T18:54:59Z
2022-10-13T17:00:56Z
DOC: complete documentation for pd.get_dummies (#48466)
diff --git a/pandas/core/reshape/encoding.py b/pandas/core/reshape/encoding.py index da4de8cc57e65..9567a1053c9a6 100644 --- a/pandas/core/reshape/encoding.py +++ b/pandas/core/reshape/encoding.py @@ -35,6 +35,10 @@ def get_dummies( """ Convert categorical variable into dummy/indicator variables. + Each ...
- [x] closes #48466
https://api.github.com/repos/pandas-dev/pandas/pulls/48467
2022-09-08T16:10:47Z
2022-09-08T18:59:01Z
2022-09-08T18:59:01Z
2022-10-13T17:00:55Z
Backport PR #48426 on branch 1.5.x (BUG: Column.size should be a method)
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index c9bafbfaad2d2..dc24c928d1f39 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -81,7 +81,6 @@ def __init__(self, column: pd.Series, allow_copy: bool = True) -> None: self._col = colu...
Backport PR #48426: BUG: Column.size should be a method
https://api.github.com/repos/pandas-dev/pandas/pulls/48465
2022-09-08T15:14:44Z
2022-09-08T18:28:56Z
2022-09-08T18:28:56Z
2022-09-08T18:28:56Z
BUG: merge with CategoricalIndex for left_on/right_on
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 42d3ce8069322..790f7f882322a 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -190,7 +190,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ -- +- Bug in :func:`join` when ``left_on`` or ``right_on``...
- [ ] 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/48464
2022-09-08T15:05:05Z
2022-09-09T16:41:21Z
2022-09-09T16:41:21Z
2022-10-13T17:00:54Z
TST: Fix unsigned pyarrow types in SIGNED_INT_PYARROW_DTYPES
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index adc52a506fcaf..ce6b6ceea5604 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -199,7 +199,7 @@ import pyarrow as pa UNSIGNED_INT_PYARROW_DTYPES = [pa.uint8(), pa.uint16(), pa.uint32(), pa.uint64()] - ...
- [x] closes #48471 48471 - [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/contributing_codebase.html#pre-commit). ...
https://api.github.com/repos/pandas-dev/pandas/pulls/48457
2022-09-08T03:43:00Z
2022-10-14T17:04:30Z
2022-10-14T17:04:30Z
2022-10-14T18:15:42Z
TYP: remove mypy ignores from io/formats/printing.py
diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index 77431533e703a..1753cdf86a282 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -491,17 +491,13 @@ def _justify( max_length = [max(x, y) for x, y in zip(max_length, length)] # justify each ite...
- [x] Related to https://github.com/pandas-dev/pandas/issues/37715 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/48456
2022-09-08T00:57:27Z
2022-09-09T17:21:00Z
2022-09-09T17:21:00Z
2022-10-13T17:00:52Z
DOC: Add missing API item to reference docs
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index 6d09e10f284af..61ee894f4b126 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -19,20 +19,21 @@ objects contained with a :class:`Index`, :class:`Series`, or For some data types, pandas extends NumPy...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). * `Float32/64Dtype` & `arrays.FloatingArray` * `NaT` & `NA` * `lreshape` * `set_eng_float_format` * `NamedAgg`
https://api.github.com/repos/pandas-dev/pandas/pulls/48455
2022-09-08T00:46:07Z
2022-09-13T22:58:37Z
2022-09-13T22:58:37Z
2022-10-13T17:00:51Z
DEPR: allowing unknown array-likes in merge
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b22590759ea3f..598dc07da3478 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -567,10 +567,12 @@ Other API changes Deprecations ~~~~~~~~~~~~ +- Deprecated allowing array-like values for ``left_on`` ...
Not sure what the current status is w/r/t new deprecations. Until we make this change, some of our annotations in this module are lies.
https://api.github.com/repos/pandas-dev/pandas/pulls/48454
2022-09-08T00:15:54Z
2023-02-18T02:40:08Z
null
2023-02-18T02:40:17Z
DOC: Fix typo
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a5a75e0a3f7fb..8b2a563fffd30 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9898,7 +9898,7 @@ def where( :ref:`indexing <indexing.where_mask>`. The dtype of the object takes precedence. The fill value is casted ...
- [ ] 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/48452
2022-09-07T20:45:20Z
2022-09-08T07:34:54Z
2022-09-08T07:34:54Z
2022-10-13T17:00:51Z
Backport PR #48444 on branch 1.4.x (CI: Pin ipython version (#48444)
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 6df234a027ee9..64baf082fe9b9 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1980,7 +1980,6 @@ frequency. Arithmetic is not allowed between ``Period`` with different ``freq`` ...
#48444
https://api.github.com/repos/pandas-dev/pandas/pulls/48451
2022-09-07T20:38:11Z
2022-09-08T07:12:11Z
2022-09-08T07:12:11Z
2022-09-08T07:12:15Z
Manual Backport PR #48427 on branch 1.5.x (BLD: Refactor Dockerfile to not install dev enviornment on base)
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index c9c5058fb365c..6aff77c708378 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -153,6 +153,9 @@ jobs: - name: Build image run: docker build --pull --no-cache --tag pandas-dev-...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/48450
2022-09-07T20:32:39Z
2022-09-08T11:25:36Z
2022-09-08T11:25:36Z
2022-09-08T15:14:24Z
Backport PR #48444 on branch 1.5.x (CI: Pin ipython version)
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index ed7688f229ca8..474068e43a4d4 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1981,7 +1981,6 @@ frequency. Arithmetic is not allowed between ``Period`` with different ``freq`` ...
Backport PR #48444: CI: Pin ipython version
https://api.github.com/repos/pandas-dev/pandas/pulls/48449
2022-09-07T20:24:12Z
2022-09-08T07:12:36Z
2022-09-08T07:12:36Z
2022-09-08T07:12:36Z
BUG: Index.equals raising with index of tuples that contain NA
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index a7c9a7eb88221..8891fa77cd989 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -168,7 +168,7 @@ Indexing Missing ^^^^^^^ -- +- Bug in :meth:`Index.equals` raising ``TypeError` when :class:`Index` con...
- [ ] 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/48446
2022-09-07T18:31:30Z
2022-09-14T16:19:18Z
2022-09-14T16:19:18Z
2022-10-13T17:00:50Z
Backport PR #48380 on branch 1.5.x (DOC: Clarify that objects dtype takes precedence in where)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c479c59082464..af0ba1bd75124 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -308,6 +308,7 @@ Other enhancements - Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``p...
Backport PR #48380: DOC: Clarify that objects dtype takes precedence in where
https://api.github.com/repos/pandas-dev/pandas/pulls/48445
2022-09-07T18:08:24Z
2022-09-08T07:12:58Z
2022-09-08T07:12:58Z
2022-09-08T07:12:58Z
CI: Pin ipython version
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index ed7688f229ca8..474068e43a4d4 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1981,7 +1981,6 @@ frequency. Arithmetic is not allowed between ``Period`` with different ``freq`` ...
- [x] closes #48431 (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/48444
2022-09-07T17:38:30Z
2022-09-07T20:24:04Z
2022-09-07T20:24:04Z
2022-09-07T20:47:48Z
BUG: Fix pyarrow groupby tests
diff --git a/pandas/core/series.py b/pandas/core/series.py index 167590331754d..fc97a8f04e0cc 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -573,7 +573,10 @@ def _set_axis(self, axis: int, labels: AnyArrayLike | list) -> None: """ labels = ensure_index(labels) - if labels....
orthogonal to #48428
https://api.github.com/repos/pandas-dev/pandas/pulls/48443
2022-09-07T17:29:10Z
2022-09-09T22:02:58Z
2022-09-09T22:02:58Z
2022-09-12T18:58:52Z
Backport PR #48419 on branch 1.5.x (BUG: ensure to return writable buffer in __dataframe__ interchange for categorical column)
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index 83f57d5bb8d3e..c9bafbfaad2d2 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -270,7 +270,7 @@ def _get_data_buffer( buffer = PandasBuffer(self._col.to_numpy(), allow_copy=self....
Backport PR #48419: BUG: ensure to return writable buffer in __dataframe__ interchange for categorical column
https://api.github.com/repos/pandas-dev/pandas/pulls/48441
2022-09-07T16:29:10Z
2022-09-07T20:46:06Z
2022-09-07T20:46:06Z
2022-09-07T20:46:07Z
DOC: Improve docs for plotting
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 8d6c2062f9484..17befb3d27da4 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -266,6 +266,7 @@ def hist_frame( Parameters ---------- +%(data)s\ column : str or list of str, optional Column name or list of names, or v...
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Some doc issues found when adding typing to pandas-stubs
https://api.github.com/repos/pandas-dev/pandas/pulls/48437
2022-09-07T10:51:08Z
2022-09-09T17:42:55Z
2022-09-09T17:42:55Z
2022-10-13T17:00:49Z
Backport PR #48411 on branch 1.5.x (REGR: get_loc for ExtensionEngine not returning bool indexer for na)
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 0cf7c4d45c634..617760c2981c4 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1061,7 +1061,7 @@ cdef class ExtensionEngine(SharedEngine): cdef ndarray _get_bool_indexer(self, val): if checknull(val): - retu...
Backport PR #48411: REGR: get_loc for ExtensionEngine not returning bool indexer for na
https://api.github.com/repos/pandas-dev/pandas/pulls/48430
2022-09-07T07:12:48Z
2022-09-07T10:39:51Z
2022-09-07T10:39:51Z
2022-09-07T10:39:52Z
ENH: Add index param to df.to_dict
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index aff950c6933dd..266480f2e28e2 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -31,6 +31,7 @@ Other enhancements - :meth:`.GroupBy.quantile` now preserving nullable dtypes instead of casting to numpy dt...
- [x] closes #46398 - [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/48429
2022-09-07T05:50:04Z
2022-09-13T16:46:03Z
2022-09-13T16:46:03Z
2022-10-13T17:00:48Z
BUG/TST: fix a bunch of arraymanager+pyarrow tests
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index dcf69dfda1ae8..fd156ccfc8b31 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -297,19 +297,10 @@ def apply_with_block(self: T, f, align_keys=None, swap_axis=True, **kwarg...
- [ ] 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/48428
2022-09-07T04:13:44Z
2022-09-12T19:24:39Z
2022-09-12T19:24:38Z
2022-09-13T17:24:00Z
BLD: Refactor Dockerfile to not install dev enviornment on base
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index c9c5058fb365c..6aff77c708378 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -153,6 +153,9 @@ jobs: - name: Build image run: docker build --pull --no-cache --tag pandas-dev-...
- [x] closes #48382 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48427
2022-09-07T02:16:56Z
2022-09-07T20:27:08Z
2022-09-07T20:27:08Z
2022-09-07T20:47:23Z
BUG: Column.size should be a method
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index 83f57d5bb8d3e..bb78bb7d38afb 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -81,7 +81,6 @@ def __init__(self, column: pd.Series, allow_copy: bool = True) -> None: self._col = colu...
- [x] closes #48392 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/48426
2022-09-06T22:15:35Z
2022-09-08T15:14:01Z
2022-09-08T15:14:01Z
2022-09-08T15:14:05Z
Backport PR #48264 on branch 1.5.x (BUG: ArrowExtensionArray._from_* accepts pyarrow arrays)
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 1f7939011a1f1..cfae5b4cae681 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -224,11 +224,13 @@ def _from_sequence(cls, scalars, *, dtype: Dtype | None = None, copy=False): Constru...
Backport PR #48264: BUG: ArrowExtensionArray._from_* accepts pyarrow arrays
https://api.github.com/repos/pandas-dev/pandas/pulls/48422
2022-09-06T20:40:26Z
2022-09-07T07:13:52Z
2022-09-07T07:13:52Z
2022-09-07T07:13:52Z
Backport PR #48398 on branch 1.5.x (WARN: Avoid FutureWarnings in tests)
diff --git a/pandas/tests/frame/methods/test_fillna.py b/pandas/tests/frame/methods/test_fillna.py index 4cf6706707569..3d7e5c6823e9d 100644 --- a/pandas/tests/frame/methods/test_fillna.py +++ b/pandas/tests/frame/methods/test_fillna.py @@ -777,6 +777,6 @@ def test_fillna_nonconsolidated_frame(): ], c...
Backport PR #48398: WARN: Avoid FutureWarnings in tests
https://api.github.com/repos/pandas-dev/pandas/pulls/48420
2022-09-06T19:47:38Z
2022-09-08T21:13:58Z
2022-09-08T21:13:58Z
2022-09-08T21:13:59Z
BUG: ensure to return writable buffer in __dataframe__ interchange for categorical column
diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py index 83f57d5bb8d3e..c9bafbfaad2d2 100644 --- a/pandas/core/interchange/column.py +++ b/pandas/core/interchange/column.py @@ -270,7 +270,7 @@ def _get_data_buffer( buffer = PandasBuffer(self._col.to_numpy(), allow_copy=self....
- [x] closes https://github.com/pandas-dev/pandas/issues/48393 - [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
https://api.github.com/repos/pandas-dev/pandas/pulls/48419
2022-09-06T19:23:08Z
2022-09-07T16:29:01Z
2022-09-07T16:29:01Z
2022-09-07T16:29:12Z
Backport PR #48414 on branch 1.5.x (DOC: Add deprecation to is_categorical)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 1173703386491..f5262aa7ceeaa 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -280,6 +280,9 @@ def is_categorical(arr) -> bool: """ Check whether an array-like is a Categorical instance. + .. dep...
Backport PR #48414: DOC: Add deprecation to is_categorical
https://api.github.com/repos/pandas-dev/pandas/pulls/48418
2022-09-06T19:16:24Z
2022-09-06T20:50:35Z
2022-09-06T20:50:35Z
2022-09-06T20:50:35Z
Revert set_index inplace and copy keyword changes
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 92729a16c6a30..f939945fc6cda 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1723,12 +1723,13 @@ the given columns to a MultiIndex: frame Other options in ``set_index`` allow yo...
See the discussion in https://github.com/pandas-dev/pandas/issues/48141 Reverts https://github.com/pandas-dev/pandas/pull/48043 and https://github.com/pandas-dev/pandas/pull/48115 for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/48417
2022-09-06T18:23:45Z
2022-09-14T19:02:30Z
2022-09-14T19:02:30Z
2022-09-15T00:06:32Z
REF: ensure to apply suffixes before concat step in merge code
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 5052c27ea47f3..472984c65a897 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -764,8 +764,9 @@ def _reindex_and_concat( from pandas import concat + left.columns = llabels + right.colu...
Follow-up on https://github.com/pandas-dev/pandas/pull/48082 I _could_ add a test by writing a small DataFrame subclass that checks for duplicate columns in its constructor, or we could rely on geopandas CI catching this (we do test against pandas main). Either way is fine for me.
https://api.github.com/repos/pandas-dev/pandas/pulls/48416
2022-09-06T18:05:48Z
2022-09-08T18:44:12Z
2022-09-08T18:44:12Z
2022-09-08T18:44:16Z
DOC: Add deprecation to is_categorical
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 1173703386491..f5262aa7ceeaa 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -280,6 +280,9 @@ def is_categorical(arr) -> bool: """ Check whether an array-like is a Categorical instance. + .. dep...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/48414
2022-09-06T15:39:44Z
2022-09-06T19:16:17Z
2022-09-06T19:16:17Z
2022-09-06T19:16:23Z
Backport PR #48229 on branch 1.5.x (TST: Test Nullable int floordiv by 0)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 8671b73526f80..c479c59082464 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1011,6 +1011,8 @@ Time Zones Numeric ^^^^^^^ - Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA...
Backport PR #48229: TST: Test Nullable int floordiv by 0
https://api.github.com/repos/pandas-dev/pandas/pulls/48413
2022-09-06T14:13:44Z
2022-09-06T20:40:21Z
2022-09-06T20:40:21Z
2022-09-06T20:40:21Z