title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
Backport PR #45784 on branch 1.4.x (Regression: Series.loc.setitem raising with all false indexer and series on rhs)
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index f74215f1f0361..32e801e5c9231 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Regression in :meth:`DataFrame.iat` setting values leading to not propagating correctly ...
Backport PR #45784
https://api.github.com/repos/pandas-dev/pandas/pulls/45859
2022-02-07T13:05:12Z
2022-02-07T14:55:43Z
2022-02-07T14:55:43Z
2022-02-08T10:23:11Z
CI: Align GHA and Windows Azure dependencies
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1e2556f521225..d69936322b47e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,6 +18,8 @@ pr: variables: PYTEST_WORKERS: auto PYTEST_TARGET: pandas + PATTERN: "not slow and not high_memory and not db and not network" + PANDAS_CI: 1 ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Broken off from https://...
https://api.github.com/repos/pandas-dev/pandas/pulls/45856
2022-02-07T04:43:08Z
2022-02-07T13:52:29Z
2022-02-07T13:52:29Z
2022-02-08T17:17:07Z
PERF: faster constructors from ea scalars
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 810c29ec70a6f..141142c2b3d97 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -2,8 +2,10 @@ import pandas as pd from pandas import ( + NA, Categorical, DataFrame, + F...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/45854
2022-02-07T04:03:08Z
2022-02-09T00:28:39Z
2022-02-09T00:28:39Z
2022-03-02T01:13:15Z
Fixing documentation format in read_csv
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 5f93eef4fd977..c5b84dd18ec13 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -374,7 +374,7 @@ - callable, function with signature ``(bad_line: list[str]) -> list[str] | None`` that will pro...
add a mising ` in on_bad_lines option description in " New in version 1.3.0: " section , that was causing to make couple of lines red - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing...
https://api.github.com/repos/pandas-dev/pandas/pulls/45853
2022-02-07T01:35:15Z
2022-02-07T03:35:05Z
2022-02-07T03:35:05Z
2022-02-10T18:52:36Z
PERF: use fast version of 1d-only checks
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5674c118f63d6..c5faa432cb494 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -107,7 +107,6 @@ ensure_platform_int, infer_dtype_from_object, is_1d_only_ea_dtype, - is_1d_only_ea_obj, is_bool_dtype, is_dataclass, ...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45852
2022-02-07T00:22:49Z
2022-02-09T00:29:01Z
2022-02-09T00:29:01Z
2022-02-09T02:19:39Z
Backport PR #45641 on branch 1.4.x (Switch deps to Conda)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5232b76a6388d..3ffcf29f47688 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - flake8==4.0.1 - flake8-comprehensions==3.7.0 - flake8-bugbear==21.3.2 - - pandas-dev-flaker==0...
Backport PR #45641: Switch deps to Conda
https://api.github.com/repos/pandas-dev/pandas/pulls/45851
2022-02-06T22:38:40Z
2022-02-07T13:07:17Z
2022-02-07T13:07:17Z
2022-02-07T13:07:17Z
REF: share NumericArray._arith_method with BooleanArray
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 6a69d4d610336..9d5540aa8a21b 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -382,42 +382,5 @@ def _logical_method(self, other, op): # expected "ndarray" return BooleanArray(result, mask)...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45849
2022-02-06T19:56:32Z
2022-02-09T01:29:06Z
2022-02-09T01:29:06Z
2022-02-09T02:23:52Z
ENH: Index[complex]
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 24d6e3cece296..ac39546603266 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -38,6 +38,8 @@ Other enhancements - :meth:`Series.reset_index` and :meth:`DataFrame.reset_index` now support the argument `...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45845
2022-02-06T04:30:53Z
2022-02-10T21:22:24Z
2022-02-10T21:22:24Z
2022-02-11T00:41:27Z
BUG: Series[float32].__setitem__(int_cant_hold_in_int32) not coercing
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b559d8eb463a1..ae1d2244663e3 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -318,6 +318,7 @@ Indexing - Bug in getting a column from a DataFrame with an object-dtype row index with datetime-like valu...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45844
2022-02-06T02:15:40Z
2022-02-09T00:58:14Z
2022-02-09T00:58:14Z
2022-02-09T02:24:21Z
TST: Remove unused fixtures in tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index a9c8ab833b40f..54f49bb9f7fd6 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1776,7 +1776,7 @@ def indexer_ial(request): @pytest.fixture -def using_array_manager(request): +def using_array_manager(): """ Fixture to check if the array...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45843
2022-02-06T00:37:43Z
2022-02-06T20:12:47Z
2022-02-06T20:12:47Z
2022-02-06T22:07:06Z
TST: Use fixtures instead of setup_method
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 0e734f0c1a1e8..50a56761eda8c 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -16,12 +16,22 @@ ) -class TestSparseArray: - def setup_method(self): - ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45842
2022-02-06T00:36:32Z
2022-02-07T13:51:34Z
2022-02-07T13:51:34Z
2022-02-07T17:26:44Z
DOC: Update import statement (GH21749)
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index ddb8e19d1c558..a1415d5989e2e 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1418,20 +1418,20 @@ def take( Examples -------- - >>> from pandas.api.extensions import take + >>> import pandas as pd ...
- [x] Addresses a task in #21749 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45841
2022-02-05T23:33:49Z
2022-02-06T22:27:05Z
2022-02-06T22:27:05Z
2022-02-06T22:42:52Z
REF: standardize patterns in Block Methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 4c284fdc39822..5eb59f2eb9a67 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -981,40 +981,43 @@ def putmask(self, mask, new) -> list[Block]: new = self.fill_value new = self...
Use try/except instead of self._can_hold_element in Block.putmask, use the splitting pattern from Block.putmask in Block.where (eventually to be refactored into a helper)
https://api.github.com/repos/pandas-dev/pandas/pulls/45840
2022-02-05T19:22:10Z
2022-02-05T21:32:20Z
2022-02-05T21:32:20Z
2022-02-05T21:36:46Z
WIP/BUG: Correct results for groupby(...).transform with null keys
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index ac39546603266..2bcdf0d0a00d9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -50,10 +50,61 @@ Notable bug fixes These are bug fixes that might have notable behavior changes. -.. _whatsnew_150.nota...
- [x] closes #17093 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45839
2022-02-05T19:06:54Z
2022-02-12T03:35:55Z
null
2022-02-12T03:35:55Z
PERF: Merge empty frame
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index dc9b1f501749e..6e27d9355997f 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -216,6 +216,12 @@ def time_merge_dataframe_integer_2key(self, sort): def time_merge_dataframe_integer_k...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/45838
2022-02-05T19:04:04Z
2022-02-09T08:04:41Z
2022-02-09T08:04:41Z
2022-03-02T01:13:13Z
BUG: DataFrame[dt64].where downcasting
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 10802850714df..aebfc9a50095b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -314,6 +314,7 @@ Indexing - Bug in setting a NA value (``None`` or ``np.nan``) into a :class:`Series` with int-based :class...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45837
2022-02-05T17:36:40Z
2022-02-11T19:46:51Z
2022-02-11T19:46:51Z
2022-02-11T20:11:15Z
REF: render trimming moved to private method
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 1fe36a34903ab..2e90074a6bbd3 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -424,25 +424,20 @@ def _generate_col_header_row(self, iter: tuple, max_cols: int, col_lengths: dict ...
easier to understand where the render trimming checks come in.
https://api.github.com/repos/pandas-dev/pandas/pulls/45834
2022-02-05T11:22:24Z
2022-02-05T19:06:25Z
2022-02-05T19:06:25Z
2022-02-05T19:12:04Z
TST: Don't use autouse fixture in test_eval
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index c0117d9b162ad..b59e74eda0553 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -119,16 +119,6 @@ def lhs(request): class TestEval: - @pytest.fixture(autouse=True) - ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45832
2022-02-05T01:34:47Z
2022-02-05T19:04:52Z
2022-02-05T19:04:52Z
2022-02-05T19:26:28Z
TST: Don't use autouse fixture in test_stata
diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index 2d71aff2023ea..42f2f64a57ff0 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -36,7 +36,7 @@ ) -@pytest.fixture() +@pytest.fixture def mixed_frame(): return DataFrame( { @@ -48,84 +48,14...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45831
2022-02-05T01:00:24Z
2022-02-05T19:05:21Z
2022-02-05T19:05:21Z
2022-02-05T19:26:35Z
DEPS/DOC: unpin numpydoc #39688
diff --git a/environment.yml b/environment.yml index 66df6a4ac05e6..6144c7de84a6d 100644 --- a/environment.yml +++ b/environment.yml @@ -32,7 +32,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - gitdb - - numpydoc < 1.2 # 2021-02-09 1.2dev breaking CI + - numpydo...
- [x] closes #39688
https://api.github.com/repos/pandas-dev/pandas/pulls/45830
2022-02-04T22:29:49Z
2022-02-11T02:02:54Z
2022-02-11T02:02:53Z
2022-11-18T02:20:06Z
CLN: test_eval.py
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index b17ea7ff4a0a9..c0117d9b162ad 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -3,6 +3,7 @@ from functools import reduce from itertools import product import operator +impo...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45829
2022-02-04T22:09:49Z
2022-02-04T23:28:03Z
2022-02-04T23:28:03Z
2022-02-05T00:56:41Z
Backport PR #45808 on branch 1.4.x (bug: fix pd.NA in highlighters)
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 3dd0fcdb5b87d..f74215f1f0361 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -33,6 +33,7 @@ Bug fixes - Stopped emitting unnecessary ``FutureWarning`` in :meth:`DataFrame.sort_values` with sparse colu...
Backport PR #45808: bug: fix pd.NA in highlighters
https://api.github.com/repos/pandas-dev/pandas/pulls/45828
2022-02-04T21:18:34Z
2022-02-04T23:25:34Z
2022-02-04T23:25:34Z
2022-02-04T23:25:34Z
TST: Pass use_threads=False to pyarrow csv tests
diff --git a/pandas/tests/io/parser/conftest.py b/pandas/tests/io/parser/conftest.py index b2d2be362d0d3..07ecff419d2bd 100644 --- a/pandas/tests/io/parser/conftest.py +++ b/pandas/tests/io/parser/conftest.py @@ -12,6 +12,9 @@ ) import pandas._testing as tm +from pandas.io.parsers import readers +from pandas.io.par...
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Avoid hanging threads / ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45827
2022-02-04T18:58:03Z
2022-02-04T22:30:15Z
null
2022-02-04T22:30:18Z
TST: Fixturize / parameterize test_sas7bdat
diff --git a/pandas/tests/frame/test_nonunique_indexes.py b/pandas/tests/frame/test_nonunique_indexes.py index d010426bee53e..865994519549b 100644 --- a/pandas/tests/frame/test_nonunique_indexes.py +++ b/pandas/tests/frame/test_nonunique_indexes.py @@ -173,7 +173,7 @@ def test_column_dups_indexes(self): th...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45826
2022-02-04T18:27:12Z
2022-02-04T21:37:55Z
2022-02-04T21:37:55Z
2022-02-04T21:51:57Z
Backport PR #45812 on branch 1.4.x (TST: Create is_ci_environment helper)
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index f9b16419917f2..703e67b88fec8 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -7,6 +7,7 @@ Other items: * platform checker """ +import os import platform import sys @@ -89,7 +90,7 @@ def is_platform_mac() -> bool: ...
Backport PR #45812: TST: Create is_ci_environment helper
https://api.github.com/repos/pandas-dev/pandas/pulls/45823
2022-02-04T15:53:42Z
2022-02-04T16:59:39Z
2022-02-04T16:59:39Z
2022-02-04T16:59:39Z
Test case for concat inconsistent multiIndex
diff --git a/pandas/tests/reshape/concat/test_index.py b/pandas/tests/reshape/concat/test_index.py index 1692446627914..aad56a1dccedc 100644 --- a/pandas/tests/reshape/concat/test_index.py +++ b/pandas/tests/reshape/concat/test_index.py @@ -306,3 +306,20 @@ def test_concat_with_various_multiindex_dtypes( r...
- [✔] closes #44786 - [✔ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [✔] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X...
https://api.github.com/repos/pandas-dev/pandas/pulls/45822
2022-02-04T14:58:29Z
2022-02-05T19:01:01Z
2022-02-05T19:01:01Z
2022-02-06T03:21:38Z
PERF: groupby.transform skip fast path when only a single group exists
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 8bb924f4003a2..aaf166dab99c3 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -205,6 +205,7 @@ Performance improvements - Performance improvement in :meth:`.GroupBy.transform` for some user-defined Dat...
- [x] closes #44977 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/45820
2022-02-04T12:30:18Z
2022-02-04T16:37:14Z
2022-02-04T16:37:13Z
2022-03-02T01:13:10Z
REF: avoid ravel/reshape in astype_nansafe, ndarray_to_mgr
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 10637db555dd8..17cdf6665aa99 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -786,7 +786,16 @@ def _try_cast( elif dtype.kind == "U": # TODO: test cases with arr.dtype.kind in ["m", "M"] - r...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45817
2022-02-04T04:20:30Z
2022-02-09T01:28:42Z
2022-02-09T01:28:42Z
2022-02-09T02:20:58Z
TST: Create is_ci_environment helper
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 0ce98038213d6..d0d7d6a1b8da6 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -7,6 +7,7 @@ Other items: * platform checker """ +import os import platform import sys @@ -89,7 +90,7 @@ def is_platform_mac() -> bool: ...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45812
2022-02-03T22:53:12Z
2022-02-04T15:53:00Z
2022-02-04T15:53:00Z
2022-02-04T17:20:16Z
bug: fix pd.NA in highlighters
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 3dd0fcdb5b87d..f74215f1f0361 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -33,6 +33,7 @@ Bug fixes - Stopped emitting unnecessary ``FutureWarning`` in :meth:`DataFrame.sort_values` with sparse colu...
- [x] closes #45804
https://api.github.com/repos/pandas-dev/pandas/pulls/45808
2022-02-03T19:46:01Z
2022-02-04T21:18:23Z
2022-02-04T21:18:23Z
2022-02-07T21:36:01Z
Backport PR #45786 on branch 1.4.x (TST: Skip flaky, crashing test in Windows)
diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index d32c72b3df974..374944a4e17c9 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -1,10 +1,13 @@ from collections import defaultdict from datetime import datetime from itertools import product +import os impo...
Backport PR #45786: TST: Skip flaky, crashing test in Windows
https://api.github.com/repos/pandas-dev/pandas/pulls/45805
2022-02-03T19:06:39Z
2022-02-04T15:31:54Z
2022-02-04T15:31:54Z
2022-02-04T15:31:54Z
Test series replace different numpy int
diff --git a/pandas/tests/series/methods/test_replace.py b/pandas/tests/series/methods/test_replace.py index c852898a217a1..7db93eb27d82b 100644 --- a/pandas/tests/series/methods/test_replace.py +++ b/pandas/tests/series/methods/test_replace.py @@ -668,3 +668,14 @@ def test_replace_regex_dtype_series(self, regex): ...
- [✔ ] closes #45311 - [✔] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [✔] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X...
https://api.github.com/repos/pandas-dev/pandas/pulls/45797
2022-02-03T04:08:23Z
2022-02-05T19:03:37Z
2022-02-05T19:03:37Z
2022-02-06T03:21:32Z
BUG: Series[Interval].fillna(mismatched) coerce instead of raise
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 8bb924f4003a2..e39d17e095d0e 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -282,6 +282,7 @@ Indexing Missing ^^^^^^^ - Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``downcast`` k...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45796
2022-02-03T03:43:09Z
2022-02-04T16:05:18Z
2022-02-04T16:05:18Z
2022-02-11T10:45:37Z
DEP: Protect some ExcelWriter attributes
diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 44ee09f2a5e6b..70fd381bffd2c 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -53,7 +53,6 @@ Excel .. autosummary:: :toctree: api/ - :template: autosummary/class_without_autosummary.rst ExcelWriter ...
- [x] closes #45572 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45795
2022-02-03T03:39:54Z
2022-02-06T22:34:09Z
2022-02-06T22:34:08Z
2022-02-06T23:13:10Z
BUG: Error writing an empty DataFrame to an ods file
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 039a86da0541e..32171ae5a9e66 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -295,7 +295,7 @@ I/O - Bug in :meth:`DataFrame.info` where a new line at the end of the output is omitted when called on an...
- [x] closes #45793 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45794
2022-02-03T03:14:44Z
2022-02-04T21:39:02Z
2022-02-04T21:39:02Z
2022-02-05T20:44:23Z
REF: use np_can_hold_element pattern in Block.shift
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 2c1724adf0300..158bcd5d60397 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1139,14 +1139,16 @@ def shift(self, periods: int, axis: int = 0, fill_value: Any = None) -> list[Blo fill_va...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45792
2022-02-03T02:13:49Z
2022-02-03T03:08:36Z
2022-02-03T03:08:36Z
2022-02-03T03:16:27Z
BUG: DataFrame.interpolate failing to return a copy
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 039a86da0541e..8bb924f4003a2 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -282,6 +282,7 @@ Indexing Missing ^^^^^^^ - Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``downcast`` k...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45791
2022-02-03T00:23:59Z
2022-02-03T03:05:37Z
2022-02-03T03:05:37Z
2022-02-03T03:19:16Z
REF: array_to_timedelta64 handle 2D
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index d327ca6256015..8eaf86b3d193f 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -6,6 +6,7 @@ import cython from cpython.object cimport ( Py_EQ, Py_NE, + PyObject, PyObje...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45788
2022-02-03T00:10:07Z
2022-02-03T02:57:15Z
2022-02-03T02:57:15Z
2022-02-03T03:17:31Z
BUG: loc raising uncontrolled error when more indexers than levels
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 039a86da0541e..70956d573618f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -270,6 +270,7 @@ Indexing - Bug in :meth:`Series.loc.__setitem__` and :meth:`Series.loc.__getitem__` not raising when using...
- [x] closes #45762 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45787
2022-02-02T23:14:44Z
2022-06-10T21:25:32Z
null
2023-04-27T19:52:29Z
TST: Skip flaky, crashing test in Windows
diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index d32c72b3df974..374944a4e17c9 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -1,10 +1,13 @@ from collections import defaultdict from datetime import datetime from itertools import product +import os impo...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Discovered while working...
https://api.github.com/repos/pandas-dev/pandas/pulls/45786
2022-02-02T22:13:06Z
2022-02-03T19:05:51Z
2022-02-03T19:05:51Z
2022-02-03T19:06:47Z
Regression: Loc raising when indexing mi with one level
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 3dd0fcdb5b87d..498ea85a04647 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...
- [x] closes #45779 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45785
2022-02-02T21:51:56Z
2022-02-09T00:25:51Z
2022-02-09T00:25:51Z
2022-02-14T10:22:22Z
Regression: Series.loc.setitem raising with all false indexer and series on rhs
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 3dd0fcdb5b87d..067cdfbbd550c 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -20,6 +20,7 @@ Fixed regressions - Regression in :meth:`DataFrame.iat` setting values leading to not propagating correctly ...
- [x] closes #45778 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45784
2022-02-02T21:23:49Z
2022-02-03T03:01:03Z
2022-02-03T03:01:03Z
2022-02-14T10:56:18Z
REF: extract_ordinals support 2D
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index b2ea2e746b44c..8c331b13f9735 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -4,6 +4,7 @@ cimport numpy as cnp from cpython.object cimport ( Py_EQ, Py_NE, + PyObject, PyObject_RichCo...
Between this and doing the same for array_to_timedelta64, we'll be able to avoid some ravel's (and therefore potential copies) in astype_nansafe and ndarray_to_mgr
https://api.github.com/repos/pandas-dev/pandas/pulls/45782
2022-02-02T19:30:20Z
2022-02-03T02:56:30Z
2022-02-03T02:56:30Z
2022-02-03T03:18:35Z
Backport PR #45771 on branch 1.4.x (TST: Skip pyarrow hanging in MacOS CI)
diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index e223378b600e0..5052373879865 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -12,7 +12,10 @@ import pytest -from pandas.compat import is_platform_wi...
Backport PR #45771: TST: Skip pyarrow hanging in MacOS CI
https://api.github.com/repos/pandas-dev/pandas/pulls/45781
2022-02-02T17:57:45Z
2022-02-03T01:12:19Z
2022-02-03T01:12:19Z
2022-02-03T01:12:19Z
REF: Enhance consistency on Styler methods
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index a3899fb880e6c..54568d5cd18bb 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2598,11 +2598,11 @@ def hide_index( Styler.hide: Hide the entire index / columns, or specific rows / columns. """ ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - Added an entry in the la...
https://api.github.com/repos/pandas-dev/pandas/pulls/45780
2022-02-02T16:48:39Z
2022-03-18T23:45:55Z
2022-03-18T23:45:55Z
2022-03-18T23:46:17Z
Fix typo in user guide
diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index 2ce8bf23de824..fe732daccb649 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -29,7 +29,7 @@ Construction ------------ pandas can represent integer data with possibly missing...
changed "... arrays.IntegerArray. This is an extension types ..." to "... arrays.IntegerArray. This is an extension type ..."
https://api.github.com/repos/pandas-dev/pandas/pulls/45777
2022-02-02T11:13:04Z
2022-02-02T19:50:58Z
2022-02-02T19:50:58Z
2022-02-02T20:55:51Z
Lose the index before 'na_value' assignment in 'to_numpy'
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index adee9271c23b0..ece67a5c73549 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -392,6 +392,7 @@ Missing MultiIndex ^^^^^^^^^^ +- Bug in :meth:`Series.to_numpy` where multiindexed Series could not be ...
- [X] closes #45774 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x...
https://api.github.com/repos/pandas-dev/pandas/pulls/45775
2022-02-02T10:23:40Z
2022-03-05T17:42:05Z
2022-03-05T17:42:05Z
2022-03-05T17:42:09Z
Test series replace for different numpy int
diff --git a/pandas/tests/series/methods/test_replace.py b/pandas/tests/series/methods/test_replace.py index 6a8dacfda5e78..68a3844acc338 100644 --- a/pandas/tests/series/methods/test_replace.py +++ b/pandas/tests/series/methods/test_replace.py @@ -651,3 +651,15 @@ def test_replace_regex_dtype_series(self, regex): ...
- [✔ ] closes #45311 - [ ✔] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [✔ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45773
2022-02-02T07:15:04Z
2022-02-03T04:10:36Z
null
2022-02-03T04:10:36Z
TST: Skip pyarrow hanging in MacOS CI
diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 67f155817582c..bc8cb18ab0eaf 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -12,7 +12,10 @@ import pytest -from pandas.compat import is_platform_wi...
xref https://github.com/pandas-dev/pandas/pull/45507 Saw this test hang a process while working on https://github.com/pandas-dev/pandas/pull/45478 ``` 2022-02-01T23:22:15.3331120Z pandas/tests/io/parser/test_unsupported.py::test_close_file_handle_on_invalid_usecols[c_high] 2022-02-01T23:22:15.3377730Z [gw0] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45771
2022-02-02T02:40:03Z
2022-02-02T17:57:11Z
2022-02-02T17:57:11Z
2022-02-02T17:58:33Z
REF/TYP: collect Block methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 5f0b0aba2d17c..c2e8f7f3225c0 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -30,6 +30,7 @@ Shape, npt, ) +from pandas.errors import AbstractMethodError from pandas.util._decorators imp...
Nothing actually changed, just moved around and a `@final` added to `_standardize_fill_value`
https://api.github.com/repos/pandas-dev/pandas/pulls/45770
2022-02-02T00:50:38Z
2022-02-04T21:43:03Z
2022-02-04T21:43:03Z
2022-02-05T00:05:03Z
BUG: Series[Period][mask] = 'foo' raising inconsistent with non-mask indexing
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 063e0c7512f4d..db1982b3b77c8 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -266,6 +266,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45768
2022-02-01T21:44:56Z
2022-02-02T02:54:11Z
2022-02-02T02:54:10Z
2022-02-02T03:53:47Z
CLN: Index methods incorrectly assuming object dtype
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8bbaa7cddba62..f6feec5fd97a6 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -391,7 +391,6 @@ def _outer_indexer( _comparables: list[str] = ["name"] _attributes: list[str] = ["name"] _is_numeric_dty...
Partially broken off from #45061
https://api.github.com/repos/pandas-dev/pandas/pulls/45767
2022-02-01T21:32:31Z
2022-02-02T00:31:48Z
2022-02-02T00:31:48Z
2022-02-02T00:35:31Z
TST: add test for compatibility with numpy datetime64
diff --git a/pandas/tests/tseries/frequencies/test_freq_code.py b/pandas/tests/tseries/frequencies/test_freq_code.py index 92795245103d0..4d8c4ddbce441 100644 --- a/pandas/tests/tseries/frequencies/test_freq_code.py +++ b/pandas/tests/tseries/frequencies/test_freq_code.py @@ -1,3 +1,4 @@ +import numpy as np import pyt...
- [x] Closes #41617 - [x] test added - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45766
2022-02-01T20:32:08Z
2022-02-10T17:23:32Z
2022-02-10T17:23:31Z
2022-02-16T20:34:24Z
ENH: Rolling window with step size (GH-15354)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index d2b34f587b5e2..59d4ef1d9b39d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -38,6 +38,7 @@ Other enhancements - :meth:`to_numeric` now preserves float64 arrays when downcasting would generate values ...
- [x] closes #15354 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/45765
2022-02-01T16:06:15Z
2022-02-28T23:26:09Z
2022-02-28T23:26:08Z
2022-03-01T11:36:15Z
Backport PR #45758 on branch 1.4.x (DOC: minor tidy of 1.4.1 release notes)
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 10b5f523bf191..b0ad4ce9392f7 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -17,7 +17,7 @@ Fixed regressions - Regression in :meth:`Series.mask` with ``inplace=True`` and ``PeriodDtype`` and an incom...
Backport PR #45758
https://api.github.com/repos/pandas-dev/pandas/pulls/45764
2022-02-01T15:03:10Z
2022-02-01T16:42:45Z
2022-02-01T16:42:45Z
2022-02-01T16:42:48Z
Group by aggregate functions test case
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index a33e4efbe3b6d..0e72899818139 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1794,3 +1794,21 @@ def test_groupby_categorical_observed_nunique(): name="...
- [✔] closes #37275 - [✔] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [✔] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45763
2022-02-01T14:50:20Z
2022-02-03T02:03:10Z
2022-02-03T02:03:10Z
2022-02-03T02:03:14Z
Backport PR #45651 on branch 1.4.x (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...
Backport PR #45651 xref https://github.com/pandas-dev/pandas/pull/45755#issuecomment-1026851710
https://api.github.com/repos/pandas-dev/pandas/pulls/45761
2022-02-01T13:57:35Z
2022-02-01T16:20:27Z
2022-02-01T16:20:27Z
2022-02-01T16:20:32Z
Backport PR #45757 on branch 1.4.x (DOC: move pydata-sphinx-theme to the conda packages section)
diff --git a/environment.yml b/environment.yml index 9b8eec70a30e0..e5b1217be6d54 100644 --- a/environment.yml +++ b/environment.yml @@ -35,6 +35,7 @@ dependencies: - sphinx - sphinx-panels - numpydoc < 1.2 # 2021-02-09 1.2dev breaking CI + - pydata-sphinx-theme - types-python-dateutil - types-PyMySQL ...
Backport PR #45757: DOC: move pydata-sphinx-theme to the conda packages section
https://api.github.com/repos/pandas-dev/pandas/pulls/45760
2022-02-01T13:46:19Z
2022-02-01T16:20:01Z
2022-02-01T16:20:01Z
2022-02-01T16:20:02Z
Backport PR #45756 on branch 1.4.x (DOC: minor fix to 1.4.1 release notes)
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 2846ce318525d..10b5f523bf191 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -18,7 +18,7 @@ Fixed regressions - Regression in :func:`.assert_frame_equal` not respecting ``check_flags=False`` (:issue:`...
Backport PR #45756: DOC: minor fix to 1.4.1 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/45759
2022-02-01T13:38:08Z
2022-02-01T14:57:02Z
2022-02-01T14:57:01Z
2022-02-01T14:57:04Z
DOC: minor tidy of 1.4.1 release notes
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index e291ae6755116..3dd0fcdb5b87d 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -18,7 +18,7 @@ Fixed regressions - Regression in :func:`.assert_frame_equal` not respecting ``check_flags=False`` (:issue:`...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/45758
2022-02-01T13:13:17Z
2022-02-01T14:14:13Z
2022-02-01T14:14:13Z
2022-02-01T15:04:01Z
DOC: move pydata-sphinx-theme to the conda packages section
diff --git a/environment.yml b/environment.yml index a168e691821c3..51350a143b913 100644 --- a/environment.yml +++ b/environment.yml @@ -35,6 +35,7 @@ dependencies: - sphinx - sphinx-panels - numpydoc < 1.2 # 2021-02-09 1.2dev breaking CI + - pydata-sphinx-theme - types-python-dateutil - types-PyMySQL ...
xref https://github.com/pandas-dev/pandas/pull/45503#issuecomment-1021163224
https://api.github.com/repos/pandas-dev/pandas/pulls/45757
2022-02-01T12:49:21Z
2022-02-01T13:46:11Z
2022-02-01T13:46:10Z
2022-02-01T20:36:42Z
DOC: minor fix to 1.4.1 release notes
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index ca8cd5f640cfd..e291ae6755116 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -19,7 +19,7 @@ Fixed regressions - Regression in :meth:`Series.fillna` with ``downcast=False`` incorrectly downcasting ``ob...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/45756
2022-02-01T12:09:25Z
2022-02-01T13:37:24Z
2022-02-01T13:37:24Z
2022-02-01T13:37:29Z
Backport PR #45581 on branch 1.4.x (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....
Backport PR #45581
https://api.github.com/repos/pandas-dev/pandas/pulls/45755
2022-02-01T11:02:52Z
2022-02-01T12:55:34Z
2022-02-01T12:55:34Z
2022-02-01T13:36:16Z
Backport PR #45679: 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 035b2ce8eb418..2846ce318525d 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -19,6 +19,7 @@ Fixed regressions - Regression in :meth:`Series.fillna` with ``downcast=False`` incorrectly downcasting ``ob...
Backport PR #45679
https://api.github.com/repos/pandas-dev/pandas/pulls/45754
2022-02-01T10:38:06Z
2022-02-01T12:31:06Z
2022-02-01T12:31:06Z
2022-02-01T12:31:54Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6de9bd786404f..4492f9c20cd0a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: autofix_prs: false repos: - repo: https://github.com/MarcoGorelli/absolufy-imports - rev: v0.3.0 + rev: v0.3.1 hook...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/main) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/node_...
https://api.github.com/repos/pandas-dev/pandas/pulls/45752
2022-02-01T07:08:33Z
2022-02-01T19:41:57Z
2022-02-01T19:41:57Z
2022-03-30T21:32:38Z
BUG: Series.mask with small int dtypes raising
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 063e0c7512f4d..3829306f77a0b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -271,6 +271,7 @@ Indexing - Bug in :meth:`loc.__setitem__` treating ``range`` keys as positional instead of label-based (:i...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45750
2022-02-01T03:19:21Z
2022-02-01T22:09:43Z
2022-02-01T22:09:43Z
2022-02-01T22:46:04Z
BUG: RecursionError when attempting to replace np.nan values (#45725)
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 5f0b0aba2d17c..1ed7fe8a8dad2 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -668,6 +668,7 @@ def replace( # go through replace_list values = self.values + value = self....
- [x] closes #45725 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/45749
2022-02-01T02:43:36Z
2022-02-03T03:03:53Z
2022-02-03T03:03:53Z
2022-03-17T11:59:55Z
DOC: fix incorrect pie chart documentation
diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index 404914dbc7a69..72600289dcf75 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -823,7 +823,7 @@ Also, other keywords supported by :func:`matplotlib.pyplot.pie` can be ...
in pandas-1.2 we used to get a semicircle. However since pandas-1.3 and later the values get rescaled so that they sum up to 1. This pull request is updating the documentation to reflect this. It looks like matplotlib still draws a partial circle, so this is a change that was made in pandas. https://pandas.pydata.o...
https://api.github.com/repos/pandas-dev/pandas/pulls/45748
2022-02-01T02:15:25Z
2022-02-01T22:30:32Z
2022-02-01T22:30:31Z
2022-02-01T22:34:05Z
BUG: update caught exception
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 386aee102cbcd..4f530ffc5ed5d 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -926,7 +926,7 @@ def setitem(self, indexer, value): value = extract_array(value, extract_numpy=True) t...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45747
2022-02-01T00:33:36Z
2022-02-01T02:36:44Z
2022-02-01T02:36:44Z
2022-02-01T02:37:51Z
DEPR: Series[td64].fillna(incompat) cast instead of raise
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 78bede643f2ac..063e0c7512f4d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -193,6 +193,7 @@ Other Deprecations - Deprecated :meth:`DataFrame.iteritems`, :meth:`Series.iteritems`, :meth:`HDFStore.ite...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45746
2022-01-31T22:53:52Z
2022-02-01T13:25:38Z
2022-02-01T13:25:38Z
2022-02-01T17:33:57Z
Implement nested types: Add StructDtype and StructArray
diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py index e301e82a0ee75..6ad38e9d3da51 100644 --- a/pandas/core/arrays/__init__.py +++ b/pandas/core/arrays/__init__.py @@ -20,6 +20,8 @@ from pandas.core.arrays.string_arrow import ArrowStringArray from pandas.core.arrays.timedeltas import Time...
This is my first attempt to implement a StructDtype that is based on NamedTuples. My end-goal is to reach full interoperability with PyArrow/PySpark and deeply nested types. In particular, this StructDtype and StructArray should make it much simpler to create custom data types. Some implementation details: - A `S...
https://api.github.com/repos/pandas-dev/pandas/pulls/45745
2022-01-31T21:57:09Z
2022-06-10T21:24:58Z
null
2022-06-10T21:24:58Z
Backport PR #45706: BUG: Frame.iat item_cache invalidation bug
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index b0ad4ce9392f7..3dd0fcdb5b87d 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -17,6 +17,7 @@ Fixed regressions - Regression in :meth:`Series.mask` with ``inplace=True`` and ``PeriodDtype`` and an incom...
Backport PR #45706
https://api.github.com/repos/pandas-dev/pandas/pulls/45744
2022-01-31T21:10:25Z
2022-02-01T22:09:12Z
2022-02-01T22:09:12Z
2022-02-08T12:18:29Z
REF: use try/except pattern in Block.setitem, EABackedBlock.setitem
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 2f26f6cc22f80..3259ee7d28bbe 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -389,11 +389,16 @@ def __setitem__( # type: ignore[override] # to a period in from_sequence). For ...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45742
2022-01-31T19:32:29Z
2022-02-01T00:04:54Z
2022-02-01T00:04:54Z
2022-02-01T00:14:22Z
Manual Backport PR #45732 on branch 1.4.x (TST: Ensure tm.network has pytest.mark.network)
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index 86842f6a608d6..7c9fd54059f4a 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -114,7 +114,7 @@ def s3_base(worker_id): proc.terminate() -@pytest.fixture() +@pytest.fixture def s3_resource(s3_b...
Backport PR #45732
https://api.github.com/repos/pandas-dev/pandas/pulls/45741
2022-01-31T17:35:57Z
2022-01-31T23:46:43Z
2022-01-31T23:46:43Z
2022-02-01T11:12:04Z
Manual Backport PR #45731 on branch 1.4.x (TST: Add @td.skip_if_no_scipy to failing test)
diff --git a/pandas/tests/series/methods/test_interpolate.py b/pandas/tests/series/methods/test_interpolate.py index 8ca2d37016691..08b9f828848d9 100644 --- a/pandas/tests/series/methods/test_interpolate.py +++ b/pandas/tests/series/methods/test_interpolate.py @@ -12,6 +12,7 @@ isna, ) import pandas._testing as ...
Backport PR #45731
https://api.github.com/repos/pandas-dev/pandas/pulls/45739
2022-01-31T15:58:55Z
2022-01-31T18:52:50Z
2022-01-31T18:52:50Z
2022-02-01T11:09:29Z
Backport PR #45616 on branch 1.4.x (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 9e4b3479341b3..035b2ce8eb418 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -30,7 +30,7 @@ Bug fixes - Fixed segfault in :meth:``DataFrame.to_json`` when dumping tz-aware datetimes in Python 3.10 (:i...
Backport PR #45616: BUG: is_bool_dtype raises AttributeError when checking categorical Series
https://api.github.com/repos/pandas-dev/pandas/pulls/45738
2022-01-31T13:23:15Z
2022-01-31T15:15:57Z
2022-01-31T15:15:57Z
2022-01-31T15:15:57Z
ENH: Rolling window with step size (GH-15354)
diff --git a/pandas/_libs/window/indexers.pyi b/pandas/_libs/window/indexers.pyi index c9bc64be34ac9..6d4f85f350c77 100644 --- a/pandas/_libs/window/indexers.pyi +++ b/pandas/_libs/window/indexers.pyi @@ -8,5 +8,6 @@ def calculate_variable_window_bounds( min_periods, center: bool, closed: str | None, + ...
- [x] closes #15354 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/45735
2022-01-31T11:16:23Z
2022-02-01T16:03:16Z
null
2022-03-01T11:35:47Z
TST: use correct input in test
diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py index 915497e614b3a..88a0676cf3aec 100644 --- a/pandas/tests/io/formats/style/test_style.py +++ b/pandas/tests/io/formats/style/test_style.py @@ -839,12 +839,16 @@ def test_table_styles_multiple(self): def test_t...
This PR uses the correct input to ensure that the bug #44011 was correctly fixed. This change was requested here: https://github.com/pandas-dev/pandas/issues/44011#issuecomment-973278817
https://api.github.com/repos/pandas-dev/pandas/pulls/45733
2022-01-31T07:58:49Z
2022-01-31T13:24:29Z
2022-01-31T13:24:29Z
2022-02-09T16:17:12Z
TST: Ensure tm.network has pytest.mark.network
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index 86842f6a608d6..7c9fd54059f4a 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -114,7 +114,7 @@ def s3_base(worker_id): proc.terminate() -@pytest.fixture() +@pytest.fixture def s3_resource(s3_b...
- [x] closes #45085 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/45732
2022-01-31T05:39:56Z
2022-01-31T17:25:59Z
2022-01-31T17:25:59Z
2022-02-01T11:12:44Z
TST: Add @td.skip_if_no_scipy to failing test
diff --git a/pandas/tests/series/methods/test_interpolate.py b/pandas/tests/series/methods/test_interpolate.py index 908e35b20dced..bd8b165335d09 100644 --- a/pandas/tests/series/methods/test_interpolate.py +++ b/pandas/tests/series/methods/test_interpolate.py @@ -12,6 +12,7 @@ isna, ) import pandas._testing as ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/45731
2022-01-31T03:44:43Z
2022-01-31T13:25:30Z
2022-01-31T13:25:30Z
2022-02-01T11:10:46Z
0-indexing consistency
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index d65062419477c..5df55bf411d47 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -317,8 +317,8 @@ def __new__( raise TypeError("Must pass both levels and codes") if len(levels) != len(codes):...
- [ ] closes #45608 (Replace 45608 with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/45730
2022-01-31T02:14:36Z
2022-02-27T20:31:35Z
null
2022-02-27T20:31:35Z
REF: astype_intsafe no longer needed
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 6a1519c827c7a..ad77e9e533b0b 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -157,10 +157,6 @@ def ensure_string_array( def infer_datetimelike_array( arr: npt.NDArray[np.object_], ) -> tuple[str, bool]: ... -def astype_intsafe( - a...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45728
2022-01-31T00:21:03Z
2022-01-31T13:25:46Z
2022-01-31T13:25:46Z
2022-01-31T15:13:32Z
Backport PR #45668 on branch 1.4.x (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...
Backport PR #45668: BUG: unnecessary FutureWarning in sort_values
https://api.github.com/repos/pandas-dev/pandas/pulls/45727
2022-01-30T23:50:26Z
2022-01-31T13:20:58Z
2022-01-31T13:20:58Z
2022-01-31T13:20:58Z
Backport PR #45723 on branch 1.4.x (TST: Allow tm.network to catch urllib.error.URLError)
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index 097af99dbfd88..f4654582277df 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -29,8 +29,6 @@ Series, ) -_RAISE_NETWORK_ERROR_DEFAULT = False - # skip tests on exceptions with these messages _network_error_messages = ...
Backport PR #45723: TST: Allow tm.network to catch urllib.error.URLError
https://api.github.com/repos/pandas-dev/pandas/pulls/45726
2022-01-30T23:46:51Z
2022-01-31T13:21:13Z
2022-01-31T13:21:13Z
2022-01-31T13:21:13Z
ENH: Add large file support for read_xml
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f11b6af24e4e4..a9219cd811b6f 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3287,6 +3287,45 @@ output (as shown below for demonstration) for easier parse into ``DataFrame``: df = pd.read_xml(xml, stylesh...
- [X] closes ##45442 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X...
https://api.github.com/repos/pandas-dev/pandas/pulls/45724
2022-01-30T22:56:02Z
2022-03-18T20:04:49Z
2022-03-18T20:04:49Z
2022-06-16T07:13:28Z
TST: Allow tm.network to catch urllib.error.URLError
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index 097af99dbfd88..f4654582277df 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -29,8 +29,6 @@ Series, ) -_RAISE_NETWORK_ERROR_DEFAULT = False - # skip tests on exceptions with these messages _network_error_messages = ...
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Addresses these flaky ne...
https://api.github.com/repos/pandas-dev/pandas/pulls/45723
2022-01-30T21:07:33Z
2022-01-30T23:46:42Z
2022-01-30T23:46:42Z
2022-01-31T01:59:17Z
BUG: Index[object].astype(td64) failing to raise with invalid NAs
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0f5b4a16d2f01..2bb9905454e77 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -222,6 +222,7 @@ Datetimelike - Bug in :meth:`DataFrame.quantile` with datetime-like dtypes and no rows incorrectly returni...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45722
2022-01-30T20:53:13Z
2022-01-30T23:51:09Z
2022-01-30T23:51:09Z
2022-01-31T00:10:50Z
BUG: fix __finalize__ xfails
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2a34c71412789..cc9a980a7c7d4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9478,7 +9478,7 @@ def _series_round(ser: Series, decimals: int): if len(new_cols) > 0: return self._constructor( concat(new_...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/45721
2022-01-30T20:30:56Z
2022-01-30T23:49:04Z
2022-01-30T23:49:04Z
2022-01-31T00:09:06Z
TST: Use more xfail instead of skip
diff --git a/pandas/tests/apply/test_series_apply.py b/pandas/tests/apply/test_series_apply.py index b7084e2bc6dc7..d89394d737286 100644 --- a/pandas/tests/apply/test_series_apply.py +++ b/pandas/tests/apply/test_series_apply.py @@ -284,8 +284,6 @@ def test_transform_partial_failure(op, request): raise...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). In order to catch more b...
https://api.github.com/repos/pandas-dev/pandas/pulls/45719
2022-01-30T19:06:03Z
2022-01-30T23:48:22Z
2022-01-30T23:48:22Z
2022-01-31T01:58:08Z
Backport PR #45702 on branch 1.4.x (TST: Disable testing that hangs Azure CI)
diff --git a/pandas/tests/io/excel/conftest.py b/pandas/tests/io/excel/conftest.py index 0455e0d61ad97..4ce06c01892d9 100644 --- a/pandas/tests/io/excel/conftest.py +++ b/pandas/tests/io/excel/conftest.py @@ -1,5 +1,6 @@ import pytest +from pandas.compat import is_platform_windows import pandas.util._test_decorator...
Backport PR #45702: TST: Disable testing that hangs Azure CI
https://api.github.com/repos/pandas-dev/pandas/pulls/45718
2022-01-30T18:48:17Z
2022-01-30T23:52:14Z
2022-01-30T23:52:14Z
2022-01-30T23:52:14Z
BUG: DataFrameGroupby.transform("size") fails
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1d4054d5ea0f1..d558ebb673ad8 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -306,7 +306,7 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :meth:`DataFrame.resample` ignoring ...
- [x] closes #27469 - [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 axis=1 produces incorrect results for both aggregations and transforms. Opened #45715...
https://api.github.com/repos/pandas-dev/pandas/pulls/45716
2022-01-30T16:17:15Z
2022-01-30T23:50:22Z
2022-01-30T23:50:22Z
2022-01-31T01:06:32Z
Backport PR #45703 on branch 1.4.x (CI: Align downstream build packages with other builds)
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index af4f7dee851d5..f3fa95d03c98e 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -4,52 +4,57 @@ channels: - conda-forge dependencies: - python=3.8 - - pi...
Backport PR #45703: CI: Align downstream build packages with other builds
https://api.github.com/repos/pandas-dev/pandas/pulls/45714
2022-01-30T15:44:20Z
2022-01-30T18:15:27Z
2022-01-30T18:15:27Z
2022-01-30T18:15:28Z
Backport PR #45707 on branch 1.4.x (TST/CI: Fix numexpr test failing in downstream build)
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 948eeeecb2ce4..8fa28300b8345 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -631,30 +631,34 @@ def test_scalar_unary(self): def test_unary_in_array(self): #...
Backport PR #45707: TST/CI: Fix numexpr test failing in downstream build
https://api.github.com/repos/pandas-dev/pandas/pulls/45710
2022-01-30T05:42:46Z
2022-01-30T12:00:42Z
2022-01-30T12:00:42Z
2022-01-30T12:00:43Z
DOC: Improve pull request template and contributing_codebase.rst
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 42017db8a05b1..a75a613ab2bf1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -- [ ] closes #xxxx -- [ ] tests added / passed -- [ ] Ensure all linting tests pass, see [here](https:...
* Clarified steps & added links * Moved some items in `code_style.rst` to `contributing_codebase.rst` * Removed individual instructions to run black, flake8, etc in favor of pre-commit (since that's how it's run in the CI)
https://api.github.com/repos/pandas-dev/pandas/pulls/45709
2022-01-30T04:28:00Z
2022-01-30T17:38:23Z
2022-01-30T17:38:23Z
2022-01-30T17:38:26Z
PERF: groupby.transform broadcast perf
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 342a3403f0cfa..6054fd8227937 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -741,6 +741,12 @@ def setup(self): index=np.random.choice(range(10), n), ) + n = 1_000_00...
- [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 `groupby.transform` broadcasts user-defined functions by passing a repeated array to np.concatenate. Pas...
https://api.github.com/repos/pandas-dev/pandas/pulls/45708
2022-01-30T03:45:53Z
2022-01-30T18:31:46Z
2022-01-30T18:31:45Z
2022-03-02T01:13:05Z
TST/CI: Fix numexpr test failing in downstream build
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index bf74e11ae247a..b17ea7ff4a0a9 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -631,30 +631,34 @@ def test_scalar_unary(self): def test_unary_in_array(self): #...
- [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/45707
2022-01-30T01:12:58Z
2022-01-30T05:42:15Z
2022-01-30T05:42:14Z
2022-01-30T05:42:54Z
BUG: Frame.iat item_cache invalidation bug
diff --git a/doc/source/whatsnew/v1.4.1.rst b/doc/source/whatsnew/v1.4.1.rst index 10b605f6ef43e..1604d5d1950d7 100644 --- a/doc/source/whatsnew/v1.4.1.rst +++ b/doc/source/whatsnew/v1.4.1.rst @@ -17,9 +17,10 @@ Fixed regressions - Regression in :meth:`Series.mask` with ``inplace=True`` and ``PeriodDtype`` and an inco...
- [x] closes #45684 - [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/45706
2022-01-30T00:23:37Z
2022-01-30T23:47:36Z
2022-01-30T23:47:36Z
2022-02-01T10:51:22Z
CI: Align downstream build packages with other builds
diff --git a/ci/deps/actions-38-downstream_compat.yaml b/ci/deps/actions-38-downstream_compat.yaml index af4f7dee851d5..f3fa95d03c98e 100644 --- a/ci/deps/actions-38-downstream_compat.yaml +++ b/ci/deps/actions-38-downstream_compat.yaml @@ -4,52 +4,57 @@ channels: - conda-forge dependencies: - python=3.8 - - pi...
This build looks like it's missing packages that are installed on other builds.
https://api.github.com/repos/pandas-dev/pandas/pulls/45703
2022-01-29T22:55:45Z
2022-01-30T15:43:52Z
2022-01-30T15:43:52Z
2022-03-07T01:37:47Z
TST: Disable testing that hangs Azure CI
diff --git a/pandas/tests/io/excel/conftest.py b/pandas/tests/io/excel/conftest.py index 0455e0d61ad97..4ce06c01892d9 100644 --- a/pandas/tests/io/excel/conftest.py +++ b/pandas/tests/io/excel/conftest.py @@ -1,5 +1,6 @@ import pytest +from pandas.compat import is_platform_windows import pandas.util._test_decorator...
- [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 Precursor to https://github.com/pandas-dev/pandas/pull/45478 This PR doesn't necessarily guarantee that we won't see random...
https://api.github.com/repos/pandas-dev/pandas/pulls/45702
2022-01-29T22:45:46Z
2022-01-30T18:48:10Z
2022-01-30T18:48:10Z
2022-01-30T18:49:31Z
Use ccache in GHA pipelines
diff --git a/.github/actions/build-pandas/action.yml b/.github/actions/build-pandas/action.yml new file mode 100644 index 0000000000000..e3e393c64544e --- /dev/null +++ b/.github/actions/build-pandas/action.yml @@ -0,0 +1,52 @@ +name: Build pandas +description: Rebuilds the C extensions and installs pandas +inputs: + ...
Saves around 5–10 minutes in each of the GHA builds. Also cleans up some duplicated code. - [ ] 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...
https://api.github.com/repos/pandas-dev/pandas/pulls/45701
2022-01-29T22:32:57Z
2022-04-05T07:07:01Z
null
2022-04-05T07:07:01Z