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 |
|---|---|---|---|---|---|---|---|
PERF: assert_frame_equal | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 5d3babfb1c7be..dbc26d6e61d01 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -22,7 +22,10 @@
is_numeric_dtype,
needs_i8_conversion,
)
-from pandas.core.dtypes.dtypes import PandasDtype
+from pandas.... | ```
pytest pandas/tests/frame/methods/test_to_csv.py::TestDataFrameToCSV::test_to_csv_wide_frame_formatting
```
cut from 17.56s to 10.58s | https://api.github.com/repos/pandas-dev/pandas/pulls/44695 | 2021-11-30T21:32:59Z | 2021-12-01T01:03:02Z | 2021-12-01T01:03:02Z | 2021-12-01T02:23:21Z |
TST: read_csv raisin error with string dtype and parse dates | diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py
index 1cfc86899f1e7..8c3976ae2189b 100644
--- a/pandas/tests/io/parser/test_parse_dates.py
+++ b/pandas/tests/io/parser/test_parse_dates.py
@@ -1960,3 +1960,16 @@ def test_replace_nans_before_parsing_dates(all_parsers):... | - [x] closes #34066
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44694 | 2021-11-30T20:44:53Z | 2021-12-03T23:16:28Z | 2021-12-03T23:16:28Z | 2021-12-15T10:38:18Z |
API: value_counts consistently return int64 dtype | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index 95363e598a06c..146e6fcf89755 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -905,7 +905,6 @@ def value_counts(self, dropna: bool = True) -> Series:
Index,
Series,
)
- ... | - [x] closes #44679
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44692 | 2021-11-30T19:38:02Z | 2022-11-23T18:56:31Z | null | 2022-11-23T18:56:38Z |
REF: simplify Block.where (and subtle alignment bug) | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 3654f77825ab4..fed2b401f5514 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1139,17 +1139,11 @@ def shift(self, periods: int, axis: int = 0, fill_value: Any = None) -> list[Blo
# convert... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
The alignment is not user-facing AFAICT, but comes up when trying to address #44597. | https://api.github.com/repos/pandas-dev/pandas/pulls/44691 | 2021-11-30T19:35:59Z | 2021-12-01T23:03:35Z | 2021-12-01T23:03:34Z | 2021-12-02T00:01:44Z |
ENH: Add indexing syntax to GroupBy.nth() | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 4a4e7dd6d15d7..3294e701cb1ef 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -164,6 +164,14 @@ Previously, negative arguments returned empty frames.
df.groupby("A").nth(slice(1, -1))
df.group... | - [x] closes #44589
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Add index notation to nth for lists of integers and slices | https://api.github.com/repos/pandas-dev/pandas/pulls/44688 | 2021-11-30T09:33:26Z | 2021-12-04T23:50:13Z | 2021-12-04T23:50:13Z | 2021-12-07T14:06:31Z |
test dtype | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 14f6557fbc31e..c211d55084f6f 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -20,6 +20,7 @@
import pandas as pd
import pandas._testing as tm
+from pandas.api.types import pandas_dty... | - #43038 closes #xxxx
- 2 tests added / passed
- [ Yes] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44686 | 2021-11-30T06:16:39Z | 2021-11-30T12:34:50Z | null | 2021-11-30T15:11:39Z |
TST: fix Nullable xfails | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index bcebe3ab024ba..9cca709552439 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -627,6 +627,7 @@ Numeric
- Bug in :class:`DataFrame` arithmetic ops with a subclass whose :meth:`_constructor` attribute is... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44685 | 2021-11-30T05:32:17Z | 2021-12-01T23:03:00Z | 2021-12-01T23:03:00Z | 2021-12-02T00:00:48Z |
CLN: TODOs and FIXMEs | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 98055c01d6ab0..39582a94dbdf9 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -928,7 +928,8 @@ cdef class Tick(SingleConstructorOffset):
if util.is_timedelta64_object(other) or PyDelta_Chec... | Fixes test_invalid_colormap which is failing locally AFAICT the available colors in matplotlib changed so the old exception message isn't quite right. | https://api.github.com/repos/pandas-dev/pandas/pulls/44683 | 2021-11-30T03:24:51Z | 2021-11-30T22:13:17Z | 2021-11-30T22:13:17Z | 2021-11-30T22:16:41Z |
CI: Try to not auto-cancel on master | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 23e452f682b60..dbce7c02a9b0f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,8 +23,9 @@ jobs:
shell: bash -l {0}
concurrency:
- group: ${{ github.ref }}-checks
- cancel-in-progress: ${{github.eve... | - [ ] closes #42076
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Seems to work. Let's try this again. | https://api.github.com/repos/pandas-dev/pandas/pulls/44682 | 2021-11-30T02:17:49Z | 2021-12-01T23:02:04Z | 2021-12-01T23:02:04Z | 2021-12-03T16:58:06Z |
REF: hold PeriodArray in NDArrayBackedExtensionBlock | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 72cc28c1dd66d..b5be0263c492a 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -1408,11 +1408,12 @@ def is_1d_only_ea_obj(obj: Any) -> bool:
from pandas.core.arrays import (
DatetimeArray,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
After this, Categorical will be the only NDArrayBackedExtensionArray not held in NDarr... | https://api.github.com/repos/pandas-dev/pandas/pulls/44681 | 2021-11-30T02:10:05Z | 2021-12-14T01:40:12Z | 2021-12-14T01:40:12Z | 2022-01-18T18:19:53Z |
44414 data frame attributes not propagating with astype | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 2249790b7ff1b..fd87a85f378d0 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -652,7 +652,7 @@ Conversion
- Bug in :class:`IntegerDtype` not allowing coercion from string dtype (:issue:`25472`)
- Bug ... | - [x] closes #44414
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44680 | 2021-11-30T00:59:37Z | 2021-12-05T22:25:03Z | 2021-12-05T22:25:03Z | 2021-12-05T22:25:51Z |
Type read_fwf | diff --git a/pandas/io/parsers/python_parser.py b/pandas/io/parsers/python_parser.py
index 27d0944572024..b493c4f12fb31 100644
--- a/pandas/io/parsers/python_parser.py
+++ b/pandas/io/parsers/python_parser.py
@@ -9,9 +9,11 @@
import re
import sys
from typing import (
+ IO,
DefaultDict,
Hashable,
It... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44678 | 2021-11-29T23:56:21Z | 2021-12-01T23:01:36Z | 2021-12-01T23:01:36Z | 2021-12-01T23:11:24Z |
Typ parts of c parser | diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py
index b769383281880..76e3bd9825956 100644
--- a/pandas/io/parsers/base_parser.py
+++ b/pandas/io/parsers/base_parser.py
@@ -12,8 +12,10 @@
DefaultDict,
Hashable,
Iterable,
+ List,
Mapping,
Sequence,
+ Tuple,
... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44677 | 2021-11-29T22:20:10Z | 2021-12-22T02:40:12Z | 2021-12-22T02:40:12Z | 2021-12-22T09:09:28Z |
CLN: helper attribute to check for ArrayManager | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 87569eb0f48cd..18b9f32eb5b19 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -866,7 +866,7 @@ def _is_homogeneous_type(self) -> bool:
... "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
False
"""
- ... | xref https://github.com/pandas-dev/pandas/pull/41878#discussion_r758514585 | https://api.github.com/repos/pandas-dev/pandas/pulls/44676 | 2021-11-29T21:50:20Z | 2023-02-22T13:56:43Z | null | 2023-02-22T13:56:44Z |
TST: fixturize test_eval | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 64cf896b84b36..e872ce5666992 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -1066,20 +1066,12 @@ def test_performance_warning_for_poor_alignment(self, engine, parser):
# S... | This is it for the fixturizing. | https://api.github.com/repos/pandas-dev/pandas/pulls/44675 | 2021-11-29T20:40:42Z | 2021-11-30T16:35:40Z | 2021-11-30T16:35:40Z | 2021-11-30T16:48:58Z |
BUG: Series.__rfloordiv__ with list/tuple | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index bcebe3ab024ba..16cd07426c2ed 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -621,6 +621,7 @@ Timezones
Numeric
^^^^^^^
+- Bug in floor-dividing a list or tuple of integers by a :class:`Series` inc... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44674 | 2021-11-29T20:04:41Z | 2021-12-01T00:45:40Z | 2021-12-01T00:45:40Z | 2021-12-01T02:21:24Z |
Test for dtype comparison | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 14f6557fbc31e..a88269687dedf 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -20,6 +20,7 @@
import pandas as pd
import pandas._testing as tm
+from pandas.api.types import pandas_dty... | - [43038 ] closes #xxxx
- [2] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44673 | 2021-11-29T20:00:43Z | 2021-11-29T20:18:25Z | null | 2021-11-29T20:18:25Z |
Deprecate mapper argument in rename | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 803d1c914c954..c5d50558b595d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5192,7 +5192,7 @@ def rename(
2 2 5
4 3 6
"""
- return super().rename(
+ return super()._rename(
mapper=m... | - [x] supposed fix #44627
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44672 | 2021-11-29T14:30:11Z | 2021-12-05T01:03:24Z | 2021-12-05T01:03:23Z | 2021-12-05T01:03:27Z |
BUG: Fix setitem with 1d matrix | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index 5e05bda331bb2..c53707610db37 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -22,6 +22,8 @@ Fixed regressions
- Fixed regression in :meth:`Series.duplicated` and :meth:`Series.drop_duplicates` when Se... | - [x] closes #42376
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Fixes the case `df["mean"] = sparse.random(100, 10).mean(axis=1)` assigning a broken ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44669 | 2021-11-29T10:34:40Z | 2021-12-14T01:36:54Z | 2021-12-14T01:36:54Z | 2021-12-14T10:20:55Z |
ASV: remove duplicated SelectDtypes benchmark | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index e4c4122f9ff43..e83b212a4783b 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -731,17 +731,6 @@ def time_dataframe_describe(self):
self.df.describe()
-class Sele... | https://github.com/pandas-dev/pandas/pull/36839 added an extensive benchmark class for `select_dtypes` (`dtypes.py::SelectDtypes`), but we actually already had a benchmark in `frame_methods.py`. Now, the new ones are more extensive, testing multiple dtypes and both include/exclude, instead of only including int, so I t... | https://api.github.com/repos/pandas-dev/pandas/pulls/44668 | 2021-11-29T07:51:17Z | 2021-11-29T14:47:28Z | 2021-11-29T14:47:28Z | 2021-11-29T14:48:39Z |
ASV: time_reindex_both_axes to reindex existing columns | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index e4c4122f9ff43..a6e84e377aacf 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -76,7 +76,7 @@ def time_reindex_axis1_missing(self):
self.df.reindex(columns=self.idx)
... | As a follow-up on https://github.com/pandas-dev/pandas/pull/40247: in that PR I added a separate benchmark case (`time_reindex_axis1_missing`) to explicitly test the case of reindexing non-existing columns. But I forgot to use the column-specific indexer (with existing columns) in the case of reindexing both rows and c... | https://api.github.com/repos/pandas-dev/pandas/pulls/44667 | 2021-11-29T07:44:47Z | 2021-11-29T14:47:50Z | 2021-11-29T14:47:50Z | 2021-11-29T14:48:33Z |
PERF: passthrough mask to take_1d if already known | diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py
index c9d6640101a8b..c4b8f833f4ad3 100644
--- a/pandas/core/array_algos/take.py
+++ b/pandas/core/array_algos/take.py
@@ -166,6 +166,7 @@ def take_1d(
indexer: npt.NDArray[np.intp],
fill_value=None,
allow_fill: bool = True,
+ ... | In `take_1d` (if `allow_fill=True`), the mask gets calculated based one `indexer == -1`. But in the cases where this function is used, we either actually already calculated this mask in advance, or can calculate it once instead of multiple times again in `take_1d` (repeated calls with the same mask), which improves the... | https://api.github.com/repos/pandas-dev/pandas/pulls/44666 | 2021-11-29T07:40:44Z | 2021-12-03T13:18:03Z | 2021-12-03T13:18:03Z | 2021-12-06T08:19:18Z |
Revert "TST: de-xfail" | diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py
index 6402a08ca54a2..0161acd8b52cf 100644
--- a/pandas/tests/frame/test_reductions.py
+++ b/pandas/tests/frame/test_reductions.py
@@ -93,9 +93,11 @@ def wrapper(x):
tm.assert_series_equal(
result0, frame.app... | Reverts pandas-dev/pandas#44659
The test_warn_if_chunks_have_mismatched_type one is already failing on other builds. | https://api.github.com/repos/pandas-dev/pandas/pulls/44665 | 2021-11-29T03:59:56Z | 2021-11-29T12:09:52Z | 2021-11-29T12:09:52Z | 2021-11-29T12:10:31Z |
TYP: changed variable cat_array to cat_array_list in dtypes.py and arr_list in categorical.py | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 4c6a32ff1ba4e..16fcf6daf5aef 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -421,13 +421,8 @@ def __init__(
if null_mask.any():
# We remove null value... | xref #37715
My apologies, I pushed hastily on my previous branch assign_err and did not check the diff of the files i was pushing. I accidentally pulled when i should have merged and I pushed a bunch of other peoples commits. These are my previous changes. | https://api.github.com/repos/pandas-dev/pandas/pulls/44664 | 2021-11-29T03:50:38Z | 2021-12-03T00:15:02Z | 2021-12-03T00:15:02Z | 2022-01-05T18:43:34Z |
TST/REF: fixturize TestEval | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index c35cdd39fcaf7..64cf896b84b36 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -53,11 +53,14 @@
params=(
pytest.param(
engine,
- marks=py... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44663 | 2021-11-29T03:38:40Z | 2021-11-29T20:31:26Z | 2021-11-29T20:31:26Z | 2021-11-29T20:36:08Z |
COMPAT: Fix FutureWarning in tests with pyarrow 6.0.0 | diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
index 270cb402483bf..c91356bad12f7 100644
--- a/pandas/tests/io/test_parquet.py
+++ b/pandas/tests/io/test_parquet.py
@@ -17,6 +17,7 @@
from pandas.compat.pyarrow import (
pa_version_under2p0,
pa_version_under5p0,
+ pa_version_... | ``FutureWarning: Parquet format '2.0' pseudo version is deprecated, use '2.4' or '2.6' for fine-grained feature selection``
This was the warning.
Judging from the comment and https://github.com/apache/parquet-format/blob/master/CHANGES.md, the correct version should be 2.6.0 since that's when https://issues.apach... | https://api.github.com/repos/pandas-dev/pandas/pulls/44662 | 2021-11-29T02:05:49Z | 2021-11-29T08:05:03Z | 2021-11-29T08:05:03Z | 2021-11-29T14:39:59Z |
TST: de-duplicate test_eval | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 4ff4cb69d25ac..c35cdd39fcaf7 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -147,9 +147,6 @@ def lhs(request):
@td.skip_if_no_ne
class TestEvalNumexprPandas:
- exclu... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44661 | 2021-11-28T23:42:50Z | 2021-11-29T03:08:17Z | 2021-11-29T03:08:17Z | 2021-11-29T03:26:19Z |
ENH: pd.Series.shift and .diff to accept a collection of numbers | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index bcebe3ab024ba..0556ed754af82 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -186,6 +186,38 @@ representation of :class:`DataFrame` objects (:issue:`4889`).
df
df.to_dict(orient='tight')
+.... | - [x] closes #44424
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44660 | 2021-11-28T22:58:22Z | 2022-01-16T19:10:41Z | null | 2023-07-13T12:10:06Z |
TST: de-xfail | diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py
index 0161acd8b52cf..6402a08ca54a2 100644
--- a/pandas/tests/frame/test_reductions.py
+++ b/pandas/tests/frame/test_reductions.py
@@ -93,11 +93,9 @@ def wrapper(x):
tm.assert_series_equal(
result0, frame.app... | Benign-loooking parts broken off from #44429. | https://api.github.com/repos/pandas-dev/pandas/pulls/44659 | 2021-11-28T22:08:55Z | 2021-11-29T03:09:40Z | 2021-11-29T03:09:40Z | 2021-11-29T03:55:31Z |
BUG: groupby.sum with timedelta64 and NaT | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index dabd9a650f45b..048cd978c4478 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in creating a :class:`DataFrame` from a timezone-aware :class:`Timestam... | - [x] closes #42659
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44658 | 2021-11-28T21:59:22Z | 2021-11-29T14:49:23Z | 2021-11-29T14:49:23Z | 2021-12-04T14:15:48Z |
Stop raising in read_csv when header row contains only empty cells | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 413dbb9cd0850..f026822bd9d2b 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -454,6 +454,7 @@ Other API changes
- :meth:`Index.get_indexer_for` no longer accepts keyword arguments (other than 'target'... | - [x] closes #13054
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
If ok with the change in general, I would suggest deprecating and changing in 2.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/44657 | 2021-11-28T21:35:45Z | 2021-12-19T23:36:28Z | 2021-12-19T23:36:28Z | 2021-12-20T22:46:39Z |
BUG: fix .loc.__setitem__ not raising when using too many indexers | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 0f5b4a16d2f01..b4ed782d58890 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -264,6 +264,7 @@ Indexing
- Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single... | - [x] closes #13831
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44656 | 2021-11-28T20:56:00Z | 2022-01-30T23:58:55Z | 2022-01-30T23:58:55Z | 2022-01-30T23:59:07Z |
REF: nanpercentile -> array_algos.quantile | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index 261d19ade080f..64cd43a3e77cb 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -2,18 +2,19 @@
import numpy as np
+from pandas._libs import lib
from pandas._typing import (
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44655 | 2021-11-28T20:00:14Z | 2021-12-23T16:07:58Z | 2021-12-23T16:07:58Z | 2021-12-23T16:07:58Z |
BUG: read_csv raising error for python engine when names longer than header but equal to data | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 3a04b306fefdb..eb6006f6d42a5 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -665,6 +665,7 @@ I/O
- Bug in :func:`read_csv` with :code:`float_precision="round_trip"` which did not skip initial/trailin... | - [x] closes #38453
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44654 | 2021-11-28T18:55:56Z | 2021-11-28T19:49:00Z | 2021-11-28T19:48:59Z | 2021-11-28T20:01:00Z |
BUG: using .replace() on a Series containing np.nan raising ValueError when using regex=True. | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 71903d10a6983..648cef5b46103 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -822,7 +822,7 @@ Other
- Bug in :meth:`FloatingArray.equals` failing to consider two arrays equal if they contain ``np.nan`... | - [x] closes #43344
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44653 | 2021-11-28T18:23:37Z | 2021-12-01T01:33:45Z | 2021-12-01T01:33:45Z | 2021-12-01T01:33:51Z |
DOC: Clarify how to keep lines with too many fields | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index bb7be92bd993b..e21dac65c4c4c 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1306,6 +1306,20 @@ data that appear in some lines but not others:
1 4 5 6
2 8 9 10
+In case you want to keep all... | - [x] closes #17319
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44652 | 2021-11-28T11:41:57Z | 2021-11-28T19:21:41Z | 2021-11-28T19:21:41Z | 2021-11-28T20:00:14Z |
WARN: Clarify future warnings for read_csv | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index 2ca9be3ec097a..63ab10e1e5362 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -7,7 +7,10 @@
import csv
import sys
from textwrap import fill
-from typing import Any
+from typing import (
+ Any,
+ NamedT... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
In other places we emit a specific warning message what to use in the future. I find this quite helpful for the user.
| https://api.github.com/repos/pandas-dev/pandas/pulls/44651 | 2021-11-28T11:33:54Z | 2021-11-29T00:43:22Z | 2021-11-29T00:43:22Z | 2021-11-29T08:44:13Z |
CI/TST: Change id to is for flaky tests | diff --git a/pandas/tests/frame/methods/test_rename.py b/pandas/tests/frame/methods/test_rename.py
index 1581bc8a0c70b..33fb191027c27 100644
--- a/pandas/tests/frame/methods/test_rename.py
+++ b/pandas/tests/frame/methods/test_rename.py
@@ -184,14 +184,16 @@ def test_rename_inplace(self, float_frame):
assert "... | - [x] closes #44153
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
I _think_ this should be in the spirit of the intended test to make things less flaky hopefully cc @jbrockm... | https://api.github.com/repos/pandas-dev/pandas/pulls/44650 | 2021-11-28T06:10:32Z | 2021-11-28T19:22:36Z | 2021-11-28T19:22:36Z | 2021-11-28T19:24:46Z |
TST: stop skipping 1986 tests in test_eval | diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index 5c614dac2bcb9..4ff4cb69d25ac 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -13,6 +13,7 @@
from pandas.core.dtypes.common import (
is_bool,
+ is_float,
is_l... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Get 8 xfails instead. They may turn out to be easy, leaving that for another day.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/44649 | 2021-11-28T06:05:23Z | 2021-11-28T22:10:47Z | 2021-11-28T22:10:47Z | 2021-11-28T23:15:55Z |
CI/TST: Add network tests to CI | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index f37f31686ef69..23ec6df975b95 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -27,12 +27,12 @@ jobs:
settings: [
[actions-38-minimum_versions.yaml, "not slow and not network and not clipboard", ... | - [x] closes #43559
- [x] tests added / passed
No network tests were running on the CI, so adding these tests to PY38 and PY39 Linux, MacOS and Window builds
| https://api.github.com/repos/pandas-dev/pandas/pulls/44648 | 2021-11-28T02:29:32Z | 2021-11-29T20:30:44Z | 2021-11-29T20:30:44Z | 2021-11-29T20:44:23Z |
TST: skip->xfail | diff --git a/pandas/tests/arrays/masked/test_arithmetic.py b/pandas/tests/arrays/masked/test_arithmetic.py
index 57086bf92b890..fae956693093b 100644
--- a/pandas/tests/arrays/masked/test_arithmetic.py
+++ b/pandas/tests/arrays/masked/test_arithmetic.py
@@ -48,9 +48,11 @@ def test_array_scalar_like_equivalence(data, all... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44647 | 2021-11-28T02:29:09Z | 2021-11-28T19:28:31Z | 2021-11-28T19:28:31Z | 2021-11-28T19:37:05Z |
BUG: read_csv not recognizing bad lines with names given | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index e87f5f53256cf..57d8e6de5236d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -660,6 +660,8 @@ I/O
- Bug in :func:`read_json` not handling non-numpy dtypes correctly (especially ``category``) (:issue:`... | - [x] closes #22144
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44646 | 2021-11-28T02:12:43Z | 2021-11-28T19:26:12Z | 2021-11-28T19:26:11Z | 2021-11-28T20:09:42Z |
CLN: dont depend on fixture implementation details | diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py
index 60302928420d0..ac0975b97cbce 100644
--- a/pandas/tests/io/excel/test_readers.py
+++ b/pandas/tests/io/excel/test_readers.py
@@ -90,7 +90,6 @@ def _transfer_marks(engine, read_ext):
@pytest.fixture(
- autouse=True,
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44645 | 2021-11-28T02:01:45Z | 2021-11-28T19:22:10Z | 2021-11-28T19:22:10Z | 2021-11-28T20:06:43Z |
BUG: read_csv raising ParserError when some chunks have less columns than header | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 3a04b306fefdb..d2550f9aaf5ca 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -657,6 +657,7 @@ I/O
- Column headers are dropped when constructing a :class:`DataFrame` from a sqlalchemy's ``Row`` object... | - [x] closes #21211
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44644 | 2021-11-27T22:56:01Z | 2021-11-28T20:30:39Z | 2021-11-28T20:30:39Z | 2021-11-28T20:35:23Z |
DOC: Improve userguide for index_col and usecols in read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 8c8469b93db68..bb7be92bd993b 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -116,6 +116,13 @@ index_col : int, str, sequence of int / str, or False, optional, default ``None`
of the data file, then a defau... | - [x] closes #15203
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44643 | 2021-11-27T20:01:07Z | 2021-11-28T01:36:51Z | 2021-11-28T01:36:51Z | 2021-11-28T01:45:43Z |
BUG: mangle_dup_cols in read_csv replacing existing cols when conflict with target col | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 50156d4565bbd..247c9057118b2 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -304,6 +304,41 @@ Now null-values are no longer mangled.
*New behavior*:
+.. ipython:: python
+
+ res
+
+.. _whatsne... | - [x] closes #14704
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This ensures that already existing column names are kept. The index of the duplicat... | https://api.github.com/repos/pandas-dev/pandas/pulls/44641 | 2021-11-27T19:05:10Z | 2021-11-28T23:02:44Z | 2021-11-28T23:02:44Z | 2021-11-28T23:18:46Z |
CLN/TST: address FIXMEs | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 5f01996d0390d..f66614bd02a3f 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -151,8 +151,8 @@ def _assert_caught_no_extra_warnings(
if actual_warning.category == ResourceWarning and unclosed in st... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44637 | 2021-11-27T03:46:50Z | 2021-11-28T01:30:08Z | 2021-11-28T01:30:08Z | 2021-11-28T02:09:37Z |
CLN: remove 2012-era commented-out excel test | diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py
index 7f2905d9a63b9..af167964a48f4 100644
--- a/pandas/io/formats/excel.py
+++ b/pandas/io/formats/excel.py
@@ -325,12 +325,6 @@ def build_font(
"color": self.color_to_excel(props.get("color")),
# shadow if nonzero digit befo... | and 2017-era commented-out excel code | https://api.github.com/repos/pandas-dev/pandas/pulls/44636 | 2021-11-27T03:00:43Z | 2021-11-28T01:28:16Z | 2021-11-28T01:28:16Z | 2021-11-28T02:10:36Z |
Address libaggregations FIXME | diff --git a/pandas/_libs/window/aggregations.pyi b/pandas/_libs/window/aggregations.pyi
index f3317ff5a60be..b926a7cb73425 100644
--- a/pandas/_libs/window/aggregations.pyi
+++ b/pandas/_libs/window/aggregations.pyi
@@ -6,7 +6,10 @@ from typing import (
import numpy as np
-from pandas._typing import WindowingRank... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
@mroeschke im assuming this change is benign, is that correct? | https://api.github.com/repos/pandas-dev/pandas/pulls/44635 | 2021-11-27T00:56:15Z | 2021-11-28T01:29:17Z | 2021-11-28T01:29:17Z | 2021-11-28T01:59:56Z |
WIP/CI: Debug ResourceWarnings unclosed io.BufferedRandom | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 824e7de3bde41..09567e8d59aa0 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -50,7 +50,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install -i https://p... | e.g.
https://github.com/pandas-dev/pandas/runs/4337388614?check_suite_focus=true
https://github.com/pandas-dev/pandas/runs/4337843423?check_suite_focus=true
| https://api.github.com/repos/pandas-dev/pandas/pulls/44634 | 2021-11-27T00:08:11Z | 2021-12-01T18:24:57Z | null | 2021-12-01T18:25:02Z |
BUG: read_csv not converting original col with keep_date_col true | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index e87f5f53256cf..8926e50c7bdf7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -657,6 +657,7 @@ I/O
- Bug in :func:`read_csv` where reading multi-header input with unequal lengths incorrectly raising un... | - [x] closes #13378
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44633 | 2021-11-26T23:13:07Z | 2021-11-28T19:27:20Z | 2021-11-28T19:27:20Z | 2021-11-28T20:00:47Z |
BUG: read_csv not applying dtype to index col | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 39e3894f86302..4b67ab33bbbc6 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -658,6 +658,7 @@ I/O
- Bug in :func:`json_normalize` where multi-character ``sep`` parameter is incorrectly prefixed to eve... | - [x] closes #9435
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
``_agg_index`` and ``_convert_to_ndarryays`` need a refactor in the future, they both ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44632 | 2021-11-26T22:06:43Z | 2021-11-28T01:43:36Z | 2021-11-28T01:43:36Z | 2022-02-03T17:03:33Z |
REF: expressions bug in Block.where | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 3654f77825ab4..662a58a54caf4 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -1215,6 +1215,19 @@ def where(self, other, cond) -> list[Block]:
else:
# By the time we ge... | - [ ] closes #44597
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Probably needs to be done as a deprecation if done for real, but ATM we have no tests... | https://api.github.com/repos/pandas-dev/pandas/pulls/44631 | 2021-11-26T21:57:33Z | 2021-11-30T19:31:09Z | null | 2021-11-30T19:31:09Z |
WIP/CI: Debug segfault in ci/code_checks.sh docstrings | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e0e898600ba95..c8ab0d42ad775 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -98,104 +98,94 @@ jobs:
path: asv_bench/benchmarks.log
if: failure()
- web_and_docs:
- name: Web and docs
- runs-on: ubuntu... | xref https://github.com/pandas-dev/pandas/issues/44590 | https://api.github.com/repos/pandas-dev/pandas/pulls/44630 | 2021-11-26T21:37:39Z | 2021-12-03T17:52:26Z | null | 2021-12-03T17:52:30Z |
DEP: Deprecate non boolean sort for concat | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 39e3894f86302..32e29b19ada31 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -467,6 +467,7 @@ Other Deprecations
- Deprecated casting behavior when passing an item with mismatched-timezone to :meth:`D... | - [x] closes #41518
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44629 | 2021-11-26T19:50:45Z | 2021-11-28T01:31:33Z | 2021-11-28T01:31:33Z | 2021-11-28T01:34:47Z |
WIP: Try Mamba | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index f37f31686ef69..09c6edb83d512 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -69,6 +69,8 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
+ mamba-version: "*"
+ channels: conda... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/44628 | 2021-11-26T18:49:57Z | 2021-11-26T19:19:27Z | null | 2021-12-22T09:08:56Z |
ENH: [Draft] Fix issue #35131 Identify zero-dimensional duck arrays as non-iterable | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 8f2b3386461db..e8e27669b5b53 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -232,6 +232,7 @@ Other enhancements
- :meth:`UInt64Index.map` now retains ``dtype`` where possible (:issue:`44609`)
- :met... | - [x] closes #35131
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This PR picks up the work of @znicholls started in #35127. Compared to that PR, it do... | https://api.github.com/repos/pandas-dev/pandas/pulls/44626 | 2021-11-26T11:48:42Z | 2021-12-20T18:55:42Z | 2021-12-20T18:55:42Z | 2021-12-20T18:55:48Z |
PERF/TYP: typing cast in __getitem__ gives quite some overhead | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 16fcf6daf5aef..9cfcd0adc92ec 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -509,7 +509,7 @@ def astype(self, dtype: AstypeArg, copy: bool = True) -> ArrayLike:
result = self.... | While doing some unrelated profiling, I noticed typing overhead in `DatetimeArray.__getitem__`. Isolating that here, there is a typing `cast(..)` call in that method, and removing that as done in the PR, I see the following impact:
```python
arr = pd.date_range("2012", periods=3).array
In [4]: %timeit -r 20 arr[... | https://api.github.com/repos/pandas-dev/pandas/pulls/44624 | 2021-11-26T07:57:57Z | 2021-12-03T16:00:30Z | 2021-12-03T16:00:30Z | 2021-12-03T16:03:38Z |
test added for dtype comparison | diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py
index 14f6557fbc31e..6db89b254b20c 100644
--- a/pandas/tests/dtypes/test_common.py
+++ b/pandas/tests/dtypes/test_common.py
@@ -20,9 +20,37 @@
import pandas as pd
import pandas._testing as tm
+from pandas.api.types import pandas_dt... | - [43038 ] closes #xxxx
- [ 1] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44623 | 2021-11-26T06:38:21Z | 2021-11-26T11:11:39Z | null | 2021-11-26T11:11:39Z |
DOC: PR08 doctring validation | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 823687cc20ca0..503120e486f5a 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -93,8 +93,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL01, GL02, GL03, GL04, GL05, GL06, GL07, GL09, G... | - [x] closes #25232
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44622 | 2021-11-26T03:08:26Z | 2021-11-26T20:06:54Z | 2021-11-26T20:06:54Z | 2021-11-26T20:07:09Z |
BUG: read_fwf not handling skiprows correctly with iterator | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 39e3894f86302..693923522e437 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -653,7 +653,7 @@ I/O
- Bug in unpickling a :class:`Index` with object dtype incorrectly inferring numeric dtypes (:issue:`4... | - [x] closes #10261
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
This was relatively straightforward after the previous pr
| https://api.github.com/repos/pandas-dev/pandas/pulls/44621 | 2021-11-25T23:35:11Z | 2021-11-26T15:06:55Z | 2021-11-26T15:06:55Z | 2021-11-26T15:10:17Z |
BUG: read_csv not replacing nans before date conversion | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 39e3894f86302..7da3599225fb0 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -661,6 +661,8 @@ I/O
- Bug in dumping/loading a :class:`DataFrame` with ``yaml.dump(frame)`` (:issue:`42748`)
- Bug in :cl... | - [x] closes #11019
- [x] closes #26203
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44620 | 2021-11-25T22:58:07Z | 2021-11-26T17:02:02Z | 2021-11-26T17:02:02Z | 2021-11-26T17:02:06Z |
Fix issue #36271 - pd.read_json() fails for strings that look similar to fsspec_url | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ccad93d83eb5b..6f384abba3875 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -780,6 +780,7 @@ I/O
- Bug in :func:`read_csv` not setting name of :class:`MultiIndex` columns correctly when ``index_col``... | - [ ] closes #36271
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44619 | 2021-11-25T17:30:24Z | 2021-12-27T17:16:00Z | 2021-12-27T17:16:00Z | 2021-12-27T17:16:04Z |
BUG: TypeError when doing equality comparison with Extension Dtype | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 23e452f682b60..e0e898600ba95 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,8 +23,9 @@ jobs:
shell: bash -l {0}
concurrency:
- group: ${{ github.ref }}-checks
- cancel-in-progress: ${{github.eve... | - #43038 closes #xxxx
- 1 tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44618 | 2021-11-25T16:01:25Z | 2021-12-10T18:49:47Z | null | 2021-12-10T18:49:47Z |
Bugfix for constructing empty Series, with index, using ExtensionDtyp… | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1ae76984484af..6dee1de31dd7e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -257,6 +257,7 @@ Sparse
ExtensionArray
^^^^^^^^^^^^^^
- Bug in :meth:`IntegerArray.searchsorted` and :meth:`FloatingArray... | …e with na_value of None
- [x] closes #44602
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44615 | 2021-11-25T11:46:41Z | 2022-06-10T21:19:58Z | null | 2022-06-10T21:19:58Z |
DOC Make explicit in to_csv docs that compression kwarg is ignored if… | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2db8be19b4399..6dd3df17139c3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3421,6 +3421,9 @@ def to_csv(
and mode is one of {{'zip', 'gzip', 'bz2'}}, or inferred as
one of the above, other entries passed ... | I got confused because I tried `df.to_csv(compression='gzip')` and the result was not gzip compressed.
This PR makes it more clear in the documentation that this argument is silently ignored if there's no file object to save into.
Note that if you do `df.to_csv(io.StringIO(), compression='gzip')` that also ignores ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44614 | 2021-11-25T06:02:46Z | 2021-11-25T15:11:27Z | 2021-11-25T15:11:27Z | 2021-11-25T15:11:30Z |
make explicit in to_csv docs that compress kwarg is ignored if no arg | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2db8be19b4399..71d53e3ceba29 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3421,6 +3421,8 @@ def to_csv(
and mode is one of {{'zip', 'gzip', 'bz2'}}, or inferred as
one of the above, other entries passed ... | I got confused because I tried `df.to_csv(compression='gzip')` and the result was not gzip compressed.
This PR makes it more clear in the documentation that this argument is silently ignored if there's no file object to save into.
Note that if you do `df.to_csv(io.StringIO(), compression='gzip')` that also ignores ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44613 | 2021-11-25T05:59:14Z | 2021-11-25T06:02:10Z | null | 2021-11-25T06:02:10Z |
CI/TST: Use CI moto service instead of subprocess | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dbce7c02a9b0f..e0e898600ba95 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -162,6 +162,14 @@ jobs:
data_manager:
name: Test experimental data manager
runs-on: ubuntu-latest
+ services:
+ moto:
+ ... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/44612 | 2021-11-25T04:32:18Z | 2021-12-02T01:58:15Z | 2021-12-02T01:58:15Z | 2021-12-02T14:15:59Z |
TST: Use subprocess.Popen as context managers | diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index 0417529999890..1f97b1af81b6e 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -111,12 +111,16 @@ def _stringifyText(text) -> str:
def init_osx_pbcopy_clipboard():
def copy_osx_pbcopy(text):
... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
Might help address the elusive `ResourceWarnings` in the CI
https://github.com/pandas-dev/pandas/runs/4317219787?check_suite_fo... | https://api.github.com/repos/pandas-dev/pandas/pulls/44611 | 2021-11-24T23:38:57Z | 2021-11-25T15:12:56Z | 2021-11-25T15:12:56Z | 2021-11-25T17:53:32Z |
PERF: Improve performance in read_csv with numeric index col | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 153cad403dcc3..39cc09d32981e 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -525,4 +525,14 @@ def time_to_datetime_format_DD_MM_YYYY(self, cache_dates):
to_datetime(df["date"], cache=cache_da... | - [x] closes #44158
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
The isin was calling the np.in1d and was checking against a bunch of strings causing ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44610 | 2021-11-24T23:15:21Z | 2021-11-25T16:36:00Z | 2021-11-25T16:36:00Z | 2021-11-25T16:38:06Z |
ENH: improved dtype inference for Index.map | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 4a4e7dd6d15d7..6350df1fe91a3 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -218,6 +218,8 @@ Other enhancements
``USFederalHolidayCalendar``. See also `Other API changes`_.
- :meth:`.Rolling.var`... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Broken off from #43930 | https://api.github.com/repos/pandas-dev/pandas/pulls/44609 | 2021-11-24T21:44:48Z | 2021-12-05T00:58:11Z | 2021-12-05T00:58:11Z | 2021-12-05T02:06:03Z |
PERF: check first for recognized scalars in DatetimeArray._validate_scalar | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 6f18db6caab7d..79d5d104b5764 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -635,7 +635,10 @@ def _validate_scalar(
-------
self._scalar_type or NaT
"""
- ... | Something small, but most of the time we will be setting with actual scalars, so putting that first improves this case a bit:
```python
arr = pd.date_range("2012-01-01", periods=3).array
scalar = arr[0]
In [3]: %timeit arr._validate_setitem_value(scalar)
3.04 µs ± 58.5 ns per loop (mean ± std. dev. of 7 runs, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44608 | 2021-11-24T20:43:29Z | 2021-11-25T15:08:58Z | 2021-11-25T15:08:58Z | 2021-11-25T20:59:56Z |
Typ numerical ops | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b647e5000b8a9..4aff7acc4c6fb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10298,7 +10298,14 @@ def pct_change(
return rs
@final
- def _agg_by_level(self, name, axis=0, level=0, skipna=True, **kwargs):
+ def ... | @simonjayhawkins Is there an efficient way to lock down the return types? The functions return a Series if a DataFrame is passed and a bool/float otherwise | https://api.github.com/repos/pandas-dev/pandas/pulls/44607 | 2021-11-24T19:39:31Z | 2021-11-28T19:52:08Z | 2021-11-28T19:52:08Z | 2021-11-28T20:01:19Z |
REF: dont call maybe_promote with EA dtype | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index a4f2c5c87ff49..c2cd73584b7da 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -245,24 +245,24 @@ def get_new_values(self, values, fill_value=None):
new_mask = np.ones(result_shape, dtype=bo... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
maybe_promote is only supposed to take np.dtype arg, messes up when if we were to pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/44606 | 2021-11-24T19:03:28Z | 2021-11-25T15:12:07Z | 2021-11-25T15:12:06Z | 2021-11-25T16:06:04Z |
DEP: df.insert not showing warning for allow_dups and timezoneaware and naive indexing | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 33df7a9f0ac1f..25a2004b88b22 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4547,7 +4547,7 @@ def insert(
"Cannot specify 'allow_duplicates=True' when "
"'self.flags.allows_duplicate_labels' is False."
... | cc @jbrockmendel
This ensures that the warning is raised also for allow_duplicates.
Additional question:
Should this:
```
index = pd.date_range("1/1/2013", "1/2/2013")
index.insert(0, Timestamp("2012-12-30", tz="UTC"))
```
raise the warning? | https://api.github.com/repos/pandas-dev/pandas/pulls/44605 | 2021-11-24T18:12:40Z | 2022-03-06T01:25:24Z | null | 2023-04-27T19:52:23Z |
ASV: reduce overall run time for GroupByMethods benchmarks | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 86322661a4e8a..ff58e382a9ba2 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -443,7 +443,7 @@ class GroupByMethods:
"var",
],
["direct", "transformation"],
- [... | See https://github.com/pandas-dev/pandas/issues/44450#issuecomment-969016669
This reduces 1) the data size for `describe`, `mad` and `skew` (all the slowest benchmarks that take more than a second is for one of those three), and 2) reduces the parametrization for ncols (this was added in https://github.com/pandas-de... | https://api.github.com/repos/pandas-dev/pandas/pulls/44604 | 2021-11-24T14:01:24Z | 2021-11-25T21:47:24Z | 2021-11-25T21:47:24Z | 2021-11-26T06:28:31Z |
TST: make tests involving use_numexpr more robust | diff --git a/pandas/_testing/contexts.py b/pandas/_testing/contexts.py
index e20d2d58e499f..b92772761e0a7 100644
--- a/pandas/_testing/contexts.py
+++ b/pandas/_testing/contexts.py
@@ -14,6 +14,8 @@
import numpy as np
+from pandas import set_option
+
from pandas.io.common import get_handle
@@ -202,11 +204,11 ... | There have been some failures recently in the "Test experimental data manager (not slow and not network and not clipboard)" build. | https://api.github.com/repos/pandas-dev/pandas/pulls/44601 | 2021-11-24T07:57:03Z | 2021-11-26T06:28:20Z | 2021-11-26T06:28:20Z | 2021-11-26T06:28:23Z |
CLN: Remove duplicate skip windows decorators | diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py
index a99d2f590be97..377974a918ad9 100644
--- a/pandas/tests/indexes/datetimes/test_date_range.py
+++ b/pandas/tests/indexes/datetimes/test_date_range.py
@@ -94,7 +94,7 @@ def test_date_range_timestamp_equ... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
`skip_if_windows_python_3` appears equivalent to `skip_if_windows` | https://api.github.com/repos/pandas-dev/pandas/pulls/44600 | 2021-11-24T05:29:37Z | 2021-11-24T21:05:19Z | 2021-11-24T21:05:19Z | 2021-11-24T21:05:22Z |
BUG: parse_dates=False while passing date_parser tries to use date parser | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7270227e113da..b7a9e930cd642 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -653,6 +653,7 @@ I/O
- Bug in :func:`read_csv` raising ``ValueError`` when ``parse_dates`` was used with ``MultiIndex`` col... | - [x] closes #44366
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
I have updated the code in the `pandas/io/parsers/readers.py` since if we pased `par... | https://api.github.com/repos/pandas-dev/pandas/pulls/44599 | 2021-11-24T05:12:09Z | 2021-11-25T20:51:45Z | 2021-11-25T20:51:45Z | 2021-11-25T20:56:43Z |
BUG: concat_compat with 2D PeriodArray | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 759c7fb65374d..4c6a32ff1ba4e 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -2291,18 +2291,28 @@ def _concat_same_type(
) -> CategoricalT:
from pandas.core.dtypes.concat impo... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44598 | 2021-11-24T03:13:20Z | 2021-11-25T17:27:33Z | 2021-11-25T17:27:33Z | 2021-11-25T18:14:06Z |
CI: Add single CPU core build for pytest.mark.single | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc357101e79fd..1beadf94dbc49 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 ... | - [x] closes #44584
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
1. Adds MacOS, Windows and Linux builds where `PYTEST_WORKERS = 1` for `@pytest.mark.single` tests
2. Conv... | https://api.github.com/repos/pandas-dev/pandas/pulls/44596 | 2021-11-24T01:56:28Z | 2021-11-25T03:22:11Z | null | 2022-01-07T01:36:56Z |
BUG: Series[object].unstack preserve object dtype | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7270227e113da..55c149d757811 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -703,6 +703,7 @@ Reshaping
- Bug in :meth:`DataFrame.append` failing to retain ``index.name`` when appending a list of :cla... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Sits on top of #44593 | https://api.github.com/repos/pandas-dev/pandas/pulls/44595 | 2021-11-23T21:23:00Z | 2021-11-24T13:35:44Z | 2021-11-24T13:35:44Z | 2021-12-02T16:09:23Z |
PERF: improve find_common_type perf for special case of all-equal dtypes | diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi
index dd1fa0780520c..a7ebd9d0c77ad 100644
--- a/pandas/_libs/lib.pyi
+++ b/pandas/_libs/lib.pyi
@@ -228,3 +228,4 @@ def get_reverse_indexer(
length: int,
) -> npt.NDArray[np.intp]: ...
def is_bool_list(obj: list) -> bool: ...
+def dtypes_all_equal(types: l... | In several benchmarks, the `find_common_type` spends quite some time on checking if all dtypes are equal, which can be improved a bit by 1) assuming all dtypes are actual dtypes (`is_dtype_equal` is generic and will first convert the input to a dtype, giving overhead) and 2) writing the for loop generator in small cyth... | https://api.github.com/repos/pandas-dev/pandas/pulls/44594 | 2021-11-23T21:10:53Z | 2021-11-25T17:24:42Z | 2021-11-25T17:24:42Z | 2021-11-25T19:18:47Z |
BUG: DataFrame(EA2D) construction | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index a766f8321a641..77f3db0d09df5 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -294,10 +294,15 @@ def ndarray_to_mgr(
if is_1d_only_ea_dtype(vdtype) or isinstance(dtype, ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44593 | 2021-11-23T20:49:37Z | 2021-11-24T01:22:34Z | 2021-11-24T01:22:34Z | 2021-11-24T02:19:11Z |
DOC: timedelta return type | diff --git a/pandas/core/tools/timedeltas.py b/pandas/core/tools/timedeltas.py
index 5277a3514b423..81b2be4e10e62 100644
--- a/pandas/core/tools/timedeltas.py
+++ b/pandas/core/tools/timedeltas.py
@@ -68,8 +68,13 @@ def to_timedelta(arg, unit=None, errors="raise"):
Returns
-------
- timedelta64 or numpy.... | - [x] closes #42316
- [NA] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [NA] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44592 | 2021-11-23T17:17:54Z | 2021-11-24T00:11:46Z | 2021-11-24T00:11:45Z | 2021-11-25T20:56:49Z |
TST: enable commented-out test | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index 00a8110a399d4..9d61f57bc1f62 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -1427,11 +1427,13 @@ def test_from_obscure_array(dtype, array_likes):
expected ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44591 | 2021-11-23T16:36:09Z | 2021-11-24T01:25:34Z | 2021-11-24T01:25:34Z | 2021-11-24T02:17:51Z |
BUG: join MultiIndex with overlapping IntervalIndex level (#44096) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ed5275333fda1..32a66be8b3b75 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -712,6 +712,7 @@ Reshaping
- Fixed metadata propagation in :meth:`Dataframe.apply` method, consequently fixing the same iss... | `BaseMultiIndexCodesEngine._extract_level_codes` relies on the assumption that
`get_indexer()` is always usable as any index level `is_unique`. However, that
is not the case for overlapping `IntervalIndex` levels. `get_indexer()` can
not be used on an `IntervalIndex` that `is_overlapping` even if it `is_unique`.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/44588 | 2021-11-23T12:45:04Z | 2021-11-25T20:49:49Z | 2021-11-25T20:49:48Z | 2021-11-26T07:29:44Z |
REF: remove always-True DataFrame._iset_item kwarg | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 66d3800301f92..24517149f511a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3914,9 +3914,9 @@ def _set_item_mgr(self, key, value: ArrayLike) -> None:
if len(self):
self._check_setitem_copy()
- def _iset_item(self... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44587 | 2021-11-23T03:32:52Z | 2021-11-25T17:28:32Z | 2021-11-25T17:28:32Z | 2021-11-25T19:15:49Z |
CLN: TODOs/noqas/xfails | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index ed44102700dc6..d3168bde0a783 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -17,7 +17,7 @@
try:
import pandas._testing as tm
except ImportError:
- imp... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44586 | 2021-11-23T03:31:52Z | 2021-11-24T02:22:17Z | 2021-11-24T02:22:17Z | 2021-11-24T08:14:40Z |
BUG: Series.where with IntervalDtype when no-op | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1f656f267783f..698a43acb4e37 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -587,6 +587,7 @@ Strings
Interval
^^^^^^^^
- Bug in :meth:`IntervalIndex.get_indexer_non_unique` returning boolean mask i... | - [x] closes #44181
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44585 | 2021-11-23T03:03:29Z | 2021-11-25T17:37:23Z | 2021-11-25T17:37:23Z | 2021-11-25T17:56:51Z |
Backport PR #44544 on branch 1.3.x (COMPAT: Fix the last warning from matplotlib 3.5.0) | diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py
index dbdfff8e27b97..7ddab91a24ec0 100644
--- a/pandas/plotting/_matplotlib/core.py
+++ b/pandas/plotting/_matplotlib/core.py
@@ -983,7 +983,6 @@ def _plot_colorbar(self, ax: Axes, **kwds):
# use the last one which contains ... | Backport PR #44544: COMPAT: Fix the last warning from matplotlib 3.5.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/44583 | 2021-11-23T00:11:46Z | 2021-11-23T14:20:42Z | 2021-11-23T14:20:42Z | 2021-11-23T14:20:42Z |
BUG: Series.mode with dt64tz or PeriodDtype | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 219398f4071f5..c9675e0e1961a 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -553,6 +553,7 @@ Datetimelike
- Bug in addition with a :class:`Tick` object and a ``np.timedelta64`` object incorrectly rai... | - [x] closes #41927
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
Sits on top of #44581 | https://api.github.com/repos/pandas-dev/pandas/pulls/44582 | 2021-11-22T23:13:48Z | 2021-11-26T18:22:44Z | 2021-11-26T18:22:43Z | 2021-11-26T18:23:26Z |
BUG: Series.view from int64 to datetimelike | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 674379f6d65f8..9d534a5a8d815 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -16,6 +16,8 @@
from pandas._libs import lib
from pandas._libs.arrays import NDArrayBacked
from pandas._typing import (
+ A... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry
Broken off of a branch fixing #41927 | https://api.github.com/repos/pandas-dev/pandas/pulls/44581 | 2021-11-22T22:26:39Z | 2021-11-25T20:58:32Z | 2021-11-25T20:58:32Z | 2021-11-26T04:45:08Z |
Deprecate skipna=None for mad | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 37e4c9a1378d1..c7de29d8bd0b4 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -465,6 +465,7 @@ Other Deprecations
- Deprecated casting behavior when passing an item with mismatched-timezone to :meth:`D... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44580 | 2021-11-22T21:37:49Z | 2021-11-24T22:38:46Z | 2021-11-24T22:38:46Z | 2021-11-24T22:39:39Z |
Raise if None is passed for skipna | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1f656f267783f..9f358a3e9dbdd 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -399,6 +399,7 @@ Other API changes
^^^^^^^^^^^^^^^^^
- :meth:`Index.get_indexer_for` no longer accepts keyword arguments (... | - [x] closes #44178
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
will deprecate mad in follow up
| https://api.github.com/repos/pandas-dev/pandas/pulls/44579 | 2021-11-22T21:30:30Z | 2021-11-24T01:27:28Z | 2021-11-24T01:27:27Z | 2021-11-24T09:01:26Z |
BUG: Series.reset_index not ignoring name with inplace and drop | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 37e4c9a1378d1..c7545ed38085f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -548,7 +548,7 @@ Datetimelike
- Bug in constructing a :class:`Series` from datetime-like strings with mixed timezones incor... | - [x] closes #44575
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44578 | 2021-11-22T20:45:46Z | 2021-11-25T17:06:16Z | 2021-11-25T17:06:16Z | 2021-11-25T20:53:18Z |
BUG: DataFrame.diff(np_int_obj) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1f656f267783f..655c875277ea2 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -741,6 +741,7 @@ Other
- Bug in :meth:`Series.to_frame` and :meth:`Index.to_frame` ignoring the ``name`` argument when ``na... | - [x] closes #44572
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/44577 | 2021-11-22T20:19:31Z | 2021-11-23T22:33:41Z | 2021-11-23T22:33:41Z | 2021-11-23T22:42:15Z |
Holiday rename; Juneteenth `start_date` | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 50156d4565bbd..ec0a4a3204601 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -214,6 +214,8 @@ Other enhancements
- :meth:`Timestamp.isoformat`, now handles the ``timespec`` argument from the base :cla... | - [x] closes #44574
Rebased to origin/master. Fixes #42328 and #44574. Not sure if this is the right way to add to someone else's (closed) PR though...
| https://api.github.com/repos/pandas-dev/pandas/pulls/44576 | 2021-11-22T20:00:36Z | 2021-11-29T00:45:24Z | 2021-11-29T00:45:24Z | 2021-11-29T16:15:24Z |
[ArrayManager] TST: Convert skip into xfail and clean-up tests that now work | diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py
index 15e62e27c08d5..597216f55e444 100644
--- a/pandas/tests/frame/indexing/test_setitem.py
+++ b/pandas/tests/frame/indexing/test_setitem.py
@@ -728,8 +728,6 @@ def test_setitem_object_array_of_tzaware_datetimes(self... | xref https://github.com/pandas-dev/pandas/issues/39146
As discussed before, turning the generic "skip" into an "xfail", so it's easier to keep track of which tests start to pass (and also clean-up a whole bunch of tests that were indeed already passing).
For parametrized tests, sometimes it's only a subset of the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44571 | 2021-11-22T09:36:55Z | 2021-11-23T00:12:25Z | 2021-11-23T00:12:25Z | 2021-11-23T20:39:10Z |
DOC: update shared_docs to clarify groupby with lists | diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index bc4f4d657b859..ac3ad5135339a 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -94,10 +94,12 @@
If ``by`` is a function, it's called on each value of the object's
index. If a dict or Series is passed, the Seri... | - [x] closes #44333
Following @rhshadrach 's and @asishm 's suggestion, this PR modifies groupby docstring. | https://api.github.com/repos/pandas-dev/pandas/pulls/44569 | 2021-11-22T05:46:46Z | 2021-11-25T17:26:36Z | 2021-11-25T17:26:36Z | 2021-11-25T17:26:41Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.