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: Add job to validate conda-forge meta.yaml
diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml index 7130bed21d5ff..712deda729e50 100644 --- a/.github/workflows/package-checks.yml +++ b/.github/workflows/package-checks.yml @@ -14,6 +14,10 @@ on: permissions: contents: read +defaults: + run: + shell: bash -el {0} + ...
xref https://github.com/pandas-dev/pandas/pull/52794#issuecomment-1527919521 cc @datapythonista Inspired by https://github.com/dask/dask/blob/main/.github/workflows/conda.yml
https://api.github.com/repos/pandas-dev/pandas/pulls/53027
2023-05-01T22:13:26Z
2023-05-08T22:45:26Z
2023-05-08T22:45:26Z
2023-05-09T10:12:01Z
BUG: pd.read_sql_query - sqlalchemy uses sqlalchemy.sql.quoted_name instead of str
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index d7f7a0b8801ed..e359c33a1e67c 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -158,10 +158,14 @@ def _convert_arrays_to_dataframe( arrays = [ ArrowExtensionArray(pa.array(arr, from_pandas=True)) for arr in arrays ] + # sqlal...
- [x] closes #52816 - [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/53026
2023-05-01T21:25:09Z
2023-06-12T18:22:02Z
null
2023-06-12T18:22:03Z
POC/DEPR: infer time objects to ArrowDtype[time]
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index c3fbd3ee4853e..27d7c1464fa46 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -6,6 +6,7 @@ from typing import ( Literal, _GenericAlias, ) +import warnings cimport cython from cpython.datetime cimport ( @@ -99,6 +100,8 @@ cdef e...
xref #52711 this is what I have in mind for how we would deprecate the current inference behavior with a sequence of `datetime.time` objects. We would allow opting-in to the future behavior with `pd.set_option("future.infer_time", True)`. I plan to update this PR to also deprecate returning object dtype from the `t...
https://api.github.com/repos/pandas-dev/pandas/pulls/53025
2023-05-01T20:37:21Z
2023-08-23T20:44:41Z
null
2023-08-23T20:44:52Z
BUG: infer_dtype with ArrowDtype
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 92f1dc2d4ea3b..eb977f9ac9860 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -13,7 +13,11 @@ from cpython.datetime cimport ( PyDateTime_Check, PyDelta_Check, PyTime_Check, + date, + datetime, import_datetime, + 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/53023
2023-05-01T19:27:31Z
2023-05-02T16:29:53Z
2023-05-02T16:29:53Z
2023-05-02T16:30:44Z
BUG to_timedelta was raising ValueError w pd.NA
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 8322c8408a0e3..b6c6df8424ef1 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -22,10 +22,11 @@ Bug fixes ~~~~~~~~~ - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of...
- [x] closes ##52909 - [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/53022
2023-05-01T17:50:18Z
2023-05-03T16:11:25Z
2023-05-03T16:11:25Z
2023-07-27T23:20:09Z
REF: simplify maybe_convert_objects
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 05d569f0e58eb..e4e525fb0443c 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -70,34 +70,17 @@ def map_infer( convert: bool = ..., ignore_na: bool = ..., ) -> np.ndarray: ... -@overload # all convert_foo False -> only convert nume...
convert_timedelta/datetime/period/interval are in practice either all-True or all-False so this combines them into a single keyword convert_nonnumeric. This will also prevent bloat if/when we add time/date/decimal/string/...
https://api.github.com/repos/pandas-dev/pandas/pulls/53021
2023-05-01T17:11:28Z
2023-05-02T16:50:59Z
2023-05-02T16:50:59Z
2023-05-02T19:39:34Z
BUG: long int formatting with thousands separator
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 3f4273648b4d2..7f2c237c8b296 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1747,7 +1747,7 @@ def _default_formatter(x: Any, precision: int, thousands: bool = False) -> Any: if is_fl...
The previous PR #52686 for issue #52272 had three flaws: - it did not account for long integer display with thousands separator. - it added tests that had nothing to do with the fix that it employed. - a test added was specific only to the latex output. This PR reverts the tests, and adds a more generic test wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/53017
2023-05-01T11:01:54Z
2023-05-01T18:22:19Z
2023-05-01T18:22:19Z
2023-05-01T20:21:47Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43b3699907325..6b7a48e4267e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruf...
<!-- 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/53015
2023-05-01T07:04:59Z
2023-05-01T07:07:43Z
null
2023-05-01T18:17:05Z
Improve performance when selecting rows and columns
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 988d63db2229f..fa4f4b8cf4b45 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -283,6 +283,7 @@ Performance improvements - Performance improvement accessing :attr:`arrays.IntegerArrays.dtype` & :attr:`a...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/53014
2023-04-30T14:09:13Z
2023-05-04T17:43:38Z
2023-05-04T17:43:38Z
2023-05-04T18:50:41Z
PERF: add ._simple_new method to masked arrays
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 56284ba9a9ebf..0343b511f3180 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -292,6 +292,8 @@ Performance improvements - Performance improvement in :meth:`Series.corr` and :meth:`Series.cov` for exten...
Add a `._simple_new` method to `BaseMaskedArray` and child classes in order to allow instantiation without validation to get better performance when validation is not needed. Example: ```python >>> import pandas as pd >>> arr = pd.array(np.arange(2), dtype="Int32") >>> %timeit arr.reshape(-1, 1) 1.4 µs ± 12 n...
https://api.github.com/repos/pandas-dev/pandas/pulls/53013
2023-04-30T12:37:28Z
2023-05-07T15:44:05Z
2023-05-07T15:44:05Z
2023-05-07T15:45:52Z
CI: Update Python version for ASVs
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index c503ae5e17471..102fd389df620 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -29,7 +29,7 @@ // The Pythons you'd like to test against. If not provided, defaults // to the current version of Python used to run `asv`. ...
- [ ] 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/53012
2023-04-30T12:36:36Z
2023-04-30T16:00:52Z
2023-04-30T16:00:52Z
2023-09-27T20:55:55Z
TST: Add a test for multiindex df with na value and adding a new row
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 199307dd138ca..8c5f9a894f2f7 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -290,6 +290,30 @@ def test_datetime_object_multiindex(self): tm.assert_frame_equal(result, expected) + d...
- [X] closes #22247 - [ ] [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/53010
2023-04-30T09:05:35Z
2023-05-03T16:12:53Z
2023-05-03T16:12:53Z
2023-05-03T16:13:02Z
DOC: fixed wrong description of default value in docstring for pandas.Series.str.replace
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 6049002e3673d..9ffb0444f1516 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1391,7 +1391,7 @@ def replace( Examples -------- - When `pat` is a string and `regex` is Tru...
- [x] closes #52779 - [ ] [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/53006
2023-04-29T20:05:37Z
2023-04-30T09:55:36Z
2023-04-30T09:55:36Z
2023-04-30T09:55:40Z
POC of PDEP-9 (I/O plugins)
diff --git a/pandas/__init__.py b/pandas/__init__.py index d11a429987ac4..685824dfb25a3 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -171,6 +171,8 @@ from pandas.io.json._normalize import json_normalize +from pandas.io._plugin_loader import load_io_plugins + from pandas.util._tester import test ...
Proof of concept of what's being discussed in #51799. An example of a plugin is implemented in https://github.com/datapythonista/lance-reader Both together allow this code: ```python import pandas pandas.load_io_plugins() df = pandas.read_lance('sample.lance') df.to_lance('sample_copy.lance') ```
https://api.github.com/repos/pandas-dev/pandas/pulls/53005
2023-04-29T16:47:15Z
2023-06-13T12:27:32Z
null
2023-06-13T12:27:32Z
Backport PR #52982 on branch 2.0.x (BUG: Have non nano rounding noop return copy)
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 843e9be6de14a..8545cd1499b5e 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2010,7 +2010,7 @@ def _round(self, freq, mode, ambiguous, nonexistent): nanos = delta_to_nanosecon...
Backport PR #52982: BUG: Have non nano rounding noop return copy
https://api.github.com/repos/pandas-dev/pandas/pulls/53004
2023-04-29T15:47:12Z
2023-04-29T18:05:28Z
2023-04-29T18:05:28Z
2023-04-29T18:05:29Z
Added tests for period str and repr.
diff --git a/pandas/tests/scalar/period/test_period.py b/pandas/tests/scalar/period/test_period.py index a17079d0e76cb..d908c641a30c6 100644 --- a/pandas/tests/scalar/period/test_period.py +++ b/pandas/tests/scalar/period/test_period.py @@ -705,27 +705,41 @@ def test_to_timestamp_microsecond(self, ts, expected, freq): ...
- [x] closes #53000 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/53003
2023-04-29T14:18:25Z
2023-05-05T11:45:34Z
2023-05-05T11:45:34Z
2023-05-06T13:18:00Z
BUG: Series.describe treating pyarrow timestamps/timedeltas as categorical
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 3ee7031795d16..8322c8408a0e3 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -23,6 +23,7 @@ Bug fixes - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect si...
- [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/53001
2023-04-29T13:26:50Z
2023-05-01T17:49:55Z
2023-05-01T17:49:55Z
2023-05-30T22:16:35Z
STYLE: specify encodings when opening files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index de1e615beaaa2..f69c9f9606c60 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,9 +83,6 @@ repos: hooks: - id: pylint stages: [manual] -- repo: https://github.com/pycqa/pylint - rev: v2.16.2 - hooks:...
- [x] closes #52997 (Replace #52997 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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52999
2023-04-29T10:03:18Z
2023-05-07T10:04:48Z
2023-05-07T10:04:48Z
2023-05-07T10:04:54Z
PERF: faster access to the dtype for masked numeric arrays
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 644a7e86ec429..988d63db2229f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -280,6 +280,7 @@ Performance improvements - Performance improvement when parsing strings to ``boolean[pyarrow]`` dtype (:is...
```python >>> import pandas as pd >>> arr = pd.array(np.arange(100_000), dtype="Int32") >>> %%timeit ... arr.dtype ... del arr._cache["dtype"] 2.09 µs ± 14.2 ns per loop # main 234 ns ± 0.237 ns per loop # this PR ``` Discovered working on some performance issues with #52836.
https://api.github.com/repos/pandas-dev/pandas/pulls/52998
2023-04-29T09:31:51Z
2023-04-30T10:00:45Z
2023-04-30T10:00:45Z
2023-04-30T12:28:40Z
STYLE: specify encodings when opening files #52963
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43b3699907325..34cd91940f014 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,9 +83,6 @@ repos: hooks: - id: pylint stages: [manual] -- repo: https://github.com/pycqa/pylint - rev: v2.16.2 - hooks:...
- [x] closes #52963 (Replace #52963 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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/52997
2023-04-29T09:04:43Z
2023-04-29T10:01:33Z
null
2023-04-29T10:02:04Z
Made change to .pre-commit-config.yaml file
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43b3699907325..34cd91940f014 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -83,9 +83,6 @@ repos: hooks: - id: pylint stages: [manual] -- repo: https://github.com/pycqa/pylint - rev: v2.16.2 - hooks:...
- [ ] 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/52996
2023-04-29T07:02:21Z
2023-04-29T07:39:54Z
null
2023-04-29T07:52:35Z
REF: Remove side-effects from importing Styler
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e2c5ed2ea92b6..ccbc47c64ca91 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -41,9 +41,6 @@ from pandas.core.shared_docs import _shared_docs from pandas.io.formats.format import save_to_buffer - -jinja2 = import_o...
- [ ] 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/52995
2023-04-29T02:44:38Z
2023-06-28T00:07:25Z
null
2023-09-27T21:02:28Z
TYP: parsers
diff --git a/pandas/io/parsers/arrow_parser_wrapper.py b/pandas/io/parsers/arrow_parser_wrapper.py index b7b2ddf0293b5..e106db224c3dc 100644 --- a/pandas/io/parsers/arrow_parser_wrapper.py +++ b/pandas/io/parsers/arrow_parser_wrapper.py @@ -36,9 +36,6 @@ def _parse_kwds(self): encoding: str | None = self.kwds....
Trying to make these less stateful. This will take a few passes.
https://api.github.com/repos/pandas-dev/pandas/pulls/52993
2023-04-29T01:04:22Z
2023-05-01T17:52:29Z
2023-05-01T17:52:29Z
2023-05-01T17:58:21Z
ERR: Shorten traceback in groupby _cython_agg_general
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 137be168985d2..f1f32ae8f3740 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -109,6 +109,7 @@ Other enhancements - Added ``engine_kwargs`` parameter to :meth:`DataFrame.to_excel` (:issue:`53220`) - A...
- [x] closes #52930 (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/52992
2023-04-29T00:11:05Z
2023-06-19T20:47:12Z
2023-06-19T20:47:12Z
2023-06-19T20:47:42Z
BUG: PeriodDtype incorrectly caching different DateOffset freqs
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 35f9f623bf8ef..74efba0acf739 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -376,12 +376,12 @@ Period ^^^^^^ - :meth:`PeriodIndex.map` with ``na_action="ignore"`` now works as expected (:issue:`5164...
- [x] closes #24121 (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/52991
2023-04-28T23:02:42Z
2023-05-02T15:16:29Z
2023-05-02T15:16:29Z
2023-05-02T16:28:26Z
Backport PR #52952: ERR: Raise a better error message with to_pydatetime and ArrowDtype(pa.date)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index adfebd857b390..3ee7031795d16 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -31,7 +31,7 @@ Bug fixes Other ~~~~~ -- +- Raised a better error message when calling :func:`Series.dt.to_pydatetime` wi...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52989
2023-04-28T21:56:42Z
2023-04-29T18:31:45Z
2023-04-29T18:31:45Z
2023-04-29T18:31:50Z
TST: Use different re flag for PY311 deprecation
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 4caa982fa7b64..2286674b06945 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -2142,7 +2142,7 @@ def test_str_encode(errors, encoding, exp): tm.assert_series_equal(result, e...
`re.T` (1) is deprecated in 3.11 so changing out usage internally
https://api.github.com/repos/pandas-dev/pandas/pulls/52988
2023-04-28T21:50:22Z
2023-04-29T15:41:55Z
2023-04-29T15:41:55Z
2023-04-29T18:05:13Z
DEPR: accepting non-standard sequences in core.algorithms functions
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 5c181d02e0102..eb72f5b8d9e9b 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -252,6 +252,7 @@ Deprecations - Deprecated :meth:`DataFrame.swapaxes` and :meth:`Series.swapaxes`, use :meth:`DataFrame.tra...
- [ ] 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/52986
2023-04-28T21:05:23Z
2023-06-01T17:18:50Z
2023-06-01T17:18:50Z
2023-06-01T18:46:27Z
CI/TST: Ignore flaky BufferedRandom ResourceWarning from matplotlib
diff --git a/pyproject.toml b/pyproject.toml index aacf8649add35..d6828159d443e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -433,6 +433,9 @@ filterwarnings = [ "error::pytest.PytestUnraisableExceptionWarning", "ignore:.*ssl.SSLSocket:pytest.PytestUnraisableExceptionWarning", "ignore:.*ssl.SSLSocket:Res...
xref https://github.com/pandas-dev/pandas/issues/44844
https://api.github.com/repos/pandas-dev/pandas/pulls/52985
2023-04-28T19:01:33Z
2023-04-30T10:01:31Z
2023-04-30T10:01:31Z
2023-04-30T17:20:06Z
Backport PR #52794: CI: Remove redundant sdist workflow
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml deleted file mode 100644 index 284935d7051e1..0000000000000 --- a/.github/workflows/sdist.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: sdist - -on: - push: - branches: - - main - - 2.0.x - pull_request: - branches: - - main - ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52984
2023-04-28T17:41:26Z
2023-04-28T19:39:06Z
2023-04-28T19:39:06Z
2023-04-28T19:39:09Z
TST: Add a test for multiindex df with na value and adding a new row
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 199307dd138ca..3b6166a3b9bb8 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -290,6 +290,22 @@ def test_datetime_object_multiindex(self): tm.assert_frame_equal(result, expected) + d...
- [X] closes #22247 - [ ] [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/52983
2023-04-28T17:30:26Z
2023-04-30T09:01:16Z
null
2023-04-30T09:01:17Z
BUG: Have non nano rounding noop return copy
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index cb757a412f34d..0add2c2bf7b47 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2055,7 +2055,7 @@ def _round(self, freq, mode, ambiguous, nonexistent): nanos = delta_to_nanosecon...
Addresses https://github.com/pandas-dev/pandas/pull/52841#discussion_r1180466547 Since the original fix was backported to 2.0.1, probably should backport this too (but might be small enough to exclude a whatsnew)
https://api.github.com/repos/pandas-dev/pandas/pulls/52982
2023-04-28T16:55:05Z
2023-04-29T15:46:02Z
2023-04-29T15:46:02Z
2023-04-29T18:05:21Z
DEPR: allowing unknowns in take
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 2c5263f447951..47d20181eb094 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -251,6 +251,7 @@ Deprecations - Deprecated :meth:`DataFrame.applymap`. Use the new :meth:`DataFrame.map` method instead (:i...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/52981
2023-04-28T16:50:22Z
2023-05-30T20:36:46Z
2023-05-30T20:36:46Z
2023-05-30T20:38:15Z
Update to python 3.9 with pyupgrade
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2116bc64a5805..c434569fe0ed6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -107,7 +107,7 @@ repos: rev: v3.3.2 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https:/...
- [ ] 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/52978
2023-04-28T09:47:06Z
2023-06-12T18:21:47Z
null
2023-06-12T18:21:48Z
I was perform the task on my local Environment.
diff --git a/.pre-commit-config.yaml b/b/.pre-commit-config.yaml similarity index 98% rename from .pre-commit-config.yaml rename to b/.pre-commit-config.yaml index 43b3699907325..fae32b7b01485 100644 --- a/.pre-commit-config.yaml +++ b/b/.pre-commit-config.yaml @@ -83,9 +83,6 @@ repos: hooks: - id: pylint ...
- [ ] closes #xxxx (Replace #52963 with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/52976
2023-04-28T05:28:49Z
2023-04-28T05:31:33Z
null
2023-04-28T05:31:33Z
I was Commited all of the task on my own environment. maintainer can check this and merge my pull request.
diff --git a/.pre-commit-config.yaml b/b/.pre-commit-config.yaml similarity index 98% rename from .pre-commit-config.yaml rename to b/.pre-commit-config.yaml index 43b3699907325..fae32b7b01485 100644 --- a/.pre-commit-config.yaml +++ b/b/.pre-commit-config.yaml @@ -83,9 +83,6 @@ repos: hooks: - id: pylint ...
- [ ] 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/52975
2023-04-28T05:16:07Z
2023-04-28T05:17:18Z
null
2023-04-28T05:25:44Z
STYLE: upgrade ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43b3699907325..2116bc64a5805 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruf...
- [x] closes #52448 - [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/52974
2023-04-28T05:03:25Z
2023-05-02T20:56:53Z
2023-05-02T20:56:53Z
2023-05-03T02:55:38Z
CLN/TYP: stronger typing in safe_sort
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 4f771b3c80791..abfac85e31658 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -32,10 +32,7 @@ from pandas.util._decorators import doc from pandas.util._exceptions import find_stack_level -from pandas.core.dtypes.cast 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/52973
2023-04-28T00:57:02Z
2023-04-28T17:01:58Z
2023-04-28T17:01:58Z
2023-04-28T17:03:59Z
CLN: more accurate is_scalar checks
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 4f771b3c80791..eac0b73d75ad8 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -50,7 +50,6 @@ is_integer_dtype, is_list_like, is_object_dtype, - is_scalar, is_signed_integer_dtype, needs_i8_conve...
- [ ] 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/52971
2023-04-27T22:34:55Z
2023-04-28T17:13:41Z
2023-04-28T17:13:41Z
2023-04-28T17:27:28Z
BUG: pd.read_sql_query - sqlalchemy uses sqlalchemy.sql.quoted_name instead of str
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml deleted file mode 100644 index 957e7103f4ff6..0000000000000 --- a/.github/workflows/sdist.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: sdist - -on: - push: - branches: - - main - - 2.0.x - pull_request: - branches: - - main - ...
- [x] closes #52816 - [ ] [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/52970
2023-04-27T20:38:36Z
2023-05-01T20:53:36Z
null
2023-05-01T20:56:36Z
TST #24205: test_groupby_nth_interval created for Groupby Nth with Multindex Inverval
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index 61b20077cdcd0..d2197ff202fb2 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -767,6 +767,29 @@ def test_groupby_nth_with_column_axis(): tm.assert_frame_equal(result, expected) +def tes...
- [x] closes #24205 - [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/52968
2023-04-27T19:49:48Z
2023-04-29T02:55:00Z
2023-04-29T02:55:00Z
2023-04-29T02:55:08Z
DOC: Fix EX01 issues in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 55618590071b5..d450630227e2a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,8 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [ ] 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/52966
2023-04-27T16:01:04Z
2023-04-27T20:05:36Z
2023-04-27T20:05:36Z
2023-05-08T17:03:54Z
BUG: Fix np.inf + np.nan sum issue on groupby mean
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index c62e60b7cdaa0..0a6ac9240ce99 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1075,6 +1075,13 @@ def group_mean( y = val - compensation[lab, j] t = sumx[lab, j] + y ...
- [X] closes #50367 - [ ] [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/52964
2023-04-27T15:30:01Z
2023-05-23T16:36:55Z
2023-05-23T16:36:55Z
2023-05-23T16:37:04Z
Backport PR #52949 on branch 2.0.x (DOC: Clean up for deprecations)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index e8969e90e6318..890ac084680a1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2521,7 +2521,7 @@ def is_categorical(self) -> bool: Check if the Index holds categorical data. .. deprecated:: 2.0....
Backport PR #52949: DOC: Clean up for deprecations
https://api.github.com/repos/pandas-dev/pandas/pulls/52962
2023-04-27T14:32:17Z
2023-04-27T16:13:16Z
2023-04-27T16:13:16Z
2023-04-27T16:13:17Z
ENH: Add 'truncate' option for if_exists arg for DataFrame.to_sql method
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index e1ac9e3309de7..5ebbe1abeb7f7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -83,6 +83,7 @@ Other enhancements - :meth:`arrays.DatetimeArray.map`, :meth:`arrays.TimedeltaArray.map` and :meth:`arrays.P...
This is my first ever PR on an open source project. This one seemed pretty small & straight forward so I gave it go. Just merged main into the branch so it is conflict free. Please let me know if there's anything else I can do to help get this merged! See issue #37210 for more context but this essentially gives a u...
https://api.github.com/repos/pandas-dev/pandas/pulls/52961
2023-04-27T14:31:05Z
2023-06-20T19:46:53Z
null
2023-06-20T19:46:54Z
Backport PR #52872 on branch 2.0.x (BUG: convert_dtypes ingoring convert keywords for pyarrow backend)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index f6b0b4086cb39..adfebd857b390 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -22,6 +22,7 @@ Bug fixes ~~~~~~~~~ - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of i...
Backport PR #52872: BUG: convert_dtypes ingoring convert keywords for pyarrow backend
https://api.github.com/repos/pandas-dev/pandas/pulls/52959
2023-04-27T12:28:28Z
2023-04-27T14:33:03Z
2023-04-27T14:33:03Z
2023-04-27T14:33:04Z
CLN Dont upcast where unnecessary (PDEP6 precursor)
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index 3eee4ce7ac25c..604a5cc56ab04 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -125,7 +125,7 @@ Building criteria .. ipython:: python - df.loc[(df["BBB"] > 25) | (df["CCC"] >= 75),...
precursor to https://github.com/pandas-dev/pandas/pull/50626/files, trying to reduce the diff there's some example / tests in which upcasting from int to float happens, but where it's not the purpose of what's being shown / tested. similar to https://github.com/pandas-dev/pandas/pull/50493
https://api.github.com/repos/pandas-dev/pandas/pulls/52957
2023-04-27T10:21:17Z
2023-04-27T12:31:45Z
2023-04-27T12:31:45Z
2023-04-27T12:31:49Z
resampler with non_naive index test GH#25411
diff --git a/pandas/tests/resample/test_resampler_grouper.py b/pandas/tests/resample/test_resampler_grouper.py index f19b315400f69..209f2e74d97de 100644 --- a/pandas/tests/resample/test_resampler_grouper.py +++ b/pandas/tests/resample/test_resampler_grouper.py @@ -327,6 +327,25 @@ def test_apply_columns_multilevel(): ...
- [ ] closes #25411 (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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/52956
2023-04-27T05:55:16Z
2023-04-27T16:05:33Z
2023-04-27T16:05:33Z
2023-04-28T00:03:30Z
WEB: add mastodon links
diff --git a/doc/source/conf.py b/doc/source/conf.py index d808d60b1ac95..0219c0e4f05ba 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -251,6 +251,13 @@ "json_url": "/versions.json", "version_match": switcher_version, }, + "icon_links": [ + { + "name": "Mastodon"...
- [x] closes #52914 - [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). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/52954
2023-04-27T02:23:36Z
2023-04-28T17:19:26Z
2023-04-28T17:19:26Z
2023-04-28T17:19:33Z
CI: Add testing for Musl Linux
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 69baa3ccd6f34..553d3e7d568a1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -241,6 +241,49 @@ jobs: group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-32bit ...
xref https://github.com/MacPython/pandas-wheels/issues/176
https://api.github.com/repos/pandas-dev/pandas/pulls/52953
2023-04-27T00:46:07Z
2023-04-28T17:48:17Z
2023-04-28T17:48:17Z
2023-04-28T17:48:20Z
ERR: Raise a better error message with to_pydatetime and ArrowDtype(pa.date)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index adfebd857b390..3ee7031795d16 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -31,7 +31,7 @@ Bug fixes Other ~~~~~ -- +- Raised a better error message when calling :func:`Series.dt.to_pydatetime` wi...
- [ ] closes #52812 (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/52952
2023-04-27T00:34:04Z
2023-04-28T21:54:00Z
2023-04-28T21:54:00Z
2023-04-28T21:57:32Z
Backport PR #52591 on branch 2.0.x (BUG: pd.array raising with NumPy array and large dtype)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 09932a2d2d571..f6b0b4086cb39 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -22,6 +22,7 @@ Bug fixes ~~~~~~~~~ - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of i...
Backport PR #52591: BUG: pd.array raising with NumPy array and large dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/52951
2023-04-27T00:15:13Z
2023-04-27T02:15:28Z
2023-04-27T02:15:28Z
2023-04-27T02:15:29Z
Type errors
diff --git a/pandas/core/methods/to_dict.py b/pandas/core/methods/to_dict.py index 5614b612660b9..1d6a7ea91371f 100644 --- a/pandas/core/methods/to_dict.py +++ b/pandas/core/methods/to_dict.py @@ -82,10 +82,8 @@ def to_dict( # GH16122 into_c = com.standardize_mapping(into) - # error: Incompatible types ...
After running grep -Ern "type: ?ignore" pandas/ in the terminal, there's a list of type errors. I fixed type errors in three files: - plotting/_matplotlib/timeseries.py - core/methods/to_dict.py - plotting/_matplotlib/converter.py
https://api.github.com/repos/pandas-dev/pandas/pulls/52950
2023-04-26T21:47:32Z
2023-06-01T17:29:49Z
null
2023-06-01T17:29:50Z
DOC: Clean up for deprecations
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index bb2355df4b303..75320a28eb16b 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2536,7 +2536,7 @@ def is_categorical(self) -> bool: Check if the Index holds categorical data. .. deprecated:: 2.0....
- [ ] 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/52949
2023-04-26T21:46:26Z
2023-04-27T14:32:08Z
2023-04-27T14:32:08Z
2023-04-27T14:32:52Z
CoW: Add lazy copy mechanism to DataFrame constructor for dict of Index
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 64df847aa74f0..8890eb01a3727 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -20,6 +20,9 @@ Copy-on-Write improvements ^^^^^^^^^^^^^^^^^^^^^^^^^^ - Setting a :class:`Series` into a :class:`DataFram...
- [ ] 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/52947
2023-04-26T21:26:40Z
2023-06-20T07:45:38Z
2023-06-20T07:45:38Z
2023-06-20T07:48:40Z
DOC: Try building docs with sphinx-design
diff --git a/doc/source/conf.py b/doc/source/conf.py index d808d60b1ac95..20d26645988ed 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -56,7 +56,7 @@ "matplotlib.sphinxext.plot_directive", "numpydoc", "sphinx_copybutton", - "sphinx_panels", + "sphinx_design", "sphinx_toggleprompt"...
- [ ] 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/52945
2023-04-26T20:50:58Z
2023-04-26T21:03:46Z
null
2023-04-27T19:51:43Z
DOC: Move ecosystem.rst to getting started section
diff --git a/doc/data/tips.csv b/doc/data/tips.csv deleted file mode 100644 index 856a65a69e647..0000000000000 --- a/doc/data/tips.csv +++ /dev/null @@ -1,245 +0,0 @@ -total_bill,tip,sex,smoker,day,time,size -16.99,1.01,Female,No,Sun,Dinner,2 -10.34,1.66,Male,No,Sun,Dinner,3 -21.01,3.5,Male,No,Sun,Dinner,3 -23.68,3.31,...
So it makes `ecosystem` discoverable from the docs navigation. Also removes an unused tips.csv and `ipython_warning_is_error` (which is enforced by our build error on warnings)
https://api.github.com/repos/pandas-dev/pandas/pulls/52944
2023-04-26T20:37:48Z
2023-05-01T17:56:38Z
2023-05-01T17:56:38Z
2023-05-01T17:56:41Z
TYP: resolve mypy errors in core/arrays/_ranges.py
diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py index f2582cd6f2e58..5f0409188e5e3 100644 --- a/pandas/core/arrays/_ranges.py +++ b/pandas/core/arrays/_ranges.py @@ -54,6 +54,8 @@ def generate_regular_range( iend = end._value if end is not None else None freq.nanos # raises if non-...
xref https://github.com/pandas-dev/pandas/issues/37715 - casted the return types in the `_generate_range_overflow_safe_signed` function to `int` to match the function signature
https://api.github.com/repos/pandas-dev/pandas/pulls/52943
2023-04-26T19:49:53Z
2023-05-07T16:38:42Z
2023-05-07T16:38:42Z
2023-05-07T16:38:55Z
DOC: add examples to offsets.YearEnd
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 0614cb2a9d8c9..31acf0ef1bbe4 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2291,13 +2291,29 @@ cdef class BYearBegin(YearOffset): cdef class YearEnd(YearOffset): """ - DateOffset incr...
Related to pr #52352 Updated documentation for offsets `YearEnd` and added new examples.
https://api.github.com/repos/pandas-dev/pandas/pulls/52942
2023-04-26T19:19:32Z
2023-04-26T22:37:25Z
2023-04-26T22:37:25Z
2023-04-26T22:37:31Z
PERF: Improve performance in DataFrame.filter
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b10dd876050ae..8b81d3223036d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -96,6 +96,7 @@ Other enhancements - Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string col...
- [ ] 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/52941
2023-04-26T19:06:34Z
2023-04-27T18:18:47Z
2023-04-27T18:18:47Z
2023-04-27T18:45:09Z
DOC: Remove 1.2 versionadded and changed
diff --git a/doc/source/user_guide/duplicates.rst b/doc/source/user_guide/duplicates.rst index 7894789846ce8..9aef38d868374 100644 --- a/doc/source/user_guide/duplicates.rst +++ b/doc/source/user_guide/duplicates.rst @@ -109,8 +109,6 @@ with the same label. Disallowing Duplicate Labels ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
- [ ] 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/52940
2023-04-26T18:38:50Z
2023-06-12T18:21:31Z
null
2023-06-12T18:21:32Z
CLN: Assorted
diff --git a/LICENSES/OTHER b/LICENSES/OTHER index 7446d68eb43a6..e156152990cc4 100644 --- a/LICENSES/OTHER +++ b/LICENSES/OTHER @@ -26,24 +26,6 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAM...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52938
2023-04-26T17:04:18Z
2023-04-27T23:27:51Z
2023-04-27T23:27:51Z
2023-04-27T23:27:54Z
Remove compat for Python lower than 3.9
diff --git a/.circleci/config.yml b/.circleci/config.yml index e7322e748662f..549a6374246a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -92,4 +92,4 @@ workflows: only: /^v.*/ matrix: parameters: - cibw-build: ["cp38-manylinux_aarch64", "cp39-man...
- [ ] 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/52935
2023-04-26T15:58:24Z
2023-04-26T22:36:11Z
2023-04-26T22:36:11Z
2023-04-27T15:39:52Z
Backport PR #52929 on branch 2.0.x (TST/BUG: pyarrow test fixtures upcasting dtypes)
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index d557f5efc0a8a..bc642faeed163 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -131,7 +131,7 @@ def data(dtype): @pytest.fixture def data_missing(data): """Length-2 array w...
Backport PR #52929: TST/BUG: pyarrow test fixtures upcasting dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/52934
2023-04-26T15:53:58Z
2023-04-26T18:28:55Z
2023-04-26T18:28:55Z
2023-04-26T18:28:55Z
Backport PR #52906 on branch 2.0.x (DEPS: Address numpy deprecation of len 1 arrays assignment)
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index afb5ab036b5b5..f8d78d21f74df 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1768,6 +1768,13 @@ def _setitem_with_indexer(self, indexer, value, name: str = "iloc"): if not isinstance(value, ABCSeries...
Backport PR #52906: DEPS: Address numpy deprecation of len 1 arrays assignment
https://api.github.com/repos/pandas-dev/pandas/pulls/52933
2023-04-26T15:44:28Z
2023-04-26T18:28:44Z
2023-04-26T18:28:44Z
2023-04-26T18:28:44Z
CLN only check if dtype is compatible within mask
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index ff022cb047f3d..8410d98f286da 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -58,6 +58,7 @@ is_1d_only_ea_dtype, is_dtype_equal, is_list_like, + is_scalar, is_string_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/52931
2023-04-26T13:09:08Z
2023-04-26T13:51:33Z
null
2023-04-26T13:51:34Z
TST/BUG: pyarrow test fixtures upcasting dtypes
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 0300b271acc3f..e9a9dbbc8d965 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -130,7 +130,7 @@ def data(dtype): @pytest.fixture def data_missing(data): """Length-2 array w...
There are a few test fixtures in `test_arrow.py` that create an array from a subset of another array using `ArrowExtensionArray._from_sequence`. They are not passing the dtype which results in upcasting for smaller dtypes. ``` import pandas as pd dtype = "int32[pyarrow]" arr = pd.array([1, 2, 3], dtype=dtype)...
https://api.github.com/repos/pandas-dev/pandas/pulls/52929
2023-04-26T11:28:40Z
2023-04-26T15:53:49Z
2023-04-26T15:53:49Z
2023-05-30T22:16:37Z
PERF/CLN: let pyarrow concat chunks instead of doing it ourselves in __from_arrow__
diff --git a/pandas/core/arrays/numeric.py b/pandas/core/arrays/numeric.py index df16419ea2bf1..da55c4193c162 100644 --- a/pandas/core/arrays/numeric.py +++ b/pandas/core/arrays/numeric.py @@ -88,27 +88,16 @@ def __from_arrow__( array = array.cast(pyarrow_type) - if isinstance(array, pyarrow.Arr...
See https://github.com/pandas-dev/pandas/issues/52070#issuecomment-1523223389 for context. We are currently manually iterating through the chunks of the pyarrow array, converting each chunk to our masked extension array, and then concatenate those at the end. While we could also let pyarrow concatenate the chunks, and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52928
2023-04-26T11:13:35Z
2023-04-26T15:55:50Z
2023-04-26T15:55:50Z
2023-04-26T15:59:26Z
TST: add test case to verify groupby-apply producing consistent output
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index e5599d60b4f0d..ac5bcb81e7307 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -1485,3 +1485,23 @@ def test_empty_df(method, op): ) tm.assert_series_equal(result, expected) + ...
- [X] closes #34478 - [X] [Tests added and passed] - [X] All [code checks passed]
https://api.github.com/repos/pandas-dev/pandas/pulls/52926
2023-04-26T07:52:44Z
2023-04-26T15:59:43Z
2023-04-26T15:59:43Z
2023-04-26T15:59:51Z
MNT: Metadata in DataFrame.mean
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 838a34adeaf82..3092b5cbbc3cb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -11026,7 +11026,12 @@ def mean( numeric_only: bool = False, **kwargs, ): - return super().mean(axis, skipna, numeric_only, **kwargs) +...
- [ ] 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/52925
2023-04-26T05:31:48Z
2023-05-30T17:51:43Z
null
2023-05-30T17:51:44Z
Fix the metadata propagation in Dataframe.std
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index cfce12c2930d7..328d6a5092b36 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -417,6 +417,10 @@ Styler - - +Metadata +^^^^^^^^ +- Fixed metadata propagation in :meth:`DataFrame.std` (:issue:`28283`)...
- [ ] 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/52924
2023-04-26T05:23:03Z
2023-05-01T17:59:29Z
2023-05-01T17:59:29Z
2023-05-01T17:59:36Z
Metadata propagation both in DataFrame.corrwith and Dataframe.sum
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 838a34adeaf82..30e6b911fabdb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -11005,7 +11005,8 @@ def sum( min_count: int = 0, **kwargs, ): - return super().sum(axis, skipna, numeric_only, min_count, **kwargs) +...
….sum - [ ] 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/develo...
https://api.github.com/repos/pandas-dev/pandas/pulls/52923
2023-04-26T05:13:51Z
2023-04-26T16:58:54Z
2023-04-26T16:58:54Z
2023-04-26T16:59:00Z
Fixed metadata propagation in Dataframe.any
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 838a34adeaf82..213cbc725af48 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10955,12 +10955,17 @@ def any( # type: ignore[override] bool_only=None, skipna: bool = True, **kwargs, - ) -> Series: + ) -> Seri...
- [ ] 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/52922
2023-04-26T04:44:52Z
2023-06-12T18:20:28Z
null
2023-06-12T18:20:29Z
DEPR: Revert DataFrameGroupBy.apply operating on the group keys
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index 604a5cc56ab04..36c4604f772a3 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -459,7 +459,7 @@ Unlike agg, apply's callable is passed a sub-DataFrame which gives you access to df ...
- [ ] 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/52921
2023-04-25T21:29:39Z
2023-04-28T21:56:02Z
2023-04-28T21:56:02Z
2023-04-28T22:03:54Z
CLN: Simplify to_masked implementation
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index a7f2ef85c2a9d..dfba9e4a02af0 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -69,6 +69,7 @@ ) from pandas.core.strings.base import BaseStringArrayMethods +from pandas.io._util import _a...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/52920
2023-04-25T21:09:17Z
2023-04-28T17:21:32Z
2023-04-28T17:21:32Z
2023-04-28T21:55:35Z
BUG: overriden methods of subclasses of Styler are not called during rendering #52728
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index efc8bc695df85..f6e5e8b21327d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -409,7 +409,7 @@ ExtensionArray Styler ^^^^^^ -- +- Bug in :meth:`Styler._copy` calling overridden methods in subclasses...
- [x] closes #52728 (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/52919
2023-04-25T20:31:27Z
2023-04-27T16:03:59Z
2023-04-27T16:03:59Z
2023-04-27T16:04:12Z
Backport PR #52916 on branch 2.0.x (CI: Bump GHA versions)
diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 2a7601f196ec4..fd7c3587f2254 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -7,7 +7,7 @@ runs: shell: bash -el {0} - name: Publish test results - uses: actio...
Backport PR #52916: CI: Bump GHA versions
https://api.github.com/repos/pandas-dev/pandas/pulls/52918
2023-04-25T20:11:26Z
2023-04-25T22:22:48Z
2023-04-25T22:22:48Z
2023-04-25T22:22:48Z
CI: Bump GHA versions
diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 2a7601f196ec4..fd7c3587f2254 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -7,7 +7,7 @@ runs: shell: bash -el {0} - name: Publish test results - uses: actio...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52916
2023-04-25T17:39:32Z
2023-04-25T20:10:28Z
2023-04-25T20:10:28Z
2023-04-25T20:11:00Z
TYP: Use Protocol for ReaderBase
diff --git a/pandas/io/sas/sasreader.py b/pandas/io/sas/sasreader.py index d56f4c7ebc695..2a395f790a5b5 100644 --- a/pandas/io/sas/sasreader.py +++ b/pandas/io/sas/sasreader.py @@ -3,13 +3,10 @@ """ from __future__ import annotations -from abc import ( - ABCMeta, - abstractmethod, -) from typing import ( ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52915
2023-04-25T17:34:48Z
2023-04-25T20:11:15Z
2023-04-25T20:11:15Z
2023-04-25T20:12:28Z
TST: Add test_datetime_object_multiindex test
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index f8e1128042dbb..199307dd138ca 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1,3 +1,5 @@ +import datetime + import numpy as np import pytest @@ -266,6 +268,28 @@ def test_subsets_multiindex_dt...
- [x] closes #19993 - [ ] [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/52913
2023-04-25T16:49:48Z
2023-04-25T18:51:31Z
2023-04-25T18:51:30Z
2023-04-25T18:51:38Z
TST: apply returns list
diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py index 0397f8cae3ac7..5a2574e62b41e 100644 --- a/pandas/tests/apply/test_frame_apply.py +++ b/pandas/tests/apply/test_frame_apply.py @@ -1433,6 +1433,13 @@ def test_apply_on_empty_dataframe(): tm.assert_series_equal(result,...
- [x] closes #17487 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/52912
2023-04-25T16:29:53Z
2023-04-25T18:49:01Z
2023-04-25T18:49:01Z
2023-04-28T16:28:02Z
Backport PR #52824 on branch 2.0.x (BUG: interchange bitmasks not supported in interchange/from_dataframe.py)
diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst index 0a6738cb9b3dc..09932a2d2d571 100644 --- a/doc/source/whatsnew/v2.0.2.rst +++ b/doc/source/whatsnew/v2.0.2.rst @@ -20,6 +20,8 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :func:`api.interchange.from_dataframe` was returning :cla...
Backport PR #52824: BUG: interchange bitmasks not supported in interchange/from_dataframe.py
https://api.github.com/repos/pandas-dev/pandas/pulls/52907
2023-04-25T00:50:51Z
2023-04-25T09:15:44Z
2023-04-25T09:15:44Z
2023-04-25T09:15:44Z
DEPS: Address numpy deprecation of len 1 arrays assignment
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 6aecfe5267e0c..0f1cd397f2dd1 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1753,6 +1753,13 @@ def _setitem_with_indexer(self, indexer, value, name: str = "iloc"): if not isinstance(value, ABCSeries...
- [ ] closes #52853 (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/52906
2023-04-25T00:43:30Z
2023-04-26T15:43:24Z
2023-04-26T15:43:24Z
2023-04-26T15:43:29Z
DOC: Remove versionadded/changed for 1.1.0
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index e99dbbde3db85..184060d3cf697 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -959,9 +959,9 @@ directive is used. The sphinx synta...
- [ ] 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/52905
2023-04-24T21:05:51Z
2023-04-26T15:46:36Z
2023-04-26T15:46:36Z
2023-04-26T15:52:36Z
BUG: Fix pandas._libs.json __name__
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b7d17d1abbe91..45a5efa574bf9 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -424,7 +424,7 @@ Other - Bug in :meth:`DataFrame.reindex` with a ``fill_value`` that should be inferred with a :class:`Exte...
- [x] closes #52898 (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/52903
2023-04-24T20:34:47Z
2023-04-25T15:29:57Z
2023-04-25T15:29:57Z
2023-04-25T16:44:32Z
BUG: date_range with DateOffset with nanoseconds
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b7d17d1abbe91..afcd7ed02c457 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -293,9 +293,9 @@ Categorical Datetimelike ^^^^^^^^^^^^ - :meth:`DatetimeIndex.map` with ``na_action="ignore"`` now works ...
- [x] closes #46877 (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/52902
2023-04-24T20:16:11Z
2023-04-25T16:46:39Z
2023-04-25T16:46:39Z
2023-04-25T16:46:42Z
Backport PR #52694 on branch 2.0.x (CI: Combine unit test workflows)
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml deleted file mode 100644 index 08026a5fd637f..0000000000000 --- a/.github/workflows/32-bit-linux.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: 32 Bit Linux - -on: - push: - branches: - - main - - 2.0.x - pull_request: - b...
(cherry picked from commit c9c6a1f05c657b1b4159d2f47be02e09448c1e78)
https://api.github.com/repos/pandas-dev/pandas/pulls/52901
2023-04-24T19:15:48Z
2023-04-24T21:07:21Z
2023-04-24T21:07:21Z
2023-04-24T22:26:48Z
Backport PR #52891 on branch 2.0.x (Bump pypa/cibuildwheel from 2.12.1 to 2.12.3)
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f0d422b01e0c8..07f3224679e90 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -71,7 +71,7 @@ jobs: fetch-depth: 0 - name: Build wheels - uses: pypa/cibuildwheel@v2.12.1 + u...
Backport PR #52891: Bump pypa/cibuildwheel from 2.12.1 to 2.12.3
https://api.github.com/repos/pandas-dev/pandas/pulls/52900
2023-04-24T18:24:42Z
2023-04-24T20:37:44Z
2023-04-24T20:37:44Z
2023-04-24T20:37:44Z
BUG: Fixes Incompatible return value type in pandas/core/generic.py
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 36b2aa3c28da5..9fa2e0d5e468e 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -332,10 +332,12 @@ Numeric - Bug in :meth:`Series.corr` and :meth:`Series.cov` raising ``AttributeError`` for masked dtypes...
- Contributes to issue #37715 (https://github.com/pandas-dev/pandas/issues/37715) - Casts 64-bit signed integer to int value - Passes unit tests through PyTest - Added tests to respective folders within tests/series and tests/frame subdirectory - Removed ignore comments
https://api.github.com/repos/pandas-dev/pandas/pulls/52897
2023-04-24T16:35:49Z
2023-05-07T12:58:15Z
2023-05-07T12:58:15Z
2023-05-07T15:31:01Z
Backport PR #52893 on branch 2.0.x (DOC: Add whatsnew for 2.0.2)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 6b12cd93ae387..f2d2a54e4d1fe 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 2.0 .. toctree:: :maxdepth: 2 + v2.0.2 v2.0.1 v2.0.0 diff --git a/doc/source/whatsnew/...
Backport PR #52893: DOC: Add whatsnew for 2.0.2
https://api.github.com/repos/pandas-dev/pandas/pulls/52896
2023-04-24T14:37:07Z
2023-04-24T16:57:47Z
2023-04-24T16:57:47Z
2023-04-24T16:57:47Z
added typing IntervalClosedType where needed
diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi index 4c36246e04d23..587fdf84f2f85 100644 --- a/pandas/_libs/interval.pyi +++ b/pandas/_libs/interval.pyi @@ -148,7 +148,7 @@ class Interval(IntervalMixin, Generic[_OrderableT]): def intervals_to_interval_bounds( intervals: np.ndarray, validate_...
- [x] closes #48140 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/52894
2023-04-24T13:08:54Z
2023-04-25T20:12:06Z
2023-04-25T20:12:06Z
2023-04-25T20:12:13Z
DOC: Add whatsnew for 2.0.2
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 555868d001118..42f110dfd7519 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 2.0 .. toctree:: :maxdepth: 2 + v2.0.2 v2.0.1 v2.0.0 diff --git a/doc/source/whatsnew/...
- [ ] 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/52893
2023-04-24T11:09:56Z
2023-04-24T14:36:06Z
2023-04-24T14:36:06Z
2023-04-24T14:36:10Z
Bump pypa/cibuildwheel from 2.12.1 to 2.12.3
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 593a98d64e46a..a42957c1cc942 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -71,7 +71,7 @@ jobs: fetch-depth: 0 - name: Build wheels - uses: pypa/cibuildwheel@v2.12.1 + u...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.12.1 to 2.12.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p> <blockquote> <h2>v2.12.3</h2> <ul> <li>🐛 Fix an import error when runn...
https://api.github.com/repos/pandas-dev/pandas/pulls/52891
2023-04-24T09:08:39Z
2023-04-24T18:24:32Z
2023-04-24T18:24:32Z
2023-04-24T18:24:35Z
REF: refactor ArrowExtensionArray._reduce
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 51d6fa74ea94e..55c6b74e495c0 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1223,9 +1223,9 @@ def _accumulate( return type(self)(result) - def _reduce(self, name: str, *, ...
Adds a `ArrowExtensionArray._reduce_pyarrow` method that returns a pyarrow scalar and makes `ArrowExtensionArray._reduce` get its pyarrow scalar from that and converts it there to a python scalar. There are situations where we want to know the type of the value returned from pyarrow reductions (e.g. #52788) and thi...
https://api.github.com/repos/pandas-dev/pandas/pulls/52890
2023-04-24T08:18:29Z
2023-04-25T17:28:47Z
2023-04-25T17:28:47Z
2023-04-25T17:33:10Z
Fix typo in future warning message
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index a370300100866..50b39ee977ed4 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -4349,7 +4349,7 @@ def _insert_quantile_level(idx: Index, qs: npt.NDArray[np.float64]) -> MultiInde _apply_groupings_depr =...
- [ ] 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/52889
2023-04-24T08:10:00Z
2023-04-24T17:36:25Z
2023-04-24T17:36:24Z
2023-04-24T18:53:11Z
call __finalize__ in DataFrame.eval with engine=numexpr
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 051ebfff47f83..ae5d6b3c17423 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4596,7 +4596,15 @@ def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None: kwargs["target"] = self kwargs["resolvers"] =...
- [ ] 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/52888
2023-04-24T05:56:23Z
2023-05-30T17:04:44Z
null
2023-05-30T17:04:45Z
Added version sorting on Web and Removed obsolete versions
diff --git a/web/pandas_web.py b/web/pandas_web.py index 7348ac43c81de..7ee44d1910b82 100755 --- a/web/pandas_web.py +++ b/web/pandas_web.py @@ -40,6 +40,7 @@ import feedparser import jinja2 import markdown +from packaging import version import requests import yaml @@ -231,7 +232,27 @@ def home_add_releases(cont...
- [ ] closes #50885 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [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/52887
2023-04-24T05:04:01Z
2023-09-11T16:35:19Z
null
2023-09-11T16:35:20Z
Call __finalize__ in Dataframe.combine and Dataframe.combine_first
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 051ebfff47f83..34e8c969d1b75 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8285,7 +8285,8 @@ def combine( result[col] = arr # convert_objects just in case - return self._constructor(result, index=new_index, ...
- [x] resolves tasks in #28283 - [x] remove not-implemented flag in tests
https://api.github.com/repos/pandas-dev/pandas/pulls/52886
2023-04-24T03:46:22Z
2023-04-25T16:59:14Z
2023-04-25T16:59:14Z
2023-04-25T16:59:21Z
Backport PR #52882 on branch 2.0.x (DOC: Update whatsnew)
diff --git a/doc/source/whatsnew/v2.0.1.rst b/doc/source/whatsnew/v2.0.1.rst index 43ea1bd012714..2613d12e43400 100644 --- a/doc/source/whatsnew/v2.0.1.rst +++ b/doc/source/whatsnew/v2.0.1.rst @@ -1,7 +1,7 @@ .. _whatsnew_201: -What's new in 2.0.1 (May XX, 2023) ----------------------------------- +What's new in 2.0...
Backport PR #52882: DOC: Update whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/52885
2023-04-23T22:51:25Z
2023-04-24T00:14:01Z
2023-04-24T00:14:01Z
2023-04-24T00:14:02Z
Fix Issue #52505
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 743bb78c70c36..5421805548623 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -232,6 +232,7 @@ Numeric ^^^^^^^ - Bug in :meth:`Series.corr` and :meth:`Series.cov` raising ``AttributeError`` for masked...
github.com/pandas/issues/52505 - [X] closes #52505 (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....
https://api.github.com/repos/pandas-dev/pandas/pulls/52884
2023-04-23T19:46:34Z
2023-05-26T17:20:35Z
null
2023-05-26T17:20:36Z