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 |
|---|---|---|---|---|---|---|---|
Bug46381 - Add `storage_option` parameter to to_excel method in Styler | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 8089fc58db07d..86e30024c51b1 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2132,7 +2132,11 @@ def _repr_data_resource_(self):
# I/O Methods
@final
- @doc(klass="object", storage_options=_shared_docs["storage_options... | - [x] closes #46381
- [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/46491 | 2022-03-24T01:45:44Z | 2022-07-09T16:32:52Z | 2022-07-09T16:32:52Z | 2022-07-10T13:25:50Z |
BLD: Fix black to match pre-commit black version | diff --git a/environment.yml b/environment.yml
index 5402be3d4a00b..f60c68b8d7638 100644
--- a/environment.yml
+++ b/environment.yml
@@ -18,7 +18,7 @@ dependencies:
- cython>=0.29.24
# code checks
- - black=21.5b2
+ - black=22.1.0
- cpplint
- flake8=4.0.1
- flake8-bugbear=21.3.2 # used by flake8, fi... | Black version is not synced now across relevant files (pre-commit's version is higher than requirements-dev's and environment's). This PR aims to fix that.
I am not aware of any issue mentioning this problem, hence no reference. | https://api.github.com/repos/pandas-dev/pandas/pulls/46490 | 2022-03-23T21:45:39Z | 2022-03-24T12:06:03Z | 2022-03-24T12:06:03Z | 2022-03-30T21:33:03Z |
Fix CI | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index ff77566e1d559..9190585b2882d 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -534,7 +534,7 @@ cdef const int64_t[:] _tz_convert_from_utc(const int64_t[:] stamps, tzinfo tz):
... | - [ ] 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/46489 | 2022-03-23T21:10:56Z | 2022-03-24T12:08:38Z | 2022-03-24T12:08:38Z | 2022-03-24T15:20:14Z |
PERF: Slow performance of to_dict (#46470) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 20e99d007c798..8188916a06008 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -606,6 +606,7 @@ Performance improvements
- Performance improvement in :class:`DataFrameGroupBy` and :class:`SeriesGroupBy`... | Improves performance of `to_dict` method for dataframes and series
For `orient=index` and `orient=list` performance has decreased but this is because, prior to this PR, we were not coercing types to native python types, we now are. (I assume we want this, but maybe not?)
```
N: 5,000,000
With objects (3 int c... | https://api.github.com/repos/pandas-dev/pandas/pulls/46487 | 2022-03-23T20:47:48Z | 2022-11-22T21:59:15Z | 2022-11-22T21:59:15Z | 2022-11-23T00:35:50Z |
WEB: Add benchmarks grant write up as a blog post | diff --git a/web/pandas/community/blog/asv-pandas-grant.md b/web/pandas/community/blog/asv-pandas-grant.md
new file mode 100644
index 0000000000000..205c2222fec94
--- /dev/null
+++ b/web/pandas/community/blog/asv-pandas-grant.md
@@ -0,0 +1,141 @@
+Title: Write up of the NumFOCUS grant to improve pandas benchmarks and d... | Closes #45049
Create a new entry on the blog for the asv-pandas grant. | https://api.github.com/repos/pandas-dev/pandas/pulls/46483 | 2022-03-23T10:53:55Z | 2022-04-07T19:47:02Z | 2022-04-07T19:47:01Z | 2022-04-07T19:47:35Z |
BUG: Allow passing of args/kwargs to groupby.apply with str func | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 50a5bf383de77..dbf9547f561d2 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -527,6 +527,7 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.cummin` and :meth:`GroupBy.cummax` with nullable dtypes i... | - [x] closes #46479 (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/46481 | 2022-03-23T02:17:50Z | 2022-03-25T23:00:33Z | 2022-03-25T23:00:33Z | 2022-03-26T01:33:40Z |
ENH: implement astype_overflowsafe for dt64 | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 00f83be0b51c4..132d742b78e9c 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -31,6 +31,7 @@ from pandas._libs.tslibs.np_datetime cimport (
NPY_DATETIMEUNIT,
NPY_FR_ns,
_s... | - [ ] 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/46478 | 2022-03-23T01:11:48Z | 2022-03-24T14:26:48Z | 2022-03-24T14:26:48Z | 2022-03-24T15:27:14Z |
BUG: Use isinstance for is_iterator on Cygwin | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 18a58902075f2..9a26bdfd36f11 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -268,7 +268,10 @@ def is_iterator(obj: object) -> bool:
>>> is_iterator(1)
False
"""
- return PyIter_Check(obj)
+ IF UNAME_SYSNAME.startswith("... | Fixes #45158
Keep original implementation if not on Cygwin, and choose the implementation at compile time to avoid performance hits from the extra branch.
[Test results on Cygwin are available are available here](https://github.com/DWesl/pandas/runs/5648361139?check_suite_focus=true)
- [X] closes #45158
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46477 | 2022-03-22T19:11:49Z | 2022-04-24T02:39:13Z | null | 2022-04-24T02:39:13Z |
DEPR: Timedelta.delta | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 14e9fda1b910c..c200b442d6c91 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -350,6 +350,7 @@ Other Deprecations
- Deprecated treating all-bool ``object``-dtype columns as bool-like in :meth:`DataFram... | - [ ] 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/46476 | 2022-03-22T18:24:10Z | 2022-03-23T00:39:48Z | 2022-03-23T00:39:48Z | 2022-03-23T01:06:57Z |
TYP: fix mid and length for Interval and Intervalarray | diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi
index 67cb604083c6b..bad6013aa58b6 100644
--- a/pandas/_libs/interval.pyi
+++ b/pandas/_libs/interval.pyi
@@ -32,8 +32,6 @@ class _LengthDescriptor:
def __get__(
self, instance: Interval[_OrderableTimesT], owner: Any
) -> Timedelta: .... | In the process of doing the types in the MS stubs, discovered that `length` and `mid` have really different return types for `Interval` and `IntervalArray`, so this PR fixes that by moving `length` and `mid` out of `IntervalMixin`
Not typing the rest of `IntervalArray` yet.
| https://api.github.com/repos/pandas-dev/pandas/pulls/46472 | 2022-03-22T13:20:38Z | 2022-03-22T23:29:52Z | 2022-03-22T23:29:52Z | 2023-02-13T21:02:55Z |
Fix problem about loongarch install by pip | diff --git a/setup.cfg b/setup.cfg
index 34c9f56f06371..9eecf4826fcd4 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -31,9 +31,10 @@ project_urls =
[options]
packages = find:
install_requires =
- numpy>=1.18.5; platform_machine!='aarch64' and platform_machine!='arm64' and python_version<'3.10'
+ numpy>=1.18.5; plat... | - [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 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/46467 | 2022-03-22T07:47:45Z | 2022-05-24T20:54:19Z | null | 2022-05-24T20:54:19Z |
updated head and tail docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 8bfd9f3cd962d..98e0ab43f2a09 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5284,6 +5284,8 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
For negative values of `n`, this function returns all rows except
the... | - [ ] closes #46079
| https://api.github.com/repos/pandas-dev/pandas/pulls/46466 | 2022-03-22T03:40:58Z | 2022-03-22T20:20:35Z | 2022-03-22T20:20:35Z | 2022-03-22T20:20:54Z |
ENH: implement pandas_timedelta_to_timedeltastruct for other resos | diff --git a/pandas/_libs/tslibs/np_datetime.pyi b/pandas/_libs/tslibs/np_datetime.pyi
index 222e770ef03d5..922fe8c4a4dce 100644
--- a/pandas/_libs/tslibs/np_datetime.pyi
+++ b/pandas/_libs/tslibs/np_datetime.pyi
@@ -4,6 +4,7 @@ class OutOfBoundsDatetime(ValueError): ...
# only exposed for testing
def py_get_unit_f... | - [ ] 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/46465 | 2022-03-21T23:54:55Z | 2022-03-31T02:17:01Z | 2022-03-31T02:17:01Z | 2022-03-31T02:25:31Z |
Backport PR #46461 on branch 1.4.x (Update install.rst) | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index 8fe0fd1f78e61..8106efcfcfd98 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -276,7 +276,7 @@ Computation
========================= ================== =================... | Backport PR #46461: Update install.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/46464 | 2022-03-21T23:09:13Z | 2022-03-23T01:30:40Z | 2022-03-23T01:30:40Z | 2022-03-23T01:30:40Z |
REF: implement periods_per_day | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index 3686ee216b546..f61409fc16653 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -1,8 +1,11 @@
+from numpy cimport int64_t
+
from pandas._libs.tslibs.np_datetime cimport NPY_DATETIMEUNIT
cdef str npy... | I'm finding I'm needing this in a bunch of non-nano branches. Having a really hard time scoping said branches to allow for meaningful tests, but am optimistic that will improve before long.
The Resolution->c_Resolution thing is unrelated, just has been bothering me. | https://api.github.com/repos/pandas-dev/pandas/pulls/46462 | 2022-03-21T21:51:39Z | 2022-03-21T23:22:47Z | 2022-03-21T23:22:47Z | 2022-03-21T23:28:02Z |
Update install.rst | diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst
index dc02460a671d6..e312889f2eb6a 100644
--- a/doc/source/getting_started/install.rst
+++ b/doc/source/getting_started/install.rst
@@ -276,7 +276,7 @@ Computation
========================= ================== =================... | - [ ] closes #46455
| https://api.github.com/repos/pandas-dev/pandas/pulls/46461 | 2022-03-21T21:09:59Z | 2022-03-21T23:08:32Z | 2022-03-21T23:08:32Z | 2022-03-21T23:09:21Z |
BUG: tz_localize(UTC) not making a copy | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 251faeea28dc6..4c13dc2756a0e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -384,6 +384,7 @@ Datetimelike
- Bug in :class:`Timestamp` construction when passing datetime components as positional argum... | - [ ] 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/46460 | 2022-03-21T18:02:01Z | 2022-03-22T23:24:08Z | 2022-03-22T23:24:08Z | 2022-03-24T02:34:14Z |
Add On being part of the pandas Benchmarks Grant blog | diff --git a/web/pandas/community/blog/benchmarks_grant_blog.md b/web/pandas/community/blog/benchmarks_grant_blog.md
new file mode 100644
index 0000000000000..e88a58202d343
--- /dev/null
+++ b/web/pandas/community/blog/benchmarks_grant_blog.md
@@ -0,0 +1,59 @@
+Title: On being part of the pandas Benchmarks Grant while ... | The pandas Benchmarks Grant blog
| https://api.github.com/repos/pandas-dev/pandas/pulls/46459 | 2022-03-21T17:25:33Z | 2022-03-23T07:51:46Z | null | 2022-03-23T07:51:46Z |
BUG: url regex in `style_render` does not pass colon and other valid | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 4cbb8118055af..13f3e9a0d0a8c 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -31,7 +31,7 @@ Bug fixes
~~~~~~~~~
- Fix some cases for subclasses that define their ``_constructor`` properties as genera... | URLs containing some valid characters such as colon in port numbers get
cut off when html-formatting. As a workaround, expanded the regex to
match a wider variety of URLs.
- [x] closes #46389
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-t... | https://api.github.com/repos/pandas-dev/pandas/pulls/46457 | 2022-03-21T11:49:41Z | 2022-03-24T18:16:28Z | 2022-03-24T18:16:27Z | 2022-03-24T18:46:43Z |
DOC: conveting Index object into a set(#46440) | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index a94681924d211..f8c93c04c980a 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1553,9 +1553,7 @@ Index objects
-------------
The pandas :class:`~pandas.Index` class and its subclasse... | - [ ] closes #46446 (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/46454 | 2022-03-21T06:04:57Z | 2022-03-22T03:30:26Z | null | 2022-03-22T03:30:26Z |
REF: Move value_counts, take, factorize to ArrowExtensionArray | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index b037f278872a9..6a904b8cdb042 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -43,6 +43,7 @@
)
from pandas.core.dtypes.common import (
+ is_array_like,
is_bool_dtype,
is_dtype_equal,
i... | - [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/46453 | 2022-03-21T03:07:09Z | 2022-03-28T19:37:39Z | 2022-03-28T19:37:39Z | 2022-03-28T19:48:32Z |
BUG: groupby.value_counts subset arg not working | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 0811adbeeeda0..f681ed1092b39 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1694,17 +1694,6 @@ def value_counts(
in_axis_names = {
grouping.name for grouping in self.gro... | - [x] closes #46383
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added an entry in the latest `doc/sourc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46452 | 2022-03-20T23:04:23Z | 2022-03-22T13:42:28Z | null | 2022-03-22T13:42:28Z |
TST: GH38947 creating function to test bar plot index | diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py
index 656590cdb02be..9c7996adfed38 100644
--- a/pandas/tests/plotting/test_misc.py
+++ b/pandas/tests/plotting/test_misc.py
@@ -7,6 +7,7 @@
from pandas import (
DataFrame,
+ Index,
Series,
Timestamp,
)
@@ -441,6 +... | - [X] closes #38947
- [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/46451 | 2022-03-20T22:49:10Z | 2022-04-24T18:28:11Z | 2022-04-24T18:28:11Z | 2022-04-24T18:28:44Z |
TST: JSONArray test_combine_first sometimes passes | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index 2b6174be2ca0e..f1e8e82d23691 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -267,7 +267,11 @@ def test_combine_le(self, data_repeated):
def test_combine_ad... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
xref https://github.com/pandas-dev/pandas/pull/46427
Encountered a build where this xpassed
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=75611&view=ms.vss-test-web.buil... | https://api.github.com/repos/pandas-dev/pandas/pulls/46450 | 2022-03-20T22:38:41Z | 2022-03-21T23:07:49Z | 2022-03-21T23:07:49Z | 2022-03-22T17:22:32Z |
Typ: Fix io stata type ignores | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index 71ab667c1b3aa..d9912f2480e07 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -572,7 +572,13 @@ def _cast_to_stata_types(data: DataFrame) -> DataFrame:
"""
ws = ""
# original, if small, if large
- conversion_data = (
+ conversion... | xref #37715
Hi all, first time contributing, please let me know if all is OK process-wise (e.g. commit message, if it is OK that the changes are not squashed)
Regarding the changed code - I added c_data_large for consistency (c_data_small was required to fix type: ignore), can remove if you think that it is unnec... | https://api.github.com/repos/pandas-dev/pandas/pulls/46449 | 2022-03-20T22:22:34Z | 2022-03-23T01:16:21Z | 2022-03-23T01:16:21Z | 2022-03-23T21:28:41Z |
REF: Eliminate another iterchunks call in ArrowExtensionArray | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index b037f278872a9..d64d6184af6f6 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -4,7 +4,6 @@
from typing import (
TYPE_CHECKING,
Any,
- Iterator,
Literal,
Sequence,
TypeVar,
@@ -6... | - [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).
Turns O(2n) -> O(n) over... | https://api.github.com/repos/pandas-dev/pandas/pulls/46448 | 2022-03-20T19:43:17Z | 2022-03-28T19:39:17Z | 2022-03-28T19:39:17Z | 2022-03-28T19:39:21Z |
Fixing typo in docstrings | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 23faa3e0304a9..bd9453e1fecb6 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -60,7 +60,7 @@ cdef extern from "numpy/arrayobject.h":
ctypedef class numpy.dtype [object PyArray_Descr]:
# Use PyDataType_* macros when possible, h... | - [ ] 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/46447 | 2022-03-20T19:37:37Z | 2022-03-20T22:27:17Z | null | 2022-03-20T22:27:17Z |
DOC: conveting Index object into a set(#46440) | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index a94681924d211..f8c93c04c980a 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -1553,9 +1553,7 @@ Index objects
-------------
The pandas :class:`~pandas.Index` class and its subclasse... | - [x] closes #46440 (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/46446 | 2022-03-20T17:29:51Z | 2022-03-21T06:02:25Z | null | 2022-03-21T12:14:14Z |
Fix showing "None" as ylabel in :meth:`Series.plot` when not setting ylabel | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 8dac952874f89..1fdfd99d3ff53 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -109,6 +109,13 @@ did not have the same index as the input.
df.groupby('a', dropna=True).transform(lambda x: x)
df... | - [ ] closes #46129
- [ ] [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).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46445 | 2022-03-20T15:42:05Z | 2022-03-21T23:09:52Z | 2022-03-21T23:09:51Z | 2022-03-21T23:09:55Z |
BUG: ExcelWriter's engine and supported_extensions are properties | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 40007a0abe233..030ae9fefda98 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -945,9 +945,9 @@ class ExcelWriter(metaclass=abc.ABCMeta):
# - Mandatory
# - ``write_cells(self, cells, sheet_name=None, startrow=0, sta... | `engine` and `supported_extensions` are declared to be properties in `ExcelWriter` but sub-classes simply assign variables to them. While the differences are subtle, we should either consistently use properties or variables (pyright doesn't like mixing them; mypy doesn't seem to care).
There are more cases where a s... | https://api.github.com/repos/pandas-dev/pandas/pulls/46444 | 2022-03-20T13:51:27Z | 2022-03-22T21:15:19Z | 2022-03-22T21:15:19Z | 2022-04-01T01:36:32Z |
REGR: RecursionError when attempting to replace np.nan values | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index cba055d5b4345..a375a26fe64ad 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1454,7 +1454,7 @@ def _ensure_nanosecond_dtype(dtype: DtypeObj) -> DtypeObj:
# TODO: other value-dependent functions to standardize here... | - [ ] closes #45725 (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/46443 | 2022-03-20T13:46:33Z | 2022-07-26T18:26:55Z | null | 2022-07-26T18:26:55Z |
Backport PR #46404 on branch 1.4.x (REGR: DataFrame.replace when the replacement value was explicitly None) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 3523f691cae8f..4cbb8118055af 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed memory performance regression in :meth:`Series.fillna` when called on a :class:`Da... | Backport PR #46404: REGR: DataFrame.replace when the replacement value was explicitly None | https://api.github.com/repos/pandas-dev/pandas/pulls/46441 | 2022-03-20T11:10:08Z | 2022-03-20T16:19:04Z | 2022-03-20T16:19:04Z | 2022-03-20T16:19:04Z |
REF: move ArrowStringArray.__setitem__ and related methods to ArrowExtensionArray | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index b1537fbf2767d..b037f278872a9 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -4,6 +4,7 @@
from typing import (
TYPE_CHECKING,
Any,
+ Iterator,
Literal,
Sequence,
TypeVar,
@@ -2... | - [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).
Moved/refactored `ArrowS... | https://api.github.com/repos/pandas-dev/pandas/pulls/46439 | 2022-03-20T04:02:44Z | 2022-03-20T16:14:30Z | 2022-03-20T16:14:29Z | 2022-03-20T23:18:48Z |
BLD: Remove windows shim | diff --git a/pandas/_libs/src/headers/ms_inttypes.h b/pandas/_libs/src/headers/ms_inttypes.h
deleted file mode 100644
index 1be380337b07f..0000000000000
--- a/pandas/_libs/src/headers/ms_inttypes.h
+++ /dev/null
@@ -1,305 +0,0 @@
-// ISO C9x compliant inttypes.h for Microsoft Visual Studio
-// Based on ISO/IEC 9899:TC... | Just to see if this breaks the world. | https://api.github.com/repos/pandas-dev/pandas/pulls/46437 | 2022-03-20T02:18:40Z | 2022-04-23T22:09:54Z | 2022-04-23T22:09:54Z | 2022-04-24T02:43:58Z |
REF: avoid python-space calls in _get_dst_hours | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index 705c4cef5c05d..bc57cb8aaed83 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -15,7 +15,6 @@ from cpython.datetime cimport (
import_datetime()
-from dateutil.tz import tzutc... | There's still a few more to be gotten, but its a start. | https://api.github.com/repos/pandas-dev/pandas/pulls/46436 | 2022-03-20T01:22:33Z | 2022-03-20T16:22:11Z | 2022-03-20T16:22:11Z | 2022-03-20T18:45:11Z |
categorical type column and interval data to a CSV file | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 26569b571724d..caa5967c64584 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -2263,7 +2263,8 @@ def to_native_types(
values = algos.take_nd(
values.categories._values,
... | - [x] closes #46297
- [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/46435 | 2022-03-19T21:31:22Z | 2022-03-23T13:45:51Z | null | 2022-03-23T13:45:51Z |
CLN: rename _tz_localize_using_tzinfo_api, standardize patterns | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 792b6d1c35b2f..00f83be0b51c4 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -71,7 +71,7 @@ from pandas._libs.tslibs.nattype cimport (
)
from pandas._libs.tslibs.tzconversion cimport ... | Maximized places where code is exactly copy/pasted so its easy to check it stays in sync (since so far the prospect of de-duplicating the affected code is not looking good)
Small optimizations in _tz_convert_tzlocal_utc, which is renamed to reflect the fact that it is actually the General Case, not just tzlocal. | https://api.github.com/repos/pandas-dev/pandas/pulls/46434 | 2022-03-19T20:52:05Z | 2022-03-19T22:32:29Z | 2022-03-19T22:32:29Z | 2022-03-19T23:04:23Z |
BENCH: Fix makeCategoricalIndex | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index b30ad9f7b4905..ff0b3b2fb651d 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -187,7 +187,7 @@ def time_remove_categories(self):
class Rank:
def setup(self):
N = 1... | - [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).
@jreback looks like http... | https://api.github.com/repos/pandas-dev/pandas/pulls/46433 | 2022-03-19T18:27:08Z | 2022-03-19T21:59:14Z | 2022-03-19T21:59:14Z | 2022-03-19T21:59:18Z |
Mw test | diff --git a/README.md b/README.md
deleted file mode 100644
index 2216f59965354..0000000000000
--- a/README.md
+++ /dev/null
@@ -1,173 +0,0 @@
-<div align="center">
- <img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
-</div>
-
------------------
-
-# pandas: powerful Python data analysis toolkit
-[![PyPI... | - [ ] 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/46432 | 2022-03-19T09:55:59Z | 2022-03-19T09:58:37Z | null | 2022-03-19T09:58:37Z |
ENH: use same value counts for roll_var to remove floating point artifacts | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 08500019143ed..9f2bbaa8d5120 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -603,6 +603,7 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.max` with empty groups and ``uint64`` dtype incorrectly r... | ENH: use same value counts for roll_var to remove floating point artifacts
Please refer to https://github.com/pandas-dev/pandas/issues/42064#issuecomment-1072934337 for the explaination of this new method.
- [ ] closes #42064 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/46431 | 2022-03-19T06:32:25Z | 2022-04-19T21:25:13Z | 2022-04-19T21:25:13Z | 2022-04-20T01:51:09Z |
DEPR: Timedelta.freq, Timedelta.is_populated | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 74639cc693cb7..20c8dfae0de5e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -342,6 +342,7 @@ Other Deprecations
- Deprecated allowing non-keyword arguments in :meth:`ExtensionArray.argsort` (:issue:`... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46430 | 2022-03-19T04:29:44Z | 2022-03-20T16:34:14Z | 2022-03-20T16:34:14Z | 2022-03-20T18:47:11Z |
TST: Ensure makeCategoricalIndex categories are unique | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index 2b60871cbf82b..b30ad9f7b4905 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -187,7 +187,7 @@ def time_remove_categories(self):
class Rank:
def setup(self):
N = 1... | - [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).
If the flaky lottery is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46429 | 2022-03-19T03:12:32Z | 2022-03-19T18:06:52Z | 2022-03-19T18:06:52Z | 2022-05-19T03:02:54Z |
TYP: rename | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 30244e025e430..35c057df43322 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -141,7 +141,7 @@
]
# For functions like rename that convert one label to another
-Renamer = Union[Mapping[Hashable, Any], Callable[[Hashable], Hashable]]
+Renamer = Union[M... | tested with mypy and pyright:
```py
import pandas as pd
def bool_() -> bool:
...
df = pd.DataFrame({"a": []})
ser = pd.Series({"a": 1})
# DataFrame/Series
reveal_type(df.rename(columns={"a": "b"}))
reveal_type(df.rename(columns={"a": "b"}, inplace=False))
reveal_type(ser.rename("a"))
reveal_type(... | https://api.github.com/repos/pandas-dev/pandas/pulls/46428 | 2022-03-19T02:59:17Z | 2022-04-03T03:20:40Z | 2022-04-03T03:20:40Z | 2022-05-26T01:59:14Z |
TST: Convert skip -> xfail | diff --git a/pandas/tests/extension/base/methods.py b/pandas/tests/extension/base/methods.py
index 6379dfe2efefe..b829b017d5fb1 100644
--- a/pandas/tests/extension/base/methods.py
+++ b/pandas/tests/extension/base/methods.py
@@ -18,7 +18,7 @@ class BaseMethodsTests(BaseExtensionTests):
def test_value_counts_defaul... | - [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/46427 | 2022-03-19T00:15:26Z | 2022-03-20T16:22:44Z | 2022-03-20T16:22:44Z | 2022-03-20T17:44:51Z |
CI: Add pytest-asyncio to PyPy CI | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 4380e8dfa2e57..bc8791afc69f7 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -162,7 +162,7 @@ jobs:
shell: bash
run: |
# TODO: re-enable cov, its slowing the tests down though
- pip i... | - [ ] closes #46421 (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/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/46426 | 2022-03-18T23:26:17Z | 2022-03-19T17:45:20Z | 2022-03-19T17:45:20Z | 2022-03-30T10:49:09Z |
ENH: support zoneinfo tzinfos | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 3d3d3a487ac37..c7cb87a1b2c55 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -481,7 +481,7 @@ Timedelta
Time Zones
^^^^^^^^^^
--
+- Bug in :class:`Timestamp` constructor raising when passed a ``Zon... | - [x] closes #37654 (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/46425 | 2022-03-18T22:24:59Z | 2022-04-18T00:55:27Z | 2022-04-18T00:55:26Z | 2022-04-18T14:24:47Z |
CI/TYP: require mypy error-codes in ignore comments | diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi
index 7a33be1793797..f641c7fe1a12a 100644
--- a/pandas/_libs/tslibs/timestamps.pyi
+++ b/pandas/_libs/tslibs/timestamps.pyi
@@ -133,10 +133,10 @@ class Timestamp(datetime):
def utcoffset(self) -> timedelta | None: ...
def tzn... | `enable_error_code = "ignore-without-code"` is a new feature added in mypy 0.940. | https://api.github.com/repos/pandas-dev/pandas/pulls/46424 | 2022-03-18T21:54:36Z | 2022-03-19T17:50:17Z | 2022-03-19T17:50:17Z | 2022-04-01T01:36:34Z |
TYP: drop | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 8cab908d62507..e3b3a4774f558 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -297,6 +297,9 @@ def closed(self) -> bool:
else:
TakeIndexer = Any
+# Shared by functions such as drop and astype
+IgnoreRaise = Literal["ignore", "raise"]
+
# Windowi... | Tested with mypy and pyright:
```py
import pandas as pd
def bool_() -> bool:
...
df = pd.DataFrame({"a": []})
ser = pd.Series({"a": 1, "b": 2})
# DataFrame/Series
reveal_type(df.drop(columns="a"))
reveal_type(df.drop(columns="a", inplace=False))
reveal_type(ser.drop(index="a"))
reveal_type(ser.dr... | https://api.github.com/repos/pandas-dev/pandas/pulls/46423 | 2022-03-18T21:20:50Z | 2022-03-21T23:09:13Z | 2022-03-21T23:09:13Z | 2022-04-01T01:36:33Z |
BUG: Categorical of booleans has object .categories | diff --git a/pandas/tests/series/accessors/test_cat_accessor.py b/pandas/tests/series/accessors/test_cat_accessor.py
index 1a038839a67c9..53158482fde46 100644
--- a/pandas/tests/series/accessors/test_cat_accessor.py
+++ b/pandas/tests/series/accessors/test_cat_accessor.py
@@ -282,3 +282,12 @@ def test_set_categories_se... | - [x] closes #46313
- [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/46422 | 2022-03-18T19:55:35Z | 2022-03-20T18:01:48Z | 2022-03-20T18:01:48Z | 2022-03-20T18:01:57Z |
CLN: assorted | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index c4a760efd9a40..a373870f268ae 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -466,6 +466,7 @@ Groupby/resample/rolling
- Bug in :meth:`.GroupBy.cumsum` with ``timedelta64[ns]`` dtype failing to recogn... | - [ ] 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/46420 | 2022-03-18T16:24:04Z | 2022-03-19T17:50:01Z | 2022-03-19T17:50:01Z | 2022-03-19T18:14:03Z |
TST: Additional tests to iloc setitem | diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py
index 426192ab46914..a0509b889e036 100644
--- a/pandas/tests/indexing/test_iloc.py
+++ b/pandas/tests/indexing/test_iloc.py
@@ -21,11 +21,13 @@
Interval,
NaT,
Series,
+ Timestamp,
array,
concat,
date_ra... | This tests make sure when converting multiple columns to datetimes
and when assiging back it remains as datetime not as unix date
as mentioned in GH #20511.
- [x] closes #20511
- [x] Tests added and passed
- [x] All code checks passed
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46419 | 2022-03-18T16:03:16Z | 2022-05-10T04:31:29Z | null | 2022-05-10T04:31:50Z |
CLN: ArrowStringArray._cmp_method - use ChunkedArray.to_numpy() | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index e39ebd3afd2ff..eb3b3b8d29647 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -332,8 +332,11 @@ def _cmp_method(self, other, op):
else:
return NotImplemented
- ... | - [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).
Addresses minor TODO com... | https://api.github.com/repos/pandas-dev/pandas/pulls/46417 | 2022-03-18T14:10:30Z | 2022-03-18T16:15:16Z | 2022-03-18T16:15:16Z | 2022-03-20T23:18:48Z |
TST: fix pytest collection errors with pytest-xdist | diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py
index bf2afe50bdb01..fd764a60d0644 100644
--- a/pandas/tests/tseries/offsets/test_offsets.py
+++ b/pandas/tests/tseries/offsets/test_offsets.py
@@ -563,9 +563,9 @@ def test_mul(self):
assert DateOffset(2) =... | xref https://github.com/pandas-dev/pandas/pull/43598#discussion_r829985695 | https://api.github.com/repos/pandas-dev/pandas/pulls/46416 | 2022-03-18T13:50:23Z | 2022-03-18T16:15:35Z | 2022-03-18T16:15:35Z | 2022-03-20T16:28:31Z |
REGR: Bar plot axis timestamp to string conversion error | diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py
index 64c736d6314e4..656590cdb02be 100644
--- a/pandas/tests/plotting/test_misc.py
+++ b/pandas/tests/plotting/test_misc.py
@@ -8,6 +8,7 @@
from pandas import (
DataFrame,
Series,
+ Timestamp,
)
import pandas._testing a... | Added regression test to prevent bar plot from attempting to convert x-axis from string to timestamp due to previous plot's axis units.
Problematic example:
https://github.com/pandas-dev/pandas/blob/fb353446651067fafec03301256e93d59065c520/pandas/plotting/_matplotlib/core.py#L1433
- [x] closes #38736
- [x] [T... | https://api.github.com/repos/pandas-dev/pandas/pulls/46413 | 2022-03-18T09:16:07Z | 2022-03-20T17:43:37Z | 2022-03-20T17:43:36Z | 2022-03-20T17:44:01Z |
CI: bump mypy&pyright | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 58bef05940af1..f32fed3b3ee68 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -74,7 +74,7 @@ jobs:
- name: Install pyright
# note: keep version in sync with .pre-commit-config.... | `ExtensionArray` does not implement any of the magic `<>!` methods. Might be worth adding abstract methods and force sub-classes to implement them? @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/46411 | 2022-03-18T02:29:17Z | 2022-03-18T14:33:49Z | 2022-03-18T14:33:49Z | 2022-03-18T14:33:49Z |
REF: implement get_unit_from_dtype | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 7dce3cad9d339..0adf6f722c9ce 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -36,6 +36,7 @@ from pandas._libs.tslibs.np_datetime cimport (
dtstruct_to_dt64,
get_datetime64_uni... | Finding I need this in a bunch of non-nano branches.
cpplint gave a warning I didn't know what to do with so ignored; pls advise.
```
pandas/_libs/tslibs/src/datetime/np_datetime.c:787: Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46410 | 2022-03-18T01:07:50Z | 2022-03-18T20:32:45Z | 2022-03-18T20:32:45Z | 2022-03-18T20:35:24Z |
BUG: avoid RuntimeError in groupby.max | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index d84cc4873a250..899c56a0a075e 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1047,6 +1047,7 @@ def group_last(
const uint8_t[:, :] mask,
uint8_t[:, ::1] result_mask=None,
Py_ssize_t min_count=-1,
+ bint is_... | - [ ] 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/46408 | 2022-03-17T20:53:56Z | 2022-03-18T00:33:12Z | 2022-03-18T00:33:12Z | 2022-03-18T01:08:17Z |
BUG: Fixed Unicode decoding error in `Period.strftime` when a locale-specific directive is used | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 301e7804ddbd8..9b3b3df9cbd0c 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -42,18 +42,26 @@ jobs:
- name: "Minimum Versions"
env_file: actions-38-minimum_versions.yaml
pa... | - [x] closes #46319 , closes #46468
- [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/46405 | 2022-03-17T13:57:38Z | 2022-09-08T15:19:54Z | 2022-09-08T15:19:54Z | 2022-10-13T16:59:51Z |
REGR: DataFrame.replace when the replacement value was explicitly None | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 3523f691cae8f..4cbb8118055af 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed memory performance regression in :meth:`Series.fillna` when called on a :class:`Da... | - [ ] closes #45601
- [ ] closes #45836
- [ ] [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.htm... | https://api.github.com/repos/pandas-dev/pandas/pulls/46404 | 2022-03-17T13:33:13Z | 2022-03-19T18:26:22Z | 2022-03-19T18:26:21Z | 2022-03-21T00:58:48Z |
Revert " BUG: RecursionError when attempting to replace np.nan values (#45725)" | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 69f66973d0954..cdf2c47ad3f60 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -568,7 +568,6 @@ def replace(
# go through replace_list
values = self.values
- value = self.... | Reverts pandas-dev/pandas#45749
see https://github.com/pandas-dev/pandas/pull/45749#issuecomment-1070837621 | https://api.github.com/repos/pandas-dev/pandas/pulls/46403 | 2022-03-17T12:01:12Z | 2022-03-17T23:02:43Z | 2022-03-17T23:02:43Z | 2022-03-18T09:44:31Z |
CI: Use shared dependency file for ARM | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a16492b022264..612552f4eac59 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -8,7 +8,7 @@ jobs:
environment:
ENV_FILE: ci/deps/circle-38-arm64.yaml
PYTEST_WORKERS: auto
- PATTERN: "not slow and not network and not ... | - [ ] [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/46401 | 2022-03-17T04:14:11Z | 2022-03-18T00:30:25Z | 2022-03-18T00:30:25Z | 2022-03-30T10:46:05Z |
REF/PERF: ArrowStringArray.__setitem__ | diff --git a/asv_bench/benchmarks/array.py b/asv_bench/benchmarks/array.py
index 103df0fd94847..b58200911749e 100644
--- a/asv_bench/benchmarks/array.py
+++ b/asv_bench/benchmarks/array.py
@@ -2,6 +2,8 @@
import pandas as pd
+from .pandas_vb_common import tm
+
class BooleanArray:
def setup(self):
@@ -39,3 ... | - [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/46400 | 2022-03-17T03:49:06Z | 2022-03-18T16:17:07Z | 2022-03-18T16:17:07Z | 2022-03-20T23:18:48Z |
REF: separate out _get_dst_hours | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index 111d16c27fb3f..1a1aa6dfec5a0 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -115,21 +115,19 @@ timedelta-like}
localized : ndarray[int64_t]
"""
cdef:
- in... | There's a lot going on in tz_localize_to_utc, trying to split it into more tightly-scoped pieces. Future goals are a) identifying nano-specific pieces and b) getting rid of python-space numpy calls. | https://api.github.com/repos/pandas-dev/pandas/pulls/46399 | 2022-03-17T01:37:37Z | 2022-03-17T23:02:14Z | 2022-03-17T23:02:14Z | 2022-03-17T23:06:53Z |
REF: Localizer class to de-duplicate tzconversion code | diff --git a/pandas/_libs/tslibs/vectorized.pyx b/pandas/_libs/tslibs/vectorized.pyx
index 34b9e88e046e9..5829bf5492ef8 100644
--- a/pandas/_libs/tslibs/vectorized.pyx
+++ b/pandas/_libs/tslibs/vectorized.pyx
@@ -32,10 +32,7 @@ from .np_datetime cimport (
)
from .offsets cimport BaseOffset
from .period cimport get_p... | Second attempt at #46246. Perf impact isn't _as_ bad, but is still ugly, see asvs posted below.
The lines:
```
if info.use_utc:
local_val = stamps[i]
elif info.use_tzlocal:
local_val = tz_convert_utc_to_tzlocal(stamps[i], tz)
elif info.use_fixed:
... | https://api.github.com/repos/pandas-dev/pandas/pulls/46397 | 2022-03-16T21:34:43Z | 2022-04-18T22:31:06Z | 2022-04-18T22:31:06Z | 2022-04-18T23:33:59Z |
TYP/CI: Fix failing clipboard typing | diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index 2ebe03f5f298c..6a39b20869497 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -94,7 +94,8 @@ class PyperclipException(RuntimeError):
class PyperclipWindowsException(PyperclipException):
def ... | - [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/46395 | 2022-03-16T15:22:45Z | 2022-03-16T18:12:45Z | 2022-03-16T18:12:45Z | 2022-03-16T20:12:31Z |
CI: Use conda-forge PyPy | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index b86dcea59edb8..35c40f2a4aa54 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -155,24 +155,11 @@ jobs:
channel-priority: flexible
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: t... | - [ ] 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/46394 | 2022-03-16T14:28:37Z | 2022-05-16T22:06:00Z | 2022-05-16T22:06:00Z | 2022-05-17T09:17:11Z |
REGR: only convert at end for Block.replace_list | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 2ff195fa8e5d2..0dda83f4e9c3f 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -555,6 +555,8 @@ def replace(
to_replace,
value,
inplace: bool = False,
+ # conversion... | In Block.replace_list there is some logic to only convert at the end.
before #40082 the convert parameter of Block._replace_regex was honored, but #40082 changed it not convert. This caused a regression, #44864 and was then changed to always convert in #44897. In this PR, we restore the original behavior and honor t... | https://api.github.com/repos/pandas-dev/pandas/pulls/46393 | 2022-03-16T11:22:14Z | 2022-07-26T18:26:26Z | null | 2022-07-26T18:26:26Z |
Added the round( ) function to avoid error while multiplication of float numbers issue: #46362 | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 06f1f406c3816..b1d44b1388fdc 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -30,7 +30,7 @@ Bug fixes
~~~~~~~~~
- Fix some cases for subclasses that define their ``_constructor`` properties as genera... | - Added round( ) function to round the values and then convert it to int type while they are passed into the list-out, so that we can avoid conversations of int(28.999999999999996) to 28.
- if we round the value first it will be converted into 29 and then formating them to int type.
- ✅ closes #46362
- ✅ [Tests add... | https://api.github.com/repos/pandas-dev/pandas/pulls/46388 | 2022-03-16T07:36:25Z | 2022-05-24T21:01:59Z | null | 2022-05-24T21:01:59Z |
TST: skip -> xfail | diff --git a/pandas/tests/frame/methods/test_between_time.py b/pandas/tests/frame/methods/test_between_time.py
index d8a742c644e9e..eb5cfbc2bfbe8 100644
--- a/pandas/tests/frame/methods/test_between_time.py
+++ b/pandas/tests/frame/methods/test_between_time.py
@@ -18,7 +18,7 @@
class TestBetweenTime:
- @td.skip... | - [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/46387 | 2022-03-16T03:04:26Z | 2022-03-17T23:01:26Z | 2022-03-17T23:01:26Z | 2022-03-18T00:31:45Z |
CI: Test Pyarrow Less | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index bc8791afc69f7..9ad80ea96de31 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -26,9 +26,6 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
pattern: ["not sing... | - [ ] 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/46386 | 2022-03-16T02:12:42Z | 2022-05-02T17:47:09Z | null | 2022-05-02T17:47:13Z |
Parse start/end only if Index of type Datetime | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 37fee7058f902..6016c13cce1e3 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -6663,7 +6663,8 @@ def slice_locs(
# GH 16785: If start and end happen to be date strings with UTC offsets
# attempt... | Many of the existing tests are already failing if compiling with [sanitizers](https://github.com/google/sanitizers):
> runtime error: signed integer overflow: 253370764800000000 * 1000 cannot be represented in type 'long'
One pretty common use case when this happens, is when using a `TimedeltaIndex`, and passing a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46385 | 2022-03-16T01:45:06Z | 2022-04-25T09:29:01Z | null | 2022-04-25T09:29:01Z |
Bug gb cummax | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 8dac952874f89..b18d5aaac6539 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -454,6 +454,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupby.cumsum` with ``skipna=False`` giving incorrect r... | - [ ] 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/46382 | 2022-03-15T23:36:00Z | 2022-03-16T02:01:52Z | 2022-03-16T02:01:52Z | 2022-03-16T20:51:15Z |
Backport PR #46354 on branch 1.4.x (DOC: minor fixes to 1.4.2 release notes) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 06f1f406c3816..3523f691cae8f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -18,8 +18,8 @@ Fixed regressions
- Fixed regression in :func:`read_csv` killing python process when invalid file input was ... | Backport PR #46354: DOC: minor fixes to 1.4.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/46380 | 2022-03-15T23:12:06Z | 2022-03-16T01:41:45Z | 2022-03-16T01:41:45Z | 2022-03-16T01:41:45Z |
BUG: Nullable _get_common_dtype match non-nullable behavior | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 610592bb3ce1f..ed0cfe0408ba9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -462,6 +462,7 @@ Reshaping
- Bug in :func:`concat` between a :class:`Series` with integer dtype and another with :class:`Ca... | - [ ] 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/46379 | 2022-03-15T22:50:16Z | 2022-03-17T02:03:31Z | 2022-03-17T02:03:31Z | 2022-03-17T03:21:33Z |
REF: disallow ints from delta_to_nanoseconds | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 8eaf86b3d193f..f8f8a6f81d801 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -173,11 +173,11 @@ cpdef int64_t delta_to_nanoseconds(delta) except? -1:
if is_tick_object(delta):
... | chipping away at non-nano roadblocks | https://api.github.com/repos/pandas-dev/pandas/pulls/46378 | 2022-03-15T22:42:16Z | 2022-03-16T00:45:40Z | 2022-03-16T00:45:40Z | 2022-03-16T01:01:44Z |
BUG:error in reading a boolean column with blanks from excel file #45903 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 358d9447b131d..6bb86a90e487a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -569,6 +569,7 @@ I/O
- Bug in Parquet roundtrip for Interval dtype with ``datetime64[ns]`` subtype (:issue:`45881`)
- Bug ... | - [x] closes #45903
- [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/46374 | 2022-03-15T13:37:10Z | 2022-06-10T21:37:22Z | null | 2022-06-10T21:37:22Z |
TST: Fix warnings & skip -> xfail | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1b0ae40949d5b..86cf0c79759f5 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -45,7 +45,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
. ~/virtualenvs/pandas-dev/bin/activate && \
pyth... | - [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/46370 | 2022-03-15T04:59:23Z | 2022-03-16T00:38:30Z | 2022-03-16T00:38:30Z | 2022-03-30T10:50:57Z |
DOC: Add docs about using numba with parallel | diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst
index 0e948504051c6..1a1229f95523b 100644
--- a/doc/source/user_guide/enhancingperf.rst
+++ b/doc/source/user_guide/enhancingperf.rst
@@ -350,6 +350,28 @@ a larger amount of data points (e.g. 1+ million).
In [6]: %timeit ... | - [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/46368 | 2022-03-15T03:28:34Z | 2022-03-15T22:17:39Z | 2022-03-15T22:17:39Z | 2022-03-16T00:31:40Z |
BUG: Fix remaining 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 14e9fda1b910c..42cd34c94b069 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -83,32 +83,44 @@ did not have the same index as the input.
.. code-block:: ipython
- In [3]: df.groupby('a', dropna=... | - [x] closes #17093 (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/46367 | 2022-03-15T03:27:34Z | 2022-03-22T23:25:02Z | 2022-03-22T23:25:01Z | 2023-07-15T11:02:53Z |
Fixed `Period` and `PeriodIndex` formatting | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 089ba62e461d1..2536a9994399c 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -434,6 +434,7 @@ I/O
Period
^^^^^^
- Bug in subtraction of :class:`Period` from :class:`PeriodArray` returning wrong resu... | - [x] closes #46252
- [x] Improved docstring for `PeriodIndex.strftime` and `Period.strftime`
- [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/46361 | 2022-03-14T15:04:34Z | 2022-03-18T00:34:24Z | 2022-03-18T00:34:23Z | 2022-03-18T10:56:31Z |
CI: Debug Windows stack overflow | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index e6dc98179b7d6..1b0ae40949d5b 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -45,7 +45,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
. ~/virtualenvs/pandas-dev/bin/activate && \
pyth... | ```
Thread 0x0000142c (most recent call first):
File "C:\Miniconda\en.vs\pandas-dev\lib\site-packages\execnet\gateway_base.py", line 400 in read
File "C:\Miniconda\envs\pandas-dev\lib\site-packages\execnet\gateway_base.py", line 432 in from_io
File "C:\Miniconda\envs\pandas-dev\lib\site-packages\execnet\gatew... | https://api.github.com/repos/pandas-dev/pandas/pulls/46358 | 2022-03-13T18:16:00Z | 2022-03-15T19:43:34Z | 2022-03-15T19:43:34Z | 2022-03-29T12:23:41Z |
ENH: consistency of input args for boundaries - pd.interval_range | diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst
index b8df21ab5a5b4..3081c6f7c6a08 100644
--- a/doc/source/user_guide/advanced.rst
+++ b/doc/source/user_guide/advanced.rst
@@ -1082,14 +1082,14 @@ of :ref:`frequency aliases <timeseries.offset_aliases>` with datetime-like inter
... | - [x] xref #40245
- [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/46355 | 2022-03-13T16:26:36Z | 2022-04-04T20:57:36Z | 2022-04-04T20:57:36Z | 2022-05-31T16:12:54Z |
DOC: minor fixes to 1.4.2 release notes | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 06f1f406c3816..3523f691cae8f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -18,8 +18,8 @@ Fixed regressions
- Fixed regression in :func:`read_csv` killing python process when invalid file input was ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46354 | 2022-03-13T14:30:57Z | 2022-03-15T23:11:38Z | 2022-03-15T23:11:38Z | 2022-03-16T09:06:12Z |
TST: xfail(strict=False) flaky hashtable test | diff --git a/pandas/tests/libs/test_hashtable.py b/pandas/tests/libs/test_hashtable.py
index 6af81468ef1ef..bed427da5dd12 100644
--- a/pandas/tests/libs/test_hashtable.py
+++ b/pandas/tests/libs/test_hashtable.py
@@ -246,7 +246,16 @@ def test_lookup_overflow(self, writable):
(ht.Float64HashTable, ht.Float6... | - [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).
Example: https://app.cir... | https://api.github.com/repos/pandas-dev/pandas/pulls/46350 | 2022-03-12T22:56:27Z | 2022-03-15T22:39:08Z | 2022-03-15T22:39:08Z | 2022-03-16T00:31:54Z |
PERF: Index[StringArray] | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index b5432f0d1346c..f3db5598e306c 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -42,10 +42,10 @@
ExtensionArray,
FloatingArray,
IntegerArray,
- PandasArray,
)
from pandas.core.arrays.float... | - [x] closes #45652 (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/46349 | 2022-03-12T22:32:11Z | 2022-03-15T23:40:38Z | 2022-03-15T23:40:38Z | 2022-03-15T23:41:17Z |
Series.map Performance Improvement When Using Dictionaries | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 74e119a42c974..7a1836a89fb10 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -69,7 +69,6 @@
from pandas.core.arraylike import OpsMixin
from pandas.core.arrays import ExtensionArray
from pandas.core.construction import (
- create_series_wit... | - [x] closes #46248
- [ ] [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/46348 | 2022-03-12T22:05:25Z | 2022-05-07T02:59:46Z | null | 2022-05-07T02:59:46Z |
Fix snappy version | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 8f333c72f002c..37e7ea04a348a 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -42,10 +42,10 @@ dependencies:
- pytables
- pyarrow
- pyreadstat
+ - python-snappy
- pyxlsb
- s3fs
- scipy
- - snappy
- sqlal... | Fix for https://github.com/pandas-dev/pandas/pull/46260
- [ ] 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://api.github.com/repos/pandas-dev/pandas/pulls/46347 | 2022-03-12T21:28:08Z | 2022-03-15T22:39:43Z | 2022-03-15T22:39:43Z | 2022-03-30T10:47:12Z |
Refactor CI code | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 612552f4eac59..0d9e3ade08846 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -13,7 +13,7 @@ jobs:
PANDAS_CI: "1"
steps:
- checkout
- - run: ci/setup_env.sh
+ - run: .circleci/setup_env.sh
- run: PATH=... | I know this is a lot of changes. Happy to split into multiple PRs if it is too much to review.
Side effect of the changes is that most jobs are ~ 10 minutes faster.
- Drop Azure (move to GHA).
- Use mamba-org/provision-with-micromamba to set up Conda envs.
- Cache Conda envs.
- Use hendrikmuhs/ccache-action to... | https://api.github.com/repos/pandas-dev/pandas/pulls/46346 | 2022-03-12T20:11:26Z | 2022-04-05T07:09:58Z | null | 2022-04-05T07:09:58Z |
TST: Avoid stack overflow on Windows CI with recursion test | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index bf13e6b7b4629..15f6e82419049 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -17,6 +17,7 @@
import itertools
from numbers import Number
import re
+import sys
import nu... | - [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).
Trying to avoid this out... | https://api.github.com/repos/pandas-dev/pandas/pulls/46345 | 2022-03-12T19:01:38Z | 2022-03-13T00:20:47Z | 2022-03-13T00:20:47Z | 2022-03-13T00:20:50Z |
WIP provision-with-micromamba | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index a16492b022264..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | - Docstring validation: 5 min (hot cache)
- ASV benchmark: 5 min (hot cache)
-
- [ ] 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/46344 | 2022-03-12T18:50:31Z | 2022-03-12T20:03:17Z | null | 2022-03-12T20:03:17Z |
TYP: Add typing for pd.to_timedelta, fix Timedelta operator return types | diff --git a/pandas/_libs/tslibs/timedeltas.pyi b/pandas/_libs/tslibs/timedeltas.pyi
index 9377261979be4..28c2f7db62158 100644
--- a/pandas/_libs/tslibs/timedeltas.pyi
+++ b/pandas/_libs/tslibs/timedeltas.pyi
@@ -1,19 +1,65 @@
from datetime import timedelta
from typing import (
ClassVar,
+ Literal,
Type,... | Add typing for pd.to_timedelta
Change operators on `Timedelta` to return `Timedelta` rather than `timedelta`
| https://api.github.com/repos/pandas-dev/pandas/pulls/46343 | 2022-03-12T18:43:38Z | 2022-03-16T01:07:03Z | 2022-03-16T01:07:03Z | 2023-02-13T21:02:37Z |
Bug fix - groupby sum removed columns | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 3d857e4f3e4e7..7af394e744f1a 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2179,6 +2179,14 @@ def sum(
npfunc=np.sum,
)
+ if isinstance(result, Dat... | - [x] closes #44132
- [ ] [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/46342 | 2022-03-12T16:20:35Z | 2022-03-19T10:13:57Z | null | 2022-03-19T10:13:57Z |
PERF: use bisect_right_i8 in vectorized | diff --git a/pandas/_libs/tslibs/vectorized.pyx b/pandas/_libs/tslibs/vectorized.pyx
index bc254b6c5a5cf..0704edb3c5724 100644
--- a/pandas/_libs/tslibs/vectorized.pyx
+++ b/pandas/_libs/tslibs/vectorized.pyx
@@ -9,12 +9,15 @@ from cpython.datetime cimport (
import numpy as np
+cimport numpy as cnp
from numpy cim... | - [ ] 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/46341 | 2022-03-12T16:15:36Z | 2022-03-15T22:40:02Z | 2022-03-15T22:40:02Z | 2022-03-15T23:40:34Z |
Backport PR #46335 on branch 1.4.x (BUG: replace with value also being replaced) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 2bdbeb0ab6991..06f1f406c3816 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` killing python process when invalid file input was ... | Backport PR #46335: BUG: replace with value also being replaced | https://api.github.com/repos/pandas-dev/pandas/pulls/46340 | 2022-03-12T15:11:50Z | 2022-03-12T16:38:55Z | 2022-03-12T16:38:55Z | 2022-03-12T16:38:55Z |
REF: de-duplicate hard-coded unit code | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 5c852e85efdc0..063b95953bd91 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -243,7 +243,7 @@ def array_with_unit_to_datetime(
)
return result, tz
- m, p = precision_from_unit(unit)
+ m, _ = precision_fr... | I had hoped to go further and get rid of one of the dtypes.pyx/pxd classes entirely, but ATM i dont think thats feasible. | https://api.github.com/repos/pandas-dev/pandas/pulls/46338 | 2022-03-12T03:38:14Z | 2022-03-16T00:36:18Z | 2022-03-16T00:36:18Z | 2022-03-16T01:22:12Z |
BUG: replace with value also being replaced | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 2bdbeb0ab6991..06f1f406c3816 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` killing python process when invalid file input was ... | - [x] closes #46306
- [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/46335 | 2022-03-12T00:15:53Z | 2022-03-12T15:11:05Z | 2022-03-12T15:11:05Z | 2022-03-20T23:18:58Z |
Backport PR #46322 on branch 1.4.x (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... | Backport PR #46322: Regression in loc.setitem losing mi names when df is empty | https://api.github.com/repos/pandas-dev/pandas/pulls/46334 | 2022-03-11T23:45:18Z | 2022-03-12T03:15:35Z | 2022-03-12T03:15:34Z | 2022-03-12T03:15:35Z |
Backport PR #46325 on branch 1.4.x (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... | Backport PR #46325: Regression in read csv causing segfault for invalid file input | https://api.github.com/repos/pandas-dev/pandas/pulls/46333 | 2022-03-11T23:44:53Z | 2022-03-12T03:15:42Z | 2022-03-12T03:15:42Z | 2022-03-12T03:15:43Z |
REF/PERF: MultiIndex.get_locs to use boolean arrays internally | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 089ba62e461d1..b2bf596dd8dd4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -310,7 +310,7 @@ Performance improvements
- Performance improvement in :meth:`.GroupBy.diff` (:issue:`16706`)
- Performanc... | - [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/46330 | 2022-03-11T20:59:28Z | 2022-03-18T01:52:13Z | 2022-03-18T01:52:13Z | 2022-03-20T23:18:48Z |
PERF: faster searchsorted in tzconversion | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 7ea3c85fe9ddb..7dce3cad9d339 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -69,6 +69,7 @@ from pandas._libs.tslibs.nattype cimport (
checknull_with_nat,
)
from pandas._libs.tsl... | ```
ts = pd.Timestamp(0)
ts2 = ts.tz_localize("US/Pacific")
%timeit ts.tz_localize("US/Pacific")
35.1 µs ± 385 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- main
16.8 µs ± 312 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <- PR
%timeit ts2.tz_localize(None)
5.1 µs ± 54.5 n... | https://api.github.com/repos/pandas-dev/pandas/pulls/46329 | 2022-03-11T19:34:19Z | 2022-03-11T23:41:01Z | 2022-03-11T23:41:01Z | 2022-03-12T00:35:52Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.