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
new file added
diff --git a/addft.py b/addft.py new file mode 100644 index 0000000000000..e4a7a07d06d60 --- /dev/null +++ b/addft.py @@ -0,0 +1,4 @@ +import numpy as np + +x = np.random.randint(10,15) +print(x) \ No newline at end of file
- [ ] 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/50525
2023-01-02T06:18:36Z
2023-01-02T08:48:39Z
null
2023-01-02T08:48:55Z
PERF: ArrowExtensionArray comparison methods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..dcde5ff608724 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -768,6 +768,7 @@ Performance improvements - Performance improvement for :class:`~arrays.StringArray` constructor passing a ...
- [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 [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/50524
2023-01-02T01:45:46Z
2023-01-03T22:24:24Z
2023-01-03T22:24:24Z
2023-01-19T04:31:30Z
ENH: Added a new format in parsing.pyx
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index aa95febfc9721..d06eb196ebe34 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -856,6 +856,7 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None: (("day_of_week",), ...
- [x] closes #50514 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50523
2023-01-01T10:34:44Z
2023-01-03T15:35:29Z
null
2023-01-03T15:37:04Z
Update doc for pd.MultiIndex.droplevel to reflect inplace behaviour
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3dc6aed56fa24..af304dd2e43bf 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1961,7 +1961,7 @@ def droplevel(self, level: IndexLabel = 0): Return index with requested level(s) removed. If resu...
- [ ] 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/50521
2023-01-01T07:48:59Z
2023-01-03T22:27:14Z
2023-01-03T22:27:14Z
2023-01-03T22:27:20Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3158e64df8dd..82d8fc12c59fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: types_or: [python, rst, markdown] additional_dependencies: [tomli] - repo: https://github.com/MarcoGorelli/cy...
<!-- 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/50520
2023-01-01T07:06:47Z
2023-01-03T21:54:18Z
2023-01-03T21:54:18Z
2023-01-03T21:54:24Z
Revert "STYLE use pandas-dev-flaker (#40906)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a840ebfb9b52..82043f79643e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,12 +70,9 @@ repos: rev: 6.0.0 hooks: - id: flake8 - # Need to patch os.remove rule in pandas-dev-flaker - exclude: ^c...
So, #40906 consolidated a bunch of custom checks into a flake8 extension As it stands, flake8 is the slowest pre-commit hook we have (even without the extension - see [timings](https://github.com/pandas-dev/pandas/pull/50518#issuecomment-1368265690)) In https://github.com/pandas-dev/pandas/pull/50160, Joris tried...
https://api.github.com/repos/pandas-dev/pandas/pulls/50519
2022-12-31T20:38:57Z
2023-01-05T14:08:19Z
2023-01-05T14:08:19Z
2023-01-05T14:08:20Z
wip
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml deleted file mode 100644 index 438d2c7b4174e..0000000000000 --- a/.github/workflows/32-bit-linux.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: 32 Bit Linux - -on: - push: - branches: - - main - - 1.5.x - pull_request: - b...
- [ ] 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/50518
2022-12-31T18:46:52Z
2022-12-31T19:00:06Z
null
2022-12-31T19:00:26Z
CLN/TST: test_series_align_multiindex_containing_nan
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index f5f58e7e818d9..8e507212976ec 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -151,57 +151,35 @@ def test_rename_multi...
- [x] closes #49443 - [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/50516
2022-12-31T14:22:30Z
2023-01-04T19:02:41Z
2023-01-04T19:02:41Z
2023-01-19T04:31:29Z
TST: add numexpr fixture
diff --git a/pandas/conftest.py b/pandas/conftest.py index 3b167d9ef4fe2..c1b62a8a0f63e 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1253,6 +1253,28 @@ def utc_fixture(request): utc_fixture2 = utc_fixture +@pytest.fixture(params=[True, False], ids=["numexpr", "python"]) +def use_numexpr(request): +...
Adds a `use_numexpr` fixture to `conftest.py`, deletes 3 `switch_numexpr_min_elements` and simplifies numexpr tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/50513
2022-12-31T00:06:35Z
2022-12-31T01:39:34Z
null
2022-12-31T01:39:34Z
BUG: Series.isnull() respect use_inf_as_na
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 000b5ebbdd2f7..d22dc060c5b8b 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -284,7 +284,7 @@ def _isna_array(values: ArrayLike, inf_as_na: bool = False): if not isinstance(values, np.ndarray): ...
- [x] closes #50495 - [ ] [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/50512
2022-12-30T22:50:38Z
2023-01-31T21:34:56Z
null
2023-01-31T21:34:57Z
BUG: to_dict not converting masked dtype to native python types
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..a5e34b2c3c1f6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -913,6 +913,7 @@ I/O - Bug in displaying ``string`` dtypes not showing storage option (:issue:`50099`) - Bug in :meth:`Dat...
- [x] closes #34665 (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/50510
2022-12-30T18:29:37Z
2023-01-19T21:45:29Z
null
2023-01-19T21:46:55Z
DOC: Add ignore_functions option to validate_docstrings.py
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 3c1362b1ac83e..5d2f176d6bcd8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -83,6 +83,36 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX04,GL01,GL02,GL03,GL04,GL05,GL0...
- [ ] 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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50509
2022-12-30T18:01:33Z
2023-01-08T16:44:29Z
2023-01-08T16:44:29Z
2023-03-04T10:47:10Z
BUG: DataFrameGroupBy.value_counts fails with a TimeGrouper
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 22f6659367683..1d733566a0e0b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -945,6 +945,7 @@ Groupby/resample/rolling - Bug in :meth:`.SeriesGroupBy.nunique` would incorrectly raise when the grouper ...
- [x] closes #50486 (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/50507
2022-12-30T17:38:46Z
2023-01-03T22:42:04Z
2023-01-03T22:42:04Z
2023-01-04T00:47:34Z
BUG: to_numpy not respecting na_value before converting to array
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index dc86352082cca..a0dd52e9f17e4 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -382,4 +382,23 @@ def time_iter(self, dtype): pass +class ToNumpy: + def...
- [x] closes #48951 (Replace xxxx with the GitHub issue number) - [x] closes #24345 (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...
https://api.github.com/repos/pandas-dev/pandas/pulls/50506
2022-12-30T16:55:41Z
2023-01-05T23:41:24Z
2023-01-05T23:41:24Z
2023-01-06T07:42:19Z
ENH: Add use_nullable_dtypes to to_numeric
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 5b725eb4d2a98..43571b3879622 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -44,6 +44,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_sql_query` * ...
- [x] closes #37294 (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/50505
2022-12-30T15:38:40Z
2023-01-10T08:27:03Z
2023-01-10T08:27:03Z
2023-01-10T08:27:23Z
ENH: Add pandas nullable support to read_orc
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..a54e6706fa286 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -42,6 +42,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_sql` * :func:...
- [ ] 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/50503
2022-12-30T14:28:13Z
2023-01-05T23:43:15Z
2023-01-05T23:43:15Z
2023-01-06T07:42:34Z
ENH: Add use_nullable_dtypes to read_clipboard
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 5b725eb4d2a98..fa17bf20635e0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -36,6 +36,7 @@ Configuration option, ``mode.dtype_backend``, to return pyarrow-backed dtypes The ``use_nullable_dtypes`` ke...
- [ ] 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/50502
2022-12-30T12:41:09Z
2023-01-06T19:03:22Z
2023-01-06T19:03:22Z
2023-01-06T19:11:18Z
ENH: Add lazy copy to concat and round
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 46f8c73027f48..b2fbc7b088eb3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -723,6 +723,7 @@ def __init__( ) elif getattr(data, "name", None) is not None: # i.e. Series/Index with non-None name...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50501
2022-12-30T12:06:06Z
2023-01-17T08:22:25Z
2023-01-17T08:22:25Z
2023-01-17T09:58:03Z
ENH: Add use_nullable_dtypes to read_xml
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..712635d7a7e2a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -39,6 +39,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_fwf` * :func:...
- [ ] 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/50500
2022-12-30T10:16:02Z
2023-01-04T19:11:43Z
2023-01-04T19:11:43Z
2023-01-04T20:24:30Z
API / CoW: constructing DataFrame from DataFrame creates lazy copy
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 9a99dbad30708..4d4dc6f705027 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -951,6 +951,10 @@ Indexing - Bug in :class:`BusinessHour` would cause creation of :class:`DatetimeIndex` to fail when no op...
- [ ] 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/50499
2022-12-30T09:01:56Z
2023-02-08T18:01:39Z
null
2023-02-11T11:38:10Z
DOC: Add `pip install odfpy` for io.rst
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 677be7bf29479..6e47ec4e4aa03 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3833,7 +3833,7 @@ OpenDocument Spreadsheets The io methods for `Excel files`_ also support reading and writing OpenDocument spread...
Fixes #50487 - [x] closes #50487 Perhaps because of my misunderstanding, adding 'pip install' here may not be consistent with the previous docs style. Because there is no direct instruction in the previous docs how to install the engine manually.
https://api.github.com/repos/pandas-dev/pandas/pulls/50498
2022-12-30T04:09:56Z
2022-12-30T15:06:35Z
2022-12-30T15:06:35Z
2022-12-31T02:13:03Z
DOC: Fix some doctest errors
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e671f45216968..ca4f5e18a214d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3477,7 +3477,7 @@ def transpose(self, *args, copy: bool = False) -> DataFrame: 0 1 3 1 2 4 - >>> df1_transposed = df1.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/50494
2022-12-29T21:42:29Z
2023-01-03T21:46:36Z
2023-01-03T21:46:36Z
2023-01-03T21:46:40Z
CLN avoid some upcasting when its not the purpose of the test
diff --git a/pandas/tests/frame/methods/test_equals.py b/pandas/tests/frame/methods/test_equals.py index dddd6c6d2eaf2..beec3e965d542 100644 --- a/pandas/tests/frame/methods/test_equals.py +++ b/pandas/tests/frame/methods/test_equals.py @@ -36,7 +36,8 @@ def test_equals(self): df1["start"] = date_range("2000-1...
Generally, tests follow the pattern: - create input - do something to it - check that it matches expected output There are a few places when, whilst creating the test input, some column is created of some dtype (e.g. 'int'), and then some incompatible type is set (e.g. a string `'foo'`), thus upcasting the column...
https://api.github.com/repos/pandas-dev/pandas/pulls/50493
2022-12-29T21:12:47Z
2023-01-02T09:02:42Z
2023-01-02T09:02:42Z
2023-01-02T09:02:42Z
ENH: Add lazy copy for sort_index
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c893e9ce3d9a9..23eb66abb8561 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4934,7 +4934,7 @@ def sort_index( if inplace: result = self else: - result = self.copy() + ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50491
2022-12-29T21:05:01Z
2023-01-03T12:25:43Z
2023-01-03T12:25:43Z
2023-01-03T21:48:09Z
ENH: Add lazy copy for tz_convert and tz_localize
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c893e9ce3d9a9..7e8196c9b27f3 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10099,7 +10099,7 @@ def truncate( @final @doc(klass=_shared_doc_kwargs["klass"]) def tz_convert( - self: NDFrameT, tz, axis: Axis = 0...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50490
2022-12-29T20:42:04Z
2023-01-03T08:15:17Z
2023-01-03T08:15:17Z
2023-01-03T11:08:35Z
TST: Test cow for set_flags
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 95804de2a7089..2c66b0c67c3dd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -405,6 +405,8 @@ def set_flags( Parameters ---------- + copy : bool, default False + Specify if a copy of the object s...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50489
2022-12-29T20:26:01Z
2023-01-03T21:41:16Z
2023-01-03T21:41:16Z
2023-02-11T11:38:28Z
TST: GH50347 create test for groupby sum of boolean values.
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index b2fc60b76fdf6..a59c2853fa50b 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2828,3 +2828,13 @@ def test_groupby_index_name_in_index_content(val_in, index, val_out): resul...
- [x] closes #50347 - [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). Doe...
https://api.github.com/repos/pandas-dev/pandas/pulls/50488
2022-12-29T19:39:55Z
2022-12-30T15:07:18Z
2022-12-30T15:07:18Z
2022-12-30T15:07:24Z
CI/WEB: Adding cache for maintainers' github info
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 908259597cafb..7a9f491228a83 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -46,6 +46,12 @@ jobs: - name: Build Pandas uses: ./.github/actions/b...
I've seen some CI failures recently caused by hitting github API quota when building the website. The website requests from github the info of maintainers to show names and photos in https://pandas.pydata.org/about/team.html (also the releases in the home, but that's a single request not affecting the quota much). F...
https://api.github.com/repos/pandas-dev/pandas/pulls/50485
2022-12-29T08:20:29Z
2022-12-29T10:29:28Z
2022-12-29T10:29:28Z
2023-01-04T10:33:52Z
DOC: Clean dubious docstring
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3ff50be966fa0..0bc9751694e9f 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -366,6 +366,21 @@ class ApplyTypeError(TypeError): cdef class BaseOffset: """ Base class for DateOffset metho...
Fixes #50344 - [x] closes #50344
https://api.github.com/repos/pandas-dev/pandas/pulls/50484
2022-12-29T08:13:27Z
2022-12-29T15:29:08Z
2022-12-29T15:29:08Z
2022-12-30T03:41:47Z
DEPR: Remove unnecessary kwargs in groupby ops
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0ef5636a97d40..f6c729959aec1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -505,6 +505,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`to...
- [x] closes #50407 - [ ] [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/50483
2022-12-29T06:21:25Z
2023-02-11T21:00:24Z
null
2023-02-11T21:00:25Z
DEP: Bump pytest, xdist, hypothesis
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 438d2c7b4174e..fc00dcf73cbdd 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -39,7 +39,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate && \ python -m pip instal...
All these libraries were released ~1 year ago.
https://api.github.com/repos/pandas-dev/pandas/pulls/50481
2022-12-29T01:33:02Z
2023-01-12T17:16:38Z
2023-01-12T17:16:38Z
2023-01-12T17:19:39Z
DEPR: Remove int64 uint64 float64 index tests
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 7d5a7ac5945d6..100ff97ed512c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -90,7 +90,6 @@ ensure_platform_int, is_bool_dtype, is_categorical_dtype, - is_complex_dtype, is_dtype_equal, ...
This PR updates various tests that currently use Int64Index/UInt64Index/Float64Index to instead use `Index` with the relevant dtype (parametrized dtypes where relevant). Sections of the tests suite are changed in separate commits, so it will be easier to separate them out, if desired. This PR's first 3 commits corr...
https://api.github.com/repos/pandas-dev/pandas/pulls/50479
2022-12-28T23:49:14Z
2023-01-19T21:49:22Z
null
2023-01-22T10:18:10Z
ENH: Add lazy copy to swaplevel
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e671f45216968..d916fdc5a0ee4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7254,7 +7254,7 @@ def nsmallest(self, n: int, columns: IndexLabel, keep: str = "first") -> DataFra ), ) def swaplevel(self, i: Axis = -2, j: Axi...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50478
2022-12-28T23:33:40Z
2023-01-03T08:04:12Z
2023-01-03T08:04:12Z
2023-01-03T11:08:42Z
ENH: Add lazy copy for truncate
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 95804de2a7089..f6dfc7d3b076a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -159,6 +159,7 @@ SingleArrayManager, ) from pandas.core.internals.construction import mgr_to_mgr +from pandas.core.internals.managers import _using_c...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50477
2022-12-28T23:11:29Z
2023-01-04T09:23:41Z
2023-01-04T09:23:40Z
2023-01-04T09:25:10Z
ENH: Add lazy copy for take and between_time
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8980fe0249193..fa1a79c81630a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -35,6 +35,7 @@ ) from pandas._libs import lib +from pandas._libs.lib import array_equal_fast from pandas._libs.tslibs import ( Period, Tick, ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50476
2022-12-28T22:26:56Z
2023-01-13T07:57:58Z
2023-01-13T07:57:58Z
2023-01-13T08:23:33Z
BUG: loc.setitem coercing rhs df dtypes
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 5b725eb4d2a98..92b76c62db8f7 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -878,6 +878,7 @@ Indexing ^^^^^^^^ - Bug in :meth:`DataFrame.__setitem__` raising when indexer is a :class:`DataFrame` wit...
- [x] closes #50467 (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/50475
2022-12-28T21:18:27Z
2023-01-06T23:47:59Z
2023-01-06T23:47:59Z
2023-01-07T11:43:23Z
DOC: Add pyarrow type equivalency table
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index 5b41de4e12e6f..aeaca7caea25d 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -60,6 +60,37 @@ is an :class:`ArrowDtype`. `Pyarrow <https://arrow.apache.org/docs/python/index.html>`__ provides simil...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/50474
2022-12-28T20:59:43Z
2023-01-04T18:01:01Z
2023-01-04T18:01:01Z
2023-01-04T18:01:06Z
ENH: Add lazy copy for series.reorder_levels
diff --git a/pandas/core/series.py b/pandas/core/series.py index 42e41203cc31e..b5d73373f061e 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4114,7 +4114,7 @@ def reorder_levels(self, order: Sequence[Level]) -> Series: if not isinstance(self.index, MultiIndex): # pragma: no cover ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50472
2022-12-28T19:50:51Z
2023-01-03T13:22:05Z
2023-01-03T13:22:05Z
2023-01-03T21:47:51Z
DOC: Add note about copy on write improvements
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 22f6659367683..a01c31cd614b0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -77,6 +77,47 @@ be set to ``"pyarrow"`` to return pyarrow-backed, nullable :class:`ArrowDtype` ( df_pyarrow = pd.re...
- [ ] 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/50471
2022-12-28T19:47:45Z
2023-01-09T23:30:05Z
2023-01-09T23:30:05Z
2023-01-12T22:23:17Z
DOC: Add Copy on write whatsnew
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a1c374db91f8b..b61547d1523cf 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -290,6 +290,52 @@ and attributes without holding entire tree in memory (:issue:`45442`). .. _`lxml's iterparse`: https://lx...
- [ ] 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/50470
2022-12-28T19:27:09Z
2023-01-03T21:29:05Z
2023-01-03T21:29:05Z
2023-01-11T14:56:23Z
CLN: avoid NpyDatetimeUnit in tests
diff --git a/pandas/tests/arrays/test_datetimes.py b/pandas/tests/arrays/test_datetimes.py index f9c32108f0ef0..d9abaf85544af 100644 --- a/pandas/tests/arrays/test_datetimes.py +++ b/pandas/tests/arrays/test_datetimes.py @@ -16,7 +16,6 @@ npy_unit_to_abbrev, tz_compare, ) -from pandas._libs.tslibs.dtypes imp...
Broken off from #50433.
https://api.github.com/repos/pandas-dev/pandas/pulls/50469
2022-12-28T15:33:09Z
2022-12-28T17:50:56Z
2022-12-28T17:50:56Z
2022-12-28T19:07:49Z
used regular expression in `format_is_iso()`
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1387e9717079..22f6659367683 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -103,6 +103,7 @@ Other enhancements - :meth:`DataFrame.plot.hist` now recognizes ``xlabel`` and ``ylabel`` arguments (:issu...
- [x] closes #50465 (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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50468
2022-12-28T15:17:24Z
2023-01-02T20:57:02Z
2023-01-02T20:57:02Z
2023-01-02T20:57:02Z
CI try saving .coverage
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml deleted file mode 100644 index 438d2c7b4174e..0000000000000 --- a/.github/workflows/32-bit-linux.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: 32 Bit Linux - -on: - push: - branches: - - main - - 1.5.x - pull_request: - b...
- [ ] 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/50466
2022-12-28T14:13:52Z
2022-12-29T10:30:04Z
null
2022-12-29T10:30:05Z
ERR: "day out of range" doesn't show position of error
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 976a53e9117de..48e855f7e9905 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -508,8 +508,8 @@ cpdef array_to_datetime( continue elif is_raise: raise V...
- [ ] closes #50462 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50464
2022-12-28T12:02:52Z
2022-12-28T17:54:47Z
2022-12-28T17:54:47Z
2022-12-28T17:54:53Z
TST: Verify mask's return keeps dtype
diff --git a/pandas/tests/frame/indexing/test_mask.py b/pandas/tests/frame/indexing/test_mask.py index e8a49ab868425..23458b096a140 100644 --- a/pandas/tests/frame/indexing/test_mask.py +++ b/pandas/tests/frame/indexing/test_mask.py @@ -7,6 +7,7 @@ from pandas import ( NA, DataFrame, + Float64Dtype, ...
- [ ] closes #50448 - [ ] [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). - [ ] Ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/50460
2022-12-28T09:31:45Z
2023-01-04T13:47:49Z
2023-01-04T13:47:49Z
2023-01-04T13:48:35Z
add test to check crosstab supports Float64 formats
diff --git a/pandas/tests/reshape/test_crosstab.py b/pandas/tests/reshape/test_crosstab.py index 76448d5942a5a..bea0ddbe8a667 100644 --- a/pandas/tests/reshape/test_crosstab.py +++ b/pandas/tests/reshape/test_crosstab.py @@ -795,6 +795,32 @@ def test_margin_normalize_multiple_columns(self): expected.index.name...
- [x] closes #50313 - [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). A ...
https://api.github.com/repos/pandas-dev/pandas/pulls/50459
2022-12-28T09:22:50Z
2022-12-28T19:54:40Z
2022-12-28T19:54:40Z
2022-12-28T21:06:33Z
DEPR: Enforce alignment with numpy ufuncs
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 46464a3ecf420..d03bd9162b357 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -527,6 +527,7 @@ Removal of prior version deprecations/changes - Removed deprecated :func:`pandas.api.types.is_categorical`...
Introduced in #39239
https://api.github.com/repos/pandas-dev/pandas/pulls/50455
2022-12-28T02:20:21Z
2022-12-28T21:46:29Z
2022-12-28T21:46:29Z
2022-12-28T22:08:14Z
DOC: skip a doctest that writes to disk
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 5089d0489c49f..c0e00d6bd30a4 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1125,7 +1125,8 @@ def format( >>> df = pd.DataFrame({"A": [1, 0, -1]}) >>> pseudo_css = "nu...
- [ ] 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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50454
2022-12-28T01:52:12Z
2022-12-28T12:53:01Z
2022-12-28T12:53:01Z
2022-12-28T12:53:08Z
API: to_datetime allow mixed numeric/datetime with errors=coerce
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 12b0d90e68ab9..87ebff90c6021 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -470,7 +470,7 @@ Other API changes - Changed behavior of :meth:`Series.quantile` and :meth:`DataFrame.quantile` with :class...
- [ ] 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/50453
2022-12-28T01:32:09Z
2022-12-29T00:17:49Z
2022-12-29T00:17:49Z
2022-12-29T00:35:46Z
CI: Fix npdev error on deprecation & future warnings
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f7bd5980439e3..d3ad2710a0efa 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -77,7 +77,7 @@ jobs: - name: "Numpy Dev" env_file: actions-310-numpydev.yaml pattern: "not slow...
As discovered in https://github.com/pandas-dev/pandas/pull/50386, specifying modules in the warning filters need the fully qualified module path which `numpy` is not. In order to not enumerate all the modules paths in numpy, just have this build fail on any `DeprecationWarning` or `FutureWarning`
https://api.github.com/repos/pandas-dev/pandas/pulls/50452
2022-12-27T23:07:54Z
2023-01-18T00:59:27Z
2023-01-18T00:59:27Z
2023-01-18T00:59:32Z
CI: Reduce duplicate pyarrow version testing
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index ca6fd63d749ee..5efc1aa67b4cd 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -53,7 +53,7 @@ jobs: uses: ./.github/actions/setup-conda with: environment-file: ...
We probably don't need to be testing multiple permutations of pyarrow version & Python version in the CI. Instead: * PY310 builds will test pyarrow version 6 - 10 * PY38 & 39 builds will test pyarrow = 10
https://api.github.com/repos/pandas-dev/pandas/pulls/50451
2022-12-27T22:44:53Z
2022-12-28T08:27:54Z
2022-12-28T08:27:54Z
2022-12-28T17:42:06Z
BUG: handle duplicated columns when using `read_sql` (#44421)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index cb47519589377..520da64e72e98 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -900,6 +900,7 @@ I/O - Fixed memory leak which stemmed from the initialization of the internal JSON module (:issue:`49222`)...
- [X] closes #44421 - [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/50450
2022-12-27T19:00:22Z
2023-02-07T20:41:09Z
null
2023-02-07T20:41:10Z
PERF: ArrowExtensionArray.searchsorted
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ea6a832d25058..4acfc1470a82f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -757,6 +757,7 @@ Performance improvements - Performance improvement in :meth:`MultiIndex.putmask` (:issue:`49830`) - Perfo...
- [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 [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/50447
2022-12-27T11:44:21Z
2023-01-05T23:29:27Z
2023-01-05T23:29:27Z
2023-01-19T04:31:28Z
TST: Add test_ to four tests in test_readlines.py and fix two of them
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c3dd35ef47f5..6b531215813d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -342,4 +342,3 @@ repos: exclude: | (?x) ^pandas/tests/generic/test_generic.py # GH50380 - |^pandas/tests/...
Four tests in https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_readlines.py weren't running because they didn't have `test_` in front of their names, fixed those. Two of those tests were not passing because the JSON data was turning booleans into 1s and 0s which was conflicting with the boole...
https://api.github.com/repos/pandas-dev/pandas/pulls/50445
2022-12-27T03:03:14Z
2022-12-27T19:00:35Z
2022-12-27T19:00:35Z
2022-12-27T19:06:10Z
BUG: groupby.nth with NA values in groupings after subsetting to SeriesGroupBy
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 12b0d90e68ab9..1c7e9f09fcf21 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -924,6 +924,7 @@ Groupby/resample/rolling - Bug in :meth:`.SeriesGroupBy.describe` with ``as_index=False`` would have the i...
- [x] closes #26454 (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/50444
2022-12-27T02:53:32Z
2022-12-27T19:03:42Z
2022-12-27T19:03:41Z
2022-12-27T19:13:49Z
TST: Verify isin returns consistent results for passed iterables
diff --git a/pandas/tests/series/methods/test_isin.py b/pandas/tests/series/methods/test_isin.py index 92ebee9ffa7a5..3e4857b7abf38 100644 --- a/pandas/tests/series/methods/test_isin.py +++ b/pandas/tests/series/methods/test_isin.py @@ -234,3 +234,15 @@ def test_isin_filtering_with_mixed_object_types(data, is_in): ...
Add tests to verify that the `Series` method `isin` returns consistent results when passed iterables with different dtypes. (See #50234.) - [x] closes #50234 - [ ] [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/50443
2022-12-26T20:54:01Z
2022-12-27T23:11:00Z
2022-12-27T23:11:00Z
2022-12-27T23:11:08Z
REF: share TimedeltaArray division code
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index fe7ca3b5ba4ed..bc65d06789e5a 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -1,6 +1,7 @@ from __future__ import annotations from datetime import timedelta +import operator from typing imp...
- [ ] 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/50441
2022-12-26T18:45:00Z
2022-12-28T00:48:55Z
2022-12-28T00:48:55Z
2022-12-28T01:24:20Z
BUG: Fix issue where df.groupby.resample.size returns wide DF instead of MultiIndex Series.
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 13b60f7f05352..59a27b0969a1e 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -951,6 +951,7 @@ Groupby/resample/rolling - Bug in :meth:`.SeriesGroupBy.nth` would raise when grouper contained NA values ...
- [x] closes #46826 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/50440
2022-12-26T17:07:53Z
2023-01-04T18:08:14Z
2023-01-04T18:08:14Z
2023-01-04T18:21:31Z
CLN, TST: clean up and increase coverage in tslib.pyx
diff --git a/pandas/__init__.py b/pandas/__init__.py index 585a1ae341217..951cb38656d0b 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -9,10 +9,10 @@ for _dependency in _hard_dependencies: try: __import__(_dependency) - except ImportError as _e: + except ImportError as _e: # pragma: n...
- [ ] 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/50439
2022-12-26T15:08:32Z
2022-12-27T19:20:21Z
2022-12-27T19:20:21Z
2022-12-27T19:20:27Z
BUG: Series(pyarrow-backed).round raising AttributeError
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ba169600962..3b82e31423590 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -947,6 +947,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Bug in :meth:`Series.mean` overflowing unnecessarily with nullable intege...
- [ ] [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 [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/50437
2022-12-25T17:44:10Z
2022-12-27T19:23:35Z
2022-12-27T19:23:35Z
2023-01-19T04:31:32Z
TST: Make get_array smarter to work for masked arrays
diff --git a/pandas/tests/copy_view/test_util.py b/pandas/tests/copy_view/test_util.py new file mode 100644 index 0000000000000..ff55330d70b28 --- /dev/null +++ b/pandas/tests/copy_view/test_util.py @@ -0,0 +1,14 @@ +import numpy as np + +from pandas import DataFrame +from pandas.tests.copy_view.util import get_array +...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50436
2022-12-25T11:29:03Z
2022-12-27T19:24:51Z
2022-12-27T19:24:51Z
2022-12-28T19:17:15Z
BUG: inconsistent handling of exact=False case in to_datetime parsing
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b531215813d3..f3158e64df8dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -63,7 +63,8 @@ repos: '--extensions=c,h', '--headers=h', --recursive, - '--filter=-readability/casting...
- [ ] closes #50412 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50435
2022-12-25T11:06:42Z
2022-12-31T08:55:06Z
2022-12-31T08:55:06Z
2022-12-31T08:55:06Z
CLN: Assorted
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index 0d7c96a6f2f2b..67fee7c5fbadd 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -121,9 +121,8 @@ cdef class IntervalTree(IntervalMixin): """ if self._na_count > 0: 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/50433
2022-12-25T00:31:44Z
2022-12-29T00:32:30Z
2022-12-29T00:32:30Z
2022-12-29T00:36:04Z
ENH: Add lazy copy to align
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 21b3a0c033702..db3f2de703c34 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4879,7 +4879,7 @@ def align( join: AlignJoin = "outer", axis: Axis | None = None, level: Level = None, - copy: bool = True, + ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50432
2022-12-24T19:42:48Z
2022-12-28T18:09:48Z
2022-12-28T18:09:48Z
2023-01-03T09:29:30Z
ENH: Add lazy copy for drop duplicates
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 21b3a0c033702..9702a5b374356 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3718,6 +3718,10 @@ def _getitem_bool_array(self, key): # check_bool_indexer will throw exception if Series key cannot # be reindexed to match Dat...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50431
2022-12-24T18:36:43Z
2022-12-28T18:11:19Z
2022-12-28T18:11:19Z
2022-12-28T19:05:44Z
BUG: Series(strings).astype("float64[pyarrow]") raising
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ba169600962..12b0d90e68ab9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -830,6 +830,7 @@ Conversion - Bug in :meth:`Series.convert_dtypes` not converting dtype to nullable dtype when :class:`Seri...
- [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 [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/50430
2022-12-24T15:56:53Z
2022-12-24T20:18:48Z
2022-12-24T20:18:48Z
2023-01-19T04:31:33Z
ENH: Use lazy copy for dropna
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fbc78da26c4b6..f5c3f3dfddcc7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6345,7 +6345,7 @@ def dropna( raise ValueError(f"invalid how option: {how}") if np.all(mask): - result = self.copy() + ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50429
2022-12-24T14:31:26Z
2023-01-13T16:48:35Z
2023-01-13T16:48:35Z
2023-01-13T16:48:46Z
ENH: Use lazy copy in infer objects
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7d028935ad175..70c60401f29fb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -223,6 +223,7 @@ Copy-on-Write improvements - :meth:`DataFrame.to_period` / :meth:`Series.to_period` - :meth:`DataFram...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50428
2022-12-24T14:19:28Z
2023-02-08T14:41:44Z
2023-02-08T14:41:44Z
2023-02-08T14:58:20Z
ENH: Use cow for reindex_like
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 7a40e30c0ae7a..dacb8d121ef79 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4218,7 +4218,7 @@ def reindex_like( self: NDFrameT, other, method: Literal["backfill", "bfill", "pad", "ffill", "nearest"] | Non...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50426
2022-12-24T10:57:33Z
2022-12-28T18:12:03Z
2022-12-28T18:12:03Z
2022-12-28T19:05:50Z
REF: Make Util functions accessible from C
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 7fcba58772ac4..8e2e5d113d58e 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -38,6 +38,12 @@ from numpy cimport ( cnp.import_array() cimport pandas._libs.util as util + + +cdef extern from "pandas/type.h": + bint is_integer_ob...
Came up when reviewing #50400 with @lithomas1 . Doesn't directly solve this, but a lot of our util.pyx functions are in essence C functions to begin with. Because they are implemented in Cython though, its a built difficult to use them in our non-Cython extensions like JSON. This takes the code out of the Cython fil...
https://api.github.com/repos/pandas-dev/pandas/pulls/50425
2022-12-24T01:01:53Z
2023-01-05T16:08:29Z
null
2023-04-12T20:15:54Z
PDEP-6: Ban upcasting in setitem-like operations
diff --git a/web/pandas/pdeps/0006-ban-upcasting.md b/web/pandas/pdeps/0006-ban-upcasting.md new file mode 100644 index 0000000000000..325c25313af53 --- /dev/null +++ b/web/pandas/pdeps/0006-ban-upcasting.md @@ -0,0 +1,234 @@ +# PDEP-6: Ban upcasting in setitem-like operations + +- Created: 23 December 2022 +- Status: ...
Original discussion: #39584 Turning into a PDEP as I think the `int -> float` warrants some care
https://api.github.com/repos/pandas-dev/pandas/pulls/50424
2022-12-23T21:57:17Z
2023-04-21T14:47:08Z
2023-04-21T14:47:08Z
2023-04-21T14:47:09Z
Backport PR #50145 on branch 1.5.x (DOC restructure contributing environment guide)
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index b79fe58c68e4b..942edd863a19a 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -15,24 +15,11 @@ locally before pushing ...
Backport PR #50145: DOC restructure contributing environment guide
https://api.github.com/repos/pandas-dev/pandas/pulls/50423
2022-12-23T21:27:56Z
2022-12-23T22:03:10Z
2022-12-23T22:03:10Z
2022-12-23T22:03:10Z
Backport PR #50341 on branch 1.5.x (CI: Use regular solver for docker build)
diff --git a/Dockerfile b/Dockerfile index c987461e8cbb8..7230dcab20f6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,6 @@ RUN apt-get install -y build-essential RUN apt-get install -y libhdf5-dev RUN python -m pip install --upgrade pip -RUN python -m pip install --use-deprecated=legacy-resolver \ +RUN python...
Backport PR #50341: CI: Use regular solver for docker build
https://api.github.com/repos/pandas-dev/pandas/pulls/50422
2022-12-23T21:26:53Z
2022-12-23T23:31:19Z
2022-12-23T23:31:19Z
2022-12-23T23:31:20Z
Backport PR #49981 on branch 1.5.x (Streamline docker usage)
diff --git a/.devcontainer.json b/.devcontainer.json index 8bea96aea29c1..7c5d009260c64 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -9,8 +9,7 @@ // You can edit these settings after create using File > Preferences > Settings > Remote. "settings": { "terminal.integrated.shell.linux": "/bin/bash", ...
Backport PR #49981: Streamline docker usage
https://api.github.com/repos/pandas-dev/pandas/pulls/50421
2022-12-23T21:19:07Z
2022-12-23T21:26:16Z
2022-12-23T21:26:16Z
2022-12-23T21:26:16Z
Backport PR #49993 on branch 1.5.x (Add new mamba environment creation command)
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index c018d036a7192..a29351195e3ed 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -107,7 +107,7 @@ We'll now kick off a th...
Backport PR #49993: Add new mamba environment creation command
https://api.github.com/repos/pandas-dev/pandas/pulls/50420
2022-12-23T21:05:07Z
2022-12-23T21:05:29Z
2022-12-23T21:05:29Z
2022-12-23T21:28:40Z
"Backport PR #50145 on branch 1.5.x (DOC restructure contributing environment guide)"
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index c018d036a7192..55efc40d2f9d3 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -15,24 +15,11 @@ locally before pushing ...
- [ ] 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/50419
2022-12-23T21:00:15Z
2022-12-23T21:03:32Z
null
2022-12-23T21:03:33Z
Backport PR #50144 on branch 1.5.x (DOC: BT for VisualStudio2022)
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index afa0d0306f1af..c018d036a7192 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -36,29 +36,17 @@ These packages will aut...
Backport PR #50144: DOC: BT for VisualStudio2022
https://api.github.com/repos/pandas-dev/pandas/pulls/50418
2022-12-23T19:28:29Z
2022-12-23T20:56:29Z
2022-12-23T20:56:29Z
2022-12-23T20:56:29Z
BUG: Period constructor raises instead of ignoring when passing a string with extra precision(pico, femto, etc.)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 45e4fd9f0aabb..35ace840c2cde 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -993,7 +993,7 @@ Period ^^^^^^ - Bug in :meth:`Period.strftime` and :meth:`PeriodIndex.strftime`, raising ``UnicodeDecodeE...
- [ ] xref #50149 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50417
2022-12-23T18:35:05Z
2023-01-16T19:33:33Z
2023-01-16T19:33:33Z
2023-01-16T19:35:39Z
CLN: Use exclusions in determination of _selected_obj
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 11e8769615470..bc13c500fdde8 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1020,7 +1020,7 @@ def _set_group_selection(self) -> None: ): return - groupers = [g.name 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/50416
2022-12-23T18:26:30Z
2022-12-27T19:40:11Z
2022-12-27T19:40:11Z
2022-12-27T20:03:13Z
ENH: add lazy copy (CoW) mechanism to rename_axis
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c893e9ce3d9a9..e86427b8cd29d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1209,7 +1209,8 @@ class name axes, kwargs = self._construct_axes_from_arguments( (), kwargs, sentinel=lib.no_default ) - ...
- [ ] xref #49473 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50415
2022-12-23T17:43:57Z
2023-01-02T15:33:54Z
2023-01-02T15:33:54Z
2023-01-03T21:47:04Z
BUG: Grouper specified by key not regarded as in-axis
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 9957ccb4fde50..72b2d9aeca614 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -932,6 +932,8 @@ Groupby/resample/rolling - Bug in :class:`.DataFrameGroupBy` and :class:`.SeriesGroupBy` with ``dropna=Fal...
- [x] closes #50413 (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/50414
2022-12-23T16:34:14Z
2022-12-28T18:07:50Z
2022-12-28T18:07:50Z
2022-12-28T18:18:03Z
STYLE: prohibit parsing exeption messages
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index 07624e87d82e0..be996540cf0ec 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -32,11 +32,15 @@ Exceptions and warnings errors.CSSWarning errors.DatabaseError errors.DataError + err...
to fix #50353. Welcome any code review and comments.
https://api.github.com/repos/pandas-dev/pandas/pulls/50408
2022-12-23T08:50:43Z
2023-02-16T02:03:21Z
null
2023-02-16T02:03:25Z
TST: Consolidate tests that raise in groupby
diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py index 2b0c607d6851a..bb15783f4607f 100644 --- a/pandas/tests/groupby/test_function.py +++ b/pandas/tests/groupby/test_function.py @@ -166,8 +166,6 @@ def test_averages(self, df, method): ], ) - with...
- [ ] 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/50404
2022-12-23T03:01:05Z
2022-12-23T23:31:53Z
2022-12-23T23:31:53Z
2022-12-23T23:33:05Z
CLN: Remove unused rewrite warning
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 810a428098df2..eb95bb2484ebf 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -21,7 +21,6 @@ Appender, Substitution, ) -from pandas.util._exceptions import rewrite_warning from pandas.core.dtypes....
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50403
2022-12-22T22:04:37Z
2022-12-23T17:41:11Z
2022-12-23T17:41:11Z
2022-12-23T17:41:48Z
REF: restore _concat_managers_axis0
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index d1a252f727e90..364025d583b7d 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -193,12 +193,21 @@ def concatenate_managers( if isinstance(mgrs_indexers[0][0], ArrayManager): return _con...
It was removed in #47372 but removing it was not the point of that PR, just a side-effect.
https://api.github.com/repos/pandas-dev/pandas/pulls/50401
2022-12-22T18:35:11Z
2022-12-27T22:28:35Z
2022-12-27T22:28:35Z
2022-12-27T22:42:41Z
BUG: Index with null value not serialized correctly to json
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 033f47f0c994d..7f7145347296c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1012,6 +1012,8 @@ I/O - Fixed memory leak which stemmed from the initialization of the internal JSON module (:issue:`49222...
- [ ] closes #31801 (Replace xxxx with the GitHub issue number) - [ ] closes #28609 - [ ] [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/50400
2022-12-22T17:12:54Z
2023-02-22T13:54:21Z
null
2023-02-22T13:54:23Z
ENH: add math mode to formatter escape="latex-math"
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3a6d3cc2141be..e09f3e2753ee6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -281,6 +281,7 @@ Other enhancements - Added new argument ``engine`` to :func:`read_json` to support parsing JSON with pyarr...
- [x] closes #50040 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests). Added `latex-math` mode to avoid escaping...
https://api.github.com/repos/pandas-dev/pandas/pulls/50398
2022-12-22T16:43:20Z
2023-03-06T08:34:15Z
2023-03-06T08:34:15Z
2023-03-06T13:19:49Z
STYLE pre-commit check to ensure that test functions name starts with test
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a54a5827adacb..1c3dd35ef47f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -333,3 +333,13 @@ repos: additional_dependencies: - autotyping==22.9.0 - libcst==0.4.7 + - id: check-test-naming + ...
- [ ] closes #50379 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50397
2022-12-22T16:42:04Z
2022-12-24T07:11:22Z
2022-12-24T07:11:21Z
2022-12-24T12:31:30Z
BUG/COMPAT: fix assert_* functions for nested arrays with latest numpy
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 0cb8796e3fb5d..e514267a4b6b8 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -30,6 +30,7 @@ Bug fixes - Bug in :meth:`.Styler.to_excel` leading to error when unrecognized ``border-style`` (e.g. ``"hai...
This adds tests for `assert_almost_equal` (used by `assert_series_equal` et al in case of object dtype arrays) that all pass on pandas main with released numpy (except for two cases with dict of array), and fixes the implementation of `array_equivalent` (used by `assert_almost_equal`) to return False instead of raising...
https://api.github.com/repos/pandas-dev/pandas/pulls/50396
2022-12-22T16:17:39Z
2023-01-13T23:13:58Z
2023-01-13T23:13:58Z
2023-01-14T16:50:23Z
CLN remove unused functions
diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index a75b2a427a80a..f5aa481b2172e 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -11,7 +11,6 @@ import itertools import locale from operator import methodcaller -import o...
closes #50393 CLN remove _assert_not_frame_equal_both?
https://api.github.com/repos/pandas-dev/pandas/pulls/50394
2022-12-22T15:14:29Z
2022-12-22T20:59:48Z
2022-12-22T20:59:48Z
2022-12-22T20:59:48Z
ENH: Add cumsum to ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 1bbec97756e79..6250c298f291f 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -853,6 +853,45 @@ def _concat_same_type( arr = pa.chunked_array(chunks) return cls(arr) + ...
- [ ] 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/50389
2022-12-22T00:58:00Z
2022-12-24T10:01:12Z
2022-12-24T10:01:12Z
2022-12-24T19:26:52Z
CI/WEB: Use Github token to authenticate API calls
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index ee79c10c12d4e..908259597cafb 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -15,6 +15,7 @@ on: env: ENV_FILE: environment.yml PANDAS_CI: 1 + GITHUB_...
Hopefully to help the doc and web build sometimes failing because of hitting the rate limit of the GIthub API ``` Traceback (most recent call last): File "web/pandas_web.py", line 403, in <module> main(args.source_path, args.target_path, args.base_url, args.ignore_io_errors) File "web/pandas_web.py", lin...
https://api.github.com/repos/pandas-dev/pandas/pulls/50388
2022-12-21T23:02:48Z
2022-12-28T21:10:11Z
2022-12-28T21:10:11Z
2022-12-28T21:11:33Z
BUG: Fix unintialized strlen when PyUnicode_AsUTF8AndSize fails
diff --git a/pandas/_libs/src/ujson/lib/ultrajsonenc.c b/pandas/_libs/src/ujson/lib/ultrajsonenc.c index a74d505b0d0ec..169c5b6889077 100644 --- a/pandas/_libs/src/ujson/lib/ultrajsonenc.c +++ b/pandas/_libs/src/ujson/lib/ultrajsonenc.c @@ -1080,11 +1080,11 @@ void encode(JSOBJ obj, JSONObjectEncoder *enc, const char *...
- [ ] xref #50324 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50387
2022-12-21T22:39:37Z
2022-12-22T18:33:50Z
2022-12-22T18:33:50Z
2022-12-22T18:49:15Z
CI: Test pandas warnings as error on some builds
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index 5efc1aa67b4cd..d762e20db196a 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -16,7 +16,7 @@ env: PANDAS_CI: 1 PYTEST_TARGET: pandas PATTERN: "not slow and not db and not ne...
Locally I was validating the recent addition of `-W error:::pandas` and had to change it to `-W error:::$pandas` so validating if the CI will raise as well
https://api.github.com/repos/pandas-dev/pandas/pulls/50386
2022-12-21T21:32:24Z
2022-12-29T23:36:45Z
2022-12-29T23:36:45Z
2022-12-31T18:46:13Z
DEPR: 1.x deprecation cleanups
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 2a6e26fbdbd1c..c8c33d3f52102 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -299,12 +299,6 @@ class SparseArray(OpsMixin, PandasObject, ExtensionArray): A dense array of value...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/50385
2022-12-21T21:14:54Z
2022-12-21T23:14:21Z
2022-12-21T23:14:21Z
2022-12-21T23:14:24Z
CI Pin numpy 32 bit
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 60ec74553a207..6f31358dabe86 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -9,6 +9,7 @@ np_version_under1p21 = _nlv < Version("1.21") np_version_under1p22 = _nlv < Version("1.22") np_version_g...
- [ ] 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/50384
2022-12-21T19:01:12Z
2022-12-22T23:06:39Z
2022-12-22T23:06:39Z
2022-12-23T17:42:46Z
ENH: Add std to masked interface
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 208bbfa10b9b2..beff6c6a5c203 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -758,7 +758,7 @@ Performance improvements - Performance improvement in :meth:`~arrays.ArrowExtensionArray.to_numpy` (:issue...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50382
2022-12-21T16:59:52Z
2022-12-27T19:44:21Z
2022-12-27T19:44:21Z
2022-12-28T19:16:52Z
CI try skipping test in 32-bit
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 438d2c7b4174e..5ad0e237b4930 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -44,7 +44,8 @@ jobs: python -m pip install --no-build-isolation --no-use-pep517 -e . && \ ...
- [ ] 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/50381
2022-12-21T16:58:56Z
2022-12-22T11:49:51Z
null
2022-12-22T11:49:51Z
CLN: Remove pre-1.5 deprecations
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 208bbfa10b9b2..f64714c302d05 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -723,6 +723,9 @@ Removal of prior version deprecations/changes - Removed deprecated methods :meth:`ExcelWriter.write_cells`...
Found by `grep -R "@deprecate" pandas`.
https://api.github.com/repos/pandas-dev/pandas/pulls/50377
2022-12-21T15:18:06Z
2022-12-21T19:49:13Z
2022-12-21T19:49:13Z
2023-08-09T15:08:24Z
CI debug timeout on 32-bit linux
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 438d2c7b4174e..5f84b0a6fbbe9 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -39,12 +39,13 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate && \ python -m pip inst...
- [ ] 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/50376
2022-12-21T14:53:46Z
2022-12-21T19:06:05Z
null
2022-12-21T19:06:05Z