title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
BUG: also use Float Nullable dtypes in read_parquet when use_nullable_dtypes=True | diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py
index 1b8526275c155..fb3655e11628d 100644
--- a/pandas/io/parquet.py
+++ b/pandas/io/parquet.py
@@ -231,6 +231,8 @@ def read(
self.api.uint64(): pd.UInt64Dtype(),
self.api.bool_(): pd.BooleanDtype(),
self.api.str... | fixes #45694
Add float types in the mapping dictionary
| https://api.github.com/repos/pandas-dev/pandas/pulls/45700 | 2022-01-29T21:29:39Z | 2022-03-06T00:07:23Z | null | 2022-03-06T00:07:23Z |
DOC: Remove obsolete reference to CONTRIBUTING.md generation | diff --git a/doc/source/development/contributing_documentation.rst b/doc/source/development/contributing_documentation.rst
index 39bc582511148..583eecf1ca8ab 100644
--- a/doc/source/development/contributing_documentation.rst
+++ b/doc/source/development/contributing_documentation.rst
@@ -89,16 +89,6 @@ Some other impor... | It seems that a note was left over after https://github.com/pandas-dev/pandas/pull/45063 from the old CONTRIBUTING.md times ([still there in devdocs](https://pandas.pydata.org/docs/dev/development/contributing_documentation.html#about-the-pandas-documentation)). The note referred to generating the file from `contributi... | https://api.github.com/repos/pandas-dev/pandas/pulls/45699 | 2022-01-29T20:54:19Z | 2022-01-30T17:51:44Z | 2022-01-30T17:51:44Z | 2022-01-30T17:51:56Z |
Proof of concept: Cache Conda env and add ccache | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index dc357101e79fd..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | Proof of concept to speed up GH actions builds by ~10 minutes.
- Cache Conda envs across builds (cache is invalided when deps change, and 1x per day)
- Add ccache (cache is invalidated daily)
I wonder what everyone thinks about this and whether you think this is worth spending more effort on (eg. porting it also... | https://api.github.com/repos/pandas-dev/pandas/pulls/45698 | 2022-01-29T19:04:40Z | 2022-02-11T15:20:17Z | null | 2022-02-11T15:20:18Z |
Simplify conditional branch in _read function in readers.py | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index ef693fcbd3720..5f93eef4fd977 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -542,13 +542,11 @@ def _read(
"""Generic reader of line files."""
# if we pass a date_parser and parse_dates=False, we sho... | - [ ] 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/45696 | 2022-01-29T17:36:34Z | 2022-01-30T18:14:13Z | 2022-01-30T18:14:13Z | 2022-01-31T03:46:10Z |
TST: Nan must not be converted to string using .loc | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 2e78fb8c44eee..49aa4d3d0dbf0 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -43,6 +43,22 @@
from pandas.tests.indexing.common import Base
+@pytest.mark.parametrize(
+ "series, new_... | - [X] Closes #28403
- [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/45695 | 2022-01-29T17:10:34Z | 2022-02-03T17:41:39Z | 2022-02-03T17:41:38Z | 2022-02-03T17:42:10Z |
TST/CLN: organize SparseArray tests | diff --git a/pandas/tests/arrays/sparse/test_accessor.py b/pandas/tests/arrays/sparse/test_accessor.py
index e45dbb393a8de..36af5d32ae461 100644
--- a/pandas/tests/arrays/sparse/test_accessor.py
+++ b/pandas/tests/arrays/sparse/test_accessor.py
@@ -14,13 +14,90 @@
class TestSeriesAccessor:
- # TODO: collect oth... | - [ ] 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
Sits on top of #45691 | https://api.github.com/repos/pandas-dev/pandas/pulls/45693 | 2022-01-29T03:54:46Z | 2022-01-29T22:54:04Z | 2022-01-29T22:54:04Z | 2022-01-29T23:04:15Z |
TST: Remove unused fixtures | diff --git a/pandas/tests/apply/test_str.py b/pandas/tests/apply/test_str.py
index 82997328529cd..f215df4c24206 100644
--- a/pandas/tests/apply/test_str.py
+++ b/pandas/tests/apply/test_str.py
@@ -55,7 +55,7 @@ def test_with_string_args(datetime_series):
@pytest.mark.parametrize("op", ["mean", "median", "std", "var"... | - [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/45692 | 2022-01-29T03:24:32Z | 2022-01-30T18:08:40Z | 2022-01-30T18:08:40Z | 2022-01-30T18:12:13Z |
BUG: Series[sparse].where losing fill_value | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 1d4054d5ea0f1..59185690677dc 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -316,7 +316,7 @@ Reshaping
Sparse
^^^^^^
--
+- Bug in :meth:`Series.where` and :meth:`DataFrame.where` with ``SparseDtyp... | - [ ] 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/45691 | 2022-01-29T00:07:10Z | 2022-01-29T20:47:09Z | 2022-01-29T20:47:09Z | 2022-01-29T21:09:37Z |
CI: Fix docbuild upload web step on main | diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml
index 4cce75779d750..f19722fabb5fb 100644
--- a/.github/workflows/docbuild-and-upload.yml
+++ b/.github/workflows/docbuild-and-upload.yml
@@ -54,11 +54,11 @@ jobs:
run: cp doc/cheatsheet/Pandas_Cheat_Sheet* web/bui... | @datapythonista the main branch docbuild step has been failing on the web upload with
```
Run rsync -az --delete --exclude='pandas-docs' --exclude='docs' web/build/ docs@***:/usr/share/nginx/pandas
rsync -az --delete --exclude='pandas-docs' --exclude='docs' web/build/ docs@***:/usr/share/nginx/pandas
shell: /... | https://api.github.com/repos/pandas-dev/pandas/pulls/45690 | 2022-01-28T23:27:12Z | 2022-01-29T01:36:00Z | null | 2022-02-11T19:21:14Z |
REF: make Block.delete return a new Block | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index f9657953045c6..88f3315fe0ab8 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -380,9 +380,9 @@ def set_inplace(self, locs, values: ArrayLike) -> None:
"""
self.values[locs] = value... | - [ ] 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
I lost track of the original use case that motivated this, but in general i think we'r... | https://api.github.com/repos/pandas-dev/pandas/pulls/45689 | 2022-01-28T23:13:17Z | 2022-01-30T18:50:27Z | 2022-01-30T18:50:27Z | 2022-01-30T18:52:40Z |
TST: Use less autouse=True when unecessary | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d76af1ce42546..2a34c71412789 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1365,8 +1365,6 @@ def itertuples(
-----
The column names will be renamed to positional names if they are
invalid Python identifiers, rep... | - [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/45688 | 2022-01-28T22:30:58Z | 2022-01-29T19:55:55Z | 2022-01-29T19:55:55Z | 2022-01-29T22:33:49Z |
ENH: Allow safe access to `.book` in ExcelWriter | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 3e1df9325713b..b33955737a111 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -1048,6 +1048,12 @@ def engine(self) -> str:
"""Name of engine."""
pass
+ @property
+ @abc.abstractmethod
+ def sheets(... | Towards #45572
- [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
The plan to expose both `sheets` and `book` as public attributes of `ExcelWriter`. We need to make sure that `sheets` is correct if the u... | https://api.github.com/repos/pandas-dev/pandas/pulls/45687 | 2022-01-28T22:26:46Z | 2022-02-01T00:34:16Z | 2022-02-01T00:34:16Z | 2022-02-05T20:45:44Z |
Backport PR #45667 on branch 1.4.x (TST: Dynamically use doctest_namespace only if running the doctest) | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 9009484f8d386..04f460902c11a 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -115,6 +115,12 @@ def pytest_collection_modifyitems(items, config):
]
for item in items:
+ if config.getoption("--doctest-modules") or config.getoption(
... | Backport PR #45667: TST: Dynamically use doctest_namespace only if running the doctest | https://api.github.com/repos/pandas-dev/pandas/pulls/45685 | 2022-01-28T22:09:45Z | 2022-01-29T00:12:11Z | 2022-01-29T00:12:11Z | 2022-01-29T00:12:11Z |
Backport PR #45655 on branch 1.4.x (BUG: Fix window aggregations to skip over unused elements (GH-45647)) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index d0a58a19df92f..c73ec34d4733b 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -27,6 +27,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-awar... | Backport PR #45655: BUG: Fix window aggregations to skip over unused elements (GH-45647) | https://api.github.com/repos/pandas-dev/pandas/pulls/45683 | 2022-01-28T19:52:59Z | 2022-01-28T22:09:07Z | 2022-01-28T22:09:07Z | 2022-01-28T22:09:07Z |
Backport PR #45662 on branch 1.4.x (BUG: Fix joining overlapping IntervalIndex objects (GH-45661)) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index d0a58a19df92f..23aefb783456d 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Regression in :func:`.assert_frame_equal` not respecting ``check_flags=False`` (:issue:`... | Backport PR #45662: BUG: Fix joining overlapping IntervalIndex objects (GH-45661) | https://api.github.com/repos/pandas-dev/pandas/pulls/45682 | 2022-01-28T19:00:43Z | 2022-01-28T22:08:09Z | 2022-01-28T22:08:09Z | 2022-01-28T22:08:09Z |
Troubleshoot minimum version build - Skip timed out test | diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py
index bde69e365cfd1..3874c27d015b4 100644
--- a/pandas/tests/io/parser/common/test_common_basic.py
+++ b/pandas/tests/io/parser/common/test_common_basic.py
@@ -706,7 +706,7 @@ def test_first_row_bom(all_... | This test timed out repeatedly with pyarrow 1.0.1 locally.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45680 | 2022-01-28T12:47:34Z | 2022-01-28T13:55:59Z | null | 2022-06-21T19:57:08Z |
BUG: Do not error on other dbapi2 connections | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 9509b96055255..ec4a1b7348262 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -20,7 +20,8 @@ Fixed regressions
- Regression in :meth:`DataFrame.iat` setting values leading to not propagating correctly ... | Do not throw an error in `pandasSQL_builder` when the connection is a dbapi2 connection that is not `sqlite3` and `sqlalchemy` is not installed. Also restores the behaviour prior to #42546 when the connection is a string but `sqlalchemy` is not installed.
This partially addresses #45660 (it removes the requirement f... | https://api.github.com/repos/pandas-dev/pandas/pulls/45679 | 2022-01-28T12:36:09Z | 2022-01-31T13:29:53Z | 2022-01-31T13:29:53Z | 2022-02-03T15:46:38Z |
BUG: read csv not breaking lines for warn messages | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 9aebcad1d8cae..000353aee99a0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -285,6 +285,7 @@ I/O
^^^
- Bug in :meth:`DataFrame.to_stata` where no error is raised if the :class:`DataFrame` contains `... | - [x] closes #41710
- [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
We should probably unify the warning messages too | https://api.github.com/repos/pandas-dev/pandas/pulls/45677 | 2022-01-28T11:55:36Z | 2022-01-28T18:52:40Z | 2022-01-28T18:52:40Z | 2022-01-28T19:45:45Z |
Adding DuckDB as a SQL Database for the to_sql() function | diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml
index 3e32665d5433f..f96deaaddf9fe 100644
--- a/ci/deps/actions-310-numpydev.yaml
+++ b/ci/deps/actions-310-numpydev.yaml
@@ -14,6 +14,7 @@ dependencies:
- python-dateutil
- pytz
- pip
+ - python-duckdb
- pip:
- cython=... | This PR adds DuckDB as a direct possibility to the to_sql() function.
It basically uses DuckDBs internal pandas integration to load data frames as a duckdb table.
I think I've added duckdb correctly as an optional dependency, I'm happy to fix it if I made any mistake :-)
I'm also really supporting the optional ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45675 | 2022-01-28T10:44:45Z | 2022-02-10T23:24:06Z | null | 2022-02-10T23:24:06Z |
TST: Move once-used fixtures to specific files | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index 09233e3f31c89..f2832652ed58f 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -12,7 +12,6 @@
DataFrame,
Series,
bdate_range,
- to_datetime,
)
@@ -22,27 +21,6 @@ def raw(reques... | - [x] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/45674 | 2022-01-28T05:22:11Z | 2022-01-28T16:40:32Z | 2022-01-28T16:40:32Z | 2022-01-28T17:24:32Z |
BUG: consistent downcast on fillna no-ops | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 919ed926f8195..f274c5c4c665e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -278,7 +278,7 @@ Indexing
Missing
^^^^^^^
--
+- Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``downcas... | - [x] xref #45423
- [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/45673 | 2022-01-28T04:40:28Z | 2022-02-01T00:03:48Z | 2022-02-01T00:03:48Z | 2022-02-01T00:17:44Z |
REF: implement LossySetitemError | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 33732bcaca733..d23910c37b52b 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -39,6 +39,7 @@
from pandas.errors import IntCastingNaNError
from pandas.util._decorators import Appender
+from pandas.co... | - [ ] 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
Catch this specifically instead of ValueError, which can have unrelated causes xref ht... | https://api.github.com/repos/pandas-dev/pandas/pulls/45672 | 2022-01-28T02:38:52Z | 2022-02-01T00:02:13Z | 2022-02-01T00:02:13Z | 2022-02-01T01:34:30Z |
Backport PR #45565 on branch 1.4.x (REGR: check_flags not respected in assert_frame_equal) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 21aab5058d25b..d0a58a19df92f 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | Backport PR #45565: REGR: check_flags not respected in assert_frame_equal | https://api.github.com/repos/pandas-dev/pandas/pulls/45671 | 2022-01-28T02:00:00Z | 2022-01-28T10:44:42Z | 2022-01-28T10:44:42Z | 2022-01-28T10:44:42Z |
Add DataFrame.iterrowdicts | diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst
index a34d4891b9d77..90c715b2420ac 100644
--- a/doc/source/user_guide/basics.rst
+++ b/doc/source/user_guide/basics.rst
@@ -1541,7 +1541,12 @@ pandas objects also have the dict-like :meth:`~DataFrame.items` method to
iterate over the (key... | - [x] 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
I have not checked the linting / whatsnew stuff, will make a followup commit with those necessary changes.... | https://api.github.com/repos/pandas-dev/pandas/pulls/45670 | 2022-01-28T01:09:51Z | 2022-01-30T18:18:45Z | null | 2022-01-30T18:18:45Z |
Backport PR #45612 on branch 1.4.x (DOC: Improve reshaping.rst) | diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst
index e74272c825e46..f9e68b1b39ddc 100644
--- a/doc/source/user_guide/reshaping.rst
+++ b/doc/source/user_guide/reshaping.rst
@@ -13,37 +13,12 @@ Reshaping by pivoting DataFrame objects
.. image:: ../_static/reshaping_pivot.png
... | Backport PR #45612: DOC: Improve reshaping.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/45669 | 2022-01-28T00:34:46Z | 2022-01-28T03:00:50Z | 2022-01-28T03:00:50Z | 2022-01-28T03:00:50Z |
BUG: unnecessary FutureWarning in sort_values | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 10b605f6ef43e..9e4b3479341b3 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -28,6 +28,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-awar... | - [x] closes #45618
- [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/45668 | 2022-01-28T00:30:29Z | 2022-01-30T23:49:43Z | 2022-01-30T23:49:42Z | 2022-01-31T00:09:47Z |
TST: Dynamically use doctest_namespace only if running the doctest | diff --git a/pandas/conftest.py b/pandas/conftest.py
index e61d9ee18cadb..952177f342c46 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -115,6 +115,12 @@ def pytest_collection_modifyitems(items, config):
]
for item in items:
+ if config.getoption("--doctest-modules") or config.getoption(
... | - [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
Will probably speed up the test suite. Example locally with running `pandas/tests/window/moments`
Main
```
================... | https://api.github.com/repos/pandas-dev/pandas/pulls/45667 | 2022-01-28T00:11:05Z | 2022-01-28T22:09:38Z | 2022-01-28T22:09:38Z | 2022-01-28T22:29:07Z |
Backport PR #45642 on branch 1.4.x (REGR: Series.fillna(downcast=False)) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 1bd8da2d2b03c..21aab5058d25b 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | Backport PR #45642: REGR: Series.fillna(downcast=False) | https://api.github.com/repos/pandas-dev/pandas/pulls/45666 | 2022-01-27T22:24:59Z | 2022-01-28T00:26:33Z | 2022-01-28T00:26:33Z | 2022-01-28T00:26:34Z |
CI/TST: Skip external s3 bucket test that hangs on min build | diff --git a/pandas/tests/io/xml/test_xml.py b/pandas/tests/io/xml/test_xml.py
index 8809c423a29ba..aef94af60c3dd 100644
--- a/pandas/tests/io/xml/test_xml.py
+++ b/pandas/tests/io/xml/test_xml.py
@@ -1102,6 +1102,10 @@ def test_unsuported_compression(datapath, parser):
@tm.network
@td.skip_if_no("s3fs")
@td.skip_if... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/45665 | 2022-01-27T22:22:44Z | 2022-01-28T06:41:11Z | 2022-01-28T06:41:11Z | 2022-01-28T06:41:15Z |
Investigate Conda env caching | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index dc357101e79fd..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | - [ ] 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/45664 | 2022-01-27T19:31:40Z | 2022-01-29T19:01:59Z | null | 2022-01-29T19:01:59Z |
CLN: suppress distutils warnings, assorted | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index daf7d0bd3f213..1082f8d71af01 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -12,6 +12,7 @@
ArrayLike,
npt,
)
+from pandas.compat import np_version_under1p20
from pandas.c... | - [ ] 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/45663 | 2022-01-27T18:47:30Z | 2022-01-29T00:16:13Z | 2022-01-29T00:16:13Z | 2022-01-29T00:35:18Z |
BUG: Fix joining overlapping IntervalIndex objects (GH-45661) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 1bd8da2d2b03c..d62a1ebdb5eec 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask` with ``inplace=True`` and ``PeriodD... | Replacing calls to `get_indexer()` with `get_indexer_for()` as
`IntervalIndex`es can be unique and overlapping.
Similar to #44588
- [x] closes #45661
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-c... | https://api.github.com/repos/pandas-dev/pandas/pulls/45662 | 2022-01-27T18:36:54Z | 2022-01-28T19:00:34Z | 2022-01-28T19:00:33Z | 2022-02-09T16:19:13Z |
BUG: Fix window aggregations to skip over unused elements (GH-45647) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 1bd8da2d2b03c..c950a71222c6c 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -25,6 +25,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-awar... | - [x] closes #45647
- [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/45655 | 2022-01-27T10:53:45Z | 2022-01-28T19:52:52Z | 2022-01-28T19:52:51Z | 2022-01-28T19:53:09Z |
CI: Fix concurrency group for locale tests | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 4beba743209b6..8080a81519d8f 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -50,7 +50,7 @@ jobs:
COVERAGE: ${{ !contains(matrix.settings[0], 'pypy') }}
concurrency:
# https://github.community/t... | Since our locale tests use the same dependency file and pytest pattern, the concurrency key needs to be unique on the locale (download) as well.
| https://api.github.com/repos/pandas-dev/pandas/pulls/45653 | 2022-01-27T03:39:28Z | 2022-01-27T04:03:39Z | null | 2022-01-27T04:03:47Z |
CI/TST: Skip another s3 test that can crash GHA worker | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 4beba743209b6..8080a81519d8f 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -50,7 +50,7 @@ jobs:
COVERAGE: ${{ !contains(matrix.settings[0], 'pypy') }}
concurrency:
# https://github.community/t... | Example from https://github.com/pandas-dev/pandas/runs/4957463823?check_suite_focus=true
```
.....ss...s...s.........sss..........ss..........ss..................ssssss...s...s...x.............................XXXXXXXXX.XxXX2022-01-26 21:25:12,489 - s3fs - DEBUG - Setting up s3fs instance
2022-01-26T21:25:12.544260... | https://api.github.com/repos/pandas-dev/pandas/pulls/45651 | 2022-01-26T23:58:12Z | 2022-01-27T07:12:02Z | 2022-01-27T07:12:02Z | 2022-02-01T14:01:04Z |
Backport PR #45623 on branch 1.4.x (REGR: loc.setitem losing index name when df was empty before) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 79dae514b77e9..026051d126d5b 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | Backport PR #45623: REGR: loc.setitem losing index name when df was empty before | https://api.github.com/repos/pandas-dev/pandas/pulls/45650 | 2022-01-26T23:35:11Z | 2022-01-27T01:14:08Z | 2022-01-27T01:14:08Z | 2022-01-27T01:14:08Z |
Backport PR #45646 on branch 1.4.x (Revert "PERF: nancorr pearson (#42761)") | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 79dae514b77e9..1b69c42e90e95 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -32,7 +32,7 @@ Bug fixes
Other
~~~~~
--
+- Reverted performance speedup of :meth:`DataFrame.corr` for ``method=pearson``... | Backport PR #45646: Revert "PERF: nancorr pearson (#42761)" | https://api.github.com/repos/pandas-dev/pandas/pulls/45649 | 2022-01-26T23:34:11Z | 2022-01-27T01:13:41Z | 2022-01-27T01:13:41Z | 2022-01-27T01:13:41Z |
Revert "PERF: nancorr pearson (#42761)" | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 79dae514b77e9..1b69c42e90e95 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -32,7 +32,7 @@ Bug fixes
Other
~~~~~
--
+- Reverted performance speedup of :meth:`DataFrame.corr` for ``method=pearson``... | - [x] closes #45640
- [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/45646 | 2022-01-26T20:55:42Z | 2022-01-26T23:34:02Z | 2022-01-26T23:34:01Z | 2022-01-28T10:19:04Z |
Backport PR #45627 on branch 1.4.x (CLN: Use pytest -r to show skipped tests instead of print_skipped.py) | diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml
index a6d3f1f383751..a1812843b1a8f 100644
--- a/.github/workflows/assign.yml
+++ b/.github/workflows/assign.yml
@@ -4,11 +4,10 @@ on:
types: created
jobs:
- one:
+ issue_assign:
runs-on: ubuntu-latest
steps:
- if: github.e... | Backport PR #45627: CLN: Use pytest -r to show skipped tests instead of print_skipped.py | https://api.github.com/repos/pandas-dev/pandas/pulls/45645 | 2022-01-26T20:20:32Z | 2022-01-26T23:05:26Z | 2022-01-26T23:05:26Z | 2022-01-26T23:05:26Z |
BUG: frame.shift(axis=1) with ArrayManager | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 2a34c71412789..4badae6acf4de 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -93,6 +93,7 @@
)
from pandas.core.dtypes.cast import (
+ can_hold_element,
construct_1d_arraylike_from_scalar,
construct_2d_arraylike_from_scalar,
... | - [ ] 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/45644 | 2022-01-26T20:12:01Z | 2022-01-30T23:51:34Z | 2022-01-30T23:51:34Z | 2022-01-31T00:08:47Z |
REGR: Series.fillna(downcast=False) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 1bd8da2d2b03c..21aab5058d25b 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | - [x] closes #45603
- [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/45642 | 2022-01-26T18:15:20Z | 2022-01-27T22:24:29Z | 2022-01-27T22:24:29Z | 2022-01-27T22:58:53Z |
Switch deps to Conda | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4492f9c20cd0a..6f91c885bf1e8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -50,7 +50,7 @@ repos:
- flake8==4.0.1
- flake8-comprehensions==3.7.0
- flake8-bugbear==21.3.2
- - pandas-dev-flaker==0... | - [ ] 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/45641 | 2022-01-26T17:31:28Z | 2022-02-06T22:37:35Z | 2022-02-06T22:37:35Z | 2022-02-06T22:38:50Z |
BUG: ArrayManager indexing mismatched behavior | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 5f9bc142c5836..a98ba832e8a62 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -20,6 +20,7 @@
from pandas.util._decorators import doc
from pandas.util._exceptions import find_stack_level
+from pandas.core.dtypes.cast import can... | - [ ] 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/45639 | 2022-01-26T16:28:18Z | 2022-01-28T02:04:36Z | 2022-01-28T02:04:36Z | 2022-01-28T02:52:13Z |
added staircase entry in Domain Specific and Accessors section of pan… | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 16cae9bbfbf46..15fa58f8d804a 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -363,6 +363,15 @@ Geopandas extends pandas data objects to include geographic information which su
geometric operations. If your work entails maps ... | …das ecosystem docs
- [ ] closes #45635
| https://api.github.com/repos/pandas-dev/pandas/pulls/45636 | 2022-01-26T13:01:39Z | 2022-01-27T01:41:42Z | 2022-01-27T01:41:42Z | 2022-01-27T04:54:19Z |
DOC: Fix typo in nth docstring | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 229e8a1a4aa9d..b682723cb10de 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2675,7 +2675,7 @@ def nth(
A single nth value for the row or a list of nth values or slices.
..... | Correct spelling mistake nth docstring in pandas/core/groupby/groupby.py | https://api.github.com/repos/pandas-dev/pandas/pulls/45633 | 2022-01-26T10:46:42Z | 2022-01-26T17:49:15Z | 2022-01-26T17:49:15Z | 2022-02-10T19:26:39Z |
TST: Added test for setitem loc using datetime-like str | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 4b751fa7d5e3e..14ce47562c93d 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -2748,6 +2748,26 @@ def test_loc_setitem_uint8_upcast(value):
tm.assert_frame_equal(df, expected)
+@pyt... | Test to ensure index type conversion when updating existing dataframe
which has datetime as index with datetime-like str using loc
- [x] closes #28249
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-com... | https://api.github.com/repos/pandas-dev/pandas/pulls/45632 | 2022-01-26T08:53:10Z | 2022-01-28T00:35:54Z | 2022-01-28T00:35:53Z | 2022-01-28T00:36:00Z |
Backport PR #45628 on branch 1.4.x (CI/TST: Call join on server process test) | diff --git a/pandas/tests/io/test_user_agent.py b/pandas/tests/io/test_user_agent.py
index fb6128bd514f9..bba8a45005e11 100644
--- a/pandas/tests/io/test_user_agent.py
+++ b/pandas/tests/io/test_user_agent.py
@@ -217,6 +217,7 @@ def responder(request):
)
server_process.start()
yield port
+ server_proc... | Backport PR #45628: CI/TST: Call join on server process test | https://api.github.com/repos/pandas-dev/pandas/pulls/45631 | 2022-01-26T05:12:07Z | 2022-01-26T15:59:46Z | 2022-01-26T15:59:46Z | 2022-01-26T15:59:46Z |
CI/TST: Call join on server process test | diff --git a/pandas/tests/io/test_user_agent.py b/pandas/tests/io/test_user_agent.py
index 3d4c157e5f09e..78f2365a09d4c 100644
--- a/pandas/tests/io/test_user_agent.py
+++ b/pandas/tests/io/test_user_agent.py
@@ -218,6 +218,7 @@ def responder(request):
)
server_process.start()
yield port
+ server_proc... | Troubleshooting this current CI failure
```
@pytest.fixture
def responder(request):
"""
Fixture that starts a local http server in a separate process on localhost
and returns the port.
Running in a separate process instead of a thread to allow termination/killing
... | https://api.github.com/repos/pandas-dev/pandas/pulls/45628 | 2022-01-26T02:14:28Z | 2022-01-26T05:11:54Z | 2022-01-26T05:11:54Z | 2022-01-26T05:12:15Z |
CLN: Use pytest -r to show skipped tests instead of print_skipped.py | diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml
index a6d3f1f383751..a1812843b1a8f 100644
--- a/.github/workflows/assign.yml
+++ b/.github/workflows/assign.yml
@@ -4,11 +4,10 @@ on:
types: created
jobs:
- one:
+ issue_assign:
runs-on: ubuntu-latest
steps:
- if: github.e... | Example when using `pytest -r s`
```
=========================== short test summary info ============================
SKIPPED [1] pandas/tests/test_downstream.py:30: skipping as toolz not available
SKIPPED [1] pandas/tests/test_downstream.py:30: skipping as dask not available
SKIPPED [1] pandas/tests/test_downst... | https://api.github.com/repos/pandas-dev/pandas/pulls/45627 | 2022-01-25T23:53:06Z | 2022-01-26T20:19:37Z | 2022-01-26T20:19:37Z | 2022-01-26T20:27:46Z |
BUG: parse_time_string with np.str_ obj | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 4e73ea348dfde..03da62983df22 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:`Series.__setitem__` when setting ``boolean`` dtype values containing ``NA`` incor... | - [x] closes #45580
- [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/45626 | 2022-01-25T23:12:07Z | 2022-01-28T00:36:45Z | 2022-01-28T00:36:45Z | 2022-01-28T00:40:17Z |
BUG: SeriesGroupBy.value_counts - index name missing in categorical columns | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 039a86da0541e..18fc16b5f38d3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -224,6 +224,7 @@ Datetimelike
- Bug in :func:`to_datetime` with sequences of ``np.str_`` objects incorrectly raising (:issu... | - [X] closes #44324
- [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/45625 | 2022-01-25T22:29:57Z | 2022-02-05T23:19:28Z | 2022-02-05T23:19:27Z | 2022-02-06T22:02:07Z |
DOC CLN: remove unnecessary substitution, due to curly brackets | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 432e12f303919..f97f558fd0e0b 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1659,7 +1659,6 @@ def _apply_index(
alt="applymap",
altwise="elementwise",
func="take a Series and return a stri... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/45624 | 2022-01-25T21:21:25Z | 2022-01-26T01:41:16Z | 2022-01-26T01:41:16Z | 2022-01-26T06:16:24Z |
REGR: loc.setitem losing index name when df was empty before | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 79dae514b77e9..026051d126d5b 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | - [x] closes #45621
- [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/45623 | 2022-01-25T21:15:50Z | 2022-01-26T23:35:01Z | 2022-01-26T23:35:01Z | 2022-01-28T10:19:23Z |
BUG: NumericArray * td64_array | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 270a58c33cb8a..9b4131de10689 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -234,6 +234,7 @@ Timezones
Numeric
^^^^^^^
- Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA` i... | - [ ] 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/45622 | 2022-01-25T21:09:44Z | 2022-01-28T00:33:24Z | 2022-01-28T00:33:24Z | 2022-01-28T00:35:35Z |
Backport PR #45437 on branch 1.4.x (CI: Don't split slow vs non slow jobs for GHA posix) | diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml
index 3fc515883a225..28ce7bc5c0ef4 100644
--- a/.github/workflows/datamanger.yml
+++ b/.github/workflows/datamanger.yml
@@ -26,12 +26,9 @@ jobs:
AWS_SECRET_ACCESS_KEY: foobar_secret
ports:
- 5000:5000
- st... | Backport PR #45437: CI: Don't split slow vs non slow jobs for GHA posix | https://api.github.com/repos/pandas-dev/pandas/pulls/45620 | 2022-01-25T18:29:47Z | 2022-01-25T21:29:43Z | 2022-01-25T21:29:43Z | 2022-01-25T21:29:43Z |
BUG: is_bool_dtype raises AttributeError when checking categorical Series | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 9509b96055255..9c813a4803004 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -31,7 +31,7 @@ Bug fixes
- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-aware datetimes in Python 3.10 (:i... | - [X] closes #45615
- [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/45616 | 2022-01-25T14:11:30Z | 2022-01-31T13:23:05Z | 2022-01-31T13:23:05Z | 2022-02-08T16:44:05Z |
TST/CI: Mark TestS3 as xfail(strict=False) due to flakiness | diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index 1e6d7e8ef50ab..d4c3c93a32af0 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -69,14 +69,14 @@ def tips_df(datapath):
@pytest.mark.usefixtures("s3_resource")
+@pytes... | - [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
Another example: https://github.com/pandas-dev/pandas/runs/4930469212?check_suite_focus=true#step:10:58
| https://api.github.com/repos/pandas-dev/pandas/pulls/45613 | 2022-01-25T04:35:37Z | 2022-01-25T16:46:11Z | 2022-01-25T16:46:11Z | 2022-01-25T16:46:15Z |
DOC: Improve reshaping.rst | diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst
index e74272c825e46..f9e68b1b39ddc 100644
--- a/doc/source/user_guide/reshaping.rst
+++ b/doc/source/user_guide/reshaping.rst
@@ -13,37 +13,12 @@ Reshaping by pivoting DataFrame objects
.. image:: ../_static/reshaping_pivot.png
... | * Add more sphinx references
* Links function docs back to `reshaping.rst`
* Convert `code-block` to `ipython`
| https://api.github.com/repos/pandas-dev/pandas/pulls/45612 | 2022-01-25T04:29:53Z | 2022-01-28T00:34:01Z | 2022-01-28T00:34:01Z | 2022-01-28T00:54:31Z |
CI: use pipx and build to simplify and remove a workaround (2) | diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml
index dd030f1aacc44..b334f06238883 100644
--- a/.github/workflows/sdist.yml
+++ b/.github/workflows/sdist.yml
@@ -34,23 +34,10 @@ jobs:
with:
fetch-depth: 0
- - name: Set up Python
- uses: actions/setup-python@v2
- wit... | - CI: use pipx and build to simplify and remove a workaround
- ci: drop setup-python, show build version
- [ ] 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
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/45611 | 2022-01-25T03:33:14Z | 2022-03-17T16:50:48Z | null | 2022-03-17T16:50:49Z |
TYP: return type of read_csv/table | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index c5b84dd18ec13..7684fa32fbd66 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -11,7 +11,10 @@
IO,
Any,
Callable,
+ Literal,
NamedTuple,
+ Sequence,
+ overload,
)
import warnings
... | Return type of read_csv/table (union for now, overload can be used when positional keywords are deprecated), type TextFileReader, and type some random arguments of read_csv/table | https://api.github.com/repos/pandas-dev/pandas/pulls/45610 | 2022-01-25T02:34:26Z | 2022-03-02T01:55:38Z | 2022-03-02T01:55:38Z | 2022-03-09T02:56:04Z |
Diff low precision ints | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e3f772ac026ab..f36447b142b6e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -302,7 +302,9 @@ Conversion
- Bug in :meth:`Float64Index.astype` to unsigned integer dtype incorrectly casting to ``np.int6... | - [x] closes #45562
- [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
Submitting this PR as a potential option. This changes the diff method to upcast in... | https://api.github.com/repos/pandas-dev/pandas/pulls/45609 | 2022-01-25T02:29:30Z | 2022-02-26T19:50:24Z | null | 2022-03-20T23:18:55Z |
CLN: Remove Python 2 compat in np_datetime.c | diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/datetime/np_datetime.c
index 0efed210a7fdf..8f59f53a555d8 100644
--- a/pandas/_libs/tslibs/src/datetime/np_datetime.c
+++ b/pandas/_libs/tslibs/src/datetime/np_datetime.c
@@ -27,10 +27,6 @@ This file is derived from NumPy 1.7. See NUM... | - [ ] 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/45606 | 2022-01-24T23:48:55Z | 2022-01-26T01:40:29Z | 2022-01-26T01:40:29Z | 2022-01-26T01:59:47Z |
Backport PR #45576 on branch 1.4.x (CI: Use xsel instead of xclip for numpydev) | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 135ca0703de8b..1cc8188919980 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -35,7 +35,7 @@ jobs:
[actions-pypy-38.yaml, "not slow and not clipboard", "", "", "", "", "--max-worker-restart 0"],
... | Backport PR #45576: CI: Use xsel instead of xclip for numpydev | https://api.github.com/repos/pandas-dev/pandas/pulls/45604 | 2022-01-24T22:27:49Z | 2022-01-25T14:20:48Z | 2022-01-25T14:20:48Z | 2022-01-25T14:20:49Z |
QDataFrame | diff --git a/pandas/util/qdataframe.py b/pandas/util/qdataframe.py
new file mode 100644
index 0000000000000..15c2eb624ca1b
--- /dev/null
+++ b/pandas/util/qdataframe.py
@@ -0,0 +1,82 @@
+import pandas as pd
+import numpy as np
+from astropy import units as u
+
+class QSeries(pd.Series):
+
+ _metadata = ["unit"]
+
+ ... | Not sure where that fits inside pandas. Happy to add tests to this but this works AFAICT.
- [x] closes #10349
- [ ] 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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45602 | 2022-01-24T22:00:37Z | 2022-01-28T00:30:16Z | null | 2023-05-11T01:21:35Z |
Backport PR #45597 on branch 1.4.x (CI: Fix failing CI for test_alignment_deprecation_many_inputs) | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index c6666551ffad6..623c5fbecc48c 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -9,7 +9,7 @@
np_version_under1p19 = _nlv < Version("1.19")
np_version_under1p20 = _nlv < Version("1.20")
np_version_u... | Backport PR #45597: CI: Fix failing CI for test_alignment_deprecation_many_inputs | https://api.github.com/repos/pandas-dev/pandas/pulls/45600 | 2022-01-24T20:43:17Z | 2022-01-24T21:57:50Z | 2022-01-24T21:57:50Z | 2022-01-24T21:57:50Z |
CI: Fix failing CI for test_alignment_deprecation_many_inputs | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index c6666551ffad6..623c5fbecc48c 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -9,7 +9,7 @@
np_version_under1p19 = _nlv < Version("1.19")
np_version_under1p20 = _nlv < Version("1.20")
np_version_u... | xref https://github.com/pandas-dev/pandas/issues/45182
https://github.com/pandas-dev/pandas/pull/45179 was a little too strict since numpy just had a point release.
This should (hopefully) get us to green @jbrockmendel
| https://api.github.com/repos/pandas-dev/pandas/pulls/45597 | 2022-01-24T18:49:40Z | 2022-01-24T20:43:06Z | 2022-01-24T20:43:06Z | 2022-02-10T17:26:10Z |
REF: share IntegerArray/FloatingArray coerce_to_array | diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py
index 82dc7e4454227..d55aef953b5b5 100644
--- a/pandas/core/arrays/floating.py
+++ b/pandas/core/arrays/floating.py
@@ -2,20 +2,9 @@
import numpy as np
-from pandas._libs import (
- lib,
- missing as libmissing,
-)
from pandas._typ... | - [ ] 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/45596 | 2022-01-24T18:05:34Z | 2022-01-27T00:40:29Z | 2022-01-27T00:40:29Z | 2022-01-27T02:17:41Z |
ENH: Add typing tests according to the issue 45252 | diff --git a/LICENSES/STUBS_LICENSE b/LICENSES/STUBS_LICENSE
new file mode 100644
index 0000000000000..811d0beb50ddb
--- /dev/null
+++ b/LICENSES/STUBS_LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Virtus Lab sp. z o.o. (Ltd.)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of ... | Typing test stubs originally authored by Joanna Sendorek, Zbigniew Królikowski and pandas_stubs contributors: https://github.com/VirtusLab/pandas-stubs/graphs/contributors
Adapted to pandas needs by Torsten Wörtwein
Issue reference:
https://github.com/pandas-dev/pandas/issues/45252
**Summary of files and chan... | https://api.github.com/repos/pandas-dev/pandas/pulls/45594 | 2022-01-24T17:09:16Z | 2022-05-05T17:02:14Z | null | 2022-05-05T17:02:14Z |
DOC: don't suggest melt instead of lookup | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 36e698fa576d8..12f749bd2aa6f 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4561,7 +4561,7 @@ def lookup(
.. deprecated:: 1.2.0
DataFrame.lookup is deprecated,
- use DataFrame.melt and DataFrame.loc inste... | - [X] closes #45589
- [ ] 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/45592 | 2022-01-24T16:21:02Z | 2022-01-24T17:56:01Z | 2022-01-24T17:56:01Z | 2022-01-24T19:25:39Z |
DOC/WEB: update versions.json to include 1.4 stable docs url | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 2ad317c50fef1..3085efe02738b 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -5,6 +5,10 @@
},
{
"name": "1.4 (stable)",
+ "version": "docs"
+ },
+ {
+ "name": "1.4",
"version": ... | Small follow-up on https://github.com/pandas-dev/pandas/pull/45555 | https://api.github.com/repos/pandas-dev/pandas/pulls/45590 | 2022-01-24T14:37:29Z | 2022-01-24T17:14:11Z | 2022-01-24T17:14:11Z | 2022-01-24T17:14:13Z |
DOC: append deprecation | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 47a087d38d146..7340f2475e1f6 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -637,11 +637,11 @@ will continue to return :class:`Int64Index`, :class:`UInt64Index` and
.. _whatsnew_140.deprecations.fr... | - [ ] adds to documentation for #35407
| https://api.github.com/repos/pandas-dev/pandas/pulls/45587 | 2022-01-24T11:31:30Z | 2022-02-11T14:30:39Z | 2022-02-11T14:30:38Z | 2022-02-11T14:31:08Z |
BUG: fix skiprows callable infinite loop | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 919ed926f8195..baccd4b45a906 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -289,6 +289,7 @@ MultiIndex
I/O
^^^
- Bug in :meth:`DataFrame.to_stata` where no error is raised if the :class:`DataFrame... | - [X] closes #45585
- [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
Not sure what to do about the `whatsnew` entry. Please advise (I've read the contribu... | https://api.github.com/repos/pandas-dev/pandas/pulls/45586 | 2022-01-24T10:40:19Z | 2022-02-06T22:41:09Z | 2022-02-06T22:41:08Z | 2022-02-06T22:41:16Z |
Backport PR #45558 on branch 1.4.x (BUG: Segfault in to_json with tzaware datetime) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 48b62637c26b1..79dae514b77e9 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz... | Backport PR #45558: BUG: Segfault in to_json with tzaware datetime | https://api.github.com/repos/pandas-dev/pandas/pulls/45584 | 2022-01-24T07:03:10Z | 2022-01-24T14:00:44Z | 2022-01-24T14:00:44Z | 2022-01-24T14:00:44Z |
REF: avoid upcast/downcast in Block.where | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index fe5b464a5a18d..216dd1e65de3a 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -87,6 +87,7 @@
)
from pandas.core.dtypes.inference import is_list_like
from pandas.core.dtypes.missing import (
+ array_equivalent,
... | - [ ] 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
Puts us within a stone's throw of being able to share Block.where with EABackedBlock.w... | https://api.github.com/repos/pandas-dev/pandas/pulls/45582 | 2022-01-24T04:32:40Z | 2022-01-30T23:45:56Z | 2022-01-30T23:45:56Z | 2022-01-31T00:10:07Z |
CI: Fix actions-310 testing 3.9 instead of 3.10 | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 9829380620f86..bbc468f9d8f43 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -2,7 +2,7 @@ name: pandas-dev
channels:
- conda-forge
dependencies:
- - python=3.9
+ - python=3.10
# test dependencies
- cython=0.29.... | - [x] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/45581 | 2022-01-24T03:49:53Z | 2022-01-25T02:56:14Z | 2022-01-25T02:56:14Z | 2022-02-01T11:03:33Z |
REF: Use more context managers to close files | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c51e91336b023..34f10c1b3ec28 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -839,9 +839,8 @@ The simplest case is to just pass in ``parse_dates=True``:
.. ipython:: python
:suppress:
- f = open("foo.... | - [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/45579 | 2022-01-24T01:26:18Z | 2022-01-24T04:03:45Z | 2022-01-24T04:03:45Z | 2022-01-24T04:03:48Z |
TST: Change test_groupby_copy to apply_mutate.py | diff --git a/pandas/tests/groupby/test_apply_mutate.py b/pandas/tests/groupby/test_apply_mutate.py
index 05c1f5b716f40..01fe7512c0fe9 100644
--- a/pandas/tests/groupby/test_apply_mutate.py
+++ b/pandas/tests/groupby/test_apply_mutate.py
@@ -4,6 +4,20 @@
import pandas._testing as tm
+def test_group_by_copy():
+ ... | Pending tasks from #45509
In line with issue #44803
Change test_groupby_copy from `pandas/tests/groupby/test_groupby.py` to `pandas/tests/groupby/test_apply_mutate.py`
- [X] Already closed #44803 via #45509 | https://api.github.com/repos/pandas-dev/pandas/pulls/45578 | 2022-01-23T22:56:39Z | 2022-01-24T21:26:29Z | 2022-01-24T21:26:29Z | 2022-01-25T13:52:45Z |
BUG: frame.mask(foo, bar, inplace=True) with EAs incorrectly raising | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 4e73ea348dfde..1f846cd867fad 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -263,6 +263,7 @@ Indexing
- Bug when setting a value too large for a :class:`Series` dtype failing to coerce to a common ty... | - [ ] 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/45577 | 2022-01-23T20:30:06Z | 2022-01-28T00:27:12Z | 2022-01-28T00:27:12Z | 2022-01-28T00:33:23Z |
CI: Use xsel instead of xclip for numpydev | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 135ca0703de8b..1cc8188919980 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -35,7 +35,7 @@ jobs:
[actions-pypy-38.yaml, "not slow and not clipboard", "", "", "", "", "--max-worker-restart 0"],
... | Hopefully fixes this flaky clipboard test
```
_________________________ test_raw_roundtrip[abcd...] __________________________
[gw1] linux -- Python 3.10.0 /usr/share/miniconda/envs/pandas-dev/bin/python
data = 'abcd...'
@pytest.mark.single
@pytest.mark.clipboard
@pytest.mark.parametrize("data"... | https://api.github.com/repos/pandas-dev/pandas/pulls/45576 | 2022-01-23T20:13:33Z | 2022-01-24T22:27:40Z | 2022-01-24T22:27:40Z | 2022-01-24T22:51:55Z |
PERF: faster groupby diff | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 74bdf7cccff70..cf6f3f92068e8 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -18,6 +18,7 @@
method_blocklist = {
"object": {
+ "diff",
"median",
"prod",
"s... | - [x] closes #16706
- [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
As @jreback suggests in the original issue, there is a large perf improvement to gr... | https://api.github.com/repos/pandas-dev/pandas/pulls/45575 | 2022-01-23T20:01:51Z | 2022-02-28T13:41:08Z | 2022-02-28T13:41:08Z | 2022-05-07T03:12:25Z |
DEPR: datetimelike.astype(int_other_than_i8) return requested dtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 571bcb7a6d2b2..f2acd0eb3f47a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -192,6 +192,7 @@ Other Deprecations
- Deprecated behavior of :meth:`DatetimeIndex.intersection` and :meth:`DatetimeIndex.sy... | - [ ] 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
xref #45034 this should be just non-controversial parts of that discussion cc @jorisva... | https://api.github.com/repos/pandas-dev/pandas/pulls/45574 | 2022-01-23T18:45:58Z | 2022-02-14T08:22:21Z | 2022-02-14T08:22:21Z | 2022-02-14T16:31:24Z |
DEPR: treating float data as wall-times in DTA._from_sequence | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 71394a858aefe..d5b092e21a596 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -240,6 +240,7 @@ Other Deprecations
- Deprecated :meth:`Series.is_monotonic` and :meth:`Index.is_monotonic` in favor of :me... | - [ ] 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/45573 | 2022-01-23T18:28:11Z | 2022-02-19T01:14:37Z | 2022-02-19T01:14:37Z | 2022-02-19T03:00:43Z |
PERF: TimedeltaArray.astype(object) | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index c845d9c8cdbde..2f26f6cc22f80 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -37,6 +37,7 @@
delta_to_nanoseconds,
iNaT,
ints_to_pydatetime,
+ ints_to_pytimedelta,
... | ```
In [2]: tdi = pd.timedelta_range("1 second", periods=10**5, freq="s")
In [5]: %timeit tdi.astype(object)
388 ms ± 43.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR
588 ms ± 63.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- main
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/45571 | 2022-01-23T16:24:19Z | 2022-01-23T19:53:45Z | 2022-01-23T19:53:45Z | 2022-01-23T20:53:51Z |
Fixes mypy attribute issue in io/parquet by adding a hasattr check | diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py
index c5bfbd2b6b35d..1b8526275c155 100644
--- a/pandas/io/parquet.py
+++ b/pandas/io/parquet.py
@@ -180,8 +180,12 @@ def write(
mode="wb",
is_dir=partition_cols is not None,
)
- if isinstance(path_or_handle, io.BufferedWr... | - [x] closes #45480, #44914
- [x] Passes tests in pytest
- [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/45570 | 2022-01-23T15:43:26Z | 2022-01-23T23:35:37Z | 2022-01-23T23:35:37Z | 2022-01-23T23:35:54Z |
BUG: Series[Interval[int]][1] = np.nan incorrect coercion/raising | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 4e73ea348dfde..da42b2c228ec6 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -259,6 +259,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`loc.__getitem__` with a list of keys causing an internal inconsistency ... | - [ ] 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/45568 | 2022-01-23T05:14:56Z | 2022-01-28T02:07:27Z | 2022-01-28T02:07:27Z | 2022-01-28T02:39:28Z |
TST: Update error msg for Python 3.10 | diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py
index b4ae54d48dc68..d2fb25ed6ea91 100644
--- a/pandas/tests/io/json/test_ujson.py
+++ b/pandas/tests/io/json/test_ujson.py
@@ -15,7 +15,6 @@
import pandas._libs.json as ujson
from pandas.compat import (
IS64,
- PY310,
i... | - [ ] closes #41940
- [ ] 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/45567 | 2022-01-23T03:38:25Z | 2022-01-23T19:50:01Z | 2022-01-23T19:50:01Z | 2022-01-23T22:26:53Z |
REGR: check_flags not respected in assert_frame_equal | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 21aab5058d25b..d0a58a19df92f 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Regression in :meth:`Series.mask... | - [x] closes #45554
- [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/45565 | 2022-01-23T03:20:09Z | 2022-01-28T01:59:52Z | 2022-01-28T01:59:51Z | 2022-01-28T10:04:22Z |
BUG: align not adding levels only on one side if intersection is equal | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ea5258cf1537d..1084bcc1eeeb5 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -316,6 +316,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`loc.__getitem__` with a list of keys causing an internal inconsistency ... | - [x] closes #45224
- [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 is now consistent with the case when both sides do not have the same intersectio... | https://api.github.com/repos/pandas-dev/pandas/pulls/45564 | 2022-01-23T03:07:36Z | 2022-02-15T01:02:31Z | 2022-02-15T01:02:31Z | 2022-02-15T12:49:30Z |
Backport PR #45503 on branch 1.4.x (BLD: Fix pydata-sphix-theme version GH45374) | diff --git a/environment.yml b/environment.yml
index 15dd329f80deb..9b8eec70a30e0 100644
--- a/environment.yml
+++ b/environment.yml
@@ -120,6 +120,6 @@ dependencies:
- tabulate>=0.8.3 # DataFrame.to_markdown
- natsort # DataFrame.sort_values
- pip:
- - git+https://github.com/pydata/pydata-sphinx-theme.gi... | Backport PR #45503: BLD: Fix pydata-sphix-theme version GH45374 | https://api.github.com/repos/pandas-dev/pandas/pulls/45563 | 2022-01-23T02:30:23Z | 2022-01-23T12:08:54Z | 2022-01-23T12:08:54Z | 2022-01-23T12:08:54Z |
TYP/CI: Demonstrate possible integration of VirtusLab's type tests | diff --git a/pandas/tests/typing/valid/__init__.py b/pandas/tests/typing/valid/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/typing/valid/test_frame.py b/pandas/tests/typing/valid/test_frame.py
new file mode 100644
index 0000000000000..0937ebbc3927d
--- /dev/null
+++ b/pa... | Demonstrate the integration of positive type tests from https://github.com/VirtusLab/pandas-stubs for the public API (tests import
some private modules?).
This PR should NOT be merged and this PR probably violates licenses/copyrights. It is probably best if a member of the VirtusLab re-creates this PR. This PR is ... | https://api.github.com/repos/pandas-dev/pandas/pulls/45561 | 2022-01-23T00:13:36Z | 2022-01-24T22:51:47Z | null | 2022-03-09T02:56:22Z |
Backport PR #45546 on branch 1.4.x (REGR: changed behavior in series[period].mask(foo, bar, inplace=True)) | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index f321aabc0a8a5..48b62637c26b1 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Regression in :meth:`Series... | Backport PR #45546: REGR: changed behavior in series[period].mask(foo, bar, inplace=True) | https://api.github.com/repos/pandas-dev/pandas/pulls/45560 | 2022-01-23T00:06:22Z | 2022-01-23T03:14:46Z | 2022-01-23T03:14:46Z | 2022-01-23T03:14:46Z |
Backport PR #45507 on branch 1.4.x (CI: Troubleshoot) | diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py
index 0d383cc4bde8f..e223378b600e0 100644
--- a/pandas/tests/io/parser/test_unsupported.py
+++ b/pandas/tests/io/parser/test_unsupported.py
@@ -12,6 +12,7 @@
import pytest
+from pandas.compat import is_platform_win... | Backport PR #45507: CI: Troubleshoot | https://api.github.com/repos/pandas-dev/pandas/pulls/45559 | 2022-01-22T22:34:56Z | 2022-01-22T23:46:15Z | 2022-01-22T23:46:15Z | 2022-01-22T23:46:15Z |
BUG: Segfault in to_json with tzaware datetime | diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst
index 48b62637c26b1..79dae514b77e9 100644
--- a/doc/source/whatsnew/v1.4.1.rst
+++ b/doc/source/whatsnew/v1.4.1.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz... | - [ ] closes #42130
- [ ] 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
Basically, timedelta.total_seconds returns a float. PyInt_AsLong(actually PyLong_AsLo... | https://api.github.com/repos/pandas-dev/pandas/pulls/45558 | 2022-01-22T21:29:22Z | 2022-01-24T07:02:37Z | 2022-01-24T07:02:37Z | 2022-01-24T14:22:00Z |
ENH: Experimental Higher Order Methods API | diff --git a/doc/source/user_guide/homs_api.rst b/doc/source/user_guide/homs_api.rst
new file mode 100644
index 0000000000000..87525d84be56a
--- /dev/null
+++ b/doc/source/user_guide/homs_api.rst
@@ -0,0 +1,80 @@
+.. _homs:
+
+:orphan:
+
+{{ header }}
+
+***************************
+pandas Higher Order Methods
+*******... | Start of #41112, second attempt at #43736.
- [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
Built docs can be viewed in #43736 (wording slightly changed from there, but resul... | https://api.github.com/repos/pandas-dev/pandas/pulls/45557 | 2022-01-22T21:18:42Z | 2022-02-19T19:53:19Z | null | 2023-11-26T13:42:46Z |
Backport PR #45555 on branch 1.4.x (WEB: update web/pandas/versions.json for docs dropdown menu) | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 76c06210e2238..2ad317c50fef1 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -4,13 +4,9 @@
"version": "docs/dev"
},
{
- "name": "1.4 (rc)",
+ "name": "1.4 (stable)",
"version": "panda... | Backport PR #45555: WEB: update web/pandas/versions.json for docs dropdown menu | https://api.github.com/repos/pandas-dev/pandas/pulls/45556 | 2022-01-22T21:12:58Z | 2022-01-22T23:46:43Z | 2022-01-22T23:46:43Z | 2022-01-22T23:46:43Z |
WEB: update web/pandas/versions.json for docs dropdown menu | diff --git a/web/pandas/versions.json b/web/pandas/versions.json
index 76c06210e2238..2ad317c50fef1 100644
--- a/web/pandas/versions.json
+++ b/web/pandas/versions.json
@@ -4,13 +4,9 @@
"version": "docs/dev"
},
{
- "name": "1.4 (rc)",
+ "name": "1.4 (stable)",
"version": "panda... | I don't think the milestone is relevant for web updates so backport not needed? | https://api.github.com/repos/pandas-dev/pandas/pulls/45555 | 2022-01-22T19:55:47Z | 2022-01-22T21:12:49Z | 2022-01-22T21:12:49Z | 2022-01-24T14:37:58Z |
Backport PR #45550 on branch 1.4.x (DOC: start v1.4.1 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index df33174804a33..a3214834fb764 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.4
.. toctree::
:maxdepth: 2
+ v1.4.1
v1.4.0
Version 1.3
diff --git a/doc/source/whatsne... | Backport PR #45550: DOC: start v1.4.1 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/45552 | 2022-01-22T12:39:37Z | 2022-01-22T13:53:36Z | 2022-01-22T13:53:36Z | 2022-01-22T13:53:36Z |
DOC: start v1.4.1 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 026d998613b16..cb38166fcbc70 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.4
.. toctree::
:maxdepth: 2
+ v1.4.1
v1.4.0
Version 1.3
diff --git a/doc/source/whatsne... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/45550 | 2022-01-22T11:35:48Z | 2022-01-22T12:39:09Z | 2022-01-22T12:39:09Z | 2022-01-22T12:39:12Z |
DOC: Shared doc string in render methods | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 6293ad6ae3ddf..432e12f303919 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -97,6 +97,15 @@ def _mpl(func: Callable):
color = """color : str, default 'yellow'
Background color to use for highlighting."""... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/45548 | 2022-01-22T08:19:38Z | 2022-01-25T17:32:36Z | 2022-01-25T17:32:35Z | 2022-02-21T06:21:29Z |
CI: Azure timeout debug | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 8a74ae14404b3..679246673330c 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -16,6 +16,7 @@ env:
jobs:
pre_commit:
+ if: false
name: pre-commit
runs-on: ubuntu-latest
... | Parallel troubleshooting with https://github.com/pandas-dev/pandas/pull/45507#issuecomment-1018536106
| https://api.github.com/repos/pandas-dev/pandas/pulls/45547 | 2022-01-22T04:04:36Z | 2022-01-23T03:27:04Z | null | 2022-01-23T03:27:09Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.