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
PERF: needs_i8_conversion expect dtype object
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 52606cd7a914e..d7b1741687441 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1090,22 +1090,20 @@ def is_numeric_v_string_like(a: ArrayLike, b) -> bool: ) -def needs_i8_conversion(arr_or_dtype) -> boo...
- [ ] 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/52288
2023-03-29T22:26:50Z
2023-03-30T16:52:12Z
2023-03-30T16:52:12Z
2023-03-30T17:09:20Z
DOC: Escape backslash in read_clipboard docstring
diff --git a/pandas/io/clipboards.py b/pandas/io/clipboards.py index e5981e8d15eb7..c25e184680f44 100644 --- a/pandas/io/clipboards.py +++ b/pandas/io/clipboards.py @@ -30,8 +30,8 @@ def read_clipboard( Parameters ---------- - sep : str, default '\s+' - A string or regex delimiter. The default of ...
- [x] closes #51868 - [ ] [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/52285
2023-03-29T20:32:50Z
2023-03-29T23:47:27Z
2023-03-29T23:47:26Z
2023-03-29T23:53:22Z
Backport PR #52022 on branch 2.0.x (API / CoW: Copy arrays by default in Series constructor)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3c3c490d2c468..d9495d843d939 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -193,12 +193,13 @@ Copy-on-Write improvements - The :class:`DataFrame` constructor, when constructing a DataFrame from a ...
#52022
https://api.github.com/repos/pandas-dev/pandas/pulls/52282
2023-03-29T16:43:54Z
2023-03-29T19:15:50Z
2023-03-29T19:15:50Z
2023-03-29T19:19:36Z
BUG: mean/median with strings
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index efc8bc695df85..af1e86021ef19 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -311,8 +311,11 @@ Timezones Numeric ^^^^^^^ +- Bug in :meth:`Series.corr` and :meth:`Series.cov` raising ``AttributeErro...
- [x] closes #36703 (Replace xxxx with the GitHub issue number) - [x] closes #44008 - [x] closes #34671 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52281
2023-03-29T16:02:08Z
2023-04-24T18:49:48Z
2023-04-24T18:49:48Z
2023-04-30T17:43:09Z
Doc: add ExtensionArray.map to reference/extensions.rst
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45df480779ee7..2d307859eb7a1 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -524,6 +524,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.insert \ pandas.api.extensions.ExtensionArray.isi...
xref #52247 & #52263.
https://api.github.com/repos/pandas-dev/pandas/pulls/52280
2023-03-29T15:47:03Z
2023-05-15T20:50:09Z
null
2023-05-15T20:50:10Z
PERF: dtype checks
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 2c0d75bcf2250..83ac5651c1d1c 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1,6 +1,7 @@ from __future__ import annotations from typing import ( + TYPE_CHECKING, Literal, cast, ) @@ -21,6 +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/52279
2023-03-29T15:44:24Z
2023-03-29T19:48:20Z
2023-03-29T19:48:20Z
2023-03-29T19:53:06Z
Backport PR #52057 on branch 2.0.x (PERF: Fix performance regression in read_csv when converting datetimes)
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index 161bc250f9f7e..5d3a0103cefb5 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -66,7 +66,10 @@ ) from pandas.core.dtypes.missing import isna -from pandas import StringDtype +from pandas impor...
Backport PR #52057: PERF: Fix performance regression in read_csv when converting datetimes
https://api.github.com/repos/pandas-dev/pandas/pulls/52278
2023-03-29T15:29:36Z
2023-03-29T19:14:49Z
2023-03-29T19:14:49Z
2023-03-29T19:14:49Z
Set na_rep='=na()' as default value, issue #52258
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 72fd7fadd0987..d423e43872282 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2114,7 +2114,7 @@ def to_excel( self, excel_writer: FilePath | WriteExcelBuffer | ExcelWriter, sheet_name: str = "Sheet1", - ...
- [x] closes issue #52258 - [ ] [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/52277
2023-03-29T15:06:37Z
2023-03-29T15:50:11Z
null
2023-03-29T16:11:47Z
API / CoW: Respect CoW for DataFrame(Index)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index db69f43e92518..9d5fcf12ac3e3 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -191,7 +191,8 @@ Copy-on-Write improvements of those Series objects for the columns of the DataFrame (:issue:`50777`) ...
- [ ] 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/52276
2023-03-29T14:42:25Z
2023-03-29T22:31:59Z
2023-03-29T22:31:59Z
2023-03-30T16:55:29Z
Backport PR #52017 on branch 2.0.x (BUG: Series constructor not respecting CoW when called with BlockManager)
diff --git a/pandas/core/series.py b/pandas/core/series.py index 1725f754ce065..f81957ebc5fd2 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -379,6 +379,8 @@ def __init__( and dtype is None and copy is False ): + if using_copy_on_write(): + ...
Backport PR #52017: BUG: Series constructor not respecting CoW when called with BlockManager
https://api.github.com/repos/pandas-dev/pandas/pulls/52275
2023-03-29T14:07:21Z
2023-03-29T16:27:16Z
2023-03-29T16:27:16Z
2023-03-29T16:27:16Z
Backport PR #52031 on branch 2.0.x (BUG-CoW: DataFrame constructed from Series not respecting CoW)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 63961afaf02c4..3c3c490d2c468 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -190,6 +190,9 @@ Copy-on-Write improvements of Series objects and specifying ``copy=False``, will now use a lazy copy ...
Backport PR #52031: BUG-CoW: DataFrame constructed from Series not respecting CoW
https://api.github.com/repos/pandas-dev/pandas/pulls/52274
2023-03-29T14:06:22Z
2023-03-29T16:29:38Z
2023-03-29T16:29:38Z
2023-03-29T16:29:38Z
Backport PR #52060 on branch 2.0.x (API CoW: Return read_only NumPy array from ravel)
diff --git a/pandas/core/series.py b/pandas/core/series.py index 1725f754ce065..895b72decd379 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -765,7 +765,10 @@ def ravel(self, order: str = "C") -> ArrayLike: -------- numpy.ndarray.ravel : Return a flattened array. """ - ...
Backport PR #52060: API CoW: Return read_only NumPy array from ravel
https://api.github.com/repos/pandas-dev/pandas/pulls/52273
2023-03-29T14:05:31Z
2023-03-29T16:29:01Z
2023-03-29T16:29:01Z
2023-03-29T16:29:01Z
DEPR: Passing a dictionary to SeriesGroupBy.agg
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3a749708fb526..bf9c666ea521d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -122,6 +122,7 @@ Deprecations - Deprecated 'method', 'limit', and 'fill_axis' keywords in :meth:`DataFrame.align` and :meth...
- [x] closes #50684 (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/52268
2023-03-29T03:11:30Z
2023-03-31T17:13:26Z
2023-03-31T17:13:26Z
2023-03-31T18:13:32Z
DOC: Move notes to appropriate section in agg and aggregate docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bcba7c8c13f8c..c7c6dd32ed242 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9562,17 +9562,8 @@ def _gotitem( # TODO: _shallow_copy(subset)? return subset[key] - _agg_summary_and_see_also_doc = dedent( + _agg_see_a...
- [x] closes #52253 Move a paragraph of notes from `Returns` to `Notes` in the docs of `pandas.DataFrame.agg` and `pandas.DataFrame.aggregate`, which removes the incorrect bolding.
https://api.github.com/repos/pandas-dev/pandas/pulls/52267
2023-03-29T02:22:55Z
2023-03-29T14:34:50Z
2023-03-29T14:34:50Z
2023-03-29T14:34:57Z
Backport PR #52260 on branch 2.0.x (CI/DEPS: Correct xfail condition for new pymysql)
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 2504794384038..d2fb4a8426cf8 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -59,6 +59,7 @@ ArrowStringArray, StringArray, ) +from pandas.util.version import Version from pandas.io import sql from p...
Backport PR #52260: CI/DEPS: Correct xfail condition for new pymysql
https://api.github.com/repos/pandas-dev/pandas/pulls/52265
2023-03-28T21:59:38Z
2023-03-29T00:04:24Z
2023-03-29T00:04:24Z
2023-03-29T00:04:25Z
DEPR: logical operations with dtype-less sequences
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bac567b537edc..475d48be01a9e 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -115,6 +115,7 @@ Deprecations - Deprecated 'method', 'limit', and 'fill_axis' keywords in :meth:`DataFrame.align` and :meth...
- [x] closes #51521 (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/52264
2023-03-28T21:47:34Z
2023-03-29T20:10:43Z
2023-03-29T20:10:42Z
2023-03-29T21:07:44Z
Revert "DOC: Add .map to ExtensionArray reference"
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2d307859eb7a1..45df480779ee7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -524,7 +524,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.insert \ pandas.api.extensions.ExtensionArray.isi...
Causes the doc build to currently fail. Sorry @topper-123 could you resubmit the PR?
https://api.github.com/repos/pandas-dev/pandas/pulls/52263
2023-03-28T21:41:57Z
2023-03-28T23:55:30Z
2023-03-28T23:55:30Z
2023-03-29T15:49:18Z
STYLE: turn off PLW2901 (but keep some changes)
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index c455f91656909..89d02f7c1d444 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -1124,8 +1124,10 @@ def _range_from_fields( freqstr = freq.freqstr year, quarter = _make_field_arrays(year, quarte...
Continuation of work started on closed issue #51708. Didn't find a new issue to link this PR, may I ask you @MarcoGorelli if it is fine to link it to the closed one or shall I wait for a new issue to be opened?
https://api.github.com/repos/pandas-dev/pandas/pulls/52262
2023-03-28T20:12:33Z
2023-04-12T17:02:50Z
2023-04-12T17:02:49Z
2023-04-12T17:02:50Z
BUG: DataFrame reductions losing EA dtypes
diff --git a/pandas/core/array_algos/masked_reductions.py b/pandas/core/array_algos/masked_reductions.py index 7900bcc6a8e6e..c572b422893d5 100644 --- a/pandas/core/array_algos/masked_reductions.py +++ b/pandas/core/array_algos/masked_reductions.py @@ -155,7 +155,7 @@ def mean( skipna: bool = True, axis: Axis...
- [x] closes #51446 (Replace xxxx with the GitHub issue number) - [x] closes #42895 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/52261
2023-03-28T20:11:42Z
2023-04-21T20:19:36Z
null
2023-04-21T20:19:44Z
CI/DEPS: Correct xfail condition for new pymysql
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index ab88e4ccd8b82..cd1f0ce6fcfd8 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -59,6 +59,7 @@ ArrowStringArray, StringArray, ) +from pandas.util.version import Version from pandas.io import sql from p...
- [ ] 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/52260
2023-03-28T20:08:18Z
2023-03-28T21:59:27Z
2023-03-28T21:59:27Z
2023-03-28T21:59:31Z
Backport PR #52075 on branch 2.0.x (BUG: Arrow setitem segfaults when len > 145 000)
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 81d8183a79bc1..8612f5a4718cd 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1618,6 +1618,10 @@ def _replace_with_mask( indices = pa.array(indices, type=pa.int64()) ...
* BUG: Arrow setitem segfaults when len > 145 000 * Add gh ref * Address review * Restrict to bool type (cherry picked from commit 10000db023208c1db0bba6a7d819bfe87dc49908) - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs...
https://api.github.com/repos/pandas-dev/pandas/pulls/52259
2023-03-28T18:43:34Z
2023-03-28T22:54:07Z
2023-03-28T22:54:06Z
2023-03-28T22:54:10Z
DEPR: Deprecate the convert_dtype param in Series.Apply
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bac567b537edc..b8e849299d262 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -116,6 +116,7 @@ Deprecations - Deprecated 'broadcast_axis' keyword in :meth:`Series.align` and :meth:`DataFrame.align`, up...
Depreates the `convert_dtype` parameter in `Series.apply`. Also does some minor clean-ups in `lib.pyx`. Progress towards #52140.
https://api.github.com/repos/pandas-dev/pandas/pulls/52257
2023-03-28T13:55:49Z
2023-03-30T16:35:38Z
2023-03-30T16:35:38Z
2023-09-27T21:15:00Z
PERF: ArrowExtensionArray._from_sequence
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 5b64937552e41..998aa6b9e6f08 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -251,7 +251,7 @@ def _from_sequence(cls, scalars, *, dtype: Dtype | None = None, copy: bool = Fal e...
- [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/52256
2023-03-28T10:42:59Z
2023-03-28T18:13:55Z
2023-03-28T18:13:55Z
2023-04-18T11:03:44Z
Backport PR #52204 on branch 2.0.x (DOC: Update timestamp limitations)
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 4cd98c89e7180..2c93efb128613 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -507,7 +507,8 @@ used if a custom frequency string is passed. Timestamp limitations --------------...
Backport PR #52204: DOC: Update timestamp limitations
https://api.github.com/repos/pandas-dev/pandas/pulls/52255
2023-03-28T09:57:47Z
2023-03-28T12:00:57Z
2023-03-28T12:00:57Z
2023-03-28T12:00:58Z
Correct some typos in the repository
diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index 4792d26d021d6..61c9c37a26812 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -533,7 +533,7 @@ Data sets do not only contain numerical data. pandas provides a wide range of fu 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/52254
2023-03-28T02:21:57Z
2023-03-28T18:15:36Z
2023-03-28T18:15:36Z
2023-03-28T18:15:45Z
BUG #52197 proposed fix
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 71fda39a05e55..9f37d12d0fa56 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -208,6 +208,7 @@ I/O ^^^ - Bug in :func:`read_html`, tail texts were removed together with elements containing ``display:n...
- [x] closes #52197 - [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/52251
2023-03-27T23:17:49Z
2023-03-28T18:23:57Z
2023-03-28T18:23:57Z
2023-03-28T18:24:07Z
REGR: Revert GH51335
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 80b52d3b3955e..02d6a3c4312cc 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -777,7 +777,7 @@ Other API changes - The levels of the index of the :class:`Series` returned from ``Series.sparse.from_coo`...
Ref: https://github.com/pandas-dev/pandas/pull/51955#issuecomment-1478685300 - [ ] 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 - [ ] Al...
https://api.github.com/repos/pandas-dev/pandas/pulls/52250
2023-03-27T22:36:41Z
2023-04-08T12:28:41Z
null
2023-04-16T13:32:06Z
TYP: remove mypy ignore from array_manager.py
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index 407e16e1fa187..0925f3a3cee1f 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -834,7 +834,7 @@ def iset( # multiple columns -> convert slice or array to intege...
Related to #37715 mypy ignore was removed from pandas/core/internals/array_manager.py
https://api.github.com/repos/pandas-dev/pandas/pulls/52249
2023-03-27T21:53:06Z
2023-03-29T21:42:17Z
2023-03-29T21:42:16Z
2023-03-30T01:08:20Z
CLN: Assorted
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index adb920e0cca6d..94ad2aa3a751f 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -51,10 +51,12 @@ from pandas._libs.khash cimport ( kh_resize_int64, khiter_t, ) +from pandas._libs.missing cimport ( + checknull, + isnaobj...
- [ ] 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/52248
2023-03-27T21:27:05Z
2023-03-29T21:31:27Z
2023-03-29T21:31:27Z
2023-03-29T21:32:13Z
DOC: Add .map to ExtensionArray reference
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 45df480779ee7..2d307859eb7a1 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -524,6 +524,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.insert \ pandas.api.extensions.ExtensionArray.isi...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52247
2023-03-27T20:37:40Z
2023-03-28T18:31:05Z
2023-03-28T18:31:05Z
2023-03-31T13:44:13Z
ENH: semi joins
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 1f8c93978c890..56ffb97b11500 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -38,6 +38,7 @@ Other enhancements - Improved error message when creating a DataFrame with empty data (0 rows), no index and...
- [x] closes #42784 - [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/52243
2023-03-27T18:11:42Z
2023-04-03T19:01:41Z
null
2023-04-10T08:52:25Z
Backport PR #52195 on branch 2.0.x (WARN: Only warn about inconsistent parsing if there are multiple non-null elements)
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 0265b4404d6ab..3cd3dec185ccf 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -139,13 +139,16 @@ def _guess_datetime_format_for_array(arr, dayfirst: bool | None = False) -> str ) ...
Backport PR #52195: WARN: Only warn about inconsistent parsing if there are multiple non-null elements
https://api.github.com/repos/pandas-dev/pandas/pulls/52242
2023-03-27T17:23:55Z
2023-03-27T19:58:47Z
2023-03-27T19:58:47Z
2023-03-27T19:58:48Z
Backport PR #51538 on branch 2.0.x (BUG: Timedelta comparisons with very large pytimedeltas overflowing)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 2263c8789f979..63961afaf02c4 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1189,6 +1189,7 @@ Timedelta - Bug in :func:`to_timedelta` raising error when input has nullable dtype ``Float64`` (:issue:...
Backport PR #51538: BUG: Timedelta comparisons with very large pytimedeltas overflowing
https://api.github.com/repos/pandas-dev/pandas/pulls/52241
2023-03-27T17:17:53Z
2023-03-27T20:32:12Z
2023-03-27T20:32:12Z
2023-03-27T20:32:13Z
CI: Try running single_cpu/not single_cpu tests together
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f990c6edaeb2a..08dd09e57871b 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -26,7 +26,8 @@ jobs: strategy: matrix: env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-3...
- [ ] 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/52239
2023-03-27T15:36:15Z
2023-03-30T00:15:49Z
2023-03-30T00:15:49Z
2023-03-30T01:14:42Z
COMPAT: Remove unnecessary memoryview workaround
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index 164ed8a5c9227..5929647468785 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -850,17 +850,7 @@ def asof_join_nearest_on_X_by_Y(ndarray[numeric_t] left_values, numeric_t bdiff, fdiff # search both forward and backward - ...
- [ ] 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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/52237
2023-03-27T11:40:40Z
2023-07-18T19:18:10Z
2023-07-18T19:18:10Z
2023-07-18T19:53:21Z
BUG: Removed bug from groupby/min on categoricals
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index 6f361ff867c35..b72a21f1aa0c6 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -402,6 +402,8 @@ def _ea_wrap_cython_operation( if self.how in self.cast_blocklist: return res_values + ...
- [ x] closes #52151 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/52236
2023-03-27T10:51:42Z
2023-03-30T16:06:47Z
2023-03-30T16:06:47Z
2023-03-30T16:11:01Z
read_fwf with urlopen test GH#26376
diff --git a/pandas/_testing/_io.py b/pandas/_testing/_io.py index 37a75d9f59920..d79968a580e40 100644 --- a/pandas/_testing/_io.py +++ b/pandas/_testing/_io.py @@ -271,7 +271,10 @@ def can_connect(url, error_classes=None) -> bool: try: with urlopen(url, timeout=20) as response: # Timeout jus...
- [ ] closes #26376 (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/52233
2023-03-27T05:21:17Z
2023-03-29T21:35:18Z
2023-03-29T21:35:18Z
2023-03-29T23:30:30Z
CI: update autotyping
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4baa638bdda2..de36bf2d441c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -413,8 +413,8 @@ repos: language: python stages: [manual] additional_dependencies: - - autotyping==22.9.0 - - l...
Added many of the `--guess-common-names` guestimations. This new option would still make changes, so I disabled it.
https://api.github.com/repos/pandas-dev/pandas/pulls/52232
2023-03-27T03:06:35Z
2023-03-27T08:56:49Z
2023-03-27T08:56:49Z
2023-08-09T15:08:36Z
DataFrame transform with fillna test GH#26840
diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py index d7dc2d8937467..c1201c33123ab 100644 --- a/pandas/tests/groupby/transform/test_transform.py +++ b/pandas/tests/groupby/transform/test_transform.py @@ -361,6 +361,20 @@ def test_dispatch_transform(tsfram...
- [ ] closes #26840 (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/52230
2023-03-26T23:56:47Z
2023-03-27T18:04:29Z
2023-03-27T18:04:29Z
2023-03-28T00:44:17Z
REF: de-duplicate some test code
diff --git a/pandas/tests/extension/masked_shared.py b/pandas/tests/extension/masked_shared.py new file mode 100644 index 0000000000000..4c6ce20379419 --- /dev/null +++ b/pandas/tests/extension/masked_shared.py @@ -0,0 +1,121 @@ +""" +Shared test code for IntegerArray/FloatingArray/BooleanArray. +""" +import pytest + +...
- [ ] 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/52228
2023-03-26T22:11:09Z
2023-03-27T18:09:20Z
2023-03-27T18:09:19Z
2023-03-27T18:45:35Z
DOC: reshaping.rst Update
diff --git a/doc/source/_static/reshaping_pivot.png b/doc/source/_static/reshaping_pivot.png index c6c37a80744d4..6d779562adcac 100644 Binary files a/doc/source/_static/reshaping_pivot.png and b/doc/source/_static/reshaping_pivot.png differ diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshap...
- [x] closes #52142 - [x] Modified an entry in the latest `doc/source/user_guide/reshaping.rst` to include synonymous terms and explination - [x] Modified image `doc/source/static/reshaping_pivot.png
https://api.github.com/repos/pandas-dev/pandas/pulls/52227
2023-03-26T19:32:12Z
2023-03-27T18:11:22Z
2023-03-27T18:11:22Z
2023-03-27T18:11:31Z
CI: replace flake8-pyi with ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02acba4804eb3..d4baa638bdda2 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...
Not all rules are covered by ruff but, from my point of view, the important ones are covered.
https://api.github.com/repos/pandas-dev/pandas/pulls/52226
2023-03-26T17:26:31Z
2023-03-26T19:34:59Z
2023-03-26T19:34:59Z
2023-08-09T15:08:36Z
BUG: Index with duplicate labels raises ValueError in Dataframe.query
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c2017c0acc55e..6751227fcdddc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9,6 +9,7 @@ labeling information """ from __future__ import annotations +from pandas.core.indexes.range import RangeIndex import collections from collection...
- [x] closes #51815 - [ ] [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/52224
2023-03-26T16:14:27Z
2023-05-03T00:16:14Z
null
2023-05-03T00:16:14Z
BUG: __from_arrow__ doesn't accept pyarrow null arrays for numeric ma…
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index a037e50593737..fd19c84f8ab23 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -316,7 +316,9 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ +- Bug where the ``__from_arrow__`` method of masked ExtensionDtyp...
…sked types - [ ] 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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/52223
2023-03-26T15:33:28Z
2023-04-07T21:05:08Z
2023-04-07T21:05:08Z
2023-05-24T15:31:25Z
DOC: Clarifies the description of if_sheet_exists in pd.ExcelWriter (#52189)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 3c1ecffe21353..8c3bbb7798f68 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -942,8 +942,8 @@ class ExcelWriter(metaclass=abc.ABCMeta): * error: raise a ValueError. * new: Create a new sheet, with a name det...
- [ ] closes #52189 - [ ] [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/52222
2023-03-26T13:26:13Z
2023-03-27T18:26:51Z
2023-03-27T18:26:51Z
2023-03-27T18:27:03Z
BUG: Timestamp fails when fold is passed with positional args
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bac567b537edc..4486d9217bfae 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -154,6 +154,7 @@ Datetimelike - Bug in :meth:`Timestamp.round` with values close to the implementation bounds returning inc...
- [ ] closes #52117 - [ ] [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/52221
2023-03-26T11:40:03Z
2023-03-31T19:06:42Z
null
2023-03-31T19:06:42Z
BUG: zero-pad shorter years in `Timestamp.isoformat`
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 10a331f302cc4..02f1e43eda62d 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1015,7 +1015,7 @@ cdef class _Timestamp(ABCTimestamp): base_ts = "microseconds" if timespec == "na...
As discussed in #50867, this changes `Timestamp.isoformat` to zero-pad years to 4 digits. After applying the change, I also had to change a existing test because of the now-changed standard format, but also remove a condition which assumed that `"001-01-01"` and `"0001-01-01"` would result in different objects (not ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52220
2023-03-26T10:48:33Z
2023-03-31T16:51:29Z
2023-03-31T16:51:29Z
2023-03-31T18:38:35Z
ENH: make DataFrame.applymap uses the .map method of ExtensionArrays
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 71fda39a05e55..1f8c93978c890 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -36,6 +36,7 @@ Other enhancements - :class:`api.extensions.ExtensionArray` now has a :meth:`~api.extensions.ExtensionArray....
Currently `DataFrame.applymap` ignores the `.map`method of `ExtensionArrays`. This fixes that. Example: ```python >>> import pandas as pd >>> >>> arr = pd.array(["a", np.nan, "b"], dtype=object) >>> sparse_arr = pd.array(arr.tolist(), dtype=pd.SparseDtype(object)) >>> df = pd.DataFrame(data={'a': arr, "b": spa...
https://api.github.com/repos/pandas-dev/pandas/pulls/52219
2023-03-26T09:43:04Z
2023-03-27T18:41:34Z
2023-03-27T18:41:34Z
2023-03-27T18:57:52Z
datetime64 series and dataframe test GH#28273
diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py index 6b635a4f46972..d120a066adfc4 100644 --- a/pandas/tests/io/json/test_ujson.py +++ b/pandas/tests/io/json/test_ujson.py @@ -390,6 +390,11 @@ def test_encode_time_conversion_dateutil(self): def test_encode_as_null(self, decoded...
- [ ] closes #28273 (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/52217
2023-03-26T07:20:54Z
2023-03-28T18:01:02Z
null
2023-03-28T23:22:27Z
BUG: assert_frame_equal still checks category dtypes even when asked not to check index type
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 1f5c3c88c5ff5..7c3e43815d0c8 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -259,6 +259,7 @@ Other ^^^^^ - Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issu...
- [x] closes #52126 - [ ] [Tests added and passed] - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/52216
2023-03-26T07:10:14Z
2023-04-01T17:51:29Z
2023-04-01T17:51:29Z
2023-04-01T17:51:39Z
Backport PR #52209 on branch 2.0.x (DOC: getting_started tutorials nbviewer broken link structure fixed)
diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst index bff50bb1e4c2d..1220c915c3cbc 100644 --- a/doc/source/getting_started/tutorials.rst +++ b/doc/source/getting_started/tutorials.rst @@ -113,7 +113,7 @@ Various tutorials * `Wes McKinney's (pandas BDFL) blog <https://we...
Backport PR #52209: DOC: getting_started tutorials nbviewer broken link structure fixed
https://api.github.com/repos/pandas-dev/pandas/pulls/52215
2023-03-26T03:49:04Z
2023-03-26T15:22:58Z
2023-03-26T15:22:58Z
2023-03-26T15:22:58Z
ENH: Adding engine_kwargs to Excel engines for issue #40274
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 1002eb9ee8568..101932a23ca6a 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3449,6 +3449,18 @@ Reading Excel files In the most basic use-case, ``read_excel`` takes a path to an Excel file, and the ``sheet_...
- [X] closes #40274 (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/52214
2023-03-26T02:02:06Z
2023-04-12T15:52:03Z
2023-04-12T15:52:03Z
2023-08-30T12:35:13Z
PERF: dtype checks
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 19a121253e29a..ae1d20ca4e225 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -10,7 +10,6 @@ import sys import time import warnings -from pandas.errors import ParserError from pandas.util._exceptions import find_stack_lev...
- [ ] 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/52213
2023-03-26T01:10:07Z
2023-03-27T21:01:19Z
2023-03-27T21:01:19Z
2023-03-27T21:02:26Z
API/BUG: infer_dtype_from_scalar with non-nano
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index e1ac9e3309de7..703322488d328 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -317,6 +317,7 @@ Datetimelike - Bug in :func:`date_range` when ``freq`` was a :class:`DateOffset` with ``nanoseconds`` (:is...
- [x] closes #51196 (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/52212
2023-03-26T00:41:49Z
2023-05-18T16:11:48Z
2023-05-18T16:11:48Z
2023-05-18T17:16:02Z
CI: Test pyarrow nightly instead of intermediate versions
diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index efc31bba88f28..329dc24d466b4 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -9,20 +9,9 @@ inputs: extra-specs: description: Extra packages to install requi...
- [ ] 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/52211
2023-03-25T21:49:10Z
2023-03-30T23:52:36Z
2023-03-30T23:52:35Z
2023-07-19T22:59:44Z
CI: Use auto pytest workers for Windows
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index 15308d0c086f6..7b66a7ef51853 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -17,6 +17,7 @@ env: PANDAS_CI: 1 PYTEST_TARGET: pandas PATTERN: "not slow and not db and not ne...
- [ ] closes #47443 (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/52210
2023-03-25T21:31:57Z
2023-03-27T22:14:44Z
null
2023-03-27T22:14:49Z
DOC: getting_started tutorials nbviewer broken link structure fixed
diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst index bff50bb1e4c2d..1220c915c3cbc 100644 --- a/doc/source/getting_started/tutorials.rst +++ b/doc/source/getting_started/tutorials.rst @@ -113,7 +113,7 @@ Various tutorials * `Wes McKinney's (pandas BDFL) blog <https://we...
- [x] closes #52208 - [ ] [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/52209
2023-03-25T20:42:28Z
2023-03-26T03:48:34Z
2023-03-26T03:48:34Z
2023-03-26T20:49:59Z
DOC: Add replace & map to See Also section
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bef7022a7d10f..53cd9c6476c75 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9913,6 +9913,7 @@ def applymap( See Also -------- DataFrame.apply : Apply a function along input axis of DataFrame. + DataFrame.r...
See PR title, adding some references.
https://api.github.com/repos/pandas-dev/pandas/pulls/52207
2023-03-25T18:56:56Z
2023-03-27T21:03:12Z
2023-03-27T21:03:12Z
2023-03-27T21:31:38Z
REF: simplify DataFrame.applymap
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bef7022a7d10f..6ee9b357170bd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9882,7 +9882,7 @@ def apply( return op.apply().__finalize__(self, method="apply") def applymap( - self, func: PythonFuncType, na_action: str...
This PR clarifies that `DataFrame.applymap` is actually the same as calling `Series.map` on each column. Also, this will hit `ExtensionArray.map`, which the version in the main branch didn't.
https://api.github.com/repos/pandas-dev/pandas/pulls/52206
2023-03-25T18:56:19Z
2023-03-25T20:07:18Z
null
2023-05-20T19:54:26Z
POC: rollback_array
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 9718641e75f60..ea148def47fa8 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2235,6 +2235,20 @@ cdef class YearOffset(SingleConstructorOffset): ) return shifted + @apply_arr...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/52205
2023-03-25T18:10:10Z
2023-06-23T16:31:23Z
null
2023-06-23T16:31:28Z
DOC: Update timestamp limitations
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 4cd98c89e7180..2c93efb128613 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -507,7 +507,8 @@ used if a custom frequency string is passed. Timestamp limitations --------------...
- [ ] 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/52204
2023-03-25T17:27:08Z
2023-03-28T09:57:15Z
2023-03-28T09:57:15Z
2023-03-29T14:02:57Z
ASV: Add benchmark when comparing datetimes with different reso
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index ab3b38fee1b06..4fd9740f184c8 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -266,10 +266,14 @@ def setup(self, tz): self.ts = self.s[halfway] self.s2 = Series(date_...
- [ ] xref #52080 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/52203
2023-03-25T17:18:15Z
2023-03-27T21:06:13Z
2023-03-27T21:06:13Z
2023-03-29T14:04:10Z
ENH: Add dtype of categories to repr of CategoricalDtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bac567b537edc..cbb2138ae96f2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -38,6 +38,7 @@ Other enhancements - Improved error message when creating a DataFrame with empty data (0 rows), no index and...
- [x] closes #52179 (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/52202
2023-03-25T17:12:43Z
2023-03-29T21:39:48Z
2023-03-29T21:39:48Z
2023-03-30T16:56:02Z
ENH: add `__from_pyarrow__` support to `DatetimeTZDtype`
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c3355757350b9..1e1c9517d5ef7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -85,6 +85,7 @@ Other enhancements - Add dtype of categories to ``repr`` information of :class:`CategoricalDtype` (:issue:`5...
- [x] 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/52201
2023-03-25T14:58:42Z
2023-04-17T16:41:18Z
2023-04-17T16:41:18Z
2023-04-17T17:02:10Z
add extra test case in the test_constructor_str_infer_reso
diff --git a/pandas/tests/scalar/timestamp/test_constructors.py b/pandas/tests/scalar/timestamp/test_constructors.py index ca0796e55f28d..7e4002dc3a0cf 100644 --- a/pandas/tests/scalar/timestamp/test_constructors.py +++ b/pandas/tests/scalar/timestamp/test_constructors.py @@ -58,6 +58,12 @@ def test_constructor_str_inf...
- [x] closes #51025 - [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). An ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52199
2023-03-25T14:21:17Z
2023-03-25T19:40:58Z
2023-03-25T19:40:58Z
2023-03-25T19:40:58Z
DOC warn user about potential information loss in Resampler.interpolate
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index e8864deaaca4d..8cc578b7fd0b6 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -825,7 +825,6 @@ def fillna(self, method, limit: int | None = None): """ return self._upsample(method, limit=limit) - @doc(NDFram...
In scientific and technical domain people deal with high-frequent or non-equidistant timeseries. Using `resample("1s").interpolate()` can have unwanted side effects which we should warn in the documentation: ```python import datetime as dt import pandas as pd import matplotlib.pyplot as plt timesteps = [ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/52198
2023-03-25T13:18:00Z
2023-04-07T17:46:33Z
2023-04-07T17:46:33Z
2023-11-01T09:05:46Z
WARN: Only warn about inconsistent parsing if there are multiple non-null elements
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 0265b4404d6ab..3cd3dec185ccf 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -139,13 +139,16 @@ def _guess_datetime_format_for_array(arr, dayfirst: bool | None = False) -> str ) ...
- [ ] closes #52167 (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/52195
2023-03-25T08:17:59Z
2023-03-27T17:23:45Z
2023-03-27T17:23:45Z
2023-03-27T17:46:40Z
BUG: Unexpected KeyError message when using .loc with MultiIndex in a possible edge-case
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index abe4a00e0b813..0f010da02472e 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2841,6 +2841,8 @@ def _maybe_to_slice(loc): # i.e. do we need _index_as_unique on that level? try: ...
- [x] closes #51892 - [ ] [Tests added and passed] - [x] All [code checks passed] - [ ] Added [type annotations] - [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/52194
2023-03-25T07:04:21Z
2023-03-27T04:16:12Z
2023-03-27T04:16:12Z
2023-03-27T04:16:23Z
Backport PR #52174 on branch 2.0.x (BUG: to_numeric converting StringArray to object or float64)
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 47f477a9a4e92..37eede59e257d 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2321,10 +2321,14 @@ def maybe_convert_numeric( if not seen.coerce_numeric: raise type(err)(f"{err} at position {i}") - ...
#52174
https://api.github.com/repos/pandas-dev/pandas/pulls/52193
2023-03-25T05:21:07Z
2023-03-25T15:04:23Z
2023-03-25T15:04:23Z
2023-04-22T17:25:31Z
Backport PR #52184 on branch 2.0.x (DOC: Clarify difference between StringDtype(pyarrow) and ArrowDtype(string))
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index edcd3d2a40b1a..54e49448daca8 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -93,9 +93,10 @@ PyArrow type pandas extension type NumPy .. note:: - For...
Backport PR #52184: DOC: Clarify difference between StringDtype(pyarrow) and ArrowDtype(string)
https://api.github.com/repos/pandas-dev/pandas/pulls/52192
2023-03-25T05:09:38Z
2023-03-25T15:04:32Z
2023-03-25T15:04:32Z
2023-03-25T15:04:32Z
BUG: construct Timestamp with year out of pydatetime range
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 9e4bba1cf3544..4dcb3db0c2d72 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1626,6 +1626,30 @@ class Timestamp(_Timestamp): # When year, month or day is not given, we cal...
- [x] closes #52091 (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/52191
2023-03-24T23:39:01Z
2024-01-31T18:51:32Z
null
2024-01-31T18:51:33Z
REF/TYP: stricter typing for Series._slice
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bef7022a7d10f..f1a1f842d2107 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3758,18 +3758,10 @@ def __getitem__(self, key): elif is_mi and self.columns.is_unique and key in self.columns: return self._getitem...
Motivation is that Series._slice surprisingly accepts non-slice inputs. Changing that required copying the slice-handling code from `DataFrame.__getitem__`, at which point it made sense to share that by implementing `NDFrame._getitem_slice`
https://api.github.com/repos/pandas-dev/pandas/pulls/52190
2023-03-24T23:04:12Z
2023-03-27T06:18:35Z
2023-03-27T06:18:35Z
2023-03-27T14:49:13Z
BUG: fix dic_values update
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 6d5daf5025c49..9720f3799e864 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1,5 +1,6 @@ from __future__ import annotations +import collections from contextlib import suppress import sys from typing import ( @@ -1864,6 +18...
- [x] closes #52175 - [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/52188
2023-03-24T22:08:43Z
2023-04-21T17:32:55Z
null
2023-04-21T17:32:55Z
DEPR: subclassing Index
diff --git a/doc/source/development/internals.rst b/doc/source/development/internals.rst index 3dd687ef2087d..e3468746ce177 100644 --- a/doc/source/development/internals.rst +++ b/doc/source/development/internals.rst @@ -31,31 +31,9 @@ There are functions that make the creation of a regular index easy: * :func:`period...
- [x] closes #45289 (Replace xxxx with the GitHub issue number) - [x] closes #15258 - [x] closes #37882 - [ ] [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52186
2023-03-24T22:04:39Z
2023-03-29T21:45:28Z
2023-03-29T21:45:28Z
2023-03-29T21:46:15Z
Backport PR #52180 on branch 2.0.x (BUG: to_sql raises when arrow dtype has missing values)
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 390eb33d6eefe..81d8183a79bc1 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2077,7 +2077,7 @@ def _dt_round( def _dt_to_pydatetime(self): data = self._data.to_pylist() ...
Backport PR #52180: BUG: to_sql raises when arrow dtype has missing values
https://api.github.com/repos/pandas-dev/pandas/pulls/52185
2023-03-24T21:55:49Z
2023-03-24T23:53:04Z
2023-03-24T23:53:03Z
2023-03-24T23:53:04Z
DOC: Clarify difference between StringDtype(pyarrow) and ArrowDtype(string)
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index edcd3d2a40b1a..54e49448daca8 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -93,9 +93,10 @@ PyArrow type pandas extension type NumPy .. note:: - For...
Spawned from a discussion in #52156
https://api.github.com/repos/pandas-dev/pandas/pulls/52184
2023-03-24T21:23:53Z
2023-03-25T05:09:03Z
2023-03-25T05:09:03Z
2023-03-25T20:42:59Z
PERF: slicing
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 533727f8f2d42..88c95331cd393 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -831,7 +831,7 @@ cdef class BlockManager: # ------------------------------------------------------------------- # Indexing - ...
``` import pandas as pd ser = pd.Series(range(300_000)) df = ser.to_frame() %timeit ser[:30] 14.6 µs ± 474 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each) # <- main 12.6 µs ± 421 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each) # <- PR %timeit df[:30] 16.2 µs ± 1.23 µs per loop (m...
https://api.github.com/repos/pandas-dev/pandas/pulls/52183
2023-03-24T20:40:28Z
2023-03-29T19:55:21Z
2023-03-29T19:55:21Z
2023-03-31T14:49:23Z
Backport PR #52171 on branch 2.0.x (DOC: update SemiMonthEnd examples to not use (n=0))
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index f2869b1779b52..fd3d80a8a3fa6 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2788,10 +2788,10 @@ cdef class SemiMonthEnd(SemiMonthOffset): >>> ts + pd.offsets.SemiMonthEnd() Timestamp('2...
Backport PR #52171: DOC: update SemiMonthEnd examples to not use (n=0)
https://api.github.com/repos/pandas-dev/pandas/pulls/52182
2023-03-24T20:36:36Z
2023-03-25T05:10:33Z
2023-03-25T05:10:33Z
2023-03-25T05:10:34Z
DOC: series.py quantile explanation example
diff --git a/pandas/core/series.py b/pandas/core/series.py index 06c744c3e36fa..fe47d82b95740 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2573,6 +2573,9 @@ def quantile( * linear: `i + (j - i) * fraction`, where `fraction` is the fractional part of the index ...
- [ ] closes #51745
https://api.github.com/repos/pandas-dev/pandas/pulls/52181
2023-03-24T20:10:20Z
2023-04-02T14:12:19Z
null
2023-04-02T14:12:19Z
BUG: to_sql raises when arrow dtype has missing values
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 353da80e27464..6b722d800519c 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2093,7 +2093,7 @@ def _dt_round( def _dt_to_pydatetime(self): data = self._pa_array.to_pylist() ...
- [x] closes #52178 (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/52180
2023-03-24T19:57:48Z
2023-03-24T21:55:14Z
2023-03-24T21:55:14Z
2023-03-24T23:49:33Z
BUG: set_levels not preserving categorical
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 64c7503849de2..1f5c3c88c5ff5 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -200,7 +200,7 @@ Missing MultiIndex ^^^^^^^^^^ -- +- Bug in :meth:`MultiIndex.set_levels` not preserving dtypes for :cla...
- [x] closes #52125 (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/52177
2023-03-24T19:22:34Z
2023-03-24T21:46:45Z
2023-03-24T21:46:45Z
2023-03-24T23:48:49Z
PERF: avoid exceptions in string.Construction benchmark setup
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index 59b7cd2accf88..f270f1a83af39 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -34,7 +34,6 @@ def setup(self, dtype): # GH37371. Testing construction of string series/frames from Extension...
#37371 added some new benchmarks, along with some new setup code for the new benchmarks. Unfortunately, the new setup code introduced an uncaught exception: ``` >>> import pandas._testing as tm >>> from pandas import Categorical >>> series_arr = tm.rands_array(nchars=10, size=10**5) >>> frame_arr = series_arr.re...
https://api.github.com/repos/pandas-dev/pandas/pulls/52176
2023-03-24T19:09:11Z
2023-03-24T21:28:09Z
2023-03-24T21:28:09Z
2023-03-24T21:28:10Z
BUG: to_numeric converting StringArray to object or float64
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 88ea61a23a426..c3bb33df34e56 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2325,10 +2325,14 @@ def maybe_convert_numeric( if not seen.coerce_numeric: raise type(err)(f"{err} at position {i}") - ...
- [x] closes #52146 (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/52174
2023-03-24T18:58:45Z
2023-03-24T21:28:34Z
2023-03-24T21:28:34Z
2023-03-25T05:21:22Z
CI: Use dependabot to update Github Actions
diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000000000..784206dfe67ff --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: wee...
Looks like dependabot finally removed enabling by default for forks (https://github.blog/changelog/2022-11-07-dependabot-pull-requests-off-by-default-for-forks/), so it would be nice to use it to keep our Github Actions up to date. Mirrored off of Numpy's configuration but set the frequency to weekly: https://github...
https://api.github.com/repos/pandas-dev/pandas/pulls/52173
2023-03-24T18:23:17Z
2023-03-25T20:44:33Z
2023-03-25T20:44:33Z
2023-03-25T20:44:37Z
DOC: update SemiMonthEnd examples to not use (n=0)
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index ff068921545c5..9718641e75f60 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2815,10 +2815,10 @@ cdef class SemiMonthEnd(SemiMonthOffset): >>> ts + pd.offsets.SemiMonthEnd() Timestamp('2...
closes #52169 this was brought up on the call as something to update by 2.0, as `n=0` is a bit unintuitive to work with
https://api.github.com/repos/pandas-dev/pandas/pulls/52171
2023-03-24T17:59:27Z
2023-03-24T20:35:57Z
2023-03-24T20:35:57Z
2023-03-24T20:36:06Z
Backport PR #52161 on branch 2.0.x (Docs/update issue 52106)
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 7d678c60a2737..f2869b1779b52 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2543,7 +2543,6 @@ cdef class MonthEnd(MonthOffset): DateOffset of one month end. MonthEnd goes to the next ...
- [ ] 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/52170
2023-03-24T17:22:38Z
2023-03-24T20:33:53Z
2023-03-24T20:33:52Z
2023-03-24T20:33:53Z
DEPR: _metadata propagation
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index efc8bc695df85..f8e0ec05bd5c0 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -236,6 +236,7 @@ Deprecations - Deprecated :func:`is_interval_dtype`, check ``isinstance(dtype, pd.IntervalDtype)`` instead...
- [ ] 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/52168
2023-03-24T16:25:36Z
2023-05-04T15:33:16Z
null
2023-05-05T14:03:50Z
DOC link to pandas-coverage app
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index 9178032c31371..9d26e77082452 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -812,7 +812,8 @@ install pandas) by typing:: yo...
As suggested on Slack @Dr-Irv
https://api.github.com/repos/pandas-dev/pandas/pulls/52163
2023-03-24T15:08:41Z
2023-03-24T16:55:47Z
2023-03-24T16:55:47Z
2023-03-24T16:55:57Z
WEB: remove links to pandas-governance + assorted cleanups
diff --git a/doc/source/development/maintaining.rst b/doc/source/development/maintaining.rst index 994dfde0894f3..97de0fb343223 100644 --- a/doc/source/development/maintaining.rst +++ b/doc/source/development/maintaining.rst @@ -174,6 +174,8 @@ conversation is over. It's typically best to give the reporter some time to...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/52162
2023-03-24T14:31:29Z
2023-03-31T17:34:10Z
2023-03-31T17:34:10Z
2023-03-31T17:34:19Z
DOC: update examples in MonthBegin/MonthEnd to use rollbackward/rollforward
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 0e2ac692e579c..ff068921545c5 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2546,7 +2546,6 @@ cdef class MonthEnd(MonthOffset): DateOffset of one month end. MonthEnd goes to the next ...
- [ ] closes #52106 updated docstring of pandas.offsets.MonthBegin, pandas.offsets.MonthEnd, pandas.offsets.BMonthBegin, pandas.offsets.BMonthEnd the output of the `validate_docsctrings.py` is similar to the below output as follows ``` ###############################################################################...
https://api.github.com/repos/pandas-dev/pandas/pulls/52161
2023-03-24T14:14:35Z
2023-03-24T17:00:58Z
2023-03-24T17:00:58Z
2023-04-11T21:43:57Z
Backport PR #52111 on branch 2.0.x (PERF: DatetimeIndex comparison with Timestamp mismatched resos)
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index b8fca76115446..dc7db33faec99 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -959,10 +959,17 @@ def _cmp_method(self, other, op): if not isinstance(other, type(self)): ...
Backport PR #52111: PERF: DatetimeIndex comparison with Timestamp mismatched resos
https://api.github.com/repos/pandas-dev/pandas/pulls/52160
2023-03-24T12:17:23Z
2023-03-24T16:06:42Z
2023-03-24T16:06:42Z
2023-03-24T16:06:42Z
STYLE: Enable TCH for nanops.py
diff --git a/pyproject.toml b/pyproject.toml index 1bc530df74e87..000bdea47c55c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -297,8 +297,6 @@ exclude = [ "pandas/io/*" = ["PLW2901"] "pandas/tests/*" = ["PLW2901"] "pandas/plotting/*" = ["PLW2901"] -# TCH to be enabled gradually -"pandas/core/nanops.py" = ["TCH...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). closes #51740
https://api.github.com/repos/pandas-dev/pandas/pulls/52159
2023-03-24T10:21:41Z
2023-03-24T11:31:23Z
2023-03-24T11:31:23Z
2023-03-24T12:48:55Z
DOC Fix EX01 in docstrings - added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b3ca4e213aea9..45df480779ee7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -86,8 +86,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py...
- [ ] 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/52158
2023-03-24T09:45:17Z
2023-03-25T13:21:32Z
2023-03-25T13:21:32Z
2023-03-25T13:57:30Z
PERF: Make __iadd__ actually inplace
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 4fd9740f184c8..9eaca050a7fa9 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -31,6 +31,7 @@ class IntFrameWithScalar: [np.float64, np.int64], [2, 3.0, np.int32(4), np....
- [ ] 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/52155
2023-03-24T04:03:15Z
2023-08-01T17:20:39Z
null
2023-08-01T17:20:46Z
Revert "BLD: Add pyproject.toml to wheels"
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 7eae93a6a27e9..31ed5096991a6 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -173,8 +173,8 @@ jobs: pip install hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 ...
Reverts pandas-dev/pandas#50330 closes #52141 Was installing pyproject.toml in the wrong place, and there's no way to let configure the install location at least for setuptools. I guess we'll have to wait for meson builds to try to include pyproject.toml.
https://api.github.com/repos/pandas-dev/pandas/pulls/52154
2023-03-24T02:25:55Z
2023-03-24T17:03:57Z
2023-03-24T17:03:57Z
2023-03-24T17:04:11Z
DEPR: flags
diff --git a/doc/source/user_guide/duplicates.rst b/doc/source/user_guide/duplicates.rst index 7894789846ce8..3475dd0cea3f8 100644 --- a/doc/source/user_guide/duplicates.rst +++ b/doc/source/user_guide/duplicates.rst @@ -121,6 +121,7 @@ will be raised. .. ipython:: python :okexcept: + :okwarning: pd.Seri...
- [ ] 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/52153
2023-03-24T02:02:12Z
2024-01-09T22:02:24Z
null
2024-01-09T22:02:24Z
DEPR: attrs
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 644a7e86ec429..025ec1a79a95d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -245,6 +245,7 @@ Deprecations - Deprecated :meth:`.Styler.applymap_index`. Use the new :meth:`.Styler.map_index` method ins...
- [ ] 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/52152
2023-03-24T01:39:23Z
2023-05-04T15:32:53Z
null
2023-05-04T15:32:59Z
Fix/mpl37 compat
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py index 49b92e0984713..54bd1c843da79 100644 --- a/pandas/plotting/_matplotlib/core.py +++ b/pandas/plotting/_matplotlib/core.py @@ -1112,7 +1112,9 @@ def _get_subplots(self): from matplotlib.axes import Subplot retu...
This was reported via https://github.com/matplotlib/matplotlib/issues/25538 , I can not find an issue if @ocefpaf reported one. - [ ] 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...
https://api.github.com/repos/pandas-dev/pandas/pulls/52150
2023-03-24T00:21:55Z
2023-03-24T17:06:29Z
2023-03-24T17:06:29Z
2023-06-25T23:48:10Z
DOC: Simplify pandas theme footer
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index a08be3301edda..0957c340d673c 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -36,17 +36,6 @@ table { padding: 2.5rem 0rem 0.5rem 0rem; } -.intro-card .card-footer { - border: none; -...
This pr is related to issue #51536. The next changes were made: 1. Changed a version of `pydata-sphinx-theme` in environment.yml from less than 0.11 to 0.13.0 2. Updated my environment by running mamba env update -n pandas-dev --file environment.yml 3. In conf.py I changed `html_theme_options`. Now "footer_start...
https://api.github.com/repos/pandas-dev/pandas/pulls/52149
2023-03-23T22:56:54Z
2023-05-15T20:50:57Z
null
2023-05-15T20:50:58Z
BLD: Fix pyproject.toml placement
diff --git a/MANIFEST.in b/MANIFEST.in index 361cd8ff9ec22..9cf8baf0d9501 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include RELEASE.md +include pyproject.toml include versioneer.py graft doc diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index 15fa10b9e4289..c86fc05537267 1...
- [ ] 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/52148
2023-03-23T22:55:46Z
2023-03-23T23:03:07Z
null
2023-03-27T15:18:30Z