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
CI: Run all GHA checks on backport branch
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef694205beeaa..f8f75e1d603be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - 1.3.x pull_request: branches: - master @@ -132,15 +133,15 @@ jobs: ...
- [ ] closes #39696 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry cc @simonjayhawkins How this was tested I made a fake 1.3.x branch which is actuall...
https://api.github.com/repos/pandas-dev/pandas/pulls/42556
2021-07-15T23:46:27Z
2021-07-16T10:38:14Z
2021-07-16T10:38:14Z
2021-07-16T16:04:23Z
Modified ecosystem.rst to include ibis
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index ee061e7b7d3e6..e58779c090d8f 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -445,6 +445,12 @@ provides a familiar ``DataFrame`` interface for out-of-core, parallel and distri Dask-ML enables parallel and distributed machi...
I have added Ibis to pandas ecosystem under the section of Out_of_core. This solves issue #20483
https://api.github.com/repos/pandas-dev/pandas/pulls/42554
2021-07-15T22:44:41Z
2021-07-16T13:26:04Z
2021-07-16T13:26:03Z
2021-07-22T18:37:22Z
Backport PR #42538: CI: Run some checks on push on 1.3.x
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 4193c5528e950..a132b1486ae12 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -2,7 +2,9 @@ name: Posix on: push: - branches: [master] + branches: + - master + - 1.3.x pull_request: bra...
Backport PR #42538
https://api.github.com/repos/pandas-dev/pandas/pulls/42551
2021-07-15T17:12:02Z
2021-07-15T23:25:27Z
2021-07-15T23:25:27Z
2021-07-16T09:48:07Z
Backport PR #42541 on branch 1.3.x (REGR: concat(ints, bools) casting to object #42092)
diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst index 8ba0986a2ab7b..2ce146660f98c 100644 --- a/doc/source/whatsnew/v1.3.1.rst +++ b/doc/source/whatsnew/v1.3.1.rst @@ -23,7 +23,7 @@ Fixed regressions - Performance regression in :meth:`DataFrame.to_dict` and :meth:`Series.to_dict` when ``or...
Backport PR #42541: REGR: concat(ints, bools) casting to object #42092
https://api.github.com/repos/pandas-dev/pandas/pulls/42548
2021-07-15T04:19:07Z
2021-07-15T12:25:41Z
2021-07-15T12:25:41Z
2021-07-15T12:25:41Z
CLN: clean sqlalchemy import
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index df9c7e28bff69..afd045bd8bb2b 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -47,10 +47,6 @@ from pandas.util.version import Version -class SQLAlchemyRequired(ImportError): - pass - - class DatabaseError(IOError): pass @@ -58,26 +54,6 @@ cla...
xref #40686
https://api.github.com/repos/pandas-dev/pandas/pulls/42546
2021-07-15T00:57:11Z
2021-07-28T01:13:31Z
2021-07-28T01:13:31Z
2022-01-24T16:01:01Z
TYP: Make components of Suffixes Optional
diff --git a/pandas/_typing.py b/pandas/_typing.py index 9c20eb12dc7fc..68ec331c2781f 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -111,7 +111,7 @@ IndexLabel = Union[Hashable, Sequence[Hashable]] Level = Union[Hashable, int] Shape = Tuple[int, ...] -Suffixes = Tuple[str, str] +Suffixes = Tuple[Optional...
The documentation on the parameters that actually are of type `Suffixes`: > *suffixeslist-like, default is (“_x”, “_y”)* > A length-2 sequence where each element is optionally a string indicating the suffix to add to overlapping column names in left and right respectively. _**Pass a value of None**_ instead of a st...
https://api.github.com/repos/pandas-dev/pandas/pulls/42544
2021-07-15T00:47:26Z
2021-10-04T12:10:46Z
2021-10-04T12:10:46Z
2021-10-04T12:10:50Z
Backport PR #42473: REGR: isin with nullable types with missing values raising
diff --git a/asv_bench/benchmarks/algos/isin.py b/asv_bench/benchmarks/algos/isin.py index 427af9307f2c9..5d7a76bc01d49 100644 --- a/asv_bench/benchmarks/algos/isin.py +++ b/asv_bench/benchmarks/algos/isin.py @@ -1,7 +1,5 @@ import numpy as np -from pandas.compat.numpy import np_version_under1p20 - from pandas impo...
Backport PR #42473
https://api.github.com/repos/pandas-dev/pandas/pulls/42543
2021-07-15T00:25:06Z
2021-07-15T04:17:52Z
2021-07-15T04:17:52Z
2021-07-16T09:27:25Z
REGR: concat(ints, bools) casting to object #42092
diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst index 8ba0986a2ab7b..2ce146660f98c 100644 --- a/doc/source/whatsnew/v1.3.1.rst +++ b/doc/source/whatsnew/v1.3.1.rst @@ -23,7 +23,7 @@ Fixed regressions - Performance regression in :meth:`DataFrame.to_dict` and :meth:`Series.to_dict` when ``or...
- [x] closes #42092 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/42541
2021-07-14T22:58:54Z
2021-07-15T04:18:39Z
2021-07-15T04:18:39Z
2021-07-19T15:36:44Z
Revert "CI: runtime warning in npdev build"
diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py index 8f03bd71f3a90..9f6cdbb81bd89 100644 --- a/pandas/tests/scalar/timedelta/test_arithmetic.py +++ b/pandas/tests/scalar/timedelta/test_arithmetic.py @@ -18,6 +18,7 @@ NaT, Timedelta, Timest...
Reverts pandas-dev/pandas#42413 Test passing on 3.9 numpydev again? Numpydev is red again b/c of this I think.
https://api.github.com/repos/pandas-dev/pandas/pulls/42539
2021-07-14T20:27:46Z
2021-07-14T23:12:09Z
2021-07-14T23:12:08Z
2021-07-16T01:53:40Z
CI: Run some checks on push on 1.3.x
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 6c83035316481..6b5ac3cd17304 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - 1.3.x pull_request: branches: - master diff --git a/.gi...
- [ ] xref #39696 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Not turning on CI/Checks since that one is non-trivial since it requires configuring the doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/42538
2021-07-14T19:38:00Z
2021-07-14T23:12:58Z
2021-07-14T23:12:57Z
2021-07-16T09:46:42Z
Backport PR #42527 on branch 1.3.x (CI: Test Python dev on 1.3.x PRs)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 23a693ad90475..85ef356e7fa14 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -8,6 +8,7 @@ on: pull_request: branches: - master + - 1.3.x paths-ignore: - "doc/**"...
Backport PR #42527: CI: Test Python dev on 1.3.x PRs
https://api.github.com/repos/pandas-dev/pandas/pulls/42531
2021-07-14T07:43:04Z
2021-07-14T09:04:48Z
2021-07-14T09:04:48Z
2021-07-14T09:04:49Z
DOC: add height param added to user_guide
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 24965a38a4ce1..f77d134d75988 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1201,7 +1201,7 @@ "metadata": {}, "outputs": [], "source": [ - "df2.style.bar(align=0, vmin=-2.5...
https://api.github.com/repos/pandas-dev/pandas/pulls/42529
2021-07-14T05:43:14Z
2021-07-14T18:21:10Z
2021-07-14T18:21:10Z
2021-07-30T18:04:23Z
TST: Test reindex w/ multiindex df (GH21247)
diff --git a/pandas/tests/indexes/multi/test_reindex.py b/pandas/tests/indexes/multi/test_reindex.py index d9c77c5bdcd60..340b546125d8d 100644 --- a/pandas/tests/indexes/multi/test_reindex.py +++ b/pandas/tests/indexes/multi/test_reindex.py @@ -133,3 +133,31 @@ def test_reindex_not_all_tuples(): tm.assert_index_eq...
- [x] closes #21247 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Whats new: Add a test to `pandas/tests/indexes/multi/test_reindex.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/42528
2021-07-14T04:56:18Z
2021-07-14T23:21:27Z
2021-07-14T23:21:26Z
2021-07-14T23:21:31Z
CI: Test Python dev on 1.3.x PRs
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 0881336664efc..ac06ddab4ade4 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -8,6 +8,7 @@ on: pull_request: branches: - master + - 1.3.x paths-ignore: - "doc/**"...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/42527
2021-07-14T02:27:28Z
2021-07-14T07:42:34Z
2021-07-14T07:42:34Z
2021-07-14T19:03:17Z
Backport PR #42475: PERF/REGR: astype changing order of some 2d data
diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst index 7653a7b60a8fc..3dba36bf5b933 100644 --- a/doc/source/whatsnew/v1.3.1.rst +++ b/doc/source/whatsnew/v1.3.1.rst @@ -18,6 +18,8 @@ Fixed regressions - :class:`DataFrame` constructed with an older version of pandas could not be unpickled (:...
https://api.github.com/repos/pandas-dev/pandas/pulls/42526
2021-07-14T00:49:51Z
2021-07-14T08:39:26Z
2021-07-14T08:39:26Z
2021-07-14T08:39:27Z
Backport PR #42524 on branch 1.3.x (CI: Xfail less on Python 3.10)
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index af781f0b58f85..826649358e663 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -12,7 +12,6 @@ from pandas.compat import ( IS64, - PY310, np_datetime64_compat, ) from pandas....
Backport PR #42524: CI: Xfail less on Python 3.10
https://api.github.com/repos/pandas-dev/pandas/pulls/42525
2021-07-13T22:47:36Z
2021-07-14T10:16:22Z
2021-07-14T10:16:22Z
2021-07-14T10:16:22Z
support tuple in startswith/endswith for arrow strings
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8c475791df64d..645a3cdb967ca 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -601,6 +601,7 @@ Strings - Bug in :meth:`Series.__mul__` for :class:`ArrowDtype` with ``pyarrow.string`` dtype and ``string...
- [x] closes #56579(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/56580
2023-12-20T18:38:27Z
2023-12-21T21:01:17Z
2023-12-21T21:01:17Z
2023-12-21T21:13:15Z
DOC: Fix doc redirects
diff --git a/doc/redirects.csv b/doc/redirects.csv index bd60cc6a732bd..27b41da63c513 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -100,7 +100,6 @@ generated/pandas.api.extensions.register_series_accessor,../reference/api/pandas generated/pandas.api.types.infer_dtype,../reference/api/pandas.api.types.infe...
- [ ] 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/56577
2023-12-20T16:51:40Z
2023-12-21T19:49:44Z
2023-12-21T19:49:44Z
2023-12-21T23:33:55Z
CI: Fix pre-commit failure
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 43bd14371284c..590cddba60f7a 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -480,7 +480,6 @@ Other Deprecations - Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56571
2023-12-19T21:27:03Z
2023-12-19T21:49:50Z
2023-12-19T21:49:50Z
2023-12-19T21:49:53Z
Add test groupby complex numbers
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index fce7caa90cce4..4c903e691add1 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -1196,6 +1196,24 @@ def test_groupby_complex(): tm.assert_series_equal(result, expected) +d...
- [x] closes https://github.com/pandas-dev/pandas/issues/26475 - [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/56570
2023-12-19T20:24:26Z
2023-12-21T21:02:09Z
2023-12-21T21:02:09Z
2023-12-21T21:02:13Z
DEPR: keep_date_col, nested parse_dates in read_csv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 863a663fc2413..843144c3453c2 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -836,6 +836,7 @@ order) and the new column names will be the concatenation of the component column names: .. ipython:: python + ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/56569
2023-12-19T19:44:14Z
2023-12-19T23:39:30Z
2023-12-19T23:39:30Z
2023-12-20T00:13:18Z
TYP: simple return types from ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 42ff96603b71f..2a070e9a49b97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: # TODO: remove autofixe-only rules when they are checked by ruff name: ruff-selected-autofixes alias: r...
Ruff has many "unsafe" autofixes for simple return types. I hope to enable `--unsafe-fixes` (for only the type annotations) after a few PRs.
https://api.github.com/repos/pandas-dev/pandas/pulls/56568
2023-12-19T19:25:53Z
2023-12-19T21:11:12Z
2023-12-19T21:11:12Z
2023-12-21T16:11:26Z
BUG: ArrowExtensionArray.to_numpy from timestamp to int
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 84d6e2fb7ca53..2013229b228ff 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1313,16 +1313,12 @@ def to_numpy( copy = False if pa.types.is_timestamp(pa_type) or pa....
Follow up to #56459
https://api.github.com/repos/pandas-dev/pandas/pulls/56567
2023-12-19T19:12:30Z
2023-12-21T21:04:37Z
2023-12-21T21:04:37Z
2023-12-21T21:57:13Z
Revert "DOC: Change core paths to api.typing in URLs (#55626)"
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index fe02fa106f941..771163ae1b0bc 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -5,7 +5,7 @@ ======= GroupBy ======= -.. currentmodule:: pandas.api.typing +.. currentmodule:: pandas.core.groupb...
This reverts commit 5c7d89db4583bfa8cf628235f4d566d104776278. - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/56565
2023-12-19T15:36:04Z
2023-12-19T17:07:44Z
2023-12-19T17:07:44Z
2023-12-19T17:07:51Z
DOC: Add example using ``dtype_backend="numpy_nullable"`` to ``read_json``
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index 9c56089560507..5ef354fc70c5c 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -763,6 +763,19 @@ def read_json( {{"index":"row 2","col 1":"c","col 2":"d"}}]\ }}\ ' + + The following example uses ``dtype_backend="numpy_nullabl...
- [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4)
https://api.github.com/repos/pandas-dev/pandas/pulls/56561
2023-12-19T13:34:39Z
2023-12-19T18:53:56Z
2023-12-19T18:53:56Z
2023-12-22T12:07:55Z
DEPR: Tick.delta
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 105d11b67c9bf..0f0e6271d8329 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1770,7 +1770,8 @@ We can instead only resample those groups where we have points as follows: d...
- [x] closes #55498 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/56558
2023-12-19T05:10:20Z
2023-12-19T23:35:22Z
2023-12-19T23:35:22Z
2023-12-20T00:13:28Z
DEPR: delim_whitespace kwd in read_csv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 843144c3453c2..6148086452d54 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -81,6 +81,9 @@ delim_whitespace : boolean, default False If this option is set to ``True``, nothing should be passed in for the ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/56557
2023-12-19T04:32:54Z
2023-12-21T01:33:05Z
2023-12-21T01:33:05Z
2023-12-21T15:29:50Z
DEPR: verbose kwd in read_csv, read_table
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 3a11e5e4e7226..ad4132d6ca11a 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -477,6 +477,7 @@ Other Deprecations - Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel...
- [ ] 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/56556
2023-12-19T04:18:27Z
2023-12-19T21:09:46Z
2023-12-19T21:09:46Z
2023-12-19T21:53:56Z
TST: Remove arraymanager pytest mark
diff --git a/pandas/conftest.py b/pandas/conftest.py index 7bfd1b35f5314..2d8f9442d4e76 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -188,8 +188,8 @@ def pytest_collection_modifyitems(items, config) -> None: ("read_parquet", "Passing a BlockManager to DataFrame is deprecated"), ] - for...
No longer needed as arraymanager is deprecated and no longer tested in the CI
https://api.github.com/repos/pandas-dev/pandas/pulls/56552
2023-12-18T20:45:39Z
2023-12-19T21:12:21Z
2023-12-19T21:12:21Z
2023-12-19T21:12:25Z
CLN: replace unnecessary `freq_to_period_freqstr` with `PeriodDtype` constructor
diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd index 88cfa6ca60d93..33f6789f3b402 100644 --- a/pandas/_libs/tslibs/dtypes.pxd +++ b/pandas/_libs/tslibs/dtypes.pxd @@ -11,7 +11,6 @@ cpdef int64_t periods_per_second(NPY_DATETIMEUNIT reso) except? -1 cdef NPY_DATETIMEUNIT get_supported_reso(...
xref #52064 replaced `freq_to_period_freqstr()` with `PeriodDtype(freq)._freqstr` in ValueError message in the definition of `_shift_with_freq()`
https://api.github.com/repos/pandas-dev/pandas/pulls/56550
2023-12-18T13:02:33Z
2024-02-28T17:52:08Z
2024-02-28T17:52:08Z
2024-02-28T17:52:17Z
Bump actions/upload-artifact from 3 to 4
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 4e88bfff69327..da232404e6ff5 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -85,7 +85,7 @@ jobs: run: mv doc/build/html web/build/docs - name:...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <h2>What's Changed</h2> <p>T...
https://api.github.com/repos/pandas-dev/pandas/pulls/56549
2023-12-18T08:10:17Z
2023-12-18T16:02:36Z
2023-12-18T16:02:36Z
2023-12-18T16:02:44Z
Bump actions/download-artifact from 3 to 4
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index ca5dacad1b599..60079b73bbb3a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -115,7 +115,7 @@ jobs: # removes unnecessary files from the release - name: Download sdist (not macOS) #if:...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <h2>What's Changed</...
https://api.github.com/repos/pandas-dev/pandas/pulls/56548
2023-12-18T08:10:13Z
2023-12-18T16:02:49Z
2023-12-18T16:02:49Z
2023-12-18T16:02:58Z
Bump github/codeql-action from 2 to 3
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2182e89731990..4d0066bc0b48d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,8 +28,8 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: github/codeql-action/init@v2 + - uses: git...
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/github/codeql-action/releases">github/codeql-action's releases</a>.</em></p> <blockquote> <h2>CodeQL Bundle v2.15.4</h2> <p>Bundles CodeQL CLI v2....
https://api.github.com/repos/pandas-dev/pandas/pulls/56547
2023-12-18T08:10:09Z
2023-12-18T16:03:05Z
2023-12-18T16:03:05Z
2023-12-18T16:03:13Z
DOC: Add docs for read_sql to avoid sql injection
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 3a58daf681cfb..d9a5e6dfd0cf8 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -652,6 +652,14 @@ def read_sql( read_sql_table : Read SQL database table into a DataFrame. read_sql_query : Read SQL query into a DataFrame. + Notes + ----- + ...
- [ ] closes https://github.com/pandas-dev/pandas/issues/10899 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Added examples and notes to the documents of `pandas.read_sql` (https://pandas.pydata.org/pandas-docs/stable/reference/api/panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/56546
2023-12-18T06:28:36Z
2024-01-17T18:13:44Z
2024-01-17T18:13:44Z
2024-01-17T18:13:51Z
DOC: Add whatsnew illustrating upcoming changes
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index bc233f4323e2a..050c3901c3420 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -52,6 +52,8 @@ it explicitly disallows this. With CoW enabled, ``df`` is unchanged: The...
These are both changes that are hard to deprecate, so we should add very prominent whatsnews
https://api.github.com/repos/pandas-dev/pandas/pulls/56545
2023-12-18T00:04:04Z
2023-12-21T22:13:34Z
2023-12-21T22:13:34Z
2023-12-21T22:13:36Z
DOC: Remove 1.2 versionadded and changed
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index d9db2bc5cddb4..e342f76dc724b 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -209,8 +209,6 @@ def assert_index_equal( Whether to compare the order of index entries as well as their values. If...
Lets see if the docs build like this
https://api.github.com/repos/pandas-dev/pandas/pulls/56544
2023-12-17T23:35:13Z
2023-12-18T15:02:37Z
2023-12-18T15:02:37Z
2023-12-18T17:57:29Z
DOC: Update docstring for read_excel
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 6148086452d54..b3ad23e0d4104 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3471,20 +3471,15 @@ saving a ``DataFrame`` to Excel. Generally the semantics are similar to working with :ref:`csv<io.read_csv_ta...
The initial motivation for this change was the typo in xlrd
https://api.github.com/repos/pandas-dev/pandas/pulls/56543
2023-12-17T23:27:08Z
2024-01-04T03:30:21Z
2024-01-04T03:30:21Z
2024-01-04T08:21:14Z
WARN: Improve deprecation message
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b63929079abeb..e9b735d389791 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5227,8 +5227,9 @@ def _sanitize_column(self, value) -> tuple[ArrayLike, BlockValuesRefs | None]: # TODO: Remove kludge in sanitize_array for string mo...
@jbrockmendel suggested that the message could be clearer
https://api.github.com/repos/pandas-dev/pandas/pulls/56541
2023-12-17T20:36:52Z
2023-12-17T23:14:06Z
2023-12-17T23:14:06Z
2023-12-17T23:14:12Z
REF: avoid special-casing in agg_series
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 6f7f42eca3794..179c6161b7dd9 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -40,7 +40,6 @@ is_integer, is_list_like, is_scalar, - pandas_dtype, ) from pandas.core.dtype...
- [ ] 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/56540
2023-12-17T19:54:25Z
2023-12-18T17:58:01Z
2023-12-18T17:58:01Z
2023-12-18T17:59:16Z
TYP: _json.py
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index b8fba4d173ae7..be269dffada35 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -14,6 +14,7 @@ Generic, Literal, TypeVar, + final, overload, ) import warnings @@ -37,11 +38,11 @@ is_string_dtype, ) fr...
- [ ] 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/56539
2023-12-17T19:47:02Z
2023-12-18T18:30:02Z
2023-12-18T18:30:02Z
2023-12-18T18:32:38Z
Support multiplication of pd.ArrowDtype(pa.string()) and integral value where integral value is a series
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 6f7f42eca3794..d62a11f900694 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -695,22 +695,31 @@ def _evaluate_op_method(self, other, op, arrow_funcs): other = self._box_pa(other) ...
- [ ] closes #56537(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/56538
2023-12-17T19:30:08Z
2023-12-19T23:40:45Z
2023-12-19T23:40:45Z
2023-12-19T23:51:04Z
Adjust format tests for new string option
diff --git a/pandas/tests/io/formats/style/test_to_latex.py b/pandas/tests/io/formats/style/test_to_latex.py index 7f5b6b305f12d..7f1443c3ee66b 100644 --- a/pandas/tests/io/formats/style/test_to_latex.py +++ b/pandas/tests/io/formats/style/test_to_latex.py @@ -6,6 +6,7 @@ from pandas import ( DataFrame, Mult...
- [ ] 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/56535
2023-12-17T18:15:27Z
2023-12-18T18:39:29Z
2023-12-18T18:39:29Z
2023-12-18T19:24:15Z
TST: Adjust excel tests for new string option
diff --git a/pandas/conftest.py b/pandas/conftest.py index 7c829ed4b8cb9..7bfd1b35f5314 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -863,8 +863,8 @@ def float_frame() -> DataFrame: """ return DataFrame( np.random.default_rng(2).standard_normal((30, 4)), - index=Index([f"foo_{i}...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56534
2023-12-17T17:46:53Z
2023-12-18T15:07:48Z
2023-12-18T15:07:48Z
2023-12-18T17:57:23Z
ENH: Add limit_area to ffill/bfill
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 9283781e086fb..e03d1151a6baa 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -229,6 +229,7 @@ Other enhancements - :func:`tseries.api.guess_datetime_format` is now part of the public API (:issue:`5472...
- [x] closes #56492 (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/56531
2023-12-17T16:18:04Z
2023-12-19T17:43:42Z
2023-12-19T17:43:42Z
2023-12-21T23:34:18Z
Adjust pivot tests for new string option
diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py index d9ae8ddfb930e..18a449b4d0c67 100644 --- a/pandas/tests/reshape/test_pivot.py +++ b/pandas/tests/reshape/test_pivot.py @@ -9,6 +9,8 @@ import numpy as np import pytest +from pandas._config import using_pyarrow_string_dtype + ...
on top of #56528
https://api.github.com/repos/pandas-dev/pandas/pulls/56529
2023-12-16T23:35:45Z
2023-12-18T18:46:40Z
2023-12-18T18:46:40Z
2023-12-18T19:24:02Z
BUG: pivot dropping wrong column level with numeric columns and ea dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 0c4fb6d3d1164..08ef9ead94efb 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -675,6 +675,7 @@ Reshaping - Bug in :meth:`DataFrame.melt` where an exception was raised if ``var_name`` was not a string (...
- [ ] 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/56528
2023-12-16T23:25:12Z
2023-12-18T15:12:39Z
2023-12-18T15:12:39Z
2023-12-18T17:57:26Z
Adjust dummies tests for new string option
diff --git a/pandas/tests/reshape/test_from_dummies.py b/pandas/tests/reshape/test_from_dummies.py index 0074a90d7a51e..f9a03222c8057 100644 --- a/pandas/tests/reshape/test_from_dummies.py +++ b/pandas/tests/reshape/test_from_dummies.py @@ -328,9 +328,13 @@ def test_no_prefix_string_cats_contains_get_dummies_NaN_column...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56527
2023-12-16T22:55:03Z
2023-12-18T18:47:25Z
2023-12-18T18:47:25Z
2023-12-18T19:23:47Z
Adjust crosstab tests for new string option
diff --git a/pandas/tests/reshape/test_crosstab.py b/pandas/tests/reshape/test_crosstab.py index c0e9b266b0d06..136e76986df9d 100644 --- a/pandas/tests/reshape/test_crosstab.py +++ b/pandas/tests/reshape/test_crosstab.py @@ -562,7 +562,7 @@ def test_crosstab_with_numpy_size(self): codes=[[1, 1, 1, 2, 2, 2,...
- [ ] 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/56526
2023-12-16T22:29:44Z
2023-12-18T18:48:03Z
2023-12-18T18:48:03Z
2023-12-18T19:23:35Z
CoW: Remove some no longer necessary todos
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 14d05c59272e8..781b6df5ebd3d 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1178,8 +1178,6 @@ def value_getitem(placement): unfit_count = len(unfit_idxr) new_b...
These are all outdated (I check the rec_array code path as well)
https://api.github.com/repos/pandas-dev/pandas/pulls/56525
2023-12-16T22:15:22Z
2023-12-18T18:48:43Z
2023-12-18T18:48:42Z
2023-12-18T19:23:29Z
DOC: Added docstrings to fixtures defined in XML I/O, util and pandas modules
diff --git a/pandas/conftest.py b/pandas/conftest.py index 7c829ed4b8cb9..023bc54ec9bc6 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1934,4 +1934,7 @@ def warsaw(request) -> str: @pytest.fixture() def arrow_string_storage(): + """ + Fixture that lists possible PyArrow values for StringDtype st...
Partially addresses: #19159 Co-authored-by: @GeorgeJuniorGG and @MylenaRoberta.
https://api.github.com/repos/pandas-dev/pandas/pulls/56524
2023-12-16T17:55:01Z
2024-01-12T06:42:23Z
2024-01-12T06:42:23Z
2024-01-12T06:43:00Z
PERF: merge on monotonic keys
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index 6f494562103c2..ce64304731116 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -275,18 +275,21 @@ def time_merge_dataframes_cross(self, sort): class MergeEA: params = [ - "...
- [x] closes #56115 - [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/56523
2023-12-16T17:37:04Z
2023-12-17T20:21:01Z
2023-12-17T20:21:01Z
2023-12-17T20:21:10Z
REGR: groupby with Decimal and NA values
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..c5769ca6c6f24 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -654,11 +654,11 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.value_counts` and :meth:`.SeriesGroupBy.value...
- [x] closes #54847 (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/56522
2023-12-16T16:33:01Z
2023-12-17T20:40:36Z
2023-12-17T20:40:36Z
2023-12-18T13:21:16Z
DEPR: groupby.grouper
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 9283781e086fb..9fec4157d8710 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -476,7 +476,7 @@ Other Deprecations - Deprecated strings ``H``, ``S``, ``U``, and ``N`` denoting units in :func:`to_timedel...
- [ ] 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/56521
2023-12-16T16:08:44Z
2023-12-18T23:19:38Z
2023-12-18T23:19:38Z
2024-01-17T21:05:50Z
CoW: Set a bunch of Series copy statements to False
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index aa78bbe1c3ec1..98161110d2df9 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2188,7 +2188,7 @@ def any(self, skipna: bool = True) -> NDFrameT: """ return self._cython_agg_general( ...
Because the default is now `copy=True` for numpy array input when CoW is enabled, we can explicitly disable copying when we know the data is newly generated.
https://api.github.com/repos/pandas-dev/pandas/pulls/56520
2023-12-15T23:22:51Z
2023-12-21T20:45:12Z
2023-12-21T20:45:12Z
2023-12-21T20:48:59Z
TYP: make dtype required in _from_sequence_of_strings
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 2ada386f76b87..ae135fd41d977 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -88,6 +88,7 @@ Other API changes ^^^^^^^^^^^^^^^^^ - 3rd party ``py.path`` objects are no longer explicitly supported in I...
- [ ] 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/56519
2023-12-15T20:52:22Z
2024-02-14T19:51:05Z
2024-02-14T19:51:05Z
2024-02-15T02:43:32Z
TST: use one-class pattern for SparseArray
diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py index 340b7df1772e9..ca19845041e23 100644 --- a/pandas/tests/extension/base/setitem.py +++ b/pandas/tests/extension/base/setitem.py @@ -43,7 +43,13 @@ def skip_if_immutable(self, dtype, request): # This fixture...
Along with #56512 and #56509 i think this gets all of them, so we can deprecate the old pattern
https://api.github.com/repos/pandas-dev/pandas/pulls/56513
2023-12-15T00:22:11Z
2023-12-18T18:53:38Z
2023-12-18T18:53:38Z
2023-12-18T21:01:12Z
TST: use one-class pattern in test_numpy
diff --git a/pandas/tests/extension/base/interface.py b/pandas/tests/extension/base/interface.py index 08e385c9389d9..6683c87e2b8fc 100644 --- a/pandas/tests/extension/base/interface.py +++ b/pandas/tests/extension/base/interface.py @@ -1,6 +1,7 @@ import numpy as np import pytest +from pandas.core.dtypes.cast impo...
- [ ] 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/56512
2023-12-14T23:37:26Z
2023-12-15T17:48:13Z
2023-12-15T17:48:13Z
2023-12-15T17:54:43Z
TST: use one-class pattern in json extension tests
diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py index 592b88c4701d2..7686bc5abb44c 100644 --- a/pandas/tests/extension/json/test_json.py +++ b/pandas/tests/extension/json/test_json.py @@ -2,6 +2,7 @@ import operator import sys +import numpy as np import pytest im...
- [ ] 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/56510
2023-12-14T21:39:02Z
2023-12-14T23:36:19Z
2023-12-14T23:36:19Z
2023-12-14T23:36:55Z
TST: use single-class pattern in test_string.py
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 6f7f42eca3794..f919a299eda4d 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -637,6 +637,9 @@ def __invert__(self) -> Self: # This is a bit wise op for integer types if pa...
- [ ] 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/56509
2023-12-14T21:10:53Z
2023-12-18T18:54:46Z
2023-12-18T18:54:46Z
2023-12-18T21:00:59Z
PERF: Improve performance when hashing a nullable extension array
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..2b22626b25fb5 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -350,8 +350,8 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^...
Avoids the roundtrip through object, this is much faster (around 15x)
https://api.github.com/repos/pandas-dev/pandas/pulls/56508
2023-12-14T21:06:33Z
2023-12-18T15:32:06Z
2023-12-18T15:32:06Z
2023-12-18T15:32:09Z
CLN: pass dtype to from_sequence explicitly
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 383f8a49fd02c..a19b304529383 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1071,7 +1071,7 @@ def shift(self, periods: int = 1, fill_value: object = None) -> IntervalArray: fill_value = ...
- [ ] 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/56506
2023-12-14T18:47:46Z
2023-12-14T23:40:36Z
2023-12-14T23:40:36Z
2023-12-14T23:41:40Z
CI: Rename to .condarc
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 84e81b9a9297f..ceeebfcd1c90c 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -11,6 +11,6 @@ runs: with: environment-file: ${{ inputs.environment-file }} ...
- [ ] closes #56497 (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/56504
2023-12-14T16:41:04Z
2023-12-14T17:33:26Z
2023-12-14T17:33:26Z
2023-12-14T17:33:29Z
updated sphinx-lint version to 0.9.1
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 52463a462b785..782340178f462 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -111,7 +111,7 @@ repos: types: [text] # overwrite types: [rst] types_or: [python, rst] - repo: https://github.com/sphinx-contrib/s...
When installing pre-commit an error occured: <details> [INFO] Initializing environment for https://github.com/hauntsaninja/black-pre-commit-mirror. [INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit. [INFO] Initializing environment for https://github.com/jendrikseipp/vulture. [I...
https://api.github.com/repos/pandas-dev/pandas/pulls/56501
2023-12-14T16:04:27Z
2023-12-14T17:36:40Z
2023-12-14T17:36:40Z
2023-12-14T17:36:49Z
BUG: Replaced ValueError exception with TypeError exception in df.where() function
diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst index e217e8c8557bb..0d96678bba82d 100644 --- a/doc/source/whatsnew/v2.3.0.rst +++ b/doc/source/whatsnew/v2.3.0.rst @@ -211,6 +211,8 @@ Styler Other ^^^^^ +- Bug in :meth:`DataFrame.where` where using a non-bool type array in the function ...
Replaced ValueError exception with TypeError as it is more appropriate for the error it serves [] closes issue #56330 where there was a consensus that a TypeError is more appropriate for the following error: "Boolean array expected for the condition, not (non-bool type)". Since ValueErrors are raised when the type ...
https://api.github.com/repos/pandas-dev/pandas/pulls/56495
2023-12-14T12:05:33Z
2024-01-16T19:29:45Z
2024-01-16T19:29:45Z
2024-01-16T20:42:36Z
TST: de-special-case test_EA_types
diff --git a/pandas/tests/extension/base/io.py b/pandas/tests/extension/base/io.py index c369ec8a16f2f..3a6f2eb5ba8b1 100644 --- a/pandas/tests/extension/base/io.py +++ b/pandas/tests/extension/base/io.py @@ -5,11 +5,31 @@ import pandas as pd import pandas._testing as tm +from pandas.core.arrays import ExtensionArr...
- [ ] 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/56494
2023-12-14T02:33:24Z
2023-12-14T17:38:19Z
2023-12-14T17:38:19Z
2023-12-14T18:17:33Z
TYP: Update mypy and pyright
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 782340178f462..42ff96603b71f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -132,11 +132,11 @@ repos: types: [python] stages: [manual] additional_dependencies: &pyright_dependencies - - pyright@...
The first commit contains changes for only the mypy update. The second commit contains only changes for pyright 1.1.399 (this commit has three remaining errors caused by a bug fixed in 1.1.400 ). The third commit tries to get to 1.1.400. One major change in 1.1.400 is that pyright now also infers missing return a...
https://api.github.com/repos/pandas-dev/pandas/pulls/56493
2023-12-14T01:39:37Z
2023-12-19T17:44:49Z
2023-12-19T17:44:49Z
2023-12-19T19:11:33Z
BUG: time strings cast to ArrowDtype with pa.time64 type
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..eca238223b8f0 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -697,7 +697,7 @@ Other - Bug in rendering ``inf`` values inside a a :class:`DataFrame` with the ``use_inf_as_na`` option en...
- [x] closes #56463 (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/56490
2023-12-13T19:34:04Z
2023-12-14T23:06:55Z
2023-12-14T23:06:55Z
2023-12-14T23:33:48Z
DEPR: raise ValueError if invalid period freq pass to asfreq
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index b3e86b4360d74..39b2f4336730d 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -2784,7 +2784,13 @@ def asfreq( how = "E" if isinstance(freq, BaseOffset): - freq = freq_to_period_freqstr(freq.n, fr...
xref #52064, #9586 in example: ``` index = pd.PeriodIndex(["2020-01-01", "2021-01-01"], freq="M") df = pd.DataFrame({"a": pd.Series([0, 1], index=index)}) df.asfreq(freq=MonthBegin(2)) ``` we silently convert " 2MS" to " 2M", which isn't correct. Raised` ValueError` if invalid period freq pass to `asfreq()`...
https://api.github.com/repos/pandas-dev/pandas/pulls/56489
2023-12-13T18:59:23Z
2023-12-14T09:54:09Z
2023-12-14T09:54:09Z
2023-12-14T09:54:09Z
BUG: merge_asof(tolerance=Timedelta) with ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..e1e119a3adf79 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -666,6 +666,7 @@ Reshaping - Bug in :func:`concat` renaming :class:`Series` when ``ignore_index=False`` (:issue:`15047`) -...
- [ ] closes #56486 (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/56488
2023-12-13T18:18:04Z
2023-12-14T23:07:53Z
2023-12-14T23:07:53Z
2023-12-14T23:34:06Z
BUG: Fix sort_index(axis=1, ignore_index=True)
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index ff79100ed1fe1..9c3a46339769f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -704,9 +704,10 @@ Other - Bug in :func:`infer_freq` and :meth:`DatetimeIndex.inferred_freq` with weekly frequencies and non...
- [ ] closes #56478 (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/56487
2023-12-13T17:49:15Z
2023-12-18T19:39:13Z
2023-12-18T19:39:13Z
2023-12-18T19:39:16Z
Revert "DEPR: make_block (#56422)"
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..3385e28c029a9 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -432,7 +432,6 @@ Other Deprecations ^^^^^^^^^^^^^^^^^^ - Changed :meth:`Timedelta.resolution_string` to return ``h``, ``mi...
This reverts commit b0ffccd489badea508d0a83431f1aea019e294b7. See the discussion in https://github.com/pandas-dev/pandas/pull/56422
https://api.github.com/repos/pandas-dev/pandas/pulls/56481
2023-12-13T07:31:18Z
2024-01-10T19:06:43Z
2024-01-10T19:06:43Z
2024-01-10T22:42:33Z
DOC: Add example with ``numpy_nullable`` to ``pd.read_xml()``
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index bd3b515dbca2f..ac497cd266027 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -1058,7 +1058,7 @@ def read_xml( Examples -------- - >>> import io + >>> from io import StringIO >>> xml = '''<?xml version='1.0' encoding='utf-8'?> ......
- [x] [closes](https://github.com/noatamir/pyladies-berlin-sprints/issues/4)
https://api.github.com/repos/pandas-dev/pandas/pulls/56470
2023-12-12T16:43:32Z
2023-12-18T19:06:13Z
2023-12-18T19:06:13Z
2023-12-18T22:55:54Z
DOC: fix a typo in Resampler.interpolate
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index d54f6d31f6144..b3e86b4360d74 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -937,7 +937,7 @@ def interpolate( The original index is first reindexed to target timestamps (see :meth:`core.resample.Resampler.asf...
A colon is missing, which makes the [doc](https://pandas.pydata.org/docs/dev/reference/api/pandas.api.typing.Resampler.interpolate.html) not rendered correctly.
https://api.github.com/repos/pandas-dev/pandas/pulls/56469
2023-12-12T12:10:29Z
2023-12-12T15:31:44Z
2023-12-12T15:31:44Z
2023-12-12T16:41:08Z
DOC: Minor improvements groupby user guide
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 4e80be8fb0fc6..11863f8aead31 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -13,10 +13,8 @@ steps: * **Applying** a function to each group independently. * **Combining** the results into...
- [ ] 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/56465
2023-12-12T02:23:21Z
2023-12-12T15:44:33Z
2023-12-12T15:44:33Z
2023-12-19T11:36:34Z
DOC: replace deprecated freqs 'T', 'S', 'A' in docs and comments
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index eeaf472c23b60..74804336f09a3 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2701,8 +2701,8 @@ class Period(_Period): year=None, month=None, quarter=None, day=None, h...
xref #54061, xref #55252 replaced deprecated frequencies 'T', 'S', 'A' in comments and docs
https://api.github.com/repos/pandas-dev/pandas/pulls/56464
2023-12-11T22:54:59Z
2023-12-12T11:42:09Z
2023-12-12T11:42:09Z
2023-12-12T11:42:09Z
BUG: Return numpy types from ArrowExtensionArray.to_numpy for temporal types when possible
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8209525721b98..cb826b7a42041 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -107,11 +107,11 @@ documentation. .. _whatsnew_220.enhancements.to_numpy_ea: -ExtensionArray.to_numpy converts to suita...
- [ ] closes #55997 (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/56459
2023-12-11T18:42:54Z
2023-12-14T23:15:01Z
2023-12-14T23:15:01Z
2023-12-14T23:34:13Z
DOC: Improve ``df.equals()`` docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ef10958ac1153..e46a0aa044b6d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1451,8 +1451,8 @@ def equals(self, other: object) -> bool_t: the same location are considered equal. The row/column index do not need t...
- [x] closes #46507
https://api.github.com/repos/pandas-dev/pandas/pulls/56458
2023-12-11T18:11:31Z
2023-12-11T19:22:15Z
2023-12-11T19:22:15Z
2023-12-11T21:44:20Z
DOC: Improve ``quantile`` docstring
diff --git a/pandas/core/series.py b/pandas/core/series.py index e4dca97bc645d..626fcd47764e7 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2820,8 +2820,8 @@ def quantile( This optional parameter specifies the interpolation method to use, when the desired quantile lies bet...
- [x] closes #51745 and #52181
https://api.github.com/repos/pandas-dev/pandas/pulls/56457
2023-12-11T17:58:16Z
2023-12-11T19:21:22Z
2023-12-11T19:21:22Z
2023-12-11T19:38:15Z
DOC: Improve ``io/excel/_base.py``
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6d66830ab1dfd..2884294377ec9 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -86,7 +86,7 @@ ) _read_excel_doc = ( """ -Read an Excel file into a pandas DataFrame. +Read an Excel file into a ``pandas`` ``DataFrame``...
- [x] closes #53674 - [x] closes #53953
https://api.github.com/repos/pandas-dev/pandas/pulls/56453
2023-12-11T10:34:57Z
2023-12-11T17:32:42Z
2023-12-11T17:32:42Z
2023-12-11T17:36:12Z
Bump actions/setup-python from 4 to 5
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 4260c0836bbea..b49b9a67c4743 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -170,7 +170,7 @@ jobs: - name: Setup Python id: setup_python - uses: actions/setup-pyth...
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/setup-python/releases">actions/setup-python's releases</a>.</em></p> <blockquote> <h2>v5.0.0</h2> <h2>What's Changed</h2> <p>In scope of t...
https://api.github.com/repos/pandas-dev/pandas/pulls/56450
2023-12-11T08:20:19Z
2023-12-11T17:27:54Z
2023-12-11T17:27:54Z
2023-12-11T17:27:58Z
Bump actions/stale from 8 to 9
diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml index 11b81d11f7876..792afe8f4faf5 100644 --- a/.github/workflows/stale-pr.yml +++ b/.github/workflows/stale-pr.yml @@ -14,7 +14,7 @@ jobs: if: github.repository_owner == 'pandas-dev' runs-on: ubuntu-22.04 steps: - - uses: ac...
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/stale/releases">actions/stale's releases</a>.</em></p> <blockquote> <h2>v9.0.0</h2> <h2>Breaking Changes</h2> <ol> <li>Action is now stateful: If the ac...
https://api.github.com/repos/pandas-dev/pandas/pulls/56449
2023-12-11T08:20:13Z
2023-12-11T17:27:19Z
2023-12-11T17:27:19Z
2023-12-11T17:27:28Z
Adjust concat tests for string option
diff --git a/pandas/tests/reshape/concat/test_append_common.py b/pandas/tests/reshape/concat/test_append_common.py index ab20e8c8f6930..31c3ef3176222 100644 --- a/pandas/tests/reshape/concat/test_append_common.py +++ b/pandas/tests/reshape/concat/test_append_common.py @@ -57,10 +57,12 @@ class TestConcatAppendCommon: ...
- [ ] 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/56446
2023-12-11T01:12:47Z
2023-12-11T17:34:40Z
2023-12-11T17:34:40Z
2023-12-11T17:57:53Z
Adjust merge tests for new string option
diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index 9d244452cb9b2..24e44c8f9e53e 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -630,7 +630,7 @@ def test_mixed_type_join_with_suffix(self): df.insert(5, "dt",...
- [ ] 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/56445
2023-12-11T01:00:17Z
2024-01-17T18:15:02Z
2024-01-17T18:15:02Z
2024-01-18T03:45:52Z
BUG: merge_asof raising incorrect error for strings
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index acec8379ee5b3..908cd528dc11f 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -665,6 +665,7 @@ Reshaping - Bug in :func:`concat` ignoring ``sort`` parameter when passed :class:`DatetimeIndex` indexes (...
- [ ] 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/56444
2023-12-11T00:59:57Z
2023-12-11T17:36:36Z
2023-12-11T17:36:36Z
2023-12-11T17:57:46Z
BUG: DataFrame.join with left or right empty not respecting sort=True
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index acec8379ee5b3..711f0420aa8e7 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -247,7 +247,7 @@ These are bug fixes that might have notable behavior changes. In previous versions of pandas, :func:`mer...
- [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/56443
2023-12-11T00:45:05Z
2023-12-11T17:37:56Z
2023-12-11T17:37:56Z
2023-12-11T17:38:04Z
BUG: merge not sorting for new string dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index dbb11d3d0788d..94c9ebde7ec5d 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -893,6 +893,7 @@ Reshaping - Bug in :func:`merge_asof` when using a :class:`Timedelta` tolerance on a :class:`ArrowDtype` c...
- [ ] 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/56442
2023-12-10T23:39:08Z
2024-01-09T00:05:57Z
2024-01-09T00:05:57Z
2024-01-09T12:58:44Z
BUG: merge not raising for String and numeric merges
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 0c4fb6d3d1164..4f0660886b3c6 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -671,6 +671,7 @@ Reshaping - Bug in :func:`merge_asof` raising ``TypeError`` when ``by`` dtype is not ``object``, ``int64``...
- [ ] 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/56441
2023-12-10T23:12:01Z
2023-12-18T19:26:18Z
2023-12-18T19:26:18Z
2023-12-18T19:58:37Z
WEB: Add timeout for ci
diff --git a/web/pandas_web.py b/web/pandas_web.py index 1cd3be456bfe0..407debf5828be 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -175,7 +175,9 @@ def maintainers_add_info(context): context["maintainers"]["active"] + context["maintainers"]["inactive"] ): resp = requests....
- [ ] 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/56440
2023-12-10T22:58:24Z
2023-12-10T23:45:49Z
2023-12-10T23:45:49Z
2023-12-13T09:01:59Z
REF: get_supported_reso->get_supported_dtype
diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py index b626959203295..88a9a259ac8ec 100644 --- a/pandas/_libs/tslibs/__init__.py +++ b/pandas/_libs/tslibs/__init__.py @@ -30,20 +30,16 @@ "get_unit_from_dtype", "periods_per_day", "periods_per_second", - "is_supported_unit"...
- [ ] 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/56439
2023-12-10T19:57:32Z
2023-12-11T17:40:18Z
2023-12-11T17:40:18Z
2023-12-11T17:45:09Z
DEPS: Bump some code style check dependencies
diff --git a/doc/source/conf.py b/doc/source/conf.py index 3f35e88cf543a..dbc764c88a6f3 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -58,7 +58,6 @@ "numpydoc", "sphinx_copybutton", "sphinx_design", - "sphinx_toggleprompt", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56438
2023-12-10T19:45:12Z
2023-12-17T22:41:24Z
2023-12-17T22:41:24Z
2023-12-18T17:50:18Z
REF: pass dtype to _from_sequence
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index a100af56faab8..82e9812094af2 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -1471,7 +1471,9 @@ def _maybe_upcast( elif arr.dtype == np.object_: if use_dtype_backend: - arr = StringDtype().construct...
xref #56430 aimed at narrowing down the places where we don't pass dtype for a specific reason
https://api.github.com/repos/pandas-dev/pandas/pulls/56436
2023-12-10T19:33:01Z
2023-12-12T00:41:46Z
2023-12-12T00:41:46Z
2023-12-12T02:17:32Z
TST: de-duplicate PeriodIndex constructor tests
diff --git a/pandas/tests/indexes/period/test_constructors.py b/pandas/tests/indexes/period/test_constructors.py index aecd3b3bace9a..d53581fab40c7 100644 --- a/pandas/tests/indexes/period/test_constructors.py +++ b/pandas/tests/indexes/period/test_constructors.py @@ -19,7 +19,54 @@ from pandas.core.arrays import Peri...
- [ ] 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/56435
2023-12-10T18:28:29Z
2023-12-11T17:41:45Z
2023-12-11T17:41:45Z
2023-12-11T17:44:44Z
CLN: assorted
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index da4eeaeb3b692..017fdc4bc834f 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -338,7 +338,7 @@ def array_with_unit_to_datetime( f"unit='{unit}' not valid with non-numerical val='{val}'" ) - ...
- [ ] 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/56431
2023-12-10T00:56:33Z
2023-12-13T17:53:51Z
2023-12-13T17:53:51Z
2023-12-13T17:55:35Z
CI: Fix mypy
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 8928c72de750c..91dd40c2deced 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -770,7 +770,7 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]: ] if ...
- [ ] 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/56428
2023-12-09T19:45:25Z
2023-12-09T21:19:54Z
2023-12-09T21:19:54Z
2023-12-09T22:07:48Z
DEPR: casting in datetimelike isin
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 7a0075ab88a3a..e97e7e6602046 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -455,6 +455,7 @@ Other Deprecations - Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_xml` except ``path_o...
- [x] closes #53111 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/56427
2023-12-09T17:02:21Z
2023-12-09T18:32:19Z
2023-12-09T18:32:19Z
2023-12-09T18:38:05Z
BUG: outer join on equal indexes not sorting
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 7a0075ab88a3a..03d00f4b30316 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -246,7 +246,7 @@ These are bug fixes that might have notable behavior changes. In previous versions of pandas, :func:`mer...
- [x] closes #55992 - [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/56426
2023-12-09T13:04:13Z
2023-12-09T19:00:18Z
2023-12-09T19:00:18Z
2023-12-09T19:00:25Z
TST: misplaced tests
diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py index 113402cda1b9a..9355d6089b742 100644 --- a/pandas/tests/io/parser/test_parse_dates.py +++ b/pandas/tests/io/parser/test_parse_dates.py @@ -12,13 +12,11 @@ from io import StringIO from dateutil.parser import par...
- [ ] 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/56424
2023-12-09T03:28:27Z
2023-12-09T18:28:37Z
2023-12-09T18:28:37Z
2023-12-09T18:29:48Z
DOC: add note about the values of unit for pd.to_datetime
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 648d93a45d210..a03ba6c775e68 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -235,6 +235,8 @@ inferred frequency upon creation: pd.DatetimeIndex(['2018-01-01', '2018-01-0...
The `unit` option for `pandas.to_datetime` takes different format strings than the `format` option, which makes sense, but caught me off-guard as a new user. It would be helpful if the documentation mentioned this. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34899
2020-06-20T13:21:13Z
2020-06-20T20:11:53Z
2020-06-20T20:11:53Z
2020-06-20T23:53:59Z
TST: groupby apply called multiple times
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index d03b03b3f862c..1945647ced08f 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -190,6 +190,27 @@ def f_constant_df(group): assert names == group_names +def test_group_apply_o...
closes #31111 xref https://github.com/pandas-dev/pandas/pull/24748 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ Added test for testing func should be called len(set(groupby_column)) times when passed to groupby.apply(func) ] whatsn...
https://api.github.com/repos/pandas-dev/pandas/pulls/34897
2020-06-20T13:14:04Z
2020-06-20T22:24:25Z
2020-06-20T22:24:25Z
2020-06-21T06:06:14Z
TST: skip gbq integration tests, xref #34779
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index df107259d38cd..870d78ef1c533 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -148,6 +148,7 @@ def mock_read_gbq(sql, **kwargs): @pytest.mark.single +@pytest.mark.xfail(reason="skipping gbq integration for now...
xref #34779
https://api.github.com/repos/pandas-dev/pandas/pulls/34895
2020-06-20T12:56:48Z
2020-06-20T14:43:34Z
2020-06-20T14:43:34Z
2020-06-20T14:43:35Z