title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k โ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 โ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
CLN/DOC: typos | diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in
index 5b6152a81a5bf..6b1fe25154e30 100644
--- a/pandas/_libs/hashtable_func_helper.pxi.in
+++ b/pandas/_libs/hashtable_func_helper.pxi.in
@@ -190,7 +190,7 @@ cdef ismember_{{dtype}}(const {{dtype}}_t[:] arr, const {{dtype... | - [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).
Fix various typos
| https://api.github.com/repos/pandas-dev/pandas/pulls/46328 | 2022-03-11T19:22:24Z | 2022-03-11T21:58:50Z | 2022-03-11T21:58:50Z | 2022-03-20T23:18:57Z |
BUG: Index.reindex raising with level and no MultiIndex | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..67dd0365e66d9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -384,6 +384,7 @@ Indexing
- Bug in :meth:`Series.__setitem__` when setting incompatible values into a ``PeriodDtype`` or ``... | - [x] closes #35132 (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/46327 | 2022-03-11T16:45:30Z | 2022-03-11T23:42:02Z | 2022-03-11T23:42:02Z | 2022-06-06T20:51:07Z |
Regression in read csv causing segfault for invalid file input | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index badda6a73d1c8..239f02b0b6bcf 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [x] closes #45957 (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/46325 | 2022-03-11T13:14:28Z | 2022-03-11T23:44:12Z | 2022-03-11T23:44:11Z | 2022-06-06T20:51:04Z |
Regression in loc.setitem losing mi names when df is empty | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index badda6a73d1c8..0b1c7af594110 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.drop` and :meth:`Series.drop` when :class:`Index` h... | - [x] closes #46317 (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/46322 | 2022-03-11T11:52:03Z | 2022-03-11T23:45:10Z | 2022-03-11T23:45:10Z | 2022-06-06T20:51:30Z |
WIP Add ccache to Azure builds | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a16492b022264..e2c900cbab1d6 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,22 +1 @@
version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
- E... | Save around 5-10 minutes on Azure
Why do all my PRs not build anymore? Ref #46318
- [ ] 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
... | https://api.github.com/repos/pandas-dev/pandas/pulls/46321 | 2022-03-11T11:33:22Z | 2022-03-16T18:47:49Z | null | 2022-03-16T18:47:49Z |
CI: re-enable geopandas downstream test on MacOS | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index ce1e396ad92ac..ce7c7a634f5a9 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -8,7 +8,6 @@
import numpy as np
import pytest
-from pandas.compat import is_platform_mac
import pandas.util._test_d... | See pandas-dev/pandas#46296. I don't have a Mac, so can't check locally if the install issue is solved (I would assume so, since the relevant libraries on conda-forge have been rebuilt), and thus directly checking here on CI. | https://api.github.com/repos/pandas-dev/pandas/pulls/46320 | 2022-03-11T11:24:22Z | 2022-03-11T23:45:51Z | 2022-03-11T23:45:51Z | 2022-03-12T01:20:15Z |
WIP Add ccache to Azure builds | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc357101e79fd..e2c900cbab1d6 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,21 +1 @@
version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
- E... | PR #46309 stopped building for some reason??
- [ ] 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://p... | https://api.github.com/repos/pandas-dev/pandas/pulls/46318 | 2022-03-11T10:14:37Z | 2022-03-12T09:54:02Z | null | 2022-03-12T09:54:02Z |
DOC: Refactor Intro to Data Structures | diff --git a/doc/source/reference/index.rst b/doc/source/reference/index.rst
index b6f2991cc0eb4..fc920db671ee5 100644
--- a/doc/source/reference/index.rst
+++ b/doc/source/reference/index.rst
@@ -47,20 +47,11 @@ public functions related to data types in pandas.
..
.. toctree::
- api/pandas.DataFrame.blo... | * Added more references
* Clarified & removed outdated notes
* Linked to DataFrame and Series docstrings
| https://api.github.com/repos/pandas-dev/pandas/pulls/46316 | 2022-03-11T06:13:20Z | 2022-03-11T23:46:59Z | 2022-03-11T23:46:59Z | 2022-05-19T03:02:48Z |
REF: re-share Period methods | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index 71b4eeabbaaf5..ae25de38c5bfd 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -74,3 +74,5 @@ cdef enum PeriodDtypeCode:
cdef class PeriodDtypeBase:
cdef readonly:
PeriodDtypeCode _dtype_c... | - [ ] 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/46314 | 2022-03-10T21:25:59Z | 2022-03-11T02:08:12Z | 2022-03-11T02:08:12Z | 2022-03-11T05:04:20Z |
BUG: avoid OOB flow in read_gbq and to_gbq | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 089ba62e461d1..17c37199f7cef 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -196,7 +196,13 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor
Other API changes
^^^... | The console-based copy-paste-a-token flow has been deprecated. See:
https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob
- [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contribu... | https://api.github.com/repos/pandas-dev/pandas/pulls/46312 | 2022-03-10T19:32:30Z | 2022-03-18T00:31:34Z | 2022-03-18T00:31:34Z | 2022-03-18T19:19:24Z |
DOC: example using `clipboard_set` for all output formats | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 80af10383e24e..23d2bb6787f06 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3058,6 +3058,9 @@ def to_clipboard(
- Windows : none
- macOS : none
+ This method uses the processes developed for the packa... | rather than change the underlying `DataFrame.to_clipboard` method, here I just included a simple example to demonstrate how to use pandas to send any output string (in any render format) to the clipboard.
- [x] closes #46269 | https://api.github.com/repos/pandas-dev/pandas/pulls/46311 | 2022-03-10T18:55:09Z | 2022-03-11T23:48:04Z | 2022-03-11T23:48:04Z | 2022-03-12T06:05:36Z |
WIP Add ccache to Azure builds | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index dc357101e79fd..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | New try of #46307
- [ ] 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-doc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46309 | 2022-03-10T15:54:30Z | 2022-03-11T10:13:58Z | null | 2023-05-26T17:00:55Z |
DOC: Add TextFileReader to docs | diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst
index fbd0f6bd200b9..4a5b46f1343c7 100644
--- a/doc/source/reference/io.rst
+++ b/doc/source/reference/io.rst
@@ -25,6 +25,19 @@ Flat file
DataFrame.to_csv
read_fwf
+.. currentmodule:: pandas.io.parsers
+
+.. autosummary::
+ :toctree: ap... | - [x] closes #46187 (Replace xxxx with the Github issue number)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
@twoertwein Anything else you would want to add?
| https://api.github.com/repos/pandas-dev/pandas/pulls/46308 | 2022-03-10T15:52:08Z | 2023-07-07T17:34:42Z | null | 2023-07-07T17:34:52Z |
WIP Add ccache to Azure builds | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index dc357101e79fd..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | Based on #45701
- [ ] 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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/46307 | 2022-03-10T15:32:49Z | 2022-03-10T15:53:59Z | null | 2022-03-10T15:54:00Z |
BUG: merge raising for Int64 and int64 dtype with missing values | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..57ac3f1ae2134 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -454,6 +454,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
- Bug in :func:`concat` between a :class:`Series` with inte... | - [x] closes #46178 (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/46304 | 2022-03-10T12:31:22Z | 2022-11-29T20:56:07Z | null | 2023-04-27T19:52:47Z |
CLN/DOC: fix test_register_entrypoint | diff --git a/asv_bench/benchmarks/plotting.py b/asv_bench/benchmarks/plotting.py
index 249a8f3f556a1..789bb8d8533b1 100644
--- a/asv_bench/benchmarks/plotting.py
+++ b/asv_bench/benchmarks/plotting.py
@@ -1,9 +1,14 @@
-import importlib
+import contextlib
+import importlib.machinery
+import importlib.util
+import os
+im... | and cleanup tests eg https://github.com/pandas-dev/pandas/issues/27517
- [x] closes #46302 (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 [co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46302 | 2022-03-10T10:23:13Z | 2022-03-11T23:50:09Z | 2022-03-11T23:50:08Z | 2022-03-12T05:14:50Z |
BUG: DataFrame.getattribute raising if columns have dtype string | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..dac4acb3fb964 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -393,6 +393,7 @@ Indexing
- Bug in :meth:`Series.mask` with ``inplace=True`` or setting values with a boolean mask with sma... | - [x] closes #46185 (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/46301 | 2022-03-10T10:19:18Z | 2022-03-12T22:58:00Z | 2022-03-12T22:57:59Z | 2022-06-06T20:51:47Z |
TYP: sort_index | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 2b42a0a3efb44..8cab908d62507 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -307,10 +307,12 @@ def closed(self) -> bool:
XMLParsers = Literal["lxml", "etree"]
# Interval closed type
-
IntervalClosedType = Literal["left", "right", "both", "neither"... | Tested the overloads with mypy and pyright:
```py
import pandas as pd
def bool_() -> bool:
...
frame = pd.DataFrame()
reveal_type(frame.sort_index()) # DataFrame
reveal_type(frame.sort_index(inplace=True)) # None
reveal_type(frame.sort_index(inplace=False)) # DataFrame
reveal_type(frame.sort_index(in... | https://api.github.com/repos/pandas-dev/pandas/pulls/46300 | 2022-03-10T03:50:51Z | 2022-03-18T00:51:55Z | 2022-03-18T00:51:55Z | 2022-04-01T01:36:38Z |
CI: xfail geopandas downstream test on MacOS due to fiona install | diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index ce7c7a634f5a9..ce1e396ad92ac 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -8,6 +8,7 @@
import numpy as np
import pytest
+from pandas.compat import is_platform_mac
import pandas.util._test_d... | - [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).
Not really familiar with... | https://api.github.com/repos/pandas-dev/pandas/pulls/46296 | 2022-03-09T18:46:42Z | 2022-03-10T18:40:23Z | 2022-03-10T18:40:23Z | 2022-03-11T11:24:49Z |
BUG: PandasArray[uint].factorize | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index d86c60d78195b..1827337b1b19a 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -190,6 +190,9 @@ def _from_factorized(cls, values, original):
def _values_for_argsort(self) -> np.ndarray:
return ... | - [ ] 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/46295 | 2022-03-09T17:44:41Z | 2022-03-12T03:20:43Z | 2022-03-12T03:20:43Z | 2022-03-12T03:40:33Z |
Backport PR #46274 on branch 1.4.x (CI/TST: numpy 1.22.3 release fixes) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index dcb8437f30c9e..1168325378e92 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1088,9 +1088,7 @@ def _engine(self):
# equivalent to sorting lexicographically the codes themselves. Notice
# tha... | Backport PR #46274: CI/TST: numpy 1.22.3 release fixes | https://api.github.com/repos/pandas-dev/pandas/pulls/46290 | 2022-03-09T02:18:22Z | 2022-03-09T10:59:34Z | 2022-03-09T10:59:34Z | 2022-03-09T10:59:35Z |
PERF: MultiIndex.values for MI's with DatetimeIndex, TimedeltaIndex, or ExtensionDtype levels | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 8dac952874f89..610592bb3ce1f 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -311,6 +311,7 @@ Performance improvements
- Performance improvement in :meth:`.GroupBy.transform` when broadcasting values ... | - [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 an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46288 | 2022-03-09T01:31:35Z | 2022-03-15T22:43:03Z | 2022-03-15T22:43:03Z | 2022-03-20T23:18:48Z |
CLN: address xfails | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index d86c60d78195b..91ba6e9ea7a00 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -222,10 +222,8 @@ def _concat_same_type(
raise ValueError("to_concat must have the same dtype (tz)", dtypes)
... | - [ ] 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/46287 | 2022-03-08T23:47:18Z | 2022-03-11T23:50:21Z | 2022-03-11T23:50:21Z | 2022-03-12T00:38:48Z |
ENH: Add support for multiple conditions assign statement | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..f6f6aa51be91a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -44,6 +44,7 @@ Other enhancements
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``pd.... | - [x] closes #46285
- [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/46286 | 2022-03-08T23:34:37Z | 2022-03-19T18:35:01Z | null | 2022-03-19T18:35:07Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/io) | diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index 94cda748e31e8..2ebe03f5f298c 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -93,7 +93,7 @@ class PyperclipException(RuntimeError):
class PyperclipWindowsException(PyperclipException):
- de... | - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46284 | 2022-03-08T22:55:16Z | 2022-03-16T00:41:49Z | 2022-03-16T00:41:48Z | 2022-03-16T12:27:18Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/plotting) | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 85bc3121f5e4e..80ce66cc30c73 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -783,7 +783,7 @@ class PlotAccessor(PandasObject):
_kind_aliases = {"density": "kde"}
_all_kinds = _common_kinds + _series_kinds + _datafr... | - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46283 | 2022-03-08T22:55:09Z | 2022-03-16T00:41:12Z | 2022-03-16T00:41:12Z | 2022-03-16T00:41:25Z |
BUG: MaskedArray._quantile match non-nullable behavior | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index 12c6691fe6c63..78e12fb3995fd 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -74,6 +74,14 @@ def quantile_with_mask(
Quantile is computed along axis=1.
"""
+ assert v... | - [ ] 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/46282 | 2022-03-08T22:53:05Z | 2022-05-09T12:54:25Z | 2022-05-09T12:54:25Z | 2022-05-09T18:44:58Z |
TYP: annotation of __init__ return type (PEP 484) (misc modules) | diff --git a/doc/make.py b/doc/make.py
index 5d2476fcdca8d..c758c7fc84bbb 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -45,7 +45,7 @@ def __init__(
single_doc=None,
verbosity=0,
warnings_are_errors=False,
- ):
+ ) -> None:
self.num_jobs = num_jobs
self.include_api = i... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46280 | 2022-03-08T22:37:11Z | 2022-03-09T14:19:34Z | 2022-03-09T14:19:34Z | 2022-03-26T10:50:24Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/core) | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 5d5380be38de1..6c1dfc4c0da72 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1098,7 +1098,7 @@ def checked_add_with_arr(
class SelectN:
- def __init__(self, obj, n: int, keep: str):
+ def __init__(self, obj, n... | - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46279 | 2022-03-08T22:27:10Z | 2022-03-16T00:40:48Z | 2022-03-16T00:40:47Z | 2022-03-16T00:40:52Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/tests) | diff --git a/pandas/tests/base/test_constructors.py b/pandas/tests/base/test_constructors.py
index c845be1d0d1f5..44d6bc57b0431 100644
--- a/pandas/tests/base/test_constructors.py
+++ b/pandas/tests/base/test_constructors.py
@@ -51,7 +51,7 @@ def bar(self, *args, **kwargs):
pass
class Delegate(Panda... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46278 | 2022-03-08T22:16:24Z | 2022-03-09T14:20:56Z | 2022-03-09T14:20:56Z | 2022-03-26T10:49:11Z |
BLD: Upload sdist artifact from CI | diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml
index 1d9c8701d42d4..431710a49a7dd 100644
--- a/.github/workflows/sdist.yml
+++ b/.github/workflows/sdist.yml
@@ -54,6 +54,12 @@ jobs:
pip list
python setup.py sdist --formats=gztar
+ - name: Upload sdist artifact
+ uses:... | Now it is possible to inspect the sdist that is built, to
see what was included and
for debugging.
Inspired by needing to see what was acutally included in the sdist at
https://github.com/pandas-dev/pandas/pull/46271
- [x] related to #46271 (Replace xxxx with the Github issue number)
- [x] [Tests added and pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/46277 | 2022-03-08T22:11:06Z | 2022-03-11T02:49:12Z | 2022-03-11T02:49:12Z | 2022-03-30T20:08:43Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/utils) | diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py
index 39a729bc51f35..2b160d2946b2b 100644
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -435,7 +435,7 @@ def some_function(x):
"%s %s wrote the Raven"
"""
- def __init__(self, *args, **kwargs):
+ def __init... | - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46276 | 2022-03-08T22:08:26Z | 2022-03-16T00:40:18Z | 2022-03-16T00:40:18Z | 2022-03-16T00:40:24Z |
TYP: numpy==1.22.3 fix | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index f40857059a794..cdde510927081 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1088,9 +1088,7 @@ def _engine(self):
# equivalent to sorting lexicographically the codes themselves. Notice
# tha... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46275 | 2022-03-08T20:03:48Z | 2022-03-09T00:45:32Z | null | 2022-03-09T02:56:00Z |
CI/TST: numpy 1.22.3 release fixes | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index f40857059a794..cdde510927081 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1088,9 +1088,7 @@ def _engine(self):
# equivalent to sorting lexicographically the codes themselves. Notice
# tha... | - [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).
Looks like this is xpass... | https://api.github.com/repos/pandas-dev/pandas/pulls/46274 | 2022-03-08T19:52:37Z | 2022-03-09T02:17:40Z | 2022-03-09T02:17:40Z | 2022-03-09T03:00:14Z |
TYP: expand acceptable types for pd.to_datetime() | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 21683ed100c72..3ff6e7f09b72a 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -10,6 +10,7 @@
Hashable,
List,
Tuple,
+ TypedDict,
Union,
cast,
overload,
@@ -79,16 +80,42 ... | We document that `pd.to_datetime()` can accept a `DataFrame` or "dict-like" as an argument, but the overloads did not specify that. This PR adds that.
In addition, there was no overload for `Index` or `ExtensionArray` as an input type that converts to `DatetimeIndex`
Also, changed the overload for `pd.to_datet... | https://api.github.com/repos/pandas-dev/pandas/pulls/46273 | 2022-03-08T19:41:32Z | 2022-03-11T23:58:40Z | 2022-03-11T23:58:40Z | 2023-02-13T21:00:27Z |
Correctly pass colLabels and rowLabels for plotting.table. | diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py
index 49cd7ded3f74e..ae50e93b0ed2d 100644
--- a/pandas/plotting/_misc.py
+++ b/pandas/plotting/_misc.py
@@ -12,10 +12,12 @@ def table(ax, data, rowLabels=None, colLabels=None, **kwargs):
ax : Matplotlib axes object
data : DataFrame or Series
... | - [x] closes #37811 (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/46272 | 2022-03-08T19:26:19Z | 2022-04-24T02:50:23Z | null | 2022-04-24T02:50:23Z |
BLD: drop `options.package_data` from setup.cfg | diff --git a/MANIFEST.in b/MANIFEST.in
index 78464c9aaedc8..d2b1b8cb887bc 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,5 @@
include RELEASE.md
+include versioneer.py
graft doc
prune doc/build
@@ -54,9 +55,6 @@ global-exclude *.pxi
# exclude the whole directory to avoid running related tests in sdist
pru... | - [x] closes #46270
- [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/46271 | 2022-03-08T19:23:08Z | 2022-04-10T16:55:20Z | 2022-04-10T16:55:20Z | 2022-04-10T16:55:23Z |
REF: simplify reindexing in _align_series() | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 80af10383e24e..e806f6f469bd3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9012,18 +9012,11 @@ def _align_series(
if is_series:
left = self._reindex_indexer(join_index, lidx, copy)
- elif... | Follow-up to #46058
| https://api.github.com/repos/pandas-dev/pandas/pulls/46266 | 2022-03-08T09:31:17Z | 2022-03-11T23:51:02Z | 2022-03-11T23:51:01Z | 2022-03-11T23:51:05Z |
BUG: fix rolling with centering and axis=1 (#46135) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 931d18dc349f3..27d78d7c313c4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -629,6 +629,7 @@ Groupby/resample/rolling
- Bug in :meth:`Rolling.var` and :meth:`Rolling.std` would give non-zero result w... | - [x] closes #46135
- [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/46265 | 2022-03-08T07:45:07Z | 2022-05-06T17:09:21Z | 2022-05-06T17:09:21Z | 2022-05-08T11:00:20Z |
TYP: add type annotation to DataFrame.to_pickle | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a0621e1ff9306..80af10383e24e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2956,7 +2956,7 @@ def to_sql(
)
def to_pickle(
self,
- path,
+ path: FilePath | WriteBuffer[bytes],
compression: ... | - [x] closes #46081
- [ ] [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/46262 | 2022-03-08T02:37:34Z | 2022-03-09T14:22:11Z | 2022-03-09T14:22:10Z | 2022-03-09T16:46:03Z |
TST: merge high_memory mark with single_cpu | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc357101e79fd..a16492b022264 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -10,6 +10,7 @@ jobs:
PYTEST_WORKERS: auto
PATTERN: "not slow and not network and not clipboard and not arm_slow"
PYTEST_TARGET: "pandas"
+ ... | - [ ] [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).
3/4 tests that were usin... | https://api.github.com/repos/pandas-dev/pandas/pulls/46261 | 2022-03-08T02:08:20Z | 2022-03-11T23:51:17Z | 2022-03-11T23:51:17Z | 2022-03-12T01:21:31Z |
CI: Add missing dependencies for skipped tests | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index bbc468f9d8f43..8f333c72f002c 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -11,6 +11,8 @@ dependencies:
- pytest-xdist>=1.31
- hypothesis>=5.5.3
- psutil
+ - pytest-asyncio
+ - boto3
# required dependencies
... | - [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/46260 | 2022-03-08T01:51:26Z | 2022-03-11T23:56:38Z | 2022-03-11T23:56:38Z | 2022-03-30T10:48:40Z |
REF: use standard patterns in tslibs | diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd
index 5b80193c1f27a..227cf454700d5 100644
--- a/pandas/_libs/tslibs/conversion.pxd
+++ b/pandas/_libs/tslibs/conversion.pxd
@@ -12,10 +12,10 @@ from pandas._libs.tslibs.np_datetime cimport npy_datetimestruct
cdef class _TSObject:
... | - [ ] 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/46259 | 2022-03-08T00:51:11Z | 2022-03-10T22:07:12Z | 2022-03-10T22:07:12Z | 2022-03-10T22:09:56Z |
REF: Refactor GroupBy a tiny bit | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 3bffe59905a69..3869c30374bcf 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -263,7 +263,7 @@ class Grouper:
_gpr_index: Index | None
_grouper: Index | None
- _attributes: tuple[str, ...... | - [NA, small] closes #xxxx (Replace xxxx with the Github issue number)
- [waiting for review] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/46258 | 2022-03-08T00:45:40Z | 2022-04-12T16:11:40Z | null | 2022-04-12T16:11:41Z |
REF: de-duplicate libjoin | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index b908fa2c65e4d..3fc97e3660120 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -93,10 +93,13 @@ def left_outer_join(const intp_t[:] left, const intp_t[:] right,
with nogil:
# First pass, determine size of result set, do not u... | - [ ] 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/46256 | 2022-03-07T22:30:21Z | 2022-03-12T21:07:22Z | 2022-03-12T21:07:22Z | 2022-03-12T21:14:53Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/core/arrays) | diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py
index 112772bc9e842..dae8e2c394abc 100644
--- a/pandas/core/arrays/_arrow_utils.py
+++ b/pandas/core/arrays/_arrow_utils.py
@@ -48,7 +48,7 @@ def pyarrow_array_to_numpy_and_mask(arr, dtype: np.dtype):
class ArrowPeriodType(pyarrow... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46255 | 2022-03-07T22:14:05Z | 2022-03-08T00:21:51Z | 2022-03-08T00:21:51Z | 2022-03-08T08:20:37Z |
TYP: annotation of __init__ return type (PEP 484) (pandas/core/computation) | diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py
index ec3548c9efc6c..0221256b2cbd8 100644
--- a/pandas/core/computation/engines.py
+++ b/pandas/core/computation/engines.py
@@ -48,7 +48,7 @@ class AbstractEngine(metaclass=abc.ABCMeta):
has_neg_frac = False
- def __init__(... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
According to [documentation](https://pandas.pydata.org/docs/dev/development/contributing_codebase.html#type-hints) pandas uses [PEP484](https://www.python.org/dev/peps/pep-0484/) for type hint... | https://api.github.com/repos/pandas-dev/pandas/pulls/46254 | 2022-03-07T21:52:18Z | 2022-03-08T00:23:52Z | 2022-03-08T00:23:52Z | 2022-03-09T00:45:06Z |
CI: Don't run PANDAS_DATA_MANAGER=array test for downstream tests | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index aa6bb714af9dd..e6de5caf955fc 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -33,9 +33,10 @@ fi
echo $PYTEST_CMD
sh -c "$PYTEST_CMD"
-if [[ "$PANDAS_DATA_MANAGER" != "array" ]]; then
+if [[ "$PANDAS_DATA_MANAGER" != "array" && "$PYTEST_TARGET" == "pandas" ]... | This should shorten the downstream build such that `pandas/tests/test_downstream.py` is run instead of `pandas/` | https://api.github.com/repos/pandas-dev/pandas/pulls/46253 | 2022-03-07T19:32:39Z | 2022-03-08T01:38:27Z | 2022-03-08T01:38:27Z | 2022-03-08T01:44:28Z |
DOC: update tutorial docs | diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
index 79df2b4325091..291cbddff58eb 100644
--- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst
+++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
@@ ... | **N**itrogen Di-**O**xide
| https://api.github.com/repos/pandas-dev/pandas/pulls/46249 | 2022-03-07T07:29:13Z | 2022-03-18T00:53:03Z | 2022-03-18T00:53:03Z | 2022-03-18T00:53:07Z |
an -> a | diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
index 4106b0e064823..79df2b4325091 100644
--- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst
+++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst
@@ ... | fixing typo in intro_tutorial | https://api.github.com/repos/pandas-dev/pandas/pulls/46247 | 2022-03-06T20:50:35Z | 2022-03-06T22:52:52Z | 2022-03-06T22:52:52Z | 2022-03-06T22:52:56Z |
POC/REF: de-duplicate utc->local code | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index e30a91ae3e10a..6680ab1049d12 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -542,6 +542,7 @@ cdef _TSObject _create_tsobject_tz_using_offset(npy_datetimestruct dts,
datetime d... | For supporting non-nanosecond resolutions, it is helpful to have all the relevant logic in one place instead of repeated in a bunch of places. This introduces a Localizer class to do that.
The problem is that this causes a significant performance hit (asv results posted below).
The only thing I can think of th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46246 | 2022-03-06T18:08:45Z | 2022-03-10T18:08:14Z | null | 2022-03-10T18:08:21Z |
Backport PR #46239 on branch 1.4.x (DOC+BUG: `Styler.to_excel` pseudo css `number-format`) | diff --git a/doc/source/_static/style/format_excel_css.png b/doc/source/_static/style/format_excel_css.png
new file mode 100644
index 0000000000000..0bd4662c3f2d0
Binary files /dev/null and b/doc/source/_static/style/format_excel_css.png differ
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rs... | Backport PR #46239: DOC+BUG: `Styler.to_excel` pseudo css `number-format` | https://api.github.com/repos/pandas-dev/pandas/pulls/46245 | 2022-03-06T16:38:10Z | 2022-03-06T22:51:49Z | 2022-03-06T22:51:49Z | 2022-03-08T11:50:55Z |
DOC: Fix `DataFrame.plot.scatter` link in 1.5.0 changelog | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1c809b2b77a6d..18fd1057c9b65 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -421,7 +421,7 @@ Plotting
- Bug in :meth:`DataFrame.plot.box` that prevented labeling the x-axis (:issue:`45463`)
- Bug in... | Fixes `DataFrame.scatter` -> `DataFrame.plot.scatter` in the changelog entry for #45966 | https://api.github.com/repos/pandas-dev/pandas/pulls/46244 | 2022-03-06T06:35:45Z | 2022-03-06T16:34:23Z | 2022-03-06T16:34:23Z | 2022-03-06T16:34:30Z |
CLN: Assorted cleanups | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index f751d57c186b0..12fe78a0f8a18 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -30,8 +30,8 @@ from numpy.math cimport NAN
cnp.import_array()
+from pandas._libs cimport util
from pandas._libs.algos cimport kth_smallest_c
-... | - [ ] 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/46243 | 2022-03-06T01:59:27Z | 2022-03-06T16:35:54Z | 2022-03-06T16:35:54Z | 2022-03-06T17:46:48Z |
Backport PR #46204 on branch 1.4.x (PERF: avoid copies in frame[col].fillna(val, inplace=True) GH#46149) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 43b911cd24e1d..9f4d248ca7042 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | Backport PR #46204: PERF: avoid copies in frame[col].fillna(val, inplace=True) GH#46149 | https://api.github.com/repos/pandas-dev/pandas/pulls/46242 | 2022-03-05T22:52:36Z | 2022-03-06T16:36:13Z | 2022-03-06T16:36:13Z | 2022-03-08T12:23:51Z |
CI/TYP: pyright reportSelfClsParameterName | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index cb018103d07b4..3fe2d56a2ccb2 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -182,6 +182,7 @@ def equals(self, other) -> bool:
return False
return bool(array_equivalent(self._ndarray,... | Fixes:
> pandas/core/arrays/_mixins.py:185:26 - warning: Instance methods should take a "self" parameter (reportSelfClsParameterName)
I'm not familiar with the function, could also be a `classmethod` @jbrockmendel
| https://api.github.com/repos/pandas-dev/pandas/pulls/46241 | 2022-03-05T19:42:50Z | 2022-03-06T13:50:11Z | 2022-03-06T13:50:11Z | 2022-03-09T02:56:02Z |
DOC+BUG: `Styler.to_excel` pseudo css `number-format` | diff --git a/doc/source/_static/style/format_excel_css.png b/doc/source/_static/style/format_excel_css.png
new file mode 100644
index 0000000000000..0bd4662c3f2d0
Binary files /dev/null and b/doc/source/_static/style/format_excel_css.png differ
diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rs... | - [x] closes #46152
| https://api.github.com/repos/pandas-dev/pandas/pulls/46239 | 2022-03-05T16:31:58Z | 2022-03-06T16:33:46Z | 2022-03-06T16:33:46Z | 2022-03-08T11:51:30Z |
Bug fix - cannot construct Index of empty tuples | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dbf9547f561d2..8c02785647861 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -485,7 +485,7 @@ MultiIndex
- Bug in :meth:`DataFrame.loc` raising when slicing a :class:`MultiIndex` with a negative step ... | - [x] closes #45608
- [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/46238 | 2022-03-05T16:17:19Z | 2022-03-28T12:47:43Z | 2022-03-28T12:47:42Z | 2022-03-28T12:47:49Z |
REF: simplify groupby nullable wrapping | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 12fe78a0f8a18..ff5258e37e352 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1238,6 +1238,7 @@ def group_nth(
if nobs[i, j] < min_count:
if uses_mask:
... | - [ ] 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/46236 | 2022-03-05T02:51:25Z | 2022-03-06T22:52:31Z | 2022-03-06T22:52:31Z | 2022-03-07T00:30:36Z |
PERF: reindex with MultiIndex | diff --git a/asv_bench/benchmarks/reindex.py b/asv_bench/benchmarks/reindex.py
index 5181b983c9f7a..9cc1f95ce7aa6 100644
--- a/asv_bench/benchmarks/reindex.py
+++ b/asv_bench/benchmarks/reindex.py
@@ -28,6 +28,7 @@ def setup(self):
index = MultiIndex.from_arrays([level1, level2])
self.s = Series(np.ra... | - [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 an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46235 | 2022-03-04T23:51:17Z | 2022-03-05T01:15:30Z | 2022-03-05T01:15:30Z | 2022-03-05T19:36:48Z |
REF: use standard pattern in _tz_convert_from_utc | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index d28b851d0fbc1..4d8e8cf67eeb7 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -441,7 +441,7 @@ def tz_convert_from_utc(const int64_t[:] vals, tzinfo tz):
return np.array... | - [ ] 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/46234 | 2022-03-04T22:07:03Z | 2022-03-05T22:56:48Z | null | 2022-03-05T22:56:56Z |
ASV: add benchmarks for DataFrame.xs with a MultiIndex | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index d5f165084505f..2c0e2e6ca442a 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -204,11 +204,11 @@ class MultiIndexing:
param_names = ["unique_levels"]
def setup(self, unique_levels):
... | - [x] closes #35188
- [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).
Th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46233 | 2022-03-04T21:53:45Z | 2022-03-04T23:49:41Z | 2022-03-04T23:49:40Z | 2022-03-05T12:59:01Z |
Adding overwrite or ignore behavior for row conflicts. | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 83d0a95b8adb2..7c79de7cb96fe 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2773,6 +2773,7 @@ def to_sql(
con,
schema=None,
if_exists: str = "fail",
+ on_row_conflict: str = "fail",
index:... | @cvonsteg started the effort to implement this. Since they are unable to continue and this is a highly desired feature, I made an attempt to clean up the code and fix merge conflicts. I would like to share the credit for this PR (I do not know how this works).
A new parameter is added to `to_sql`: `on_row_conflct`
... | https://api.github.com/repos/pandas-dev/pandas/pulls/46232 | 2022-03-04T21:26:16Z | 2023-01-16T19:42:54Z | null | 2023-01-16T19:42:55Z |
DOC: Added plt.show() at the end of each necessary block | diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst
index 1e0505a2f0e87..b6f1ac212f821 100644
--- a/doc/source/getting_started/intro_tutorials/04_plotting.rst
+++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst
@@ -2,6 +2,12 @... | Added plt.show() at the end of each necessary block.
Moved and reworded title section.
- [ ] closes #45772
- [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/46231 | 2022-03-04T18:36:18Z | 2022-04-26T00:40:46Z | 2022-04-26T00:40:45Z | 2022-04-26T00:40:49Z |
Backport PR #46018 on branch 1.4.x (BUG: remove usage of _constructor._get_axis_number (fix when _constructor properties return callables)) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 05bc7ff8c96d2..43b911cd24e1d 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fix some cases for subclasses that define their ``_constructor``... | Backport PR #46018 | https://api.github.com/repos/pandas-dev/pandas/pulls/46228 | 2022-03-04T15:54:14Z | 2022-03-04T18:48:40Z | 2022-03-04T18:48:40Z | 2022-03-04T18:48:46Z |
DOC: migrate from sphinx-panels to sphinx-design | diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css
index e4c5964259349..0d53bbde94ae3 100644
--- a/doc/source/_static/css/getting_started.css
+++ b/doc/source/_static/css/getting_started.css
@@ -138,15 +138,21 @@ ul.task-bullet > li > p:first-child {
margin: 0px;
}
... | - closes #52939
Eventually it is the goal that the sphinx-design package replaces the sphinx-panels package (see https://github.com/executablebooks/sphinx-panels/issues/67 and https://sphinx-design.readthedocs.io/en/furo-theme/get_started.html#migrating-from-sphinx-panels, sphinx-design has the same (and more) featu... | https://api.github.com/repos/pandas-dev/pandas/pulls/46227 | 2022-03-04T13:39:17Z | 2023-04-30T01:59:17Z | 2023-04-30T01:59:17Z | 2023-04-30T01:59:17Z |
ENH: Let callables in .loc and .iloc take an optional axis parameter | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index a94681924d211..78f1b5469acf1 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -60,7 +60,8 @@ of multi-axis indexing.
index! See :ref:`Slicing with labels <indexing.slicing_with_la... | Currently, when supplying callables to ``.loc``and ``.iloc`` we can't know which axis the callable is supplied for. This makes is difficult to make more general filtering callables, e.g. if we want the callable to filter over transposed axes.
This PR allows the callables supplied to ``.loc`` and ``.iloc`` to take e... | https://api.github.com/repos/pandas-dev/pandas/pulls/46226 | 2022-03-04T12:37:52Z | 2022-06-10T21:34:20Z | null | 2022-06-10T21:34:20Z |
Build: unpin version of base image of dockered development environment | diff --git a/Dockerfile b/Dockerfile
index 2923cd60cc53b..34a13e69d73d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM quay.io/condaforge/miniforge3:4.11.0-0
+FROM quay.io/condaforge/miniforge3
# if you forked pandas, you can pass in your own GitHub username to use your fork
# i.e. gh_username=mynam... | This PR removes the pinned version for the base image.
The latest version of the base image, `quay.io/condaforge/miniforge3:4.11.0-4` (released Feb 26, 2022), works again.
The pinned version was needed temporarily because of a misbehaving version of the base image: https://github.com/pandas-dev/pandas/pull/45889... | https://api.github.com/repos/pandas-dev/pandas/pulls/46224 | 2022-03-04T06:49:06Z | 2022-03-05T01:17:14Z | 2022-03-05T01:17:14Z | 2022-03-07T09:21:05Z |
DOC: Fix warnings on underline length (more) | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index cbfe177574665..be88b874908e8 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -327,7 +327,7 @@ def _format_native_types(
None
Methods
- ----------
+ -------
None
See Also
| I missed the other instance of the problem in
https://github.com/pandas-dev/pandas/pull/46215.
- [x] 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 ne... | https://api.github.com/repos/pandas-dev/pandas/pulls/46223 | 2022-03-04T04:11:41Z | 2022-03-04T19:40:23Z | 2022-03-04T19:40:23Z | 2022-03-04T19:40:32Z |
TYP: pd.isna | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 5294b4061ad44..d4ef9915d57b4 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -1,7 +1,10 @@
from __future__ import annotations
import numbers
-from typing import TYPE_CHECKING
+from typing import (
+ ... | Inferred by mypy and pyright:
```py
import numpy as np
import pandas as pd
class A:
...
# bool
reveal_type(pd.isna(1))
# npt.NDArray[np.bool_]
reveal_type(pd.isna([]))
reveal_type(pd.isna(np.zeros(3)))
reveal_type(pd.isna(pd.DatetimeIndex([None])))
# pd.DataFrame
reveal_type(pd.isna(pd.DataFram... | https://api.github.com/repos/pandas-dev/pandas/pulls/46222 | 2022-03-04T04:01:01Z | 2022-03-18T00:49:58Z | 2022-03-18T00:49:57Z | 2022-04-01T01:36:37Z |
BUG: GroupBy.cummin altering nullable arrays inplace | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 52c8b82ab47f9..86c44685e7df9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -429,8 +429,9 @@ Groupby/resample/rolling
- Bug in :meth:`.ExponentialMovingWindow.mean` with ``axis=1`` and ``engine='numb... | - [ ] 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/46220 | 2022-03-04T00:31:55Z | 2022-03-05T17:04:37Z | 2022-03-05T17:04:37Z | 2022-03-05T21:09:19Z |
Build: configure timezone for dockered development environment | diff --git a/Dockerfile b/Dockerfile
index 2923cd60cc53b..b3e12200d0965 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,6 +12,11 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
#
+ # Install tzdata and configure timezone (fix... | - [x] closes #46217
- [x] [Tests 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).
- [ ] Added an ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46219 | 2022-03-03T23:51:45Z | 2022-03-05T01:17:01Z | 2022-03-05T01:17:01Z | 2022-03-07T09:20:52Z |
BUG: GroupBy.cumsum td64, skipna=False | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index adee9271c23b0..52c8b82ab47f9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -429,6 +429,9 @@ Groupby/resample/rolling
- Bug in :meth:`.ExponentialMovingWindow.mean` with ``axis=1`` and ``engine='numb... | - [ ] 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/46216 | 2022-03-03T23:32:47Z | 2022-03-04T01:18:44Z | 2022-03-04T01:18:43Z | 2022-03-04T02:13:34Z |
DOC: Fix warnings on underline length | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index d4cb4a20be66b..cbfe177574665 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -62,7 +62,7 @@ class NumericIndex(Index):
None
Methods
- ----------
+ -------
None
See Also
di... | In the CI run
https://github.com/pandas-dev/pandas/runs/5413504567?check_suite_focus=true
I noticed a few warnings when building the docs such as
```
/home/runner/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpydoc/docscrape.py:434: UserWarning: potentially wrong underline length...
Methods
-------... | https://api.github.com/repos/pandas-dev/pandas/pulls/46215 | 2022-03-03T21:33:18Z | 2022-03-04T01:54:24Z | 2022-03-04T01:54:24Z | 2022-03-04T03:57:43Z |
REF: simplify factorize, fix factorize_array return type | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c838d8944d14..55d1bbaa20c71 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -11,7 +11,6 @@
Hashable,
Literal,
Sequence,
- Union,
cast,
final,
)
@@ -30,7 +29,6 @@
ArrayLike,
DtypeObj... | - [ ] 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/46214 | 2022-03-03T18:09:07Z | 2022-03-03T20:28:18Z | 2022-03-03T20:28:18Z | 2022-03-03T20:33:32Z |
TYP: loosen types of to_markdown, align to docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b7974e5764100..e23c735fe41df 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -18,7 +18,6 @@
import itertools
from textwrap import dedent
from typing import (
- IO,
TYPE_CHECKING,
Any,
Callable,
@@ -2717,7 +2716,7 @@ def ... | Docs already allowed pathlib.Path objects and such
code runs, but failed mypy typechecks. This fixes it.
- [x] closes #46211
- [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 check... | https://api.github.com/repos/pandas-dev/pandas/pulls/46212 | 2022-03-03T15:51:07Z | 2022-03-03T18:46:16Z | 2022-03-03T18:46:15Z | 2022-03-03T18:46:19Z |
BUG: Fix some cases of groupby(...).transform with dropna=True | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 18fd1057c9b65..a58d86e6e037e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -82,17 +82,32 @@ did not have the same index as the input.
.. code-block:: ipython
+ In [3]: df.groupby('a', dropna=... | Part of #17093
- [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] Adde... | https://api.github.com/repos/pandas-dev/pandas/pulls/46209 | 2022-03-03T01:48:05Z | 2022-03-07T23:49:10Z | 2022-03-07T23:49:10Z | 2023-02-20T04:12:08Z |
PERF: avoid object dtype cast for Categorical in _ensure_data | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c838d8944d14..1638df6b40dbe 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -140,7 +140,6 @@ def _ensure_data(values: ArrayLike) -> np.ndarray:
# extract_array would raise
values = extract_array(values,... | - [ ] 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/46208 | 2022-03-03T00:31:41Z | 2022-03-03T23:35:29Z | 2022-03-03T23:35:29Z | 2022-03-03T23:46:51Z |
REF: Move Categorical logic from Grouping (#46203) | diff --git a/pandas/core/groupby/categorical.py b/pandas/core/groupby/categorical.py
index 2a2671374efc4..2a4369e38d3c6 100644
--- a/pandas/core/groupby/categorical.py
+++ b/pandas/core/groupby/categorical.py
@@ -1,14 +1,72 @@
from __future__ import annotations
+import dataclasses
+from typing import final
+
import... | - [x] closes #46203 (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/46207 | 2022-03-03T00:04:28Z | 2022-03-08T00:52:47Z | null | 2022-03-08T00:52:47Z |
TYP: fix small typo in aggregations.pyx | diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx
index 0689a4a6e75f0..8191084da924f 100644
--- a/pandas/_libs/window/aggregations.pyx
+++ b/pandas/_libs/window/aggregations.pyx
@@ -1323,13 +1323,13 @@ def roll_apply(object obj,
def roll_weighted_sum(
const float64_t[:] va... | - [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/46206 | 2022-03-02T22:19:55Z | 2022-03-03T00:07:55Z | 2022-03-03T00:07:55Z | 2022-03-05T12:58:58Z |
PERF: avoid copies in frame[col].fillna(val, inplace=True) GH#46149 | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 43b911cd24e1d..9f4d248ca7042 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [x] closes #46149
- [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/46204 | 2022-03-02T18:20:11Z | 2022-03-05T22:51:45Z | 2022-03-05T22:51:45Z | 2022-03-08T12:23:38Z |
DOC: fix broken links under DataFrame.diff | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 9d17827d55951..b7974e5764100 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8525,7 +8525,7 @@ def melt(
@doc(
Series.diff,
- klass="Dataframe",
+ klass="DataFrame",
extra_params="axis : {0 or 'index',... | - [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).
Fixes broken "See also" ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46201 | 2022-03-02T16:29:19Z | 2022-03-03T00:16:35Z | 2022-03-03T00:16:35Z | 2022-03-05T12:58:53Z |
Fix typos | diff --git a/scripts/sync_flake8_versions.py b/scripts/sync_flake8_versions.py
index 370924cdfa199..d19501051349f 100644
--- a/scripts/sync_flake8_versions.py
+++ b/scripts/sync_flake8_versions.py
@@ -73,7 +73,7 @@ def _validate_additional_dependencies(
for dep in flake8_additional_dependencies:
if dep no... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46200 | 2022-03-02T16:05:57Z | 2022-03-03T00:15:57Z | 2022-03-03T00:15:57Z | 2022-03-03T05:22:33Z |
Test : Pandas 1.0.5 โ 1.1.0 behavior change on DataFrame.apply() where fn returns np.ndarray | diff --git a/pandas/tests/frame/methods/test_dtypes.py b/pandas/tests/frame/methods/test_dtypes.py
index 84841ad7a634e..31592f987f04d 100644
--- a/pandas/tests/frame/methods/test_dtypes.py
+++ b/pandas/tests/frame/methods/test_dtypes.py
@@ -131,3 +131,10 @@ def test_dtypes_timedeltas(self):
index=list("ABC... | - [x] closes #35517
- [ ] [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/46199 | 2022-03-02T15:56:55Z | 2022-03-07T01:23:05Z | 2022-03-07T01:23:04Z | 2022-05-31T16:11:03Z |
Add benchmark for indexing with .loc for sorted/unsorted DatetimeIndex | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index b9e565da2dbb2..d5f165084505f 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -290,20 +290,26 @@ def setup(self):
self.dti = dti
self.dti2 = dti2
- index = np.random.c... | - [x] closes #38690
- [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/46198 | 2022-03-02T15:38:34Z | 2022-03-04T19:32:01Z | 2022-03-04T19:32:01Z | 2022-03-05T03:45:22Z |
BUG: nullable groupby result dtypes | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 072caa6a4b74f..d05be3b003f67 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -1417,3 +1417,23 @@ def construct_array_type(cls) -> type_t[BaseMaskedArray]:
type
"""
raise NotImplement... | - [ ] 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/46197 | 2022-03-02T02:28:59Z | 2022-03-05T01:17:42Z | 2022-03-05T01:17:42Z | 2022-03-05T02:44:05Z |
REF: simplify groupby.ops | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 132c1d11dfe73..e984279c17a65 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -123,14 +123,14 @@ def __init__(self, kind: str, how: str):
"min": "group_min",
"max": "group_max",
"... | Inching towards refactoring out special-cased EA methods into EA/EADtype methods.
I expect this to need some troubleshooting on the 32bit linux build. | https://api.github.com/repos/pandas-dev/pandas/pulls/46196 | 2022-03-01T23:58:47Z | 2022-03-03T23:34:30Z | 2022-03-03T23:34:30Z | 2022-03-03T23:47:25Z |
DOC: Clarify groupby.first does not use nulls | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 36a6c531f7ab8..3d857e4f3e4e7 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2235,8 +2235,43 @@ def max(
)
@final
- @doc(_groupby_agg_method_template, fname="first", no=False, m... | - [X] closes #8427
- [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/46195 | 2022-03-01T22:08:08Z | 2022-03-10T21:54:51Z | 2022-03-10T21:54:51Z | 2022-03-10T21:55:06Z |
DOC: clarify `styler.hide` in combination with `to_excel` | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 15b2381c40d24..0502e2a2f4395 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -2689,6 +2689,13 @@ def hide(
Notes
-----
+ .. warning::
+ This method only works with the output metho... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46194 | 2022-03-01T18:15:40Z | 2022-03-02T01:19:54Z | 2022-03-02T01:19:54Z | 2022-03-02T13:33:05Z |
Benchmark for indexing with .loc for sorted/unsorted DatetimeIndex | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 40eaab524a399..b9e565da2dbb2 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -290,12 +290,24 @@ def setup(self):
self.dti = dti
self.dti2 = dti2
+ index = np.random.c... | - [ ] closes #38690
- [ ] [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/46193 | 2022-03-01T14:14:52Z | 2022-03-02T00:01:29Z | 2022-03-02T00:01:28Z | 2022-03-02T05:20:54Z |
CLN: rolling step followups | diff --git a/pandas/_libs/window/indexers.pyi b/pandas/_libs/window/indexers.pyi
index bbb5e6988d0b5..c9bc64be34ac9 100644
--- a/pandas/_libs/window/indexers.pyi
+++ b/pandas/_libs/window/indexers.pyi
@@ -8,6 +8,5 @@ def calculate_variable_window_bounds(
min_periods,
center: bool,
closed: str | None,
- ... | - [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).
xref https://github.com/... | https://api.github.com/repos/pandas-dev/pandas/pulls/46191 | 2022-03-01T06:55:30Z | 2022-03-02T15:22:40Z | 2022-03-02T15:22:40Z | 2022-03-02T16:19:36Z |
TST: add test for correct behaviour of multiIndex loc with splice | diff --git a/pandas/tests/indexing/multiindex/test_loc.py b/pandas/tests/indexing/multiindex/test_loc.py
index 6e59311634c76..bdb59db1a1b38 100644
--- a/pandas/tests/indexing/multiindex/test_loc.py
+++ b/pandas/tests/indexing/multiindex/test_loc.py
@@ -402,6 +402,18 @@ def test_sorted_multiindex_after_union(self):
... | - added test to check for the correct behaviour as in issue https://github.com/pandas-dev/pandas/issues/43599
| https://api.github.com/repos/pandas-dev/pandas/pulls/46190 | 2022-03-01T05:03:31Z | 2022-03-01T13:06:15Z | 2022-03-01T13:06:15Z | 2022-03-01T18:26:29Z |
DEPR: treating object-dtype blocks as bool_only | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 3d3ec53948a01..49f9abd99db53 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -354,6 +354,7 @@ of columns could result in a larger Series result. See (:issue:`37799`).
*New behavior*:
.. ipython:: p... | - [ ] 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/46188 | 2022-02-28T23:12:49Z | 2022-03-01T13:04:42Z | 2022-03-01T13:04:42Z | 2022-03-01T16:32:06Z |
ENH: make `Styler.concat` compatible with `to_latex` output render | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e47751245cb65..46adc4dc87ba2 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -21,7 +21,7 @@ Styler
- New method :meth:`.Styler.to_string` for alternative customisable output methods (:issue:`44502... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46186 | 2022-02-28T20:45:00Z | 2022-03-01T13:01:11Z | 2022-03-01T13:01:11Z | 2022-03-01T17:04:13Z |
CI: Remove testing pyarrow 6 | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index fe225add5bde7..4380e8dfa2e57 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -28,7 +28,7 @@ jobs:
pattern: ["not single_cpu", "single_cpu"]
# Don't test pyarrow v2/3: Causes timeouts in read_csv ... | xref https://github.com/pandas-dev/pandas/pull/46003#issuecomment-1053830181
(Still testing pyarrow 1.0.1 (min version), 5, and 7)
| https://api.github.com/repos/pandas-dev/pandas/pulls/46183 | 2022-02-28T18:43:56Z | 2022-02-28T21:43:56Z | 2022-02-28T21:43:56Z | 2022-02-28T22:25:43Z |
BUG: groupby.min with UInt64 and empty group | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 79457bcd6506f..0c3c57d40d42d 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1344,18 +1344,17 @@ cdef group_min_max(iu_64_floating_t[:, ::1] out,
for i in range(ngroups):
for j in range(K):
... | - [ ] 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/46182 | 2022-02-28T18:14:43Z | 2022-03-01T12:54:02Z | 2022-03-01T12:54:02Z | 2022-03-01T16:28:33Z |
CLN: assorted | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d2b34f587b5e2..f668e55bbbd08 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -294,6 +294,7 @@ Performance improvements
- Performance improvement in :meth:`MultiIndex.get_locs` (:issue:`45681`, :issue:... | - [ ] 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/46181 | 2022-02-28T17:59:23Z | 2022-03-01T12:55:15Z | 2022-03-01T12:55:15Z | 2022-03-18T16:25:43Z |
BUG: styler.concat should raise when index nlevels are incompatible | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 89e74cf19ee8e..fb5c6e0344640 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -281,7 +281,8 @@ def concat(self, other: Styler) -> Styler:
----------
other : Styler
The other Styler object... | bug fix for unreleased feature so no whatsnew needed | https://api.github.com/repos/pandas-dev/pandas/pulls/46180 | 2022-02-28T15:43:24Z | 2022-03-01T12:55:54Z | 2022-03-01T12:55:54Z | 2022-03-01T17:03:57Z |
DOC: Move general utility functions to better locations | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6f91c885bf1e8..2c58ccb52f9e5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -178,7 +178,7 @@ repos:
language: python
files: ^pandas/core/generic\.py$
- id: pandas-errors-documented
- name: Ensure ... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
There was `doc/source/reference/general_functions.rst` and `doc/source/reference/general_utility_functions.rst`
So split `doc/source/reference/general_utility_functions.rst` into appropriat... | https://api.github.com/repos/pandas-dev/pandas/pulls/46177 | 2022-02-28T06:22:11Z | 2022-03-01T13:02:56Z | 2022-03-01T13:02:56Z | 2022-03-01T18:50:16Z |
PERF: avoid cast in algos.rank | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index 2447d456b7478..60bdb504c545b 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -102,7 +102,7 @@ def is_monotonic(
# ----------------------------------------------------------------------
def rank_1d(
- values: np.ndarray, # nda... | The real goal here is allowing us to use numeric_object_t in the libgroupby rank function, which unblocks avoiding casting in a bunch of groupby ops. | https://api.github.com/repos/pandas-dev/pandas/pulls/46175 | 2022-02-28T03:08:02Z | 2022-02-28T13:51:00Z | 2022-02-28T13:51:00Z | 2022-02-28T15:44:59Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.